Hi everybody. I need to use exec() to run a background php script, but
it's not working properly. Take a look at this sample:
a.php
output.txt &');
echo ' File A (2) ';
?>
b.php
output.txt (begins with 64 null bytes before the following)
File A (2)
I would expect the outpu
Em 15/07/2010 18:19, Shawn McKenzie escreveu:
On 07/15/2010 10:51 AM, Leonardo wrote:
Hi everybody. I need to use exec() to run a background php script, but
it's not working properly. Take a look at this sample:
a.php
output.txt&');
echo ' File A (2) ';
Em 15/07/2010 18:54, Shawn McKenzie escreveu:
On 07/15/2010 04:40 PM, Leonardo wrote:
Bad habit. I know.
Did it fix it?
Not really. The server allows short open tags. So, nothing changed.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Em 16/07/2010 09:09, Richard Quadling escreveu:
I'm on Windows XP SP3 and using
PHP 5.3.3RC3 (cli) (built: Jul 15 2010 02:00:11)
Copyright (c) 1997-2010 The PHP Group
All seems to work as expected.
Z:\\output.txt');
echo ' File A (2) ';
?>
And because of my setup matching the docs at [1]
Em 16/07/2010 12:18, Jim Lucas escreveu:
I tried running the same script, and found that the php binary is not in my
path.
run this
echo passthru('which php');
Also, modify your existing exec() command to the following and it will capture
errors too.
exec('php b.php> output.txt 2>&1&');
A
Em 16/07/2010 09:23, Bob McConnell escreveu:
You are running b.php as an external command, so it is running as a CLI,
not in the httpd server. You need to check to see how your PHP command
line is configured, it may need the full tag no matter how the server is
set up.
Bob McConnell
While read
nux,
Windows). I'm using the Bluefish for PHP with (XHTML) and NetBeans for others
programming languages.
Good look.
I'm sorry for my english.
--
Leonardo
--
„Teoretické znalosti dnes už nestačí.
Člověk musí překročit jejich hranice a umění se stane neumělým uměním, které
vyrú
We work mainly with PHP
and MySQL.
This job is to work in Brazil, São Paulo. For the brazilians out there,
we are near Paulista Avenue, in Bela Vista.
Please send résumés directly to [EMAIL PROTECTED] I prefer the résumé
in the body of the message, but other formats will also be read.
Greetings
r big websites?
We're trying to decide what is best: smarty template or a XML-based
solution. Do you guys think that PHP is prepared for XML/XSLT or you
don't like XML at all?
--
Leonardo Dias
Catho Online
WebDeveloper
http://www.catho.com.br/
--
PHP General Mailing List (http://w
9 matches
Mail list logo