GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP gurus, quick help needed. (https://gfy.com/showthread.php?t=491902)

PhillipB 07-13-2005 02:15 PM

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?

PornGeneral 07-13-2005 02:17 PM

Your $id variable is not getting set. That is why it is blank.

psili 07-13-2005 02:17 PM

Try

Code:

<?=$_GET['id']?>
as I'm guessing global variables are turned off, or something, on the new server's php.ini file.

teksonline 07-13-2005 02:45 PM

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

swedguy 07-13-2005 02:50 PM

What psili said, that will do the trick.

kernelpanic 07-13-2005 02:50 PM

register globals

Due 07-13-2005 02:52 PM

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.

jwerd 07-13-2005 02:54 PM

Quote:

Originally Posted by psili
Try

Code:

<?=$_GET['id']?>
as I'm guessing global variables are turned off, or something, on the new server's php.ini file.

If that doesn't work, I would say the $id is probably tied into a database somehow and the connection isn't being made. Maybe I am missing something, but it's probably that register globals is on and your new server has it off. Goodluck!

AcidMax 07-13-2005 02:55 PM

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