| ||||||||||
| Shopping cart software Solutions for online shops and malls | ||||||||||
|
|
||||||||||
| X-Cart Home |
auth.php erases php variable - a puzzle | |||
![]() |
|
||
|
|
Thread Tools | Search this Thread |
|
#1
|
|||||||
|
|||||||
|
I got a very strange result by including auth.php in my php file. I wrote a php code called list.php
Code:
When this file is called by link It generastes the result: Quote:
This shows auth.php erases the value of $originalurl, and keeps the value of $listingid! I do not understand what is happening. Can you help me on this? How can I keep all the variable values (with including auth.php in the code) because they are necessary in my code? Thanks a lot. Jeff
__________________
version 4.1.1 |
|||||||
|
#2
|
|||||||||
|
|||||||||
|
Probably the get variable is erased in top.inc.php
If you have registered globals on try using: $urlarray instead of the get. |
|||||||||
|
#3
|
|||||||
|
|||||||
|
Jon,
Thank you very much. One more question. What do you mean Quote:
Jeff
__________________
version 4.1.1 |
|||||||
|
#4
|
|||||||||
|
|||||||||
|
Yes you can turn register globals off in your php.ini and/or depending in server configs you can toggle them in conf files. The catch... I'm not sure x-cart would function with them off however
|
|||||||||
![]() |
|
| Thread Tools | Search this Thread |
|
|
|
|
|||
|
X-Cart forums © 2001-2020
|
|||