![]() |
PHP gurus, quick help needed.
Migrated our FHG's to a new server this morning, but now PHP linking codes are breaking. On this gallery for example:
http://www.grannygummers.net/29/index.htm?id=MjAwOjM6Mg You'll notice the links come up like this: http://join.grannygummers.com/track/ But should come up like this: http://join.grannygummers.com/track/MjAwOjM6Mg The code in the gallery is this: http://join.grannygummers.com/track/<? echo $id; ?> Here is the phpinfo if you need it: http://grannygummers.net/phpinfo.php Any ideas? |
Your $id variable is not getting set. That is why it is blank.
|
Try
Code:
<?=$_GET['id']?> |
looks to me like your mod rewrite .htaccess is not working, dont see anythign php related here at all or am I still sleeping? just got up
check .htaccess |
What psili said, that will do the trick.
|
register globals
|
Open php.ini and find: register_globals, set it to register_globals = on
register_globals is set to OFF, so it does not read anything from a querry string unless you use $_GET or $_POST commands. |
Quote:
|
Considering the file extension you have is .htm you may need to tell apache (assuming you are using apache) in httpd.conf to parse .htm / .html files or put it in your .htaccess, by default a query string will not be parsed into an htm or html file without it being parsed by php.
|
All times are GMT -7. The time now is 02:29 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123