Results 1 to 9 of 9

Thread: PHP script help

  1. #1
    Join Date
    Mar 2008
    Posts
    19
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default PHP script help

    Hi people,

    I'm trying to install a download store script but am having problems. Is there any PHP guru's in here that can help me out?

    I keep getting this error message-

    Parse error: syntax error, unexpected T_STRING in /home/dstore/public_html/Download-store/admin/includes/configure.php on line 24

    This is the line in question-

    define('HTTP_SERVER', 'http://www.YOURWEBSITE.com');

    Can anyone help me out?

  2. #2
    Join Date
    Mar 2008
    Posts
    19
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Obviously I've changed the 'YOURWEBSITE' to my own domain name

  3. #3
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Please post the whole code or at least a few lines before and after line 24 so that we can see what's wrong with it. PHP errors don't allows show exactly what line is the problem, and this is why we would need to see more.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  4. #4
    Join Date
    Mar 2008
    Posts
    19
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Here is the code-

    <?php
    /*

    */

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)


    // add your database and website details to the variables below

    define('DB_SERVER_USERNAME', 'my_user');
    // your username that you use to log into your web server
    define('DB_SERVER_PASSWORD', 'mypassword');
    // your password that you use to log into your web server
    define('DB_DATABASE', 'my_db');
    // replace username with your web server username
    define('DIR_FS_ADMIN', '/home1/myuser/public_html/Download-store/admin/'); // replace username with your web server username
    define('DIR_FS_CATALOG', '/home1/myuser/public_html/Download-store/');
    define('DIR_FS_DOCUMENT_ROOT', '/home1/myuser/public_html/Download-store/');
    define('SITE', 'www.makequickcashonlinenow.net/Download-store/');
    define('WWW', 'http://www.makequickcashonlinenow.net/Download-store/);
    define('HTTP_SERVER', 'http://www.makequickcashonlinenow.net/Download-store/');
    define('HTTP_CATALOG_SERVER', 'http://www.makequickcashonlinenow.net/Download-store/');


    The http_server line is line 24.

    I haven't changed anything on the-
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)

    Do you think this could be the problem?

    Hope this helps, if you need anything else let me know.

    Much appreciated

  5. #5
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    The error lies within this line. Simple add the highlighted code and the error should be resolved.

    Code:
    define('WWW', 'http://www.makequickcashonlinenow.net/Download-store/');
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  6. The Following User Says Thank You to thetestingsite For This Useful Post:

    Marcus-Hill (03-29-2008)

  7. #6
    Join Date
    Mar 2008
    Posts
    19
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    You are a f***in star dude!!!
    It worked!!!

  8. #7
    Join Date
    Mar 2008
    Posts
    19
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    It now says-

    Warning: The downloadable products directory does not exist: /home1/myuser/public_html/Download-store/download/. Downloadable products will not work until this directory is valid.

    I've checked and there is a directory named 'download'. What do you think could be causing this?

  9. #8
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    Try changing these lines:

    Code:
    define('DIR_FS_ADMIN', '/home1/myuser/public_html/Download-store/admin/'); // replace username with your web server username
    define('DIR_FS_CATALOG', '/home1/myuser/public_html/Download-store/');
    define('DIR_FS_DOCUMENT_ROOT', '/home1/myuser/public_html/Download-store/');
    with these:

    Code:
    define('DIR_FS_ADMIN', '/home/dstore/public_html/Download-store/admin'); // replace username with your web server username
    define('DIR_FS_CATALOG', '/home/dstore/public_html/Download-store/');
    define('DIR_FS_DOCUMENT_ROOT', '/home/dstore/public_html/Download-store/');
    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  10. #9
    Join Date
    Mar 2008
    Posts
    19
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Dude you are a legend!!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •