Re: [PHP] How to detect the host (window or Linux)?

2008-09-24 Thread hce
On Mon, Sep 22, 2008 at 4:04 PM, Thodoris <[EMAIL PROTECTED]> wrote: > >> $win = stripos(PHP_OS, 'win') !== false ? true : false; > Perhaps you could also use this as an alternative: > > http://gr.php.net/manual/en/function.php-uname.php Thanks Thodoris and Anderson. Sorry for not clear about the

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-24 Thread hce
On Wed, Sep 24, 2008 at 9:56 AM, Richard Lynch <[EMAIL PROTECTED]> wrote: > As a general rule, check what happens when you do wget -S on the URL and see > what the browser sees. Thanks Richard and all responses. That was the best PHP and HTML debug I've learned so far. I always find it is difficu

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-23 Thread hce
On Wed, Sep 24, 2008 at 1:03 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Ashley Sheridan wrote: >> >> On Tue, 2008-09-23 at 21:23 +1000, hce wrote: >>> >>> Hi Ashley, >>> >>> The object tag is indeed working. It does not automaticall

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-23 Thread hce
On Wed, Sep 24, 2008 at 12:53 AM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Tue, 2008-09-23 at 21:23 +1000, hce wrote: >> Hi Ashley, >> >> The object tag is indeed working. It does not automatically play >> audio.mp3 from my home web server, but it does

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-23 Thread hce
Hi Ashley, The object tag is indeed working. It does not automatically play audio.mp3 from my home web server, but it does automatically play if I add an audio source value from a streaming server. Can you make it work to play the audio automatically from a normal web server not streaming server?

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-20 Thread hce
On Sat, Sep 20, 2008 at 1:29 PM, Michelle Konzack <[EMAIL PROTECTED]> wrote: > Am 2008-09-12 18:14:23, schrieb hce: >> Hi, >> >> I have a php file audio.php to send mp3 file audio.mp3 to browsers, >> the browser needs following html code to play mp3 file. I thoug

[PHP] How to detect the host (window or Linux)?

2008-09-20 Thread hce
Hi, How can I detect the host is window or linux in PHP code? Thank you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Browser could not get mp3 files from http site

2008-09-13 Thread hce
Thanks Dan and Ash. I've tried object tag, it crashed my firefox. The audio.php file generates a simple following html. You need media player plugin to test it. The web server http://www.myweb.com/audio.php is my home server. Let me further discribe the problems, it is not the embed tag problem, it

[PHP] Browser could not get mp3 files from http site

2008-09-12 Thread hce
Hi, I have a php file audio.php to send mp3 file audio.mp3 to browsers, the browser needs following html code to play mp3 file. I thought it should work if I put the the audio.mp3 file in the same localtion with the http://www.myweb.com/audio.php. But the browser could not get the audio.mp3. I gue

Re: [PHP] Does PHP support utf16 encode / decode

2008-06-15 Thread hce
On Mon, Jun 16, 2008 at 3:59 PM, Chris <[EMAIL PROTECTED]> wrote: > hce wrote: >> Hi, >> >> I know PHP supports utf8 encode/decode, but does it support utf16 >> encode/decode? If yes, would you please point me a php manual URL? > > It's listed as

[PHP] Does PHP support utf16 encode / decode

2008-06-15 Thread hce
Hi, I know PHP supports utf8 encode/decode, but does it support utf16 encode/decode? If yes, would you please point me a php manual URL? Thank you. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP connection to external application

2008-06-14 Thread hce
On 6/14/08, Per Jessen <[EMAIL PROTECTED]> wrote: > hce wrote: > > > Anyway, thanks for all your responses and suggestions. It was good > > suggestion to use SOAP and Web services, but we have very small > > latency requirement, I have already worried about the de

[PHP] PHP time out for socket_recvfrom or socket_read block call

2008-06-14 Thread hce
Hi, How can use time out mechanism in PHP when calling socket_recvfrom or socket_read (in block service)? I know the non-block system call can be used, but I need to use a block system call, the block socket_recvfrom or socket_read should be either returned to be failed, or canceled when a time o

Re: [PHP] PHP connection to external application

2008-06-14 Thread hce
On 6/13/08, Per Jessen <[EMAIL PROTECTED]> wrote: > hce wrote: > > > I am not certain if the msg_send / msg_receive in PHP can talk to the > > external C program msg_send / msg_receive as PHP and external C > > program are in different processes, different memory

Re: [PHP] PHP connection to external application

2008-06-12 Thread hce
On Thu, Jun 12, 2008 at 9:30 PM, Stut <[EMAIL PROTECTED]> wrote: > On 12 Jun 2008, at 12:20, hce wrote: >> >> What is the best way for a PHP web application to connect to an >> external application written by C in Linux OS? >> >> (1) Can PHP directly call ex

[PHP] PHP connection to external application

2008-06-12 Thread hce
Hi, What is the best way for a PHP web application to connect to an external application written by C in Linux OS? (1) Can PHP directly call external C functions, or similar solution? (2) Can PHP pass messages to message queue which external C program can access? (3) Socket connection between t

[PHP] multithreading

2008-06-04 Thread hce
Hi, 1. Does PHP support multithreading? 2. When using PHP to access MySQL, does PHP implents a single thread or multithread with MySQL? Thank you. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] $_SESSION lost

2008-05-15 Thread hce
Hi, I've just installed PHP 5.2.4 on a FC 7 with a web server. $ php -v PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies It seems some PHP module might be missing, I tested it with a page1.php: sess

[PHP] How to get user IP address

2008-05-14 Thread hce
Hi, How to get user IP address in a PHP server? Thank you. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: install pecl in debian

2008-04-12 Thread hce
On 4/12/08, hce <[EMAIL PROTECTED]> wrote: > On 4/12/08, Bojan Tesanovic <[EMAIL PROTECTED]> wrote: > > You need CLI (Comman Line interface) for PHP > > most of PECL packages are in apt-get > > > > eg apt-get php-memcache > > > > > &g

Re: [PHP] Re: install pecl in debian

2008-04-12 Thread hce
On 4/12/08, Bojan Tesanovic <[EMAIL PROTECTED]> wrote: > You need CLI (Comman Line interface) for PHP > most of PECL packages are in apt-get > > eg apt-get php-memcache > > > > > On Apr 12, 2008, at 3:19 AM, Shawn McKenzie wrote: > > > > hce wrote:

[PHP] install pecl in debian

2008-04-11 Thread hce
Hi, I post following message days ago, but could not see it on the list. Sorry if it is duplicated. I've installed php5 in debian, but got following problems: 1. I could not find a proper debian package for pecl, search pecl found: dh-make-php - Creates Debian source packages for PHP PEAR and P

[PHP] php server installation

2008-04-10 Thread hce
Hi, I've installed lighty and php5 to a FC6 box for testing php code in my local machine, I set up www.mytest.com to the /etc/hosts. I can see a page of http://www.mytest.com/index.html, but a blank page to http://www.mytest.com/index.php. I've run an command "php -l index.php", the result was "No

[PHP] Setting php server

2008-04-08 Thread hce
Hi, I am setting a lighty and php server in my local machine FC 6 for testing my php source code. Both index.html and index.php have been set in lighty. If I have an index.html on the server, the http response was fine. But, if I set an index.php on the server, the browser got a blank page, there

[PHP] Check XMLReader enable

2008-04-08 Thread hce
Hi, How can I check if the XMLReader is enabled or not in php? Also, how to config the php to support SOAP and WSDL? Thank you. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php