I have installed a php system on my pc, it works well, except the head
of the page is a bit strange, there is some warning information, and
occupies lot of space,
what's wrong, the error information is as follows:
Warning: Parameter 1 to Notice::onPrint() expected to be a reference,
value given
在 2011-08-08一的 14:30 +0800,smith jack写道:
I have installed a php system on my pc, it works well, except the head
of the page is a bit strange, there is some warning information, and
occupies lot of space,
what's wrong, the error information is as follows:
Warning: Parameter 1 to Notice
On Thu, Jan 1, 2009 at 12:01 AM, Daniel Brown danbr...@php.net wrote:
On Thu, Jan 1, 2009 at 01:57, Jim Lucas li...@cmsws.com wrote:
Getting in some practice for new little one? :)
Damn kids ;-P
Happy New Year to all, and to all a safe night!
To you as well, Mr. Lucas!
Nathan Nobbe wrote:
On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten mi...@onshore.com
mailto:mi...@onshore.com wrote:
Nathan Nobbe wrote:
good point dan, and just to add further clarification, thats b/c the
function specifies $return_var is passed by reference in the formal
On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten mi...@onshore.com wrote:
Nathan Nobbe wrote:
On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten mi...@onshore.com
mailto:mi...@onshore.com wrote:
Nathan Nobbe wrote:
good point dan, and just to add further clarification, thats b/c
On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe quickshif...@gmail.com wrote:
On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten mi...@onshore.com wrote:
I think I was confused here about your response. After re-reading a few
times, I see that you were enhancing Dan's response by explaining what
Daniel Brown wrote:
On Wed, Dec 31, 2008 at 21:29, Nathan Nobbe quickshif...@gmail.com wrote:
On Wed, Dec 31, 2008 at 7:03 PM, Micah Gersten mi...@onshore.com wrote:
I think I was confused here about your response. After re-reading a few
times, I see that you were enhancing Dan's response by
On Thu, Jan 1, 2009 at 01:57, Jim Lucas li...@cmsws.com wrote:
Getting in some practice for new little one? :)
Damn kids ;-P
Happy New Year to all, and to all a safe night!
To you as well, Mr. Lucas! And now that I am done with work (for
the most part), this is my official
Hello all,
I am using system to convert some files using a binary in linux. My code
looks like this:
$response = system('gpsbabel -p -r -t -i gpx -f test.gpx -o kml -F
test2.kml', $retval);
echo pResponse: , $response, /ppReturn Value: , $retval;
The $retval is returning code 127 -
On Sun, Dec 28, 2008 at 12:40 PM, Ryan O'Sullivan r...@rynet.com wrote:
Hello all,
I am using system to convert some files using a binary in linux. My code
looks like this:
$response = system('gpsbabel -p -r -t -i gpx -f test.gpx -o kml -F
test2.kml', $retval);
echo pResponse: ,
On Sun, Dec 28, 2008 at 12:40 PM, Ryan O'Sullivan r...@rynet.com wrote:
Hello all,
I am using system to convert some files using a binary in linux. My code
looks like this:
$response = system('gpsbabel -p -r -t -i gpx -f test.gpx -o kml -F
test2.kml', $retval);
echo pResponse: ,
On Sun, Dec 28, 2008 at 18:10, Rick Pasotto r...@niof.net wrote:
You overlooked the ampersand in front of $retval. The syntax for
'system' is:
string system ( string $command [, int $return_var ] )
You have to pass a pointer to the variable, not the variable itself.
Actually, that's
On Sun, Dec 28, 2008 at 6:49 PM, Daniel Brown danbr...@php.net wrote:
On Sun, Dec 28, 2008 at 18:10, Rick Pasotto r...@niof.net wrote:
You overlooked the ampersand in front of $retval. The syntax for
'system' is:
string system ( string $command [, int $return_var ] )
You have to
Nathan Nobbe wrote:
good point dan, and just to add further clarification, thats b/c the
function specifies $return_var is passed by reference in the formal
parameter. when you include the along w/ an actual parameter (during
function invocation) thats referred to as
On Sun, Dec 28, 2008 at 8:40 PM, Micah Gersten mi...@onshore.com wrote:
Nathan Nobbe wrote:
good point dan, and just to add further clarification, thats b/c the
function specifies $return_var is passed by reference in the formal
parameter. when you include the along w/ an actual
On Sun, Feb 24, 2008 at 10:22 AM, Michal Maras [EMAIL PROTECTED] wrote:
Hi
Thank you for answer, but I do not understand.
How can I use this class Errno after unsuccessful fopen?
I want to get the number, for example 13 if there is not enough permissions
to open file.
It is not
Hi
Thank you for answer, but I do not understand.
How can I use this class Errno after unsuccessful fopen?
I want to get the number, for example 13 if there is not enough permissions
to open file.
It is not problem for me that script will be no portable, it is
only for AIX.
By
On 22/02/2008,
Hi,
I also ran into the same issue with file and socket apis, and for now, I just
hack it like ( for linux 2.6 systems ):
class Errno
{
const EINTR= 4;
const EIO = 5;
const EINVAL = 22;
const ENODATA = 61;
const EBADMSG = 74;
const EOPNOTSUPP =
On Wed, February 20, 2008 2:56 am, Michal Maras wrote:
I have read http://php.net/fopen from top to bottom, but I could not
find
how to get system error number.
With set_error_handler I can get string for example
fopen(hmc_configuration.cfg)
Hello Nick
I have read http://php.net/fopen from top to bottom, but I could not find
how to get system error number.
With set_error_handler I can get string for example
fopen(hmc_configuration.cfg)
[function.fopenhttp://ds63450.mspr.detemobil.de/%7Emmaras/HMC/function.fopen]:
failed to open
Michal Maras wrote:
I have read http://php.net/fopen from top to bottom, but I could not find
how to get system error number.
With set_error_handler I can get string for example
fopen(hmc_configuration.cfg)
[function.fopenhttp://ds63450.mspr.detemobil.de/%7Emmaras/HMC/function.fopen]:
failed
Hi
Hmm.. I know I can check such sings as if file exists or has right
permission before fopen.
But it does not mean that file will still exists with right permission a
moment later when
fopen will be issued.
And I can't check everything. I can't image how to check whether file is
locked, or if
Hello everybody
Coud somebody tell me if it is possible to get integer value of variable
which name in C is errno end in perl $!.
I am PHP beginner so I am sorry if question is 'stupid'.
By
Michal Maras wrote:
Coud somebody tell me if it is possible to get integer value of variable
which name in C is errno end in perl $!.
I am PHP beginner so I am sorry if question is 'stupid'.
What function are you calling where you expect to get a system error?
Check the manual page for that
Hi
I am asking about errno for Filesystems functions like
fopen, fread, fclose, ...
On 19/02/2008, Stut [EMAIL PROTECTED] wrote:
Michal Maras wrote:
Coud somebody tell me if it is possible to get integer value of
variable
which name in C is errno end in perl $!.
I am PHP beginner so
I am now using filesystem functions fopen, fread, fclose, ...
On 19/02/2008, Stut [EMAIL PROTECTED] wrote:
Michal Maras wrote:
Coud somebody tell me if it is possible to get integer value of
variable
which name in C is errno end in perl $!.
I am PHP beginner so I am sorry if question
Michal Maras wrote:
I am now using filesystem functions fopen, fread, fclose, ...
On 19/02/2008, Stut [EMAIL PROTECTED] wrote:
Michal Maras wrote:
Coud somebody tell me if it is possible to get integer value of
variable
which name in C is errno end in perl $!.
I
On Tue, February 19, 2008 7:13 am, Michal Maras wrote:
Coud somebody tell me if it is possible to get integer value of
variable
which name in C is errno end in perl $!.
I am PHP beginner so I am sorry if question is 'stupid'.
If you use exec() you can get that as a returned value for the
PHP catches all thsoe and prints nifty error message.
I presume the error number is in the guts somewhere, and could be
exposed easily enough if you worked at it...
But I don't think there is any kind of variable today with it in there.
php_errmsg used to have the error message in it, but that
Hello,
I'm trying to run mencoder command line utility to encode videos.
When I use these two command in terminal (through SSH), everything works fine.
But when I run them from PHP script with system command, it doesn't work.
The commands are:
First pass:
On Jan 16, 2008 7:56 PM, Apple [EMAIL PROTECTED] wrote:
Hello,
I'm trying to run mencoder command line utility to encode videos.
When I use these two command in terminal (through SSH), everything works fine.
But when I run them from PHP script with system command, it doesn't work.
[snip]
Maybe something to do with the last line (but I get several lines)
Return Values
Returns the last line of the command output on success, and FALSE on failure.
I have within a web page:
$a=system('/usr/bin/lynx -dump http://api.hostip.info/country.php?ip='.$aa);
?
.
later I
Use double quotes to get the value of $a or else you get the literal string
$a.
$aa=system(lynx -dump http://api.hostip.info/country.php?ip=$a,$location);
or
$aa=system('lynx -dump http://api.hostip.info/country.php?ip='.$a,$location);
Thanks! 1st solution did not work for me, but the
Instruct ICC wrote:
Use double quotes to get the value of $a or else you get the literal string
$a.
$aa=system(lynx -dump http://api.hostip.info/country.php?ip=$a,$location);
or
$aa=system('lynx -dump http://api.hostip.info/country.php?ip='.$a,$location);
Thanks! 1st solution did not
Instruct ICC wrote:
Date: Thu, 25 Oct 2007 09:43:14 +0800
From: [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] system command
I tried:
$a=$_SERVER[REMOTE_ADDR];
echo pREMOTE_ADDR=$abr;
if($a=192.168.250.108) {
$a=61.64.101.101;
}
$aa=system('lynx -dump http
I tried:
$a=$_SERVER[REMOTE_ADDR];
echo pREMOTE_ADDR=$abr;
if($a=192.168.250.108) {
$a=61.64.101.101;
}
$aa=system('lynx -dump http://api.hostip.info/country.php?ip=$a',$location);
echo pa=$abraa=$aabrlocation=$locationbr;
$aa=system('lynx -dump
Date: Thu, 25 Oct 2007 09:43:14 +0800
From: [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] system command
I tried:
$a=$_SERVER[REMOTE_ADDR];
echo pREMOTE_ADDR=$abr;
if($a=192.168.250.108) {
$a=61.64.101.101;
}
$aa=system('lynx -dump http://api.hostip.info
On 7/10/07, Xiaogang [EMAIL PROTECTED] wrote:
We used to use php 4 on our web server on win2000, and use the system()
to call some DOS programs. That how we call it:
$cmd = c:\\Inetpub\\wwwroot\\test.exe;
$last_line = system($cmd, $retval);
print (br\nretval =\. $retval.
We used to use php 4 on our web server on win2000, and use the system()
to call some DOS programs. That how we call it:
$cmd = c:\\Inetpub\\wwwroot\\test.exe;
$last_line = system($cmd, $retval);
print (br\nretval =\. $retval. \br\n);
It was working perfectly for years.
Richard Lynch wrote:
On Wed, May 23, 2007 4:27 am, Darren Whitlen wrote:
John Comerford wrote:
Not thought about the memory engine actually. Will give that a try and
see how it turns out.
Let us know.
Finaly managed to get it going (uses AJAX which im not to great at..),
and the database
Hi All
Let me start by saying I am not 100% sure this
is the correct board to post this to. I hope it is
because as i have watched this list it contains
some very helpful people.
I have search for an answer to this and cannot
seem to find it. We have a subscription based
site that is developed
Rich Peterson wrote:
Hi All
Let me start by saying I am not 100% sure this
is the correct board to post this to. I hope it is
because as i have watched this list it contains
some very helpful people.
I have search for an answer to this and cannot
seem to find it. We have a subscription based
On Wed, May 23, 2007 3:52 am, Darren Whitlen wrote:
Hi,
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5
seconds.
Errr. Okay.
Seems kind of frequent to me...
What/why is going on here?
You may get a MUCH
On Wed, May 23, 2007 4:08 am, Darren Whitlen wrote:
Stut wrote:
Darren Whitlen wrote:
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5
seconds.
I would like to move this file to a variable for extra
On Thu, May 24, 2007 4:51 pm, Rich Peterson wrote:
Let me start by saying I am not 100% sure this
is the correct board to post this to. I hope it is
because as i have watched this list it contains
some very helpful people.
I have search for an answer to this and cannot
seem to find it. We
Richard Lynch wrote:
There are several/many things it COULD be...
First Guess:
header(Location: logged_in_page.php);
Some versions of IE will figure out what you meant with the above
WRONG code, but will NOT carry the Cookie for your session along with
it, so you're bounced back as if you
On Wed, May 23, 2007 4:27 am, Darren Whitlen wrote:
John Comerford wrote:
Not thought about the memory engine actually. Will give that a try and
see how it turns out.
Let us know.
I'd have GUESSED that MySQL would have just cached something that
small and oft-used in RAM anyway, so a MySQL
On Thu, May 24, 2007 6:04 pm, Stut wrote:
Richard Lynch wrote:
There are probably a dozen things more that could be going wrong...
You'll have to dig deeper into what's happening to find out.
I've just gotta ask which part of the following made you think IE...
Operating system is Ubuntu
Hi,
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5 seconds.
I would like to move this file to a variable for extra speed as the file
is causing a few problems being accessed so many times.
Is it possible
Darren Whitlen wrote:
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5 seconds.
I would like to move this file to a variable for extra speed as the file
is causing a few problems being accessed so many
Stut wrote:
Darren Whitlen wrote:
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5
seconds.
I would like to move this file to a variable for extra speed as the
file is causing a few problems being
How about a table using the mysql memory engine ?
Darren Whitlen wrote:
Hi,
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5
seconds.
I would like to move this file to a variable for extra speed as the
Darren Whitlen wrote:
Stut wrote:
Darren Whitlen wrote:
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5
seconds.
I would like to move this file to a variable for extra speed as the
file is causing a few
John Comerford wrote:
How about a table using the mysql memory engine ?
Darren Whitlen wrote:
Hi,
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5
seconds.
I would like to move this file to a variable for
On Wednesday 23 May 2007 11:52:27 Darren Whitlen wrote:
Hi,
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5 seconds.
I would like to move this file to a variable for extra speed as the file
is causing a
Darren Whitlen wrote:
Hi,
I have a PHP script that reads and updates either a small file or a
mysql database. This script is called from several places every .5 seconds.
assuming your using a real OS
whilst your figuring out an even better way to do it you might consider sticking
the
Hello,
This problem has now been resolved.
The problem as described below was NOT caused by
PHP. The problem was actually a file permissions/ownership problem.
A.) The apache webserver runs as a user with specific
priviledges. On this particular server the webserver runs as user
'apache'.
B.)
Hello,
I am trying the run an external application with
command line arguments using PHP under linux.
ie:
$command=myprog $arg1 $arg2 textfile.txt;
system(echo \$command\ test.txt);
system($command);
$handle=fopen(textfile.txt,r);
if($handle!=NULL)
{
while(!feof($handle))
{
Use exec() instead of system() and pass in args for output and error
number and then you'll get an error number telling you what went
wrong.
You'll have to look up the error number in a shell with 'perror' (man
perror) unless you dig my modest extension to do it from PHP:
http://l-i-e.com/perror
Hi gang:
Is anyone else getting these:
System Administrator [EMAIL PROTECTED]
Undeliverable: whatever
Every time I send something to this list, my email get's posted, but
then I also receive an email from the System Administrator telling
me that my email did not reach:
did not reach the
tedd wrote:
Hi gang:
Is anyone else getting these:
System Administrator [EMAIL PROTECTED]
Undeliverable: whatever
Every time I send something to this list, my email get's posted, but
then I also receive an email from the System Administrator telling me
that my email did not reach:
did
John Nichel wrote:
can of worms
Not that we need a list admin to take care of this or anything.
/can of worms
Good job you closed that tag, these can be a nightmare!
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
each of the terminals could then use a web based POS interface but
there was only a
single cash drawer.
It would also be possible to have each 'till' running a copy of apache
server, and communicating with a central database server. I can't for
the life of me think of any way the client
maybe a javascript button that somehow does the dos command or calls
another program (exe) that will do the command to open the
till...anywayz this is getting OT!
Oli Howson wrote:
each of the terminals could then use a web based POS interface but
there was only a
single cash drawer.
I simple wrote a small C program that basically sent a bell, 0x07
and it opened my cash drawer. In php I just did system('bell'); and
it worked fine.
Kevin
Hi:
Interesting! The statement system('bell'); is new to me.
If I'm writing code on a hosted domain, and using that statement,
who's
bell is his C program... :) Outputs an ascii 7 (bell) at the machine
where it runs. It basically outputs a character to stdout or stderr.
He probably has that machine next to his cash drawer...
Gerry
On 2/4/06, tedd [EMAIL PROTECTED] wrote:
I simple wrote a small C program that basically
Ask not for whom the bell tolls, it tolls for thee!
-Original Message-
From: Gerry Danen [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 04, 2006 12:00 PM
To: tedd
Cc: php-general@lists.php.net
Subject: Re: [PHP] system('bell'); ?
bell is his C program... :) Outputs an ascii 7
Suppose someone had to :)
-Original Message-
From: Dan Harrington [mailto:[EMAIL PROTECTED]
Sent: 04 February 2006 19:50
To: php-general@lists.php.net
Subject: RE: [PHP] system('bell'); ?
Ask not for whom the bell tolls, it tolls for thee!
-Original Message-
From: Gerry
This one time, at band camp, tedd [EMAIL PROTECTED] wrote:
Interesting! The statement system('bell'); is new to me.
If I'm writing code on a hosted domain, and using that statement,
who's bell am I ringing?
The server bell, not the client.
I used this method because the cash drawer was
Hello,
I have a question on how to get Server side system specific
information via PHP, or just general direction on how to parse some
of the information found in /proc
For example, I want to be able to display the system uptime.. number
of users logged in, and load average.
In the
I am having the strangest problem using system() or exec() or any
variation. None of them work on the Fedora Core 3 system that was
just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default
installation for Fedora Core 3. Everything in PHP works as expected
except when trying a
I am having the strangest problem using system() or exec() or any
variation. None of them work on the Fedora Core 3 system that was
just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default
installation for Fedora Core 3. Everything in PHP works as expected
except when trying a
Thanks. Neither have helped. I have no idea what the deal is. I
think it might be some restriction set by Fedora or Apache.
Michael
On 5/19/05, Philip Hallstrom [EMAIL PROTECTED] wrote:
I am having the strangest problem using system() or exec() or any
variation. None of them work on the
Michael Stearne wrote:
I am having the strangest problem using system() or exec() or any
variation. None of them work on the Fedora Core 3 system that was
just loaded. The PHP is Version 4.3.11 with Apache 2.0.52, the default
installation for Fedora Core 3. Everything in PHP works as
Thank you!
setsebool httpd_disable_trans true
/etc/init.d/httpd restart
did it.
Michael
On 5/19/05, Rasmus Lerdorf [EMAIL PROTECTED] wrote:
Michael Stearne wrote:
I am having the strangest problem using system() or exec() or any
variation. None of them work on the Fedora Core 3 system
[EMAIL PROTECTED]
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Thursday, May 19, 2005 12:57 PM
Subject: Re: [PHP] System Call Troubles
Michael Stearne wrote:
I am having the strangest problem
Hi All,
I want to use system command to perform snmp queries on a remote machine and the
problem is that I want to store the output /result in an Array , so that I can later
use it for parsing purposes.I know I could use exec and passthru statements
actually,But I am unable to store the
To: [EMAIL PROTECTED]
Subject: [PHP] System Command and snmp commands
Hi All,
I want to use system command to perform snmp queries on a remote machine and the
problem is that I want to store the output /result in an Array , so that I can later
use it for parsing purposes.I know I could use
Ron Clark wrote:
Capture the output in
the $output variable then ob_clean to empty the output buffer before
printing the the desired message.
ob_get_clean() is preferable:
$output = ob_get_clean(); // Gets the buffered output and cleans the buffer
--
Daniel Schierbeck
--
PHP General
Daniel Schierbeck wrote:
Ron Clark wrote:
Capture the output in the $output variable then ob_clean to empty the
output buffer before printing the the desired message.
ob_get_clean() is preferable:
$output = ob_get_clean(); // Gets the buffered output and cleans
the buffer
Didn't need the
Ron Clark wrote:
Daniel Schierbeck wrote:
Ron Clark wrote:
Capture the output in the $output variable then ob_clean to empty the
output buffer before printing the the desired message.
ob_get_clean() is preferable:
$output = ob_get_clean(); // Gets the buffered output and cleans
the buffer
I an trying to add virus scanning to the file upload section of our
portal using uvscan. The virus scanning is working properly using a
system call , but I am having problems with formatting the output. I
need to check the return value and if it is not a 0, I want to create a
custom message.
From: ron clark [EMAIL PROTECTED]
I an trying to add virus scanning to the file upload section of our portal
using uvscan. The virus scanning is working properly using a system call ,
but I am having problems with formatting the output. I need to check the
return value and if it is not a 0, I
On Tuesday 24 August 2004 03:49, ron clark wrote:
I an trying to add virus scanning to the file upload section of our
portal using uvscan. The virus scanning is working properly using a
system call , but I am having problems with formatting the output. I
need to check the return value and if
John Holmes wrote:
From: ron clark [EMAIL PROTECTED]
I an trying to add virus scanning to the file upload section of our
portal using uvscan. The virus scanning is working properly using a
system call , but I am having problems with formatting the output. I
need to check the return value and if
Hi all.
I just wanted to throw this message in here and get some opinions before I
go off developing something So will post in the correct newsgroup later
(when I find which newsgroup I need).
Before I post a more thorough thread in the correct area I just wanted to
find out if this was
[snip]
I just wanted to throw this message in here and get some opinions before
I
go off developing something So will post in the correct newsgroup later
(when I find which newsgroup I need).
Before I post a more thorough thread in the correct area I just wanted
to
find out if this was achievable
Harlequin wrote:
Hi all.
I just wanted to throw this message in here and get some opinions before I
go off developing something So will post in the correct newsgroup later
(when I find which newsgroup I need).
Before I post a more thorough thread in the correct area I just wanted to
find out if
I think VB or some MS dev tool will do the job.
John Nichel [EMAIL PROTECTED] 8/16/2004 3:48:11 PM
Harlequin wrote:
Hi all.
I just wanted to throw this message in here and get some opinions before I
go off developing something So will post in the correct newsgroup later
(when I find
Hmm,
Simply make a RSS feed or something, md5 the last changed date of all files
combined every say 30 mins and put that in the rss file, have the systray
icon program look at that file every 5 mins or so, if the file has changed,
flash..
John Nichel [EMAIL PROTECTED] wrote in message
news:[EMAIL
On Monday 10 May 2004 23:00, Jas wrote:
I didn't sent off list, always to php.general in reply to whatever
message thread I am in. In any event, I have tried safe mode = On and
safe mode = Off with the 4 commands I listed in my last thread and my
actual code is using an echo =
Anyone know what this wouldn't work? I have tried using a couple of
functions defined at http://us2.php.net/manual/en/ref.exec.php and none
seem to have the desired effect.
?php
$tailed = shell_exec('tail -f /path/to/log');
//$tailed = exec('tail -f /path/to/log');
//$tailed = system('tail -f
[snip]
Anyone know what this wouldn't work? I have tried using a couple of
functions defined at http://us2.php.net/manual/en/ref.exec.php and none
seem to have the desired effect.
?php
$tailed = shell_exec('tail -f /path/to/log');
//$tailed = exec('tail -f /path/to/log');
//$tailed =
I believe when you add the -f flag, the tail command doesn't exit, it
just keeps printing as data is appended to the log, did you try dropping
the -f flag?
On Mon, 2004-05-10 at 10:15, Jas wrote:
Anyone know what this wouldn't work? I have tried using a couple of
functions defined at
[snip]
Anyone know what this wouldn't work? I have tried using a couple of
functions defined at http://us2.php.net/manual/en/ref.exec.php and
none
seem to have the desired effect.
?php
$tailed = shell_exec('tail -f /path/to/log');
//$tailed = exec('tail -f /path/to/log');
//$tailed =
Jas wrote:
Anyone know what this wouldn't work? I have tried using a couple of
functions defined at http://us2.php.net/manual/en/ref.exec.php and none
seem to have the desired effect.
?php
$tailed = shell_exec('tail -f /path/to/log');
//$tailed = exec('tail -f /path/to/log');
//$tailed =
[snip]
It is now... but it still doesn't work. I have tried passthru(),
exec(), shell_exec() system() trying to tail -f a log file into a
textarea box and I get nothing or the output is put in the headers and
stops the rest of the page from loading. I am at a loss.
Jay Blanchard wrote:
I didn't sent off list, always to php.general in reply to whatever
message thread I am in. In any event, I have tried safe mode = On and
safe mode = Off with the 4 commands I listed in my last thread and my
actual code is using an echo = textarea$tailed/textarea;
I even tried to remove the -f
[snip]
I didn't sent off list, always to php.general in reply to whatever
message thread I am in. In any event, I have tried safe mode = On and
safe mode = Off with the 4 commands I listed in my last thread and my
actual code is using an echo = textarea$tailed/textarea;
?php
$tailed =
[snip]
I didn't sent off list
[/snip]
I am in an relatively crappy mood this day, you may want to NOT refute
something I have said and in essence call me a liar. You'll get little
help that way.
P.S. Stop top posting too.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
1 - 100 of 162 matches
Mail list logo