[PHP] [php] question about ob_end_flush

2008-11-27 Thread jason liang
Hi all I am comfused about the function ob_end_flush.In the manual:This function will send the contents of the topmost output buffer (if any) and turn this output buffer off. i have made such tests. this works alright.the script output "hello world!". this script output nothing.i don't know w

[PHP] jason liang wants to chat

2008-11-27 Thread jason liang
--- jason liang wants to stay in better touch using some of Google's coolest new products. If you already have Gmail or Google Talk, visit: http://mail.google.com/mail/b-e7afe1e911-a3e11970e1-2c33d93559613f2e You'

RE: [PHP] Crop part of existing pdf

2008-03-04 Thread gary liang
Ya, you are right. So there is no non-commercial option? > Date: Tue, 4 Mar 2008 16:06:42 -0600 > Subject: Re: [PHP] Crop part of existing pdf > From: [EMAIL PROTECTED] > To: [EMAIL PROTECTED] > CC: php-general@lists.php.net > > On Mon, March 3, 2008 8:14 pm, gary liang wr

RE: [PHP] Crop part of existing pdf

2008-03-04 Thread gary liang
gt; > On Mar 3, 2008, at 614PM, gary liang wrote: >> Is there any command line tool, which is able to crop part of pdf >> file? I ask for command line tool, because it can be used in php >> code. Any hint? > > Depending on what exactly you mean by "cropp

[PHP] Crop part of existing pdf

2008-03-03 Thread gary liang
Hi: Is there any command line tool, which is able to crop part of pdf file? I ask for command line tool, because it can be used in php code. Any hint? _ It's simple! Sell your car for just $30 at CarPoint.com.au http://a.ninemsn.co

RE: [PHP] Question about exec() call an CLI php script from Apache CGI/filter module PHP

2005-07-28 Thread Liang ZHONG
you in advance. Liang I call red.php through apache http request, and red.php make exec('./s.php') call, then I got bunch of s.php processes, and system locked me out any task due to no more processes available. Why this would happen? marvin:~/liang.ns2user.info/php&

[PHP] Question about exec() call an CLI php script from Apache CGI/filter module PHP

2005-07-28 Thread Liang ZHONG
less red.php marvin:~/liang.ns2user.info/php> less s.php #!/usr/local/bin/php -q marvin:~> ps -u liang PID TTY TIME CMD 20368 ?00:00:00 s.php 3184 ?00:00:00 s.php 27596 ?00:00:00 s.php 17509 ?00:00:00 s.php 10471 ?0

[PHP] Question on exec() to call a php script from a php script

2005-07-27 Thread Liang ZHONG
If my php is configured as ( http://liang.ns2user.info/php/info-train06.htm) an apache 2.0 filter module. The php is invoked by apache on request of http client. Can I do an exec() to call another php script to run in the background? If yes, how? Highly appreciate if somebody helps. Thank you.

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-26 Thread Liang ZHONG
. I really appreciate all kindly help from you. Liang Liang ZHONG wrote: > The php configuration is: http://liang.ns2user.info/php/info.php. I have > no read permission of those httpd.conf files so do not know how apache > configured. That shows PHP is running as a CGI. As a CGI PHP

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-26 Thread Liang ZHONG
/bin/perl -w use strict; use LWP::Simple; use LWP::UserAgent; # get input from command line my ($url) = @ARGV; # set default URL if none is given if ( !$url ){ $url = 'http://liang.ns2user.info/liang/y.php'; print STDOUT qq{Using $url as url to fetch\n}; } # get the html page fr

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-26 Thread Liang ZHONG
ime consuming now I have difficulty in 2 and 3. My client is normally perl LWP::UserAgent, and sometimes browser. I wonder how to let the client get the page in time before I can continue to finish the rest of the work. Otherwise the client will timeout and get no result. Please help! Thank you. Liang

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-26 Thread Liang ZHONG
: --- -bash-2.05b$ curl -N liang.ns2user.info/php/v.php Sleeping... Fatal error: Maximum execution time of 1 second exceeded in /home/.nappy/liang/liang.ns2user.info/php/v.php on line 30/> Status 1

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread Liang ZHONG
respect, Liang Liang ZHONG wrote: > My Question is: > What is the correct way to keep the function running after I redirect an > existing page to http client (which I want the client get immediately) > and then immediately close the connection? ignore_user_abort(true); -Rasmus --

Re: [PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread Liang ZHONG
connection? Thank you very much. Given it's a fatal error, it's as bad as a syntax error. It cancels everything it's doing and leaves. Remember that, even the shutdown function has to obey the time limit. On 7/22/05, Liang ZHONG <[EMAIL PROTECTED]> wrote: > > set_

[PHP] On register_shutdown_function: What might be the problem?

2005-07-22 Thread Liang ZHONG
When the time_limit is set to 0, the redirect page will be shown in 20 second after the file ccc is created. When the time_limit is set to 5, the redirect page will be shown in 5 second and the ccc file is not created. The error from curl command line tool is as: ---

Re: [PHP] Question about apache-php concurrent process control

2005-07-22 Thread Liang ZHONG
Thank you Richard, I think I'd better explain a little about the project and then you or somebody else might give some good suggestion upon the restrictions of the project. The project is to implement a digital library protocol, called oai_pmh (http://www.openarchives.org/OAI/openarchivesprot

Re: [PHP] Question about apache-php concurrent process control

2005-07-21 Thread Liang ZHONG
I now encounter a problem with flow control of my program with PHP. This is very crucial to the design of a pretty big project. This is what I want to do in the program: Since it takes do_B() quite a while to finish, so I want the http client get the partial result from do_A() by redirect a

RE: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
Can somebody here help me to delete my message? People who read this must be laughing at me. :) It seems Rasmus is famous, and I should have shown my respect. PHP succeeds an older product, named PHP/FI. PHP/FI was created by Rasmus Lerdorf in 1995, initially as a simple set of Perl scrip

Re: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
Hi André, It sounds interesting. But since I am pretty new to PHP, I have some questions, naive maybe, about what you wrote. "#!/bin/sh\n/path/to/script/Send.php 12 &\n" What does the Send.php look like? I do not have idea how a shell interprets an php script and what the parameter 12 means

Re: [PHP] Question about apache-php concurrent process control

2005-07-19 Thread Liang ZHONG
shown my respect. Thanks again all of you for your kindly help. Hi Liang, trying to get conclusive results with browsers is futile. Use a command-line tool (like curl) to invoke the web pages and get the results. Or you can use PHP's own function to query the web server and do you

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
is configurated with http://liang.ns2user.info/php/info.php on Red head, kernel 2.4.29. What can I do to get it work? Thank you again. Liang ZHONG wrote: > Could you please explain it a little bit more? > I did test this way. > > The code is the same for a.php and b.php > &g

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
ue to the php's design limitation, or I did not configure the php correctly to fulfill its full functionality? Thank you Liang ZHONG wrote: > As I know, apache-php works this way. When the web server gets an http > request with file name extension ".php", it will start t

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
to do the same thing. Or 2 php interpreter processes process one php program sepreately without interfer with each other. Hope I have explained myself clearly. Thank you. From: Rasmus Lerdorf <[EMAIL PROTECTED]> To: Liang <[EMAIL PROTECTED]> CC: php-general@lists.php.net Subject: Re

[PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
I am a programmer and new to php. I wonder what process control can php interpreter do for multithreading . I notice that through http request, php interpreter can execute 2 php programs simataneously, but will only sequentially queued and execute if I try to execute one php code in the same ti

[PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang
I am a programmer and new to php. I wonder what process control can php interpreter do for multithreading . I notice that through http request, php interpreter can execute 2 php programs simataneously, but will only sequentially queued and execute if I try to execute one php code in the same t