Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-13-2005, 02:15 PM   #1
PhillipB
Just a Simple Carpenter
 
Join Date: May 2003
Location: Your mom's house...
Posts: 1,338
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?
PhillipB is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2005, 02:17 PM   #2
PornGeneral
Confirmed User
 
Join Date: Sep 2004
Location: In front of computer
Posts: 564
Your $id variable is not getting set. That is why it is blank.
__________________
"The object of war is not to die for your country but to make the other bastard die for his." -Patton
"Only the dead have seen the end of war." -Plato

Last edited by PornGeneral; 07-13-2005 at 02:19 PM..
PornGeneral is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2005, 02:17 PM   #3
psili
Confirmed User
 
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
Try

Code:
<?=$_GET['id']?>
as I'm guessing global variables are turned off, or something, on the new server's php.ini file.
__________________
Your post count means nothing.
psili is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2005, 02:45 PM   #4
teksonline
So Fucking Banned
 
Join Date: Jan 2005
Location: At My Desk
Posts: 2,904
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
teksonline is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2005, 02:50 PM   #5
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
What psili said, that will do the trick.
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2005, 02:50 PM   #6
kernelpanic
Too lazy to set a custom title
 
Join Date: Jan 2005
Posts: 2,961
register globals
kernelpanic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2005, 02:52 PM   #7
Due
Confirmed User
 
Due's Avatar
 
Industry Role:
Join Date: Mar 2001
Location: Murrieta, CA
Posts: 3,620
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.
__________________
I buy plugs
Skype: Due_Global
/Due
Due is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2005, 02:54 PM   #8
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
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!
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-13-2005, 02:55 PM   #9
AcidMax
Confirmed User
 
Join Date: May 2002
Location: MI
Posts: 1,827
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.
__________________
Latest MMA news. http://www.mmawrapup.com
AcidMax is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.