php on solaris


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting php on solaris
# 1  
Old 12-09-2003
php on solaris

hiho,

any ideas?
why is this little script about 1000% slower on solaris than on linux:

<?php

function GetMicrotime(){

list($microseconds, $seconds) = explode(" ",microtime())
;


return ((float)$microseconds + (float)$seconds);

}

$start = GetMicrotime();

$ende = GetMicrotime();

$time[] = $ende-$start;

for($x=0;$x<200;$x++)

{

for($i=0;$i<2000;$i++)

{

$great_dump[] = array(1233,1233,455);

}

$ende = GetMicrotime();

$time[] = $ende - $start;

}

$time=array_reverse($time);

foreach($time as $zeit)

{

print "\n";

printf("%.10f",$zeit);

}

?>

testet with:
# time php script.php
php 4.3.4

some results:
SunFire 480 Solaris 8 (2x 1050 Mhz, 4GB RAM)
real 0m7.323s
user 0m6.190s
sys 0m0.960s

AMD-Linux RedHat ca.1.5GHz (512MB ram)

real 0m0.305s
user 0m0.230s
sys 0m0.060s

debian; sparc Ultra 10 (400Mhz; 512MB)

real 0m0.262s
user 0m0.240s
sys 0m0.020s

Win2K Server Celeron 633Mhz 512MB Ram
real 12 s

SE 250 solaris9 (450Mhz; 1024MB)
real 0m17.255s
user 0m13.580s
sys 0m2.930s

any ideas???

greetings Preßy
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Solaris,PHP,Expect support

Hello All, I installed php5 from OpenCSW but i believe it does not support the expect module. I tried to run a php script to call expect to do a telnet to a device but i got this error PHP Warning: fopen(): Unable to find the wrapper "expect" - did you forget to enable it when you... (6 Replies)
Discussion started by: kaf3773
6 Replies

2. UNIX for Dummies Questions & Answers

Installing a library of php in solaris 10

People i want to install a library on a solaris 10 x64 with a opteron. The library asks for a another library called libxcb-xlib.so.0. Does Anybody know where i can find this library? the complete error is root@webserver # php PHP Warning: PHP Startup: Unable to load dynamic library... (1 Reply)
Discussion started by: enkei17
1 Replies

3. Solaris

Compile php with curl on solaris 10 question

I have curl compiled into /usr/local. I needed to install another version into /usr/local/curl-7.19.5 and compile php using that directory. I believe I had done that but an ldd run against php shows it is using /usr/local/lib. I have my configure script below showing how it was built and php -i... (1 Reply)
Discussion started by: csgonan
1 Replies

4. Solaris

PHP install on Solaris 10

Hi all, I have been looking for setup instructions for PHP5 on Solaris 10. The only thing I've managed to find is how to compile it for Solaris 9. To be honest I dont want to compile it. I've setup Apache and MySql so PHP is the last thing I need and I can't seem to find anything clear... (5 Replies)
Discussion started by: flood
5 Replies

5. Solaris

Installing PHP on Solaris (Express) Error

Hi PHP 5 can't seem to find cc compiler even though it's there (note, i'm installing in a zone,& am root) Any Ideas ? $ pwd /tmp/php-5.2.6 $ ./configure loading cache ./config.cache checking for Cygwin environment... no checking for mingw32 environment... no checking for egrep... egrep... (4 Replies)
Discussion started by: stevie_velvet
4 Replies

6. Shell Programming and Scripting

PHP 5 solaris opendir failure

Hello! I've moved a web from my RHEL5 Apache/2.2.3 machine to a Sun Solaris 5.9 Apache/2.2.6 (Unix) PHP/5.2.5 mod_ssl/2.2.6 machine. The web worked just fine on the rhel5 machine and most of the php pages works fine on the solaris machine to but not the one where I read a directory and prints... (1 Reply)
Discussion started by: Esaia
1 Replies

7. Solaris

Error on compiling php for GD on SOLARIS 10

Hi everyone, I have SUn E250 server running solaris 10. I have installed apache 2 + MySQL + PHP-5.1.4 following the guidelines on this website http://meljr.com/~meljr/AMPSolaris10.html Excellent document for first time installation. Now, because I wanted to use Coppermine Photo Gallery, I... (9 Replies)
Discussion started by: callingrohit
9 Replies

8. Shell Programming and Scripting

How to install PHP and My SQL on Solaris OS

Hi all I am really need your hand in my critical problem , I want to install PHP and My SQL on my Solaris 9 station , I am already have Apache Webserver on it . This is my system specs , I think it means some thing for who will help me : SunOS STATION_NAME 5.9 Generic_112233-08 sun4u sparc... (6 Replies)
Discussion started by: KSA
6 Replies

9. UNIX for Advanced & Expert Users

solaris 9 php-4.3.4 make issue

compiling 4.3.4 i'm running into the following error: quote: -------------------------------------------------------------------------------- Undefined first referenced symbol in file uncompress /usr/local/mysql/lib/libmysqlclient.a(my_compress.o) compress... (2 Replies)
Discussion started by: xyyz
2 Replies

10. UNIX for Dummies Questions & Answers

apache, php on solaris

Hi, our spark 5, os 2.8, solaris 8, came with Apache. But this Apache is some kind of bastardized wrapper that has no configuration files, nothing. So, I got the real version of Apache that is configurable. That is so I can configure it with PHP-4. I installed this new Apache version but now I... (6 Replies)
Discussion started by: softarch
6 Replies
Login or Register to Ask a Question