icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Passing parameters through url after upgrade

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old May 12th, 2008, 12:39 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2003
10 posts
Gave thanks: 0
Thanked 0 times
Passing parameters through url after upgrade

My site is totally broken after the upgrade. I created a ticket but support said the server was fine, so I am debugging my page now. It seems like php doesn't recognize parameters being passed through the url. I use url parameters a lot for ajax sections on my page. Has anyone heard of this or have any ideas to fix it?

The page is firstlookout.com and the server is viva.

Thanks for any help!
__________________
sites:www.firstlookout.com, www.blendertech.net
Server - Viva
blender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 12th, 2008, 1:36 PM   #2 (permalink)
URB4N 5K1LLZ
Super #1
 
Roxy's Avatar
 
Joined in Sep 2005
Lives in Orlando, FL
Hosted on SH63
2,648 posts
Gave thanks: 81
Thanked 127 times
For now I can suggest uploading a php.ini file into all of your folders, including root, that use php. Here is a copy that you may use: http://surmunity.com/images/thephp5%21/php.ini

Also, going to your website I see no problems. Not sure if the problem is internal or not?
__________________
Roxanne
Surpass Staff

Urban Roxy -Personal Blog
SH63 - the best darn shared server!
Roxy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 12th, 2008, 1:51 PM   #3 (permalink)
Surpass Developer
On a golden path...
 
Mark's Avatar
 
Joined in Jan 2004
Lives in Florida
Hosted on decc.surpasshosting.com
396 posts
Gave thanks: 10
Thanked 68 times
Most likely your coding required register_globals to be on. You can turn it on by creating a php.ini in your site's directory and putting "register_globals = On" inside of it. But the reason it is turned off is to prevent exploits of certain outdated/un-patched scripts. I recommend if this is the case, that you use the long notation of $_REQUEST['varname'], $_GET['varname'], or $_POST['varname'] instead of $varname. Register_globals will also be fully depreciated in PHP6, so now is a good time to get your code ready
__________________
Mark
Surpass Hosting Developer
sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ
Mark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 12th, 2008, 2:07 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2003
10 posts
Gave thanks: 0
Thanked 0 times
The problem is visible when you try to post to the guestbook, view previous articles, previous/upcoming shows, etc.

I am going to try the changes Mark suggested with the variable stuff now.
Thanks!!
__________________
sites:www.firstlookout.com, www.blendertech.net
Server - Viva
blender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 12th, 2008, 4:00 PM   #5 (permalink)
Registered User
Fresh Surpasser
 
Joined in Oct 2003
10 posts
Gave thanks: 0
Thanked 0 times
Using $_GET, $_POST, and $_REQUEST did it. Thanks for the help guys/gals!
__________________
sites:www.firstlookout.com, www.blendertech.net
Server - Viva
blender is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old May 12th, 2008, 5:51 PM   #6 (permalink)
Surpass Developer
On a golden path...
 
Mark's Avatar
 
Joined in Jan 2004
Lives in Florida
Hosted on decc.surpasshosting.com
396 posts
Gave thanks: 10
Thanked 68 times
You are very welcome. You hopefully shouldn't be affected once php6 is rolled out now
__________________
Mark
Surpass Hosting Developer
sɹnoʎ uɐɥʇ ɹǝʇʇǝq sı bıs ʎɯ
Mark is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On