RE: [PHP-WIN] Print inside a variable

2005-05-07 Thread Wu, Jin Yong
I am not sure whether you want to get the executing result of such PHP script into the variable $message or not ??? If so, you can use output buffer. 0) { .. print ("There are no articles in this feed."); } } $message = ob_get_contents(); ?> Regards, Yong from Xerox, China 2005/5/

RE: [PHP-WIN] changing querystring to fixed link

2005-05-07 Thread Wu, Jin Yong
It's none of PHP's business. It's relative to the web server.The following are the two solutions: 1) running PHP as CGI,just like Perl, so that you can handle the PATH_INFO with parameters, for example: change http://www.dictworld.com/search.php?q=hello&lang=en to http://www.dictworld.com/searc

RE: [PHP-WIN] Real path through aliases

2005-05-07 Thread Wu, Jin Yong
Through URL you can't determine the real path UNLESS your script returns some URL information. So that it can prevent hacker knowing some useful information about server to guarantee the web server's security. In PHP scripts, you can use __FILE__ to get real path or dirname(__FILE__) to get real

RE: [PHP-WIN] session_start(): cannot send session

2005-05-07 Thread Wu, Jin Yong
This warning means that there are some output contents before calling session_start(). Make sure there is no any empty line or any other unvisible character. if neccessay you can open the file by binary format and check it. Yong from China 2005/5/8 -Original Message- From: S.F. Alim [mai

[PHP-WIN] session_start(): cannot send session

2005-05-07 Thread S.F. Alim
Hi list, Im using the following: Win2k SP4 Apache 1.3.3 PHP 4.3.5 my index.php file has only one line and that is Problem im facing is following: * Warning: session_start(): Cannot send session cookie - headers already sent by (output started at d:\website\address_boo

[PHP-WIN] Re: Browscap.ini

2005-05-07 Thread GKE
Hassan, >From all that I know, 'browscap.ini' is to be placed in "'drive':\windows\system\inetsrv" and referred to as such under the [browscap] caption of the php.ini file. Hope this helps. GKE "Hassan Shaikh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hi All, | | I am gettin