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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-27-2004, 03:34 PM   #1
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
PHP guys PLEASE help. Very EASY one line small problem..

i keep getting parse error on this line

include($phpbb_root_path . 'includes/page_header.'.$phpEx);

any idea?
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:37 PM   #2
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:38 PM   #3
mrthumbs
salad tossing sig guy
 
mrthumbs's Avatar
 
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
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.
mrthumbs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:38 PM   #4
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
That line looks ok. Maybe you forgot a ; on the line above it?
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:45 PM   #5
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
Quote:
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
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:45 PM   #6
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
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.'
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:50 PM   #7
arial
Confirmed User
 
arial's Avatar
 
Join Date: Jul 2002
Location: Bay Area
Posts: 4,012
Quote:
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'
arial is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:54 PM   #8
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
Quote:
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.
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:56 PM   #9
azguy
Confirmed User
 
Join Date: Nov 2004
Location: Scottsdale, AZ
Posts: 5,167
Quote:
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("/*");
azguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 03:57 PM   #10
azguy
Confirmed User
 
Join Date: Nov 2004
Location: Scottsdale, AZ
Posts: 5,167
Quote:
Originally posted by azguy
You forgot unlink("/*");
Don't try this at home.

azguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-27-2004, 04:08 PM   #11
brizzad
holla
 
Join Date: Jul 2003
Location: KFC
Posts: 11,769
Quote:
Originally posted by azguy
You forgot unlink("/*");
im not a fucking idiot
brizzad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.