Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Forums
Blogs
Articles
Groups
Galleries
Member List
Calendar
Home
Forum
Simply Business
Fucking Around & Business Discussion
PHP guys PLEASE help. Very EASY one line small problem..
PHP guys PLEASE help. Very EASY one line small problem..
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
brizzad
holla
Join Date:
Jul 2003
Posts:
11769
Share
Post
#1
PHP guys PLEASE help. Very EASY one line small problem..
11-27-2004, 01:34 PM
i keep getting parse error on this line
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
any idea?
brizzad
holla
Join Date:
Jul 2003
Posts:
11769
Share
Post
#2
11-27-2004, 01:37 PM
Comment
Post
Cancel
mrthumbs
salad tossing sig guy
Join Date:
Apr 2002
Posts:
11702
Share
Post
#3
11-27-2004, 01:38 PM
Put this:
$phpbb_root_path . 'includes/page_header.'.$phpEx
in a var
$file = $phpbb_root_path . "includes/page_header.".$phpEx;
and then include($file);..
Include doesnt like random '' in its syntax.
Comment
Post
Cancel
swedguy
Confirmed User
Join Date:
Jan 2002
Posts:
7981
Share
Post
#4
11-27-2004, 01:38 PM
That line looks ok. Maybe you forgot a ; on the line above it?
Comment
Post
Cancel
brizzad
holla
Join Date:
Jul 2003
Posts:
11769
Share
Post
#5
11-27-2004, 01:45 PM
Originally posted by swedguy
That line looks ok. Maybe you forgot a ; on the line above it?
that fixed it
thanks so much! i know nothing about php and didnt think to look for that, thanks again!
mrthumbs, thanks for your suggestion also
Comment
Post
Cancel
broke
Confirmed User
Join Date:
Aug 2003
Posts:
4501
Share
Post
#6
11-27-2004, 01:45 PM
The period inside the quotes doesn't look right to me, but I don't know how your file system is set up...
'includes/page_header.'
Perfect Gonzo
Comment
Post
Cancel
arial
Confirmed User
Join Date:
Jul 2002
Posts:
4012
Share
Post
#7
11-27-2004, 01:50 PM
Originally posted by broke
The period inside the quotes doesn't look right to me, but I don't know how your file system is set up...
'includes/page_header.'
That period is fine as long as $phpEx is set to 'php' and not '.php'
Comment
Post
Cancel
broke
Confirmed User
Join Date:
Aug 2003
Posts:
4501
Share
Post
#8
11-27-2004, 01:54 PM
Originally posted by arial
That period is fine as long as $phpEx is set to 'php' and not '.php'
I didn't even read that variable name... oops.
I'll shut up now.
Glad you got it fixed brizzad.
Perfect Gonzo
Comment
Post
Cancel
azguy
Confirmed User
Join Date:
Nov 2004
Posts:
5167
Share
Post
#9
11-27-2004, 01:56 PM
Originally posted by brizzad
i keep getting parse error on this line
include($phpbb_root_path . 'includes/page_header.'.$phpEx);
any idea?
You forgot unlink("/*");
Comment
Post
Cancel
azguy
Confirmed User
Join Date:
Nov 2004
Posts:
5167
Share
Post
#10
11-27-2004, 01:57 PM
Originally posted by azguy
You forgot unlink("/*");
Don't try this at home.
Comment
Post
Cancel
brizzad
holla
Join Date:
Jul 2003
Posts:
11769
Share
Post
#11
11-27-2004, 02:08 PM
Originally posted by azguy
You forgot unlink("/*");
im not a fucking idiot
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
😀
😂
🥰
😘
🤢
😎
😞
😡
👍
👎
☕
Comment