GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   PHP guys PLEASE help. Very EASY one line small problem.. (https://gfy.com/showthread.php?t=394737)

brizzad 11-27-2004 03:34 PM

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 11-27-2004 03:37 PM

:(

mrthumbs 11-27-2004 03: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.

swedguy 11-27-2004 03:38 PM

That line looks ok. Maybe you forgot a ; on the line above it?

brizzad 11-27-2004 03:45 PM

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

broke 11-27-2004 03: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.'

arial 11-27-2004 03:50 PM

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'

broke 11-27-2004 03:54 PM

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.

:1orglaugh

I'll shut up now.



Glad you got it fixed brizzad.

azguy 11-27-2004 03:56 PM

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 11-27-2004 03:57 PM

Quote:

Originally posted by azguy
You forgot unlink("/*");
Don't try this at home.

:playboy

brizzad 11-27-2004 04:08 PM

Quote:

Originally posted by azguy
You forgot unlink("/*");
im not a fucking idiot


All times are GMT -7. The time now is 05:13 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123