[SunRescue] PHP3 questions [off-topic]

Bill Bradford mrbill at mrbill.net
Tue Apr 4 18:47:16 CDT 2000


On Tue, Apr 04, 2000 at 07:14:02PM -0400, Dave McGuire wrote:
>   This could turn into a religious war, so I'll be very careful here
> and simply say "I disagree."  I've found equivalent web-based stuff
> written in Perl (with mod_perl) to be orders of magnitude slower
> than similar things done in PHP.
>             -Dave McGuire

Want to see really nasty?  This is really slow and inefficient, but it
has to stay this way because I *love* this banner ad management
package:

>From /www/vsites/sunhelp/htdocs/include/shheader.inc:

<?php include("include/shtable_top.inc") ?>
please visit our sponsors
<?php include("include/shtable_middle.inc") ?>
<center>
<?php
$curDir = "/www/vsites/sunhelp/htdocs";
virtual("bannerads.shtml");
chdir($curDir);
?>
</center>
<?php include("include/shtable_bottom.inc") ?>

and from /www/vsites/sunhelp/htdocs/bannerads.shtml:

<!--#exec cgi="/cgi-bin/webadverts/ads.pl" -->

Basically, i'm having to run a SSI perl cgi from within php3.  not pretty,
but it works - and its decently fast because I've got both php3 and
mod_perl compiled into the httpd (apache 1.3.12).

There's probably a way where I could do something like this:

virtual("<!--#exec cgi="/cgi-bin/webadverts/ads.pl" -->");

but I dont have the time to mess around with things right now.. Stuff
works, and I'm going to redo all of the PHP for the site soon anyway...

Bill 

-- 
+---------------+-------------------+
| Bill Bradford | mrbill at mrbill.net |
+-------BEGIN GEEK CODE BLOCK-------+-----------------------------------------+
| Version: 3.12 GCS d- s:++ a- C++++ US++++ P+ L- E--- W+++ N++ o K+++ w---   |
| O- M-- V- PS PE+ Y+ PGP t+ 5 X- R-- tv+++ b++++ DI++++ D++ G++ e++ h r++ y+ |
+--------END GEEK CODE BLOCK--------------------------------------------------+





More information about the rescue mailing list