I got a very strange result by including auth.php in my php file. I wrote a php code called list.php
Code:
<?php
$listingid=$_GET['listingid'];
$originalurl=$_GET['urlarray'];
echo "URL1 $originalurl
";
require "./auth.php";
require $xcart_dir."/include/categories.php";
echo "URL2 $listingid
";
echo "URL3 $originalurl
";
// also do other things ...
?>
When this file is called by
link
It generastes the result:
Quote:
URL1 yuanjeff*test4*test3*test2*test1*
URL2 test2
URL3
|
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