[PHP] Using function fsockopen() under proxy

2003-02-12 Thread Cleber
Hi, everyone...

Why  to use the function fsockopen() under proxy??

Thanks


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Append to STDIN

2001-11-08 Thread Cleber S. Mori

Hi guys...

I have a perl script which adds automatically contents to my html file. I
have been done this manualy, from a unix shell, but now I want to make the
PHP do-it-for-me.

As I already have the perl script, I won't rewrite it again, so, how can I
make a PHP variable ($foo) to go to the STDIN?

In other words, I want to execute my htmladd.pl with the file argument,
and get the STDIN.

like
  echo "STDIN"| htmladd.pl my_html_file.html
But I want to STDIN be a PHP variable, that is because I want to make the
updates over the net.

Thanks!
Hey, sorry for my bad english!

Take care!


Cleber S. Mori
Monitor Lab Linux
2o Ano - Bacharelado em Ciências da Computação
ICMC - Instituto de Ciências Matemáticas e de Computação
USP - Universidade de São Paulo - São Carlos

HPage:  http://grad.icmc.sc.usp.br/~cleber/
E-mail: [EMAIL PROTECTED]
ICQ/UIN:1409389



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Append to STDIN

2001-11-08 Thread Cleber S. Mori

Hi again...

I had already RTFM...
Neither in exec or  ``'s I found any thing about STDIN...

I just wondered if some one have any tips.

thanks again!

Cleber S. Mori
Monitor Lab Linux
2o Ano - Bacharelado em Ciências da Computação
ICMC - Instituto de Ciências Matemáticas e de Computação
USP - Universidade de São Paulo - São Carlos

HPage:  http://grad.icmc.sc.usp.br/~cleber/
E-mail: [EMAIL PROTECTED]
ICQ/UIN:1409389



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] What is the PATH...

2001-11-09 Thread Cleber S. Mori

When PHP try to execute a program via exec() or system(), where does it
search for it?
I mean, it sertainly is not MY (foo.php owner) path, because it returns me
a
  sh: YOUR_PROGRAM: command not found

It seems to be (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin ) now.
Where can I set this PATH?

Thanks!

Cleber S. Mori
Monitor Lab Linux
2o Ano - Bacharelado em Ciências da Computação
ICMC - Instituto de Ciências Matemáticas e de Computação
USP - Universidade de São Paulo - São Carlos

HPage:  http://grad.icmc.sc.usp.br/~cleber/
E-mail: [EMAIL PROTECTED]
ICQ/UIN:1409389



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]