Re: [PHP] php array in different OS

2010-07-27 Thread jose javier parra sanchez
you are probably getting a memory limit error, check your php.ini

2010/7/21 fyang :
> Dear all,
>   I have a simple test code in different OS ,but it give me a different
> result.
>   the code as follows:
> $n= 5;
>   for($i=0;$i<$n;$i++)
>   {
>$data[]=array("",$i,$i/1000);
>echo $i,"  ",$data[$i][1],"";
>   }
>   echo "count:",count($data);
>  ?>
>  OS1:  Red Hat Enterprise Linux Server release 5.1
>Linux 2.6.18-53.el5xen i686 i686 i386 GNU/Linux
>  test result:  the result is correct,it can display 5 data and
> count:5.
>
>  OS2: CentOS release 5.4
>   Linux 2.6.18-164.el5 x86_64 x86_64 x86_64 GNU/Linux
>  test result: the result is wrong,it can only display 31148 data and it can
> not display count value.
>  I'm not sure the result relate to array capacity in different OS.
>  Please give me some tips,thanks in advance.
>
> good luck,
>
> Yang Fei
> 2010-7-20
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] I'm a newbie and running php on Linux

2010-03-31 Thread jose javier parra sanchez
Check your php.ini , look for output_buffering

2010/3/31 King Coffee :
> Hi,
>
> I ran the following code snippet on Windows IIS 7, in my index.php file and
> it worked fine. But when run it on Linux, the "die" code is executed.
>
> Is there an include file or something else I need to to process this on a
> linux server?
>
>         echo 'Redirecting... Please Wait';
> /*
>        redirect('welcome.html');
> */
>        if (!headers_sent()) {
>                header('Location: ' .
> 'http://auction.househops.com/index.php');
>        } else {
>                die('Could not redirect.');
>        }
> ?>
>
>
> Thanks,
> King
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] how to do cloud computing with php

2010-03-24 Thread jose javier parra sanchez
I have already answer that on the other thread, but anyway
http://nanoserv.si.kz/ , or use the web webserver made with it
http://nanoweb.si.kz/. And thinking about your 'requirements', avoid
mysql from that equation. There are other faster alternatives in the
SQL world. Or even better think about an alternative like mongodb that
scale really well.

2010/3/24 Rene Veerman :
> Hi..
>
> As a way to take a few steps back from the kinda heated "when will php
> grow up and support threading" thread, i'm requesting you people list
> how you scale from 1 server to many servers; what's called cloud
> computing.
>
> In particular, i'm interested in how to set up an application that
> deals with great amounts of input from many 3rd-party servers, and say
> a million concurrent viewers who need html calculated from those input
> streams.
>
> So this goes beyond 1 mysql server, and beyond 1 php server.
>
> Let's hear it, coz quite frankly i have my doubts about php's ability
> to scale to cloud computing.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Will PHP ever "grow up" and have threading?

2010-03-24 Thread jose javier parra sanchez
 On 24 March 2010 10:38, Rene Veerman  wrote:
> and if threading and shared memory aren't implemented, then hey, the
> php dev team can build something else in that these naysayers DO need
> eh...
>
> lol...
>

take a look at this -> http://nanoserv.si.kz/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] php-cli vs python

2007-06-07 Thread jose javier parra sanchez

Hi. One big diferrence is that python can be run interactively, while
php not. That's  a really good advantage to debug the scripts. Anyway,
use the one you fell more comfortable.


2007/6/7, Abdullah Ramazanoglu <[EMAIL PROTECTED]>:

Hello,

I'm already (going to) use php for web based development. Shell scripting
and compiled languages have their own places, but there's also a place for
a high level scripting language. While people usually use python (for
higher level and perl for lower level tasks) for this, I really wonder
whether this would be worthwhile for me.

I have just cursory info about python, and I'm by no means a php expert. So
I can't reliably compare the two, but my rationale so far is simple: If
php5, with its enhanced object oriented features and rich libraries is on
par with python on the command line, then wouldn't it make better sense
for me to use php for both web and cli/gui development?

Nevertheless, I can't ignore the fact that people do use python almost
exclusively for high level CLI/GUI scripting. Where's the catch? What's
the top 3 killer features of python against php (and vice versa)?

Any ideas, pointers, analysis, insights are most welcome. This is a rather
strategical crossroads for me, and I'd very much like to make an informed
decision.

Thank you and kind regards.
--
Abdullah Ramazanoglu
aramazan ÄT myrealbox D0T cöm

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php