![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
holla
Join Date: Jul 2003
Location: KFC
Posts: 11,769
|
PHP guys?
Alright.. I'm sure you guys have all seen scripts where all navigation is controlled through index.php
ex: index.php?mode=register would get the person of to register.php Well, I'm trying to get a script installed, everything seems to be working fine.. except.. none of the links work. All of the navigational links work through index.php like mentioned above, but every single one just brings me back to the index.php main homepage. any suggestions? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
holla
Join Date: Jul 2003
Location: KFC
Posts: 11,769
|
bump5678
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: May 2004
Posts: 434
|
I wouldn't be suprised if it was a sessions issue. but I couldn't really be able to tell without knowing or seeing the script
__________________
ICQ:2116226 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
prolly just register globals.. older versions of PHP had register globals on as standard.. newer versions don't.
which means: when the script is trying the get the "mode" variable it is probably just calling $mode, when it should be calling $_GET["mode"] - which in turn means that it gets an empty $mode variable and just defaults to the main page |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Too lazy to set a custom title
Industry Role:
Join Date: Dec 2004
Location: Happy in the dark.
Posts: 93,575
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Masterbaiter
Industry Role:
Join Date: Feb 2006
Posts: 26,189
|
Quote:
WOA.. I NEED SOME PHP CLASSES AND SHIT |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jul 2004
Location: Denmark ICQ: 7880009
Posts: 2,203
|
was I right?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
ORLY?
Industry Role:
Join Date: Oct 2005
Location: NL & US
Posts: 2,579
|
open php.ini, searh for register_globals and change Off into On and you are all set
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | ||
holla
Join Date: Jul 2003
Location: KFC
Posts: 11,769
|
Quote:
Quote:
Sorry it took so long to reply (I know at least 1 of you guys were wondering). I just checked my phpinfo and I did see this.. register_globals Off Off This particular server is a VPS, and I've got no idea hot to SSH or get into php.ini, so I emailed me host and asked them to change it for me. I'll post back if that fixed it. |
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Apr 2005
Posts: 238
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Feb 2005
Location: Toledo, Ohio
Posts: 448
|
I would suggest keeping register_globals off, and edit the script.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 | |
Confirmed User
Join Date: Nov 2005
Location: Metro Detroit
Posts: 748
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Too lazy to set a custom title
Join Date: Nov 2002
Location: Virgin Mary's womb
Posts: 16,826
|
brizzad is a jew
__________________
Often times I wonder why There's love and hate, theres live or die. When sickness comes I must decide: When feelings go, theres suicide. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Confirmed User
Join Date: Feb 2005
Location: Budapest, Hungary
Posts: 534
|
well...
I might be wrong, or didnt understand your problem, btut: index.php?mode=register that assumes that you'll handle that GET variable inside the php. So.... if($_GET['mode'] hahahaha "register") { header("location: youraddress/register.php } or if($_GET['mode']) { [from here you can go either by testing every condition by if, or case) if($_GET['mode'] hahahaha "register") header() // see above or $whatever = $_GET['mode']; switch($whatever) { case "register": header()../see above break; case "whatever"... and so on... hope that helped a bit
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Too lazy to set a custom title
Join Date: Jun 2004
Location: Brasil
Posts: 15,778
|
what script are you using?
__________________
Do you need cheap, fast and reliable porn website hosting? Host Head is the way to go!! Asian Gay Special | Live on MSN - Live Webcam Chat | Live Adult Webcam Performances | MY SWEET BLACKS LIVE ON CAM Pukka Tranny | Tattooed Shemales | She's A He | Menu Porno | Porn Performances | All Chubby MY ICQ# 169833797 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Feb 2005
Location: Budapest, Hungary
Posts: 534
|
hahaha is = =, and change header("location: youraddress/register.php to header("location: youraddress/register.php");
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |