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 04-21-2002, 03:56 PM   #1
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
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
__________________
MacDaddy Coder.
boldy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2002, 05:00 PM   #2
Mr.Fiction
Confirmed User
 
Join Date: Feb 2002
Location: Free Speech Land
Posts: 9,484
Why not just use PHP includes instead of SSI includes? That way you don't have both going on. PHP can do more anyway.
__________________
Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA
Mr.Fiction is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-21-2002, 10:36 PM   #3
jennycards
Confirmed User
 
Join Date: Feb 2002
Location: European Union
Posts: 1,124
Here comes the code you need ...
PHP Code:
<? include ("somefile.html"); ?>
Forget about SSI.
jennycards is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-22-2002, 02:03 AM   #4
chodadog
Confirmed User
 
Join Date: Apr 2002
Posts: 9,736
Yeah, there's really no need to use SSI when you have php.
chodadog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-22-2002, 03:28 AM   #5
spanky
Confirmed User
 
Industry Role:
Join Date: Apr 2002
Posts: 231
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
spanky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-22-2002, 03:54 AM   #6
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
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
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-22-2002, 07:10 AM   #7
FATPad
Confirmed User
 
Join Date: Oct 2001
Posts: 6,693
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.
__________________
<a href="http://www.adultcontent.co.uk">Adult Content UK - Great British Content</a>
FATPad is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-22-2002, 09:54 AM   #8
chodadog
Confirmed User
 
Join Date: Apr 2002
Posts: 9,736
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
chodadog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-22-2002, 11:41 AM   #9
boldy
Macdaddy coder
 
Industry Role:
Join Date: Feb 2002
Location: MacDaddy pimp coder
Posts: 2,806
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
__________________
MacDaddy Coder.
boldy 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.