Re: shtml or php ??

From: Date: Thu, 02 Aug 2001 16:56:06 +0000
Subject: Re: shtml or php ??
Groups: php.general 
Request: Send a blank email to php-general+get-60953@lists.php.net to get a copy of this message
Can anyone help me with this, I am using apache and assume that this virtual command should work, am I best to leave it in shtml or should I change to php as I am using php more and more ??? Please can somebody help me Dave ----- Original Message ----- From: "Dave.O" <Dave.O@tinyonline.co.uk> To: "php" <php-general@lists.php.net> Sent: Thursday, August 02, 2001 4:47 PM Subject: Re: [PHP] shtml or php ?? > I have tried the virtual() command but keep receiving error - undefined > function, can someone give an example in how to use this ? > > ----- Original Message ----- > From: "Dave.O" <Dave.O@tinyonline.co.uk> > To: "php" <php-general@lists.php.net> > Sent: Thursday, August 02, 2001 4:26 PM > Subject: [PHP] shtml or php ?? > > > > Which is the best language to use, php or shtml, I use only a couple of > SSI > > commands in shtml to call in headers and footers, and run cgi scripts as > > below. I thought maybe as I am getting more into php that I should change > > the files from shtml to php, and use the equivalent commands to call in > > headers, footers and run external .cgi programs. But as below cant see > how > > to load in an external .cgi program into php, as you can see below. > > > > I am presently using an shtml file using <!--#include file="my.htm"--> > > which work fine and in php I can use the include('my.htm'); command. > > > > in one of my shtml i use the <!--#exec cgi="my.cgi"--> command, but how > do > > I run an external .cgi script from php, I have looked at many of the > > commands such as include(), system(), passthru() , but cant find away to > do > > it. Can someone help ?? > > > > Is it best for me to leave it in shtml as I have also discovered that SSI > > will not parse inside an html section in php. Which of these shtml, or > php > > uses more resources on the server ? Which is the best solution to my > > problem ?? > > > > Regards > > > > > > Dave > > > > > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > > For additional commands, e-mail: php-general-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.general (#60953) next »