php.lvl2 - GET not working?

Status
Not open for further replies.

YinYin

New Member
Messages
3
Reaction score
0
Points
0
I have applied for intermediate php lvl2 and got accepted two days ago.
The email said it may take up to twelve hours to switch and i would be emailed again once that happens.
Now my php version does say 'Intermediate PHP Configuration - You currently have this version' but the GET does not seem to work (is that enabled in lvl2?). Also I never got that second email confirming the change.

cPanel name: yinyin
website: yinyin.exofire.net

The actual problem here is for example this link
http://yinyin.exofire.net/index.php?current=contact.html
the index.php should be getting the current and then include it.
(in this case http://yinyin.exofire.net/frames/contact.html)

However current stays empty and hence index.php writes home.html to it.
The include does seem to work since on any page it shows home.html (or the file i put for the case current is empty).
 
Last edited:

bugfinder

Retired
Messages
2,260
Reaction score
0
Points
0
when you say "GET" doesnt work, please give some example code. As GET should work in v1, let alone v2 (and you do have V2)
 

YinYin

New Member
Messages
3
Reaction score
0
Points
0
i think the code is not the problem as i only moved my page and it was working before

however these are the crucial lines
Code:
$_GET['current'];
if(empty($current))$current='home.html';
define('DIR', 'frames/');

...

include DIR.$current;
 
Last edited:

bugfinder

Retired
Messages
2,260
Reaction score
0
Points
0
well what you listed looks OK, but, how is the code called? got an example link? that should result in current not being empty?
 

YinYin

New Member
Messages
3
Reaction score
0
Points
0
The actual problem here is for example this link
http://yinyin.exofire.net/index.php?current=contact.html
the index.php should be getting the current and then include it.
(in this case http://yinyin.exofire.net/frames/contact.html)
still this one and anything on my navigation to the left

edit: Livewire has found the problem that i wasnt aware of (must be the php version/settings you are using here - it worked on all other hosts i used before)

so in fact the $_GET['current']; itself doesnt really write to current here
instead $current=$_GET['current']; does the job

~problem solved
 
Last edited:
Status
Not open for further replies.
Top