Re: [PHP] Question about SSL/php globals
Thanks for the prompt reply! One more question, do you know how PHP implements this variable? In other words, how does PHP detect whether the connection is SSLed or not? (Specific to apache) Thanks! Wei - Original Message - From: "Philip Olson" <[EMAIL PROTECTED]> To: "Wei Weng" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, January 27, 2003 12:19 PM Subject: Re: [PHP] Question about SSL/php globals > > On Mon, 27 Jan 2003, Wei Weng wrote: > > > Is there any environment/Global variable in PHP that indicates whether the > > server port you connect to is SSL port? > > $_SERVER['HTTPS'] > > Regards, > Philip > > > -- > 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] Question about SSL/php globals
Is there any environment/Global variable in PHP that indicates whether the server port you connect to is SSL port? Thanks! Wei -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HTML Post
How do you do a HTML post in php? Thanks -- Wei Weng Network Software Engineer KenCast Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP internal question.
How does PHP support server push? I was reading PHP4-1.1 source code, and noticed PHP_FUNCTION(header) (main/head.c) calls sapi_add_header_ex (main/SAPI.c) and thus calls sapi_apache_header_handler (sapi/apache/mod_php4.c), and that function puts a : into request_rec.headers_out table. So for a server push: Content-type: multipart/x-mixed-replace;boundary=--ThisRandomBoundary --ThisRandomBoundary Content-type: text/plain First Data --ThisRandomBoundary Content-type: text/plain Second Data --ThisRandomBoundary-- The function is going to put "Content-type: multipart/x-mixed-replace;boundary=--ThisRandomBoundary" into headers_out table. But what about the part below the first --ThisRandomBoundary? How does PHP internal handle/parse it? Thanks a lot (And if I post it to the wrong mailing list, please let me know) -- Wei Weng Network Software Engineer KenCast Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] why isn't this working? (many questions inside)
First, I am running (currently) php 4.0.6 under Redhat 7.2 with kernel 2.4.10 I know you can do the following: to force the user to download a file. However, this wouldn't work if blah.txt is larger than 2G on my machine with php 4.0.6 for Redhat 7.2, because all the file I/O operations are done in 32 bits functions. So here are two solutions i though about: 1) instead of readfile("blah.txt"), do a passthru("cat blah.txt"). Since the basic idea of forcing a download is to pipe the file content to the standard output (which is the browser in this case), i don't understand why passthru("cat blah.txt") wouldn't do the trick. In fact, I can only download about 88Mbs of the whole 4G file I planned to download. 2) recompile the php package with -D_FILE_OFFSET_BITS=64 enabled. However, with the ./configure; make; make install, i can't seem to figure out where to stick the option in. (prefer doing it in one of the configure arguments if possible) Forgive me if I posted this to the wrong mailing list, I had been losing hairs over these puzzled questions. TIA. -- Wei Weng Network Software Engineer KenCast Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] HTTP_HOST or SERVER_ADDR
Which one is more adequate for representing server ip? Thanks -- Wei Weng Network Software Engineer KenCast Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] authentication to https server
hi I have a question here. This is what i want to do: I have a login/password form, in order to make the password going through the network (from client's browse to the server) secure, I need to run https server on the server side. Here is my problem: How do I do the authentication? Originally, without https, I just check the username/password POST from the client's browser with the database, and session_register()/session_start(). But how do I approach this in https? The https/DB are running on the same machine that hosts the login/password form. I understand I could use curl libraries to do post. But what would the url required in curl functions be? Thanks in advance. Wei -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]