[PHP] Processes under non-UNIX operating system
Hello all, I was disappointed to know that other than UNIX, PHP doesn't support processes, unless I don't have the latest news. For my particular needs, and after investigating many sources, I see that processes are my friend. My needs comprise of the following: 1) being able to listen on a specific port (use of 'sockets' module, available for all OS's) 2) being able to listen to more than one connection on a particular port (sockets) 3) being able to simultaneously serving more than one connection 4) each connection might take some time to finish, so I don't want a bottleneck Based on the above guidelines, this looks much like a HTTP server, but it's not. So, if I wish to create such a framework that would work in UNIX as well as other OS's, what are my options in PHP? (I still can code that in C, but I prefer PHP.) Thanks, Noor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] problem with code (almost fixed)
You'd write something like: $_REQUEST['pac_hot'][0], $_REQUEST['pac_hot'][1] and so on. Noor -Original Message- From: Yan Grossman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 12:07 PM To: [EMAIL PROTECTED] Subject: [PHP] problem with code (almost fixed) Hi, I fixed my code to handle forms using $_REQUEST. Just having problem with the fields with multiple contents... the one you have to call like field[0], field[1],etc... How do I use the brackets inside brackets? my case is this: Thanks. I have fixed everything with $_REQUEST but I am having problem with the multiple fields, like this: $message .= (hotel = . $_REQUEST['pac_hot[0]'] . - . $_REQUEST['pac_hot[1]']. - .$_REQUEST['pac_hot[2]'] . - .$_REQUEST['pac_hot[3]'] . \n); How am I going to use the brackets inside the brackets? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: problem with code (almost fixed)
-Original Message- From: Tularis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: problem with code (almost fixed) first, change this: $_REQUEST['pac_hot[0]'] to: $_REQUEST[$pac_hot[0]] a single quote ( ' ) disallows variable-matching, meaning it won't replace $var by what it should be, it just leaves it as it where a real character it should show. that should work on all your request array stuff hope this helps :) That would not work if register_globals is not turned ON. Actually, if it'd work, it's useless to use $_REQUEST as you already have the variable available in the global space. Noor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Threads/Processes under Windows
Hello all, I wish to use threads or processes under Windows. Is there a known .DLL that I can load and use to do the work in Windows? Any URI for details and information is highly appreciated. I know of PHP's internal Process Control functions, but they don't work outside UNIX. Thanks in advance. Noor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Finding what headers and content were already been sent
Hello, I need to find out, at any point in a PHP script, which headers and what content (HTML or other) have been sent already. I know I can use output buffering, but in my case, this is not going to work. By the way, I know that PHP's phpinfo() function lists headers received and headers sent, but I couldn't find how can I access them in PHP. In addition, how do I know what content has been sent at any point in a script? Thanks in advance for your help. Noor P.S.: Output buffer is not an option, so no solution there. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Finding what headers and content were already been sent
And how do I KNOW which $HTTP_ variables are being set? Also, does $HTTP_ACCEPT_LANGUAGE mean that Accept-Language command has been sent by the browser? In my Windows configuration, using CGI version for example, I don't see also the headers sent by the server... Noor -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: ? 01 2002 00:34 To: Noor Dawod Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Finding what headers and content were already been sent By the way, I know that PHP's phpinfo() function lists headers received and headers sent, but I couldn't find how can I access them in PHP. In addition, how do I know what content has been sent at any point in a script? $HTTP_* has them all. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Finding what headers and content were already been sent
Ok, I understand about the request headers. While searching the archives, I've seen many requests from many people asking similar questions. You even answered some. The thing is that while there's a function to get request headers (getallheaders() or the $HTTP_ vars), there's no function to list the response headers, although you can easily see them in a phpinfo() page. How hard it'll be to do that function? Why no one adds it to PHP already? I mean, phpinfo() already knows of the response headers, why not just write a function so that scripts can have access to them. That of course is better than writing a private header() replacement, and saving headers there for a later access. Noor -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: ? 01 2002 01:13 To: Noor Dawod Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Finding what headers and content were already been sent You can loop through $GLOBALS and check for vars that start with HTTP_, but yes, you typically know which things you are interested in. And no, $HTTP_* are only the request headers. For the Apache module version there is of course also getallheaders() -Rasmus On Sat, 1 Jun 2002, Noor Dawod wrote: And how do I KNOW which $HTTP_ variables are being set? Also, does $HTTP_ACCEPT_LANGUAGE mean that Accept-Language command has been sent by the browser? In my Windows configuration, using CGI version for example, I don't see also the headers sent by the server... Noor -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: ? 01 2002 00:34 To: Noor Dawod Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Finding what headers and content were already been sent By the way, I know that PHP's phpinfo() function lists headers received and headers sent, but I couldn't find how can I access them in PHP. In addition, how do I know what content has been sent at any point in a script? $HTTP_* has them all. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Apache+PHP 4.1.2+mod_ssl segfaults on HTTPS protocol
Hi, I'm contacting you because I'm encountering a bug in recent Apache 1323 and relevant mod_ssl version when compiled with PHP 412 This might be connected directly to PHP (or to MySQL too), but maybe it is I've compiled Apache, mod_ssl and PHP 412 two days ago, and since then the error log is filling with Segmentation faults whenever I try to fetch a page using HTTPS protocol Same page loads well with no segmentation faults if using the HTTP protocol Page uses PHP, but as you can see next, it is not PHP-specific It is worth noting that I'm experiencing the same problem when trying to load server-status for the server too I don't know what's the connection My server's details is: FreeBSD 45-STABLE (2 weeks ago) Apache 1323 mod_ssl-286-1323 PHP 412 MySQL 32339 (used for PHP) If you need further information, please let me know Thanks for the help Noor -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp