Link Problem
Posted: 11. January 2008 02:55
Good Evening,
I just installed XAMPP so I can work on php coding without having a server on the internet and I am having a problem with how it is recognizing "subdirectories":
Here is the code that I am using from a config.php file:
$root_1 = "C:/xampp/htdocs/system/"; // Directory
$root_2 = "http://localhost/system"; // Http
when I try to go to a page using code like this, <a href='" . $root_2 . "/admin/matches/generate_all.php?result=4&confirm=1'>Confirm Generation</a>
It takes me to http://localhost/admin/matches/generate_all.php and removes the system directory. What could be the problem and how can I fix it?
Thanks,
Mightmouse3062
I just installed XAMPP so I can work on php coding without having a server on the internet and I am having a problem with how it is recognizing "subdirectories":
Here is the code that I am using from a config.php file:
$root_1 = "C:/xampp/htdocs/system/"; // Directory
$root_2 = "http://localhost/system"; // Http
when I try to go to a page using code like this, <a href='" . $root_2 . "/admin/matches/generate_all.php?result=4&confirm=1'>Confirm Generation</a>
It takes me to http://localhost/admin/matches/generate_all.php and removes the system directory. What could be the problem and how can I fix it?
Thanks,
Mightmouse3062