Forums
This topic is locked
PHP and SSI
Posted 28 Sep 2001 14:46:53
1
has voted
28 Sep 2001 14:46:53 Keith Slater posted:
I've got a web page that has a SSI script on and it I saved it as a .shtml . Is their a way that I can also do PHP on this page?? Does .shtml also run PHP scripts?? Thanks for the help
Keith Slater
Replies
Replied 28 Sep 2001 15:28:30
28 Sep 2001 15:28:30 Tim Green replied:
I'm afraid, that without reconfiguring your server you are stuck to an either/or situation.
To be perfectly honest I don't see any reason why you should want to combine both technologies, as PHP is far more secure, robust and is much faster than SSI.
If you look through the PHP documentation you will undoubtedly find an equivalent command.
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
To be perfectly honest I don't see any reason why you should want to combine both technologies, as PHP is far more secure, robust and is much faster than SSI.
If you look through the PHP documentation you will undoubtedly find an equivalent command.
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 28 Sep 2001 17:26:28
28 Sep 2001 17:26:28 Keith Slater replied:
Ah thanks I didnt realize you could do the same thing with PHP and I found the code now and it works. Thanks a lot!!
Keith Slater
Keith Slater
Replied 02 Oct 2001 10:28:02
02 Oct 2001 10:28:02 X hippy replied:
You can also use PHP in SSI pages.... SSI will include the output of any file be it text, html, perl, PHP or whatever.... and vice versa.
PHP inside an SSI page
<!--#include virtual="/path/to/phpscript.php" -->
SSI in PHP
<? virtual("file.shtml" ?>
TheXhippy
PHP inside an SSI page
<!--#include virtual="/path/to/phpscript.php" -->
SSI in PHP
<? virtual("file.shtml" ?>
TheXhippy
Replied 02 Oct 2001 16:46:34
02 Oct 2001 16:46:34 Tim Green replied:
True XHippy, true. The same can be said in that you can get PHP to write ASP pages dynamically... but one has to question *why* you would actually want to do that ?
There is no valid reason, in truth, that you would want to do that if your server directly supports PHP.
I guess this could be useful if you were to develop a site that used some PHP pages, and some CGI pages etc. But no-one in their right minds would want to do that.
None-the-less, thanks for the info XHippy.
Cheers
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
There is no valid reason, in truth, that you would want to do that if your server directly supports PHP.
I guess this could be useful if you were to develop a site that used some PHP pages, and some CGI pages etc. But no-one in their right minds would want to do that.
None-the-less, thanks for the info XHippy.
Cheers
Tim Green
Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>