SIDEBAR
»
S
I
D
E
B
A
R
«
do you know php?

Noner: do you know php?
Noner: You could solve my headache, lol.
coreyg: very little Eric does
Noner: It’s quite simple task.
Noner: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/noner/public_html/–/include/lang/english.php on line 112
Noner: What the heck is that?
zoogo has left the room.
coreyg: I dont know
Noner: I take it it has something to do with parsin
Noner: g
Noner: and that there should be missing ‘ or something
Noner: but there isn’t..
Noner: hm
coreyg: Noner: make a post in the main forum and see what happens
Noner: Nah, I want to solve it. :P
Noner: I just don’t get what that means
coreyg: Noner: how can you solve it if you dont know what it means?
Noner: Google saves us all.
Noner: I guess.
Eric: Noner: paste lines 109 – 114 here http://pastebin.ca
coreyg: Eric to the rescue

Any PHPers in here right now?

yilduz: Any PHPers in here right now?
coreyg: yilduz: Eric is
Eric: yes
yilduz: Is there a more efficient way to do this? -
yilduz: $current_page=explode(“?”,$_SERVER["REQUEST_URI"]); $current_page=$current_page[0];
Eric: $page = basename($_SERVER['SCRIPT_FILENAME'], ‘.php’);
Eric: $page = (empty($page)) ? ‘index’ : $page;
yilduz: I’ve never used basename before.
Eric: the first gets the page name, the second sets the page to index if it didn’t return a page
Eric: or eg – if you’re viewing  domain.com/folder/ – it’ll be blank
Eric: for*
Eric: for just domain.com
yilduz: Ah, I had a way of doing that second part, but it’s longer than your method.
coreyg: Eric: what’s your main url?
Eric: www.secondversion.com


Managed Web Hosting by Liquid Web
SIDEBAR
»
S
I
D
E
B
A
R
«