[PHP] How do I get the entire data sended to the web server?
Is it possible with php to print the http header and the attached data for a transmitted http request? How can I do this? an example of what I want to see: POST /cgi-bin/CgiMfc1?MyQuery%3dQData HTTP/1.1 Accept: text/* User-Agent: HttpCall Accept-Language: en-us Host: localhost:680 Content-Length: 98 000629EF2656+vs+%0d%0a143%2e114%2e37%2e22+vs+%0d%0aDEKGKIEG+vs+ %0d%0a000629ef2656+vs+%0d%0a2051586 Thanks Heiko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php pages without .php extension on linux and windows
I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). On Linux I can access the PHP scripts without adding the .php extension. E.g. http:///?para1=TRUE for http:///.php?para1=TRUE But on Windows it doesn't work (page not found - HTTP 404) How do I switch on 'adding .php' on windows? Does it run on windows too? What is responsible for that functionality, Apache/PHP? Which module or directive? My system: SuSE Linux 8.1 - PHP 4.2.2 - Apache/1.3.26 Windows 2000 - PHP 4.2.3 - Apache/1.3.24 Thanks for helping Heiko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php pages without .php extension on linux and windows
I just had to turn on MultiViews in my directory options... Heiko Jeff Harris wrote: On Jul 7, 2003, "Heiko Mundle" claimed that: |I try to use PHP and Apache on both Linux (SuSE 8.1) and Windows (2K). | |On Linux I can access the PHP scripts without adding the .php extension. |E.g. |http:///?para1=TRUE |for |http:///.php?para1=TRUE |But on Windows it doesn't work (page not found - HTTP 404) | |How do I switch on 'adding .php' on windows? Does it run on windows too? |What is responsible for that functionality, Apache/PHP? |Which module or directive? | |My system: |SuSE Linux 8.1 - PHP 4.2.2 - Apache/1.3.26 |Windows 2000 - PHP 4.2.3 - Apache/1.3.24 | |Thanks for helping | |Heiko This might be better done in httpd.conf. See what's going on at http://www.phpbuilder.com/columns/tim19990117.php3 It might be able to do what you're looking for. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] open blocks in one include and close it in another
Hi, is there an workaround to open blocks (e.g after an if condition) in the first include and close this block in another? with the curly brace i get parse errors. I want to do this: startblock.inc: access denied!"; } else { ?> endblock.inc main.php this is the content!"; include ("endblock.inc"); ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] threads in Apache 1.3
I would like to know how many PHP page apache generates in one thread at the same time. For example, two clients share the same thread of the apache web server. they request at the same time a php page. Does apache process them one by one? I use persistant database connections and I wonder, if one connection is always in use by one page or by more? Heiko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to send gzip content
Hi, this question is not about compressing HTML content, but SVG or VRML! i want to compress the entire output with gzip before sending it to the client. I found the function ob_start('ob_gzhandler') but this seems to compress only in special cases. (Actually I don't see if the content is compressed, how can I check this out?) But for my SVG or VRML content the plugins always support compressed files, even if the browser doesn't. Therefore I want to ensure sending compressed content. Then I found the "gzencode -- Create a gzip compressed string" function. I tried to use it like this: SVG or VRML content But now I get this error: Fatal error: Call to undefined function: gzencode() ... What do I need to do to use the Zlib Compression Functions? System: PHP Version 4.2.2 Windows NT 5.0 build 2195 Apache/1.3.24 HTTP_ACCEPT_ENCODING: gzip, deflate -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] get access to define() constants with dynamic names
Hi all, my script knows three different constants define(G_T_USER,"user_profile"); define(G_T_TEAM,"SAFETOUR_team"); define(G_T_CALL,"SAFETOUR_call"); Is it possible to get access to them, if I have the names (USER, TEAM, CALL) in a variable? It must be something like that: aName = "TEAM"; myString = "G_T_$sName"; // myString = "SAFETOUR_team" Any hint to solve this problem would be useful. heiko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] get access to define() constants with dynamic names
Thanks, it works! Scott Houseman wrote: > Hi Heiko > > Try this: > $aName = "TEAM"; > eval( '$myString = G_T_'.$aName.';' ); // evaluates to: $myString = > G_T_TEAM > echo $myString; // Should print out SAFETOUR_team > > I haven't tested this, but it should work. > > Regards > > Scott > > On 10/2/2002 10:47 AM, Heiko Mundle wrote: > >> Hi all, >> >> my script knows three different constants >> >> define(G_T_USER,"user_profile"); >> define(G_T_TEAM,"SAFETOUR_team"); >> define(G_T_CALL,"SAFETOUR_call"); >> >> Is it possible to get access to them, if I have the names (USER, TEAM, >> CALL) in a variable? >> >> It must be something like that: >> >> aName = "TEAM"; >> myString = "G_T_$sName"; // myString = "SAFETOUR_team" >> >> >> Any hint to solve this problem would be useful. >> >> heiko >> >> > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] cutted values after posting multiple select list
Hi i struggling with multiple select lists in HTML forms. The resulting $_REQUEST array cuts some characters from the values. If the value is value="99" i will get "99" after posting... my php file: *** echo "{$_SERVER['REQUEST_URI']} "; echo "First: {$_REQUEST['msel'][0]} "; echo "Count: " . count($_REQUEST['msel']) . ""; $i = 0; foreach ($_REQUEST['msel'] as $v) { echo "$i: $v "; $i++; } ?> erwin admin hm10 hm30 muhe hannes *** The result after selecting all: /PARAMOUNT/multisel2.php?msel%5B%5D=99&msel%5B%5D=9&msel%5B%5D=&msel%5B%5D=999&msel%5B%5D=99&msel%5B%5D=9 First: 99 Count: 6 0: 99 1: 9 2: 3: 999 4: 99 5: 9 MY system: PHP Version 4.2.3 Apache/1.3.26 SuSE Linux 8.1 When I use the same php file on a MS windows apache, it works Regards Heiko -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] cutted values after posting multiple select list
It doesn't work with $_POST and it doesn't work with $_GET... actually I thought there is no difference between the values in $_POST and $_REQUEST Does the example work on your box? Heiko Rick Emery wrote: use $_POST, not $_REQUEST - Original Message ----- From: "Heiko Mundle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, October 25, 2002 10:39 AM Subject: [PHP] cutted values after posting multiple select list Hi i struggling with multiple select lists in HTML forms. The resulting $_REQUEST array cuts some characters from the values. If the value is value="99" i will get "99" after posting... my php file: *** "; echo "First: {$_REQUEST['msel'][0]} "; echo "Count: " . count($_REQUEST['msel']) . ""; $i = 0; foreach ($_REQUEST['msel'] as $v) { echo "$i: $v "; $i++; } ?> erwin admin hm10 hm30 muhe hannes *** The result after selecting all: /PARAMOUNT/multisel2.php?msel%5B%5D=99&msel%5B%5D=9&msel%5B%5D=&msel%5B%5D=999 &msel%5B%5D=99&msel%5B%5D=9 First: 99 Count: 6 0: 99 1: 9 2: 3: 999 4: 99 5: 9 MY system: PHP Version 4.2.3 Apache/1.3.26 SuSE Linux 8.1 When I use the same php file on a MS windows apache, it works Regards Heiko -- 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