if performance/profiling this script is very important then take up the various
suggestionms for doing just that - the only useful performance answer is the
one you
garner from your own testing (i.e. within your own env/setup)
with regard to the 3500 lines of code (with 300 odd being run on any
Hello,
I have this php script of 3,500 lines with a big switch that is such that on
each pass maybe 300 lines of codes are executed at most. The current speed
of the file is ok. I like to keep the file like that because at each pass
there is a check on the whole script and it fails if there is
such
as Smarty.
Satyam
- Original Message -
From: Jean-Christophe Roux [EMAIL PROTECTED]
To: php-general@lists.php.net
Sent: Saturday, December 23, 2006 7:33 PM
Subject: [PHP] Script's length, echo, and execution speed
Hello,
I have this php script of 3,500 lines with a big
At 12/23/2006 10:33 AM, Jean-Christophe Roux wrote:
Hello, I have this php script of 3,500 lines with a big switch that
is such that on each pass maybe 300 lines of codes are executed at
most. The current speed of the file is ok. I like to keep the file
like that because at each pass there is
Yeah, try testing. Maybe something like this:
?php
$form = form action=' ' method='post'textarea
name='code'/textareabr /button
type='submit'Execute/button/form;
if ($_POST['code']) {
echo div style='border: 1px';
$time_start = microtime_float();
eval($_POST['code']);
$time_end =
Casey Chu wrote:
Yeah, try testing. Maybe something like this:
?php
$form = form action=' ' method='post'textarea
name='code'/textareabr /button
type='submit'Execute/button/form;
if ($_POST['code']) {
echo div style='border: 1px';
$time_start = microtime_float();
Casey Chu wrote:
Yeah, try testing. Maybe something like this:
?php
$form = form action=' ' method='post'textarea
name='code'/textareabr /button
type='submit'Execute/button/form;
if ($_POST['code']) {
echo div style='border: 1px';
$time_start = microtime_float();
eval($_POST['code']);
7 matches
Mail list logo