[PHP] what's wrong with this php system

2011-08-08 Thread 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::onPrint() expected to be a reference, value given

Re: [PHP] what's wrong with this php system

2011-08-08 Thread Sharl.Jimh.Tsin
在 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

Re: [PHP] system() Question

2009-01-01 Thread Nathan Nobbe
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!

Re: [PHP] system() Question

2008-12-31 Thread Micah Gersten
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

Re: [PHP] system() Question

2008-12-31 Thread Nathan Nobbe
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

Re: [PHP] system() Question

2008-12-31 Thread Daniel Brown
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

Re: [PHP] system() Question

2008-12-31 Thread Jim Lucas
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

Re: [PHP] system() Question

2008-12-31 Thread Daniel Brown
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

[PHP] system() Question

2008-12-28 Thread Ryan O'Sullivan
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 -

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
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: ,

Re: [PHP] system() Question

2008-12-28 Thread Rick Pasotto
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: ,

Re: [PHP] system() Question

2008-12-28 Thread Daniel Brown
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

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
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

Re: [PHP] system() Question

2008-12-28 Thread Micah Gersten
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

Re: [PHP] system() Question

2008-12-28 Thread Nathan Nobbe
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

Re: [PHP] System errno in PHP

2008-02-25 Thread Daniel Brown
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

Re: [PHP] System errno in PHP

2008-02-24 Thread Michal Maras
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,

Re: [PHP] System errno in PHP

2008-02-22 Thread Ravi Menon
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 =

Re: [PHP] System errno in PHP

2008-02-21 Thread Richard Lynch
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)

Re: [PHP] System errno in PHP

2008-02-20 Thread Michal Maras
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

Re: [PHP] System errno in PHP

2008-02-20 Thread Stut
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

Re: [PHP] System errno in PHP

2008-02-20 Thread Michal Maras
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

[PHP] System errno in PHP

2008-02-19 Thread Michal Maras
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

Re: [PHP] System errno in PHP

2008-02-19 Thread Stut
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

Re: [PHP] System errno in PHP

2008-02-19 Thread Michal Maras
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

Re: [PHP] System errno in PHP

2008-02-19 Thread Michal Maras
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

Re: [PHP] System errno in PHP

2008-02-19 Thread Nick Stinemates
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

Re: [PHP] System errno in PHP

2008-02-19 Thread Richard Lynch
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

Re: [PHP] System errno in PHP

2008-02-19 Thread Richard Lynch
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

[PHP] system command runs application, but application doesn't work correctly

2008-01-16 Thread Apple7777
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:

Re: [PHP] system command runs application, but application doesn't work correctly

2008-01-16 Thread Daniel Brown
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]

RE: [PHP] system command

2007-10-27 Thread Instruct ICC
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

RE: [PHP] system command

2007-10-26 Thread Instruct ICC
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

Re: [PHP] system command

2007-10-26 Thread Ronald Wiplinger
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

Re: [PHP] system command

2007-10-25 Thread Ronald Wiplinger
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

[PHP] system command

2007-10-24 Thread Ronald Wiplinger
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

RE: [PHP] system command

2007-10-24 Thread Instruct ICC
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

Re: [PHP] system() call in PHP5 on win2003

2007-07-10 Thread Tijnema
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.

[PHP] system() call in PHP5 on win2003

2007-07-09 Thread Xiaogang
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.

Re: [PHP] System wide variable

2007-05-25 Thread Darren Whitlen
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

[PHP] System log in problems

2007-05-24 Thread Rich Peterson
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

Re: [PHP] System log in problems

2007-05-24 Thread Stut
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

Re: [PHP] System wide variable

2007-05-24 Thread Richard Lynch
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

Re: [PHP] System wide variable

2007-05-24 Thread Richard Lynch
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

Re: [PHP] System log in problems

2007-05-24 Thread Richard Lynch
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

Re: [PHP] System log in problems

2007-05-24 Thread Stut
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

Re: [PHP] System wide variable

2007-05-24 Thread Richard Lynch
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

Re: [PHP] System log in problems

2007-05-24 Thread Richard Lynch
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

[PHP] System wide variable

2007-05-23 Thread Darren Whitlen
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

Re: [PHP] System wide variable

2007-05-23 Thread Stut
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

Re: [PHP] System wide variable

2007-05-23 Thread Darren Whitlen
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

Re: [PHP] System wide variable

2007-05-23 Thread John Comerford
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

Re: [PHP] System wide variable

2007-05-23 Thread Stut
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

Re: [PHP] System wide variable

2007-05-23 Thread Darren Whitlen
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

Re: [PHP] System wide variable

2007-05-23 Thread Sancar Saran
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

Re: [PHP] System wide variable

2007-05-23 Thread Jochem Maas
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

[PHP] system, exec, shell_exec, passthru [RESOLVED]

2006-08-15 Thread p . willis
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.)

[PHP] system, exec, shell_exec, passthru

2006-08-14 Thread p . willis
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)) {

Re: [PHP] system, exec, shell_exec, passthru

2006-08-14 Thread Richard Lynch
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

[PHP] System Administrator replies

2006-03-02 Thread tedd
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

Re: [PHP] System Administrator replies

2006-03-02 Thread John Nichel
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

Re: [PHP] System Administrator replies

2006-03-02 Thread Stut
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

Re: [PHP] system('bell'); ?

2006-02-06 Thread Oli Howson
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

Re: [PHP] system( bell ); ?

2006-02-06 Thread Angelo Zanetti
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.

[PHP] system('bell'); ?

2006-02-04 Thread tedd
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

Re: [PHP] system('bell'); ?

2006-02-04 Thread Gerry Danen
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

RE: [PHP] system('bell'); ?

2006-02-04 Thread Dan Harrington
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

RE: [PHP] system('bell'); ?

2006-02-04 Thread php-mail
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

Re: [PHP] system('bell'); ?

2006-02-04 Thread Kevin Waterson
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

[PHP] System specific information gathering

2005-07-21 Thread Vidyut Luther
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

[PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
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

Re: [PHP] System Call Troubles

2005-05-19 Thread Philip Hallstrom
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

Re: [PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
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

Re: [PHP] System Call Troubles

2005-05-19 Thread Rasmus Lerdorf
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

Re: [PHP] System Call Troubles

2005-05-19 Thread Michael Stearne
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

Re: [PHP] System Call Troubles

2005-05-19 Thread José Luis Palacios Vergara
[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

[PHP] System Command and snmp commands

2004-10-26 Thread Mulley, Nikhil
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

RE: [PHP] System Command and snmp commands

2004-10-26 Thread Mulley, Nikhil
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

Re: [PHP] system command

2004-08-24 Thread Daniel Schierbeck
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

Re: [PHP] system command

2004-08-24 Thread ron clark
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

Re: [PHP] system command

2004-08-24 Thread Daniel Schierbeck
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

[PHP] system command

2004-08-23 Thread ron clark
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.

Re: [PHP] system command

2004-08-23 Thread John Holmes
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

Re: [PHP] system command

2004-08-23 Thread Jason Wong
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

[PHP] Re:[PHP] system command

2004-08-23 Thread ron clark
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

[PHP] System Tray Icon

2004-08-16 Thread Harlequin
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

RE: [PHP] System Tray Icon OT

2004-08-16 Thread Jay Blanchard
[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

Re: [PHP] System Tray Icon

2004-08-16 Thread John Nichel
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

Re: [PHP] System Tray Icon

2004-08-16 Thread Angelo Zanetti
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

Re: [PHP] System Tray Icon

2004-08-16 Thread Josh Acecool M
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

Re: [PHP] system command?

2004-05-11 Thread Jason Wong
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 =

[PHP] system command?

2004-05-10 Thread Jas
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

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[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 =

Re: [PHP] system command?

2004-05-10 Thread Adam Voigt
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

RE: [PHP] system command?

2004-05-10 Thread Daniel Purdy
[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 =

Re: [PHP] system command?

2004-05-10 Thread John Nichel
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 =

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[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:

Re: [PHP] system command?

2004-05-10 Thread Jas
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

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[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 =

RE: [PHP] system command?

2004-05-10 Thread Jay Blanchard
[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   2   >