Log in

View Full Version : PHP script help



Marcus-Hill
03-29-2008, 06:03 PM
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?

Marcus-Hill
03-29-2008, 06:06 PM
Obviously I've changed the 'YOURWEBSITE' to my own domain name

thetestingsite
03-29-2008, 06:10 PM
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.

Marcus-Hill
03-29-2008, 08:07 PM
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

thetestingsite
03-29-2008, 08:12 PM
The error lies within this line. Simple add the highlighted code and the error should be resolved.



define('WWW', 'http://www.makequickcashonlinenow.net/Download-store/');


Hope this helps.

Marcus-Hill
03-29-2008, 08:17 PM
You are a f***in star dude!!!
It worked!!!

Marcus-Hill
03-29-2008, 08:24 PM
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?

thetestingsite
03-29-2008, 08:39 PM
Try changing these lines:



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:



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.

Marcus-Hill
03-29-2008, 09:49 PM
Dude you are a legend!!