$script_name problem
Posted: Tue Dec 08, 2009 5:10 am
hello guys!!
I am new to php and currently working on some php tutorial for developing an e-commerce site. I came across a line of code:
$ME=$SCRIPT_NAME;
where $ME is a global variable. Thenafter, the script makes use of this variable many times to redirect to the same page shown in url and set values for some other variables. The problem is:
i) the above code of line shows up error
ii)when using $_SERVER['SCRIPT_NAME'] or ['PHP_SELF'] no error is displayed....but while
clicking on the link that makes use of $ME variable an error "Object Not Found" is displayed.
Currently, i am using the xampp 1.7.1 that bundles apache and php 5.3. Should i fix sth. in php.ini or sth else? help
I am new to php and currently working on some php tutorial for developing an e-commerce site. I came across a line of code:
$ME=$SCRIPT_NAME;
where $ME is a global variable. Thenafter, the script makes use of this variable many times to redirect to the same page shown in url and set values for some other variables. The problem is:
i) the above code of line shows up error
ii)when using $_SERVER['SCRIPT_NAME'] or ['PHP_SELF'] no error is displayed....but while
clicking on the link that makes use of $ME variable an error "Object Not Found" is displayed.
Currently, i am using the xampp 1.7.1 that bundles apache and php 5.3. Should i fix sth. in php.ini or sth else? help