php-general Digest 11 Sep 2012 17:49:06 - Issue 7959
Topics (messages 319032 through 319038):
Re: another Array question
319032 by: Jim Lucas
319033 by: admin
Blocking gethostbyname and Net_DNS2 behaviour
319034 by: a m
319035 by: a m
redirect a shell
Hi,
I was using gethostbyname up until recently but switched to Net_DNS2
due to lack of support for a timeout. Now I discovered some worrying
behaviour and hope someone here get shed some light onto it.
I am running PHP inside an Apache 2 installation as module and noticed
that once I call
Hi! This is the ezmlm program. I'm managing the
php-general@lists.php.net mailing list.
I'm working for my owner, who can be reached
at php-general-ow...@lists.php.net.
To confirm that you would like
arch...@mail-archive.com
added to the php-general mailing list, please send
an empty reply
My apologies, it looks like it was a false alarm and the blocking
actually comes from PHP's session manager.
Sorry,
Alexander
On 11 September 2012 14:22, a m ner...@gmail.com wrote:
Hi,
I was using gethostbyname up until recently but switched to Net_DNS2
due to lack of support for a timeout.
Hi All,
I want to redirect the stdout of an executing shell command to stdout of
php called by browser
The command some stream like command like
ffmpeg -i rtmp://192. -
rtmpdump -v -r rtmp://192 -a app -y stream -o -
so its live video, and the execution not stops, till the user
You can use pipe to run the command and capture the stdout.
Then dump it with proper header to browser.
Note, If the external command (specially video encoding) takes long time
you should probably use cron for this and maintain a queue. I recommend you
apply some sorts of caching also.
--
Hello Everyone,
Very new to the list.
So I am trying to echo a string to the browser as follows -
$str = 0x100092000 -0x1000b7fff +com.apple.com (2.0 - 56)
BB91F4F8-3B1B-93C6-0D1A-E431E96F1BA3 /Library/PrivateFrameworks;
echo $str;
However the text between and i.e
This issue has to do with HTML markup. You need to properly escape
characters before sending them as text to the browser. Try to use this PHP
function to escape your string: echo htmlspecialchars($yourstringhere);
Regards,
Samuel.
-Mensagem original-
De: sunil meena
Thanks a ton Samuel!
Appreciate it.
On Tue, Sep 11, 2012 at 10:54 AM, Samuel Lopes Grigolato
samuel.grigol...@gmail.com wrote:
This issue has to do with HTML markup. You need to properly escape
characters before sending them as text to the browser. Try to use this PHP
function to escape
Or, if that string is the only thing you want to output and nothing else
you will set the correct content type for your output by putting
header('Content-Type: text/plain; charset=utf-8');
at the beginning of your script
Am 11.09.12 19:54, schrieb Samuel Lopes Grigolato:
This issue has to do
10 matches
Mail list logo