Re: Pascal Server Page



Roger Lascelles wrote:
When you say "Fast enough", you mean that you are are willing to use more
server capacity than you need to. Fast enough has no impact if

- your server is under-utilised anyway.

- PHP script execution forms a small proportion of the total server
requests.

Yes.

However, "fast enough" can have a cost. Take a hosting service running a
thousands of sites on a Linux box. If many of those sites run PHP shopping
carts, forums, content management systems etc, the server will have less
capacity. This means buying and managing more servers - its a real cost.

Agreed.

[...]
I do hear people say "I'd rather save human cycles than computer cycles",
and yes, its a tradeoff.

Everything is a tradeoff. :)

The beauty of PHP is that its like the old BASICs of twenty years ago. You
can't crash it. Its cross platform. The script IS the "executable" - No
compilation needed. When I upload a PHP script, I don't worry about binary
compatibility, linking to libraries, or getting into trouble with the
hosting company. If my script goes off the rails, PHP talks to me, or I can
put in some debugging strings. I can run it on my desktop for testing. Its
such a low effort enterprise. I don't like the PHP language, but its got
everything laid on, and I hack away happily when I need to.

I agree.

The Roadsend PHP compiler is interesting - you can debug your script as
interpreted, then compile it to native code. Except the benchmarks only
show 2x speed increase, so I think the PHP system is itself slow - all those
untyped variables.

I'm not sure why PHP is "slow", but if someone needs more throughput
there are ways to make things faster through caching and things like
that. But caching is a tradeoff too :)

--
Brian Moelk
Brain Endeavor LLC
bmoelk@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
.



Relevant Pages

  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • Re: PHP Instalation problems. Browser doesnt know what to do
    ... This is loaded and run as a local server (for class ... PHP 5.2.0 from php-5.2.0-win32-installer.msi ... # configuration directives that give the server its instructions. ...
    (comp.lang.php)
  • RE: phpBB Worm
    ... the getpwent function is not supported on Windows. ... it probably depends on the web server ... I looked at the decoded Perl script, ... was invoked by PHP, which should have the Web server's permissions, ...
    (Bugtraq)
  • Re: [PHP] Out source files
    ... Is it considered as secure? ... Assuming you control the other server, you can make it as secure as ... Or you could use PHP ftp functions to shuffle them around. ... securing or the PHP script is so badly-written that jumping through ...
    (php.general)
  • Re: IIS 6.0 on Windows Server 2003
    ... If PHP insists on using CMD.EXE to execute the shellcommand on the ... server, then no, you have no choice -- you must give read permissions to the ... this would be a security vulnerability caused by PHP. ...
    (microsoft.public.inetserver.misc)