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/Apache question (https://gfy.com/showthread.php?t=57699)

boldy 04-21-2002 03:56 PM

PHP/Apache question
 
I combine PHP and perl to build a webmasters area. I have a problem when a serverside generated a html page includes PHP SSI's, php doesnt parse them.

Is there a way to do this ? Changing Content-Types ?

Thnx

Mr.Fiction 04-21-2002 05:00 PM

Why not just use PHP includes instead of SSI includes? That way you don't have both going on. PHP can do more anyway.

jennycards 04-21-2002 10:36 PM

Here comes the code you need ...
PHP Code:

<? include ("somefile.html"); ?>

Forget about SSI.

chodadog 04-22-2002 02:03 AM

Yeah, there's really no need to use SSI when you have php.

spanky 04-22-2002 03:28 AM

Quote:

Originally posted by jennycards
PHP Code:

<? include ("somefile.html"); ?>


not that it makes a big difference but readfile() would be a wee bit quicker for static html or text files as the php preprocessor won't bother evaluating the contents of the file.

PHP Code:

<? @readfile("./somefile.html"); ?>

cheers

swedguy 04-22-2002 03:54 AM

If you really want to use both, here's a tip how to get it to work http://www.zend.com/tips/tips.php?id=149&single=1

FATPad 04-22-2002 07:10 AM

Quote:

Originally posted by spanky


not that it makes a big difference but readfile() would be a wee bit quicker for static html or text files as the php preprocessor won't bother evaluating the contents of the file.

PHP Code:

<? @readfile("./somefile.html"); ?>

cheers

Sweet. I was actually just thinking about this the other day.

Thanks. :)

chodadog 04-22-2002 09:54 AM

Quote:

Originally posted by spanky


not that it makes a big difference but readfile() would be a wee bit quicker for static html or text files as the php preprocessor won't bother evaluating the contents of the file.

PHP Code:

<? @readfile("./somefile.html"); ?>

cheers

I never knew that! thanks for the tip :thumbsup

boldy 04-22-2002 11:41 AM

Quote:

Originally posted by Mr.Fiction
Why not just use PHP includes instead of SSI includes? That way you don't have both going on. PHP can do more anyway.
Okay try that, thanks for all the response guys and dolls ..

I dont know if php can do more, i've been programming perl for tha last 5 years now, on dailly basis. So, i know this language by hart. Anyway pushed myself to do this one in php.

Thnx


All times are GMT -7. The time now is 02:49 PM.

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