Re: [PHP] Command line php....

2003-08-05 Thread Jason Wong
On Wednesday 06 August 2003 11:11, John Nichel wrote: 4.3.2 Try disabling output buffer in php.ini. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

[PHP] Command line php output redirection.

2003-06-25 Thread Joshua Moore-Oliva
This is really scaring me as file redirection is one of the basic things in linux.. anyways I have a php script that outputs to stdout using echo.. when I run it using php parser.php I can see the output no problem. However, when I attempted to redirect to a file using php

Re: [PHP] Command line php output redirection.

2003-06-25 Thread Chris Sherwood
try using fopen(); http://www.php.net/manual/en/function.fopen.php - Original Message - From: Joshua Moore-Oliva [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 25, 2003 3:37 PM Subject: [PHP] Command line php output redirection. This is really scaring me as file

Re: [PHP] Command line php output redirection.

2003-06-25 Thread David Nicholson
Hello, This is a reply to an e-mail that you wrote on Wed, 25 Jun 2003 at 23:48, lines prefixed by '' were originally written by you. php parser.php temp temp only contains Content-type: text/html X-Powered-By: PHP/4.3.2 Maybe try using the -q parameter? what do you get then? -q

Re: [PHP] Command line php output redirection.

2003-06-25 Thread Joshua Moore-Oliva
That worked, thanks. On June 25, 2003 07:16 pm, David Nicholson wrote: Hello, This is a reply to an e-mail that you wrote on Wed, 25 Jun 2003 at 23:48, lines prefixed by '' were originally written by you. php parser.php temp temp only contains Content-type: text/html

[PHP] Command line php

2003-04-01 Thread John Nichel
How do I capture standard input? ?php $name = STDIN; echo ( Hello . STDIN . \n ); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Command line php

2003-04-01 Thread John Nichel
e echo ( Hello . $name . \n ); John Nichel wrote: How do I capture standard input? ?php $name = STDIN; echo ( Hello . STDIN . \n ); ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Command line php

2003-04-01 Thread Leif K-Brooks
STDIN is a file reference. Use the standard file functions (fread, for example) on it. John Nichel wrote: How do I capture standard input? ?php $name = STDIN; echo ( Hello . STDIN . \n ); ? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to

Re: [PHP] Command line php

2003-04-01 Thread John Nichel
if I do a... $name = fread ( STDIN, sizeof ( STDIN ) ); I only get back the first character entered. How do I accept exactly what is entered? Leif K-Brooks wrote: STDIN is a file reference. Use the standard file functions (fread, for example) on it. John Nichel wrote: How do I capture

Re: [PHP] Command line php

2003-04-01 Thread John Nichel
I did that orginally, but it waits for me to enter 255 characters before closing the freadno matter how many times I hit enter. Benny Pedersen wrote: On Wednesday 02 April 2003 03:17, John Nichel wrote: if I do a... $name = fread ( STDIN, sizeof ( STDIN ) ); $name = fread ( STDIN, 255 );

Re: [PHP] Command line php

2003-04-01 Thread John Nichel
Duh. fgets, not fread echo ( What is your name?\n ); $name = fgets ( STDIN ); echo ( Hello, . $name ); John Nichel wrote: I did that orginally, but it waits for me to enter 255 characters before closing the freadno matter how many times I hit enter. Benny Pedersen wrote: On

RE: [PHP] Command line php

2003-04-01 Thread Jennifer Goodie
To: [EMAIL PROTECTED] Subject: Re: [PHP] Command line php I did that orginally, but it waits for me to enter 255 characters before closing the freadno matter how many times I hit enter. Benny Pedersen wrote: On Wednesday 02 April 2003 03:17, John Nichel wrote: if I do a... $name

<    1   2