[PHP] HTTP Authenticaion Query

2011-02-20 Thread Ashim Kapoor
?php if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm=My Realm'); header('HTTP/1.0 401 Unauthorized'); echo 'Text to send if user hits Cancel button'; exit; } else { echo pHello {$_SERVER['PHP_AUTH_USER']}./p; echo pYou entered

Fwd: [PHP] HTTP Authenticaion Query

2011-02-20 Thread Ashim Kapoor
-- Forwarded message -- From: Ashim Kapoor ashimkap...@gmail.com Date: Mon, Feb 21, 2011 at 12:46 PM Subject: Re: [PHP] HTTP Authenticaion Query To: Peter Lind peter.e.l...@gmail.com You are tired and not thinking straight. HTTP is a stateless thing: 1. you request the page

[PHP] http request

2010-12-05 Thread Moses
Hi Everyone, I would like to know whether there is a http request PHP script. I would like to use in cases where a background script is running for sometime and outputs the results in PHP once the script has been executed. Thanks. musa

Re: [PHP] http request

2010-12-05 Thread Daniel Molina Wegener
On Sunday 05 December 2010, Moses jam...@gmail.com wrote: Hi Everyone, Hello... I would like to know whether there is a http request PHP script. I would like to use in cases where a background script is running for sometime and outputs the results in PHP once the script has been

Re: [PHP] http request

2010-12-05 Thread Shreyas
I am not sure if I understand the question with clarity. What exactly do you mean by a HTTP request script? Since it involves a web server to run the PHP script, the HTTP request and response will be the backbone of the whole transaction. But like I mentioned earlier, I could be seeing the

[PHP] http://www.mytrash.mail.ua spam

2010-10-13 Thread Ashley Sheridan
I know this isn't PHP related, but every day I post to this list I get a message back from mytr...@mail.ua mytr...@mail.ua which is an auto-responder. It is rather annoying, and makes little sense for whoever is using this service to sign up to a mailing list and not make this service aware of

Re: [PHP] http://www.mytrash.mail.ua spam

2010-10-13 Thread Joshua Kehn
I get the same thing but wrote it off as someone's autoresponder. I didn't check the email address. Regards, -Josh Joshua Kehn | josh.k...@gmail.com http://joshuakehn.com On Oct 13, 2010, at 2:52 PM, Ashley Sheridan wrote: I know this isn't PHP related,

Re: [PHP] http://www.mytrash.mail.ua spam

2010-10-13 Thread Daniel P. Brown
2010/10/13 Ashley Sheridan a...@ashleysheridan.co.uk I know this isn't PHP related, but every day I post to this list I get a message back from mytr...@mail.ua mytr...@mail.ua which is an auto-responder. It is rather annoying, and makes little sense for whoever is using this service to

[PHP] http vs https

2010-01-23 Thread Ben Miller
Is there a PHP function that will return whether the request was http or https? I have functions that need to cURL other servers - sometimes over SSL, sometimes not, depending whether the function is called from http://www.mydomain.com/script_that_calls_function.php or

Re: [PHP] http vs https

2010-01-23 Thread Jonathan Tapicer
Hi, isset($_SERVER['HTTPS']) should do it. Regards, Jonathan On Sat, Jan 23, 2010 at 2:11 PM, Ben Miller biprel...@gmail.com wrote: Is there a PHP function that will return whether the request was http or https?  I have functions that need to cURL other servers - sometimes over SSL,

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Lenin
On Fri, Jul 10, 2009 at 12:49 PM, Michael A. Peters mpet...@mac.com wrote: James Colannino wrote: White space can cause this - make sure your code has ?php as the very top and ? at the very bottom, or the white space may trigger the web server to send a header and the white space as data

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Ashley Sheridan
On Sunday 12 July 2009 12:01:12 Lenin wrote: On Fri, Jul 10, 2009 at 12:49 PM, Michael A. Peters mpet...@mac.com wrote: James Colannino wrote: White space can cause this - make sure your code has ?php as the very top and ? at the very bottom, or the white space may trigger the web

Re: [PHP] HTTP headers and include()

2009-07-12 Thread tedd
At 12:09 PM +0100 7/12/09, Ashley Sheridan wrote: On Sunday 12 July 2009 12:01:12 Lenin wrote: On Fri, Jul 10, 2009 at 12:49 PM, Michael A. Peters mpet...@mac.com wrote: James Colannino wrote: White space can cause this - make sure your code has ?php as the very top and ? at the

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Zareef Ahmed
On Fri, Jul 10, 2009 at 12:54 PM, James Colannino ja...@colannino.orgwrote: Eddie Drapkin wrote: HTTP headers are sent and finalized after the first bit of output. I had the same problem before and it turned out to be because I had a close tag ? at the end of a file followed by some

Re: [PHP] HTTP headers and include()

2009-07-12 Thread James Colannino
Zareef Ahmed wrote: You should get a headers already sent output started at kind of error if you have enabled error reporting with display_errors ON. Actually, I did. I just didn't think to mention it in my first post. The thing was that it said it was coming from one of my includes,

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Zareef Ahmed
On Sun, Jul 12, 2009 at 11:27 PM, James Colannino ja...@colannino.orgwrote: Zareef Ahmed wrote: You should get a headers already sent output started at kind of error if you have enabled error reporting with display_errors ON. Actually, I did. I just didn't think to mention it in my

Re: [PHP] HTTP headers and include()

2009-07-10 Thread James Colannino
Eddie Drapkin wrote: HTTP headers are sent and finalized after the first bit of output. I had the same problem before and it turned out to be because I had a close tag ? at the end of a file followed by some whitespace. The solution was to remove the ? from the end of all the files and I

Re: [PHP] HTTP headers and include()

2009-07-10 Thread kranthi
a single line break after the closing ? will not cause this problem. PHP interpreter will neglect a single line break after ? a good debugger like xdebug will be helpful in this case. u can also see the source code of the file to locate the output. any thing before php warning is the output before

Re: [PHP] HTTP headers and include()

2009-07-10 Thread Michael A. Peters
tedd wrote: At 12:24 AM -0700 7/10/09, James Colannino wrote: Eddie Drapkin wrote: HTTP headers are sent and finalized after the first bit of output. I had the same problem before and it turned out to be because I had a close tag ? at the end of a file followed by some whitespace. The

[PHP] HTTP headers and include()

2009-07-09 Thread James Colannino
Hey everyone, I've been hard at work on a new web application, and discovered something that I would never have seen coming. I was noticing that when I called session_start() after a few lines of includes, I was getting complaints because the HTTP headers had already been sent out. Then, after

Re: [PHP] HTTP headers and include()

2009-07-09 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 1:21 AM, James Colanninoja...@colannino.org wrote: Hey everyone, I've been hard at work on a new web application, and discovered something that I would never have seen coming.  I was noticing that when I called session_start() after a few lines of includes, I was

Re: [PHP] HTTP headers and include()

2009-07-09 Thread Michael A. Peters
James Colannino wrote: Hey everyone, I've been hard at work on a new web application, and discovered something that I would never have seen coming. I was noticing that when I called session_start() after a few lines of includes, I was getting complaints because the HTTP headers had already

[PHP] HTTP range headers [WAS: How to count transfered kBytes in File-Download]

2009-01-04 Thread Michelle Konzack
Am 2009-01-04 09:23:46, schrieb Ashley Sheridan: On Sat, 2009-01-03 at 23:41 -0800, mike wrote: I actually use $_SERVER['HTTP_CONTENT_RANGE'] in my setup (nginx + php-fpm) - I don't think I get an 'HTTP_RANGE' ... I'm still a little confused on this though. How would a browser send this to

[PHP] HTTP Error 500 - IsapiModule

2008-12-19 Thread Gary Maddock-Greene
Hi, Don't know if this is the right group but I am having real problems trying to connect to my MySQL db with php. I am trying to create a search form. I can connect and display in my browser a simple call to a db record but when I try to execute my search script I get a 500 Internal Server

[PHP] HTTP Authentication

2008-11-19 Thread Thiago H. Pojda
Guys, I have to access a WS that uses HTTP auth directly with PHP. I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it working. I believe it has something to do with the password containing a # (can't change it) and the browser thinks it's an achor or something. All

Re: [PHP] HTTP Authentication

2008-11-19 Thread Craige Leeder
Thiago H. Pojda wrote: Guys, I have to access a WS that uses HTTP auth directly with PHP. I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it working. I believe it has something to do with the password containing a # (can't change it) and the browser thinks it's an

Re: [PHP] HTTP Authentication

2008-11-19 Thread Thiago H. Pojda
On Wed, Nov 19, 2008 at 11:34 AM, Craige Leeder [EMAIL PROTECTED] wrote: Thiago H. Pojda wrote: Guys, I have to access a WS that uses HTTP auth directly with PHP. I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it working. I believe it has something to do

RE: [PHP] HTTP Authentication

2008-11-19 Thread Boyd, Todd M.
-Original Message- From: Craige Leeder [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 8:35 AM To: Thiago H. Pojda Cc: PHP-General List Subject: Re: [PHP] HTTP Authentication Thiago H. Pojda wrote: Guys, I have to access a WS that uses HTTP auth directly

Re: [PHP] HTTP Authentication

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda [EMAIL PROTECTED] wrote: Guys, I have to access a WS that uses HTTP auth directly with PHP. I've tried using the usual http://user:[EMAIL PROTECTED]/ but I couldn't get it working. I believe it has something to do with the password

Re: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Thiago H. Pojda
On Wed, Nov 19, 2008 at 12:15 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda [EMAIL PROTECTED] wrote: Guys, I have to access a WS that uses HTTP auth directly with PHP. I've tried using the usual http://user:[EMAIL PROTECTED]/ but I

RE: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Boyd, Todd M.
-Original Message- From: Thiago H. Pojda [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 11:47 AM To: Andrew Ballard Cc: PHP-General List Subject: Re: [PHP] HTTP Authentication [ SOLVED ] On Wed, Nov 19, 2008 at 12:15 PM, Andrew Ballard [EMAIL PROTECTED] wrote

Re: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Thiago H. Pojda
On Wed, Nov 19, 2008 at 2:49 PM, Boyd, Todd M. [EMAIL PROTECTED] wrote: -Original Message- From: Thiago H. Pojda [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 19, 2008 11:47 AM To: Andrew Ballard Cc: PHP-General List Subject: Re: [PHP] HTTP Authentication [ SOLVED

Re: [PHP] HTTP Authentication [ SOLVED ]

2008-11-19 Thread Andrew Ballard
On Wed, Nov 19, 2008 at 12:47 PM, Thiago H. Pojda [EMAIL PROTECTED] wrote: On Wed, Nov 19, 2008 at 12:15 PM, Andrew Ballard [EMAIL PROTECTED] wrote: On Wed, Nov 19, 2008 at 9:26 AM, Thiago H. Pojda [EMAIL PROTECTED] wrote: Guys, I have to access a WS that uses HTTP auth directly with

[PHP] HTTP PUT for file uploads

2008-08-01 Thread mike
It appears that PHP can support the PUT method using php://stdin and appropriately configuring the webserver to accept it. My company needs a file upload solution that will support large file uploads (2GB limit is optional - if we have to tell them less than 2GB that's fine) that will keep

Re: [PHP] HTTP PUT for file uploads

2008-08-01 Thread Micah Gersten
Is this a repetitive thing your clients will do many times? I recently created a backup solution using ssh keys and the pecl ssh extension to automate backups. Then a cronjob sorts the files on the server. It's a lot more secure than allowing PUTs. Thank you, Micah Gersten onShore Networks

Re: [PHP] HTTP PUT for file uploads

2008-08-01 Thread mike
On 8/1/08, Micah Gersten [EMAIL PROTECTED] wrote: Is this a repetitive thing your clients will do many times? I recently created a backup solution using ssh keys and the pecl ssh extension to automate backups. Then a cronjob sorts the files on the server. It's a lot more secure than

[PHP] http response 200

2008-06-20 Thread joaquinbordado
'm a total newbie..i just want to know how can i display an http response 200 with this message message successfully sent ...here is my code ?php if ($status == RETEMP02) echo Mobile number is empty.; elseif ($status == RETEMP03) echo Message is empty.; elseif ($status == RETEMP05) echo Message

Re: [PHP] http response 200

2008-06-20 Thread Iv Ray
joaquinbordado wrote: 'm a total newbie..i just want to know how can i display an http response 200 Don't have time to customize it for you, but that's how it can be done- header(HTTP/1.0 404 Not Found); /* * * I copied the DOCTYPE from what Apache 1.3.34 returns. * */ echo !DOCTYPE HTML

Re: [PHP] http response 200

2008-06-20 Thread Iv Ray
ryan gacusana wrote: here is my code when accessing this url http://localhost/podcast/podcast.php?mobile=0823172message=2343443=%3Eryan This runs on your computer, I can't access it. else echo Message has been sent successfully.; // in this part i want to respond with a status of 200,sorry

Re: [PHP] http response 200

2008-06-20 Thread Daniel Brown
On Fri, Jun 20, 2008 at 5:35 AM, joaquinbordado [EMAIL PROTECTED] wrote: 'm a total newbie..i just want to know how can i display an http response 200 with this message message successfully sent ...here is my code HTTP code 200 just means OK. Any successful location and serving of a web

Re: [PHP] http response 200

2008-06-20 Thread tedd
At 3:57 PM -0400 6/20/08, Daniel Brown wrote: My preference here would be: ?php if ($status == RETEMP02) { echo Mobile number is empty.; } elseif ($status == RETEMP03) { echo Message is empty.; } elseif ($status == RETEMP05) { echo Message Id is empty.; } elseif ($status ==

[PHP] HTTP Server Written entirely in PHP ?

2008-04-18 Thread Kinch Zhang
Hi, everyone: I was wondering if there was any HTTP server written entirely in PHP with the following features: 1. HTTP/1.1 compliance 2. Apache mod_rewrite-like URL rewrite support 3. Native PHP support ( not through CGI/FastCGI ) 4. Support PHP 4.2.0 or above Nanoweb is an

RE: [PHP] HTTP Server Written entirely in PHP ?

2008-04-18 Thread Hans Zaunere
I was wondering if there was any HTTP server written entirely in PHP with the following features: 1. HTTP/1.1 compliance 2. Apache mod_rewrite-like URL rewrite support 3. Native PHP support ( not through CGI/FastCGI ) 4. Support PHP 4.2.0 or above Nanoweb is an HTTP

[PHP] http://go-pear.org?

2007-10-04 Thread Steve Brown
I'm trying to install Pear on OSX, but http://go-pear.org/ doesn't seem to be resolving. Pear manual states I should: curl http://go-pear.org/ | php but this fails and dig go-pear.org reveals that the name does not resolve. Is there a package somewehre I can download and install? -- PHP

Re: [PHP] HTTP methods, Web Browsers and REST

2007-08-14 Thread Chris
Looking over PHP i can see a web service client could be written for a RESTful web service using the curl extension (and perhaps others as well) because it facilitates an ability to invoke the HTTP PUT and DELETE methods. Now, coming to my question.. Looking at the W3C page on the XHTML 1.0

Re: [PHP] HTTP methods, Web Browsers and REST

2007-08-14 Thread Nathan Nobbe
Chris, thanks for your reply it sounds like apache does allow the use of a script to handle PUT requests In fact, Apache handles PUT exactly like it handles the POST method. That is, it supports it, but in order for it to do anything useful you need to supply a suitable CGI program. getting

[PHP] HTTP 1.1 keep-alive support in ext/soap/php_http.c ? (fwd)

2007-08-14 Thread Brian A. Seklecki
Re-send to php-general@ since soap@ is a ghost town. Per the msg below, still trying to figure out why each client call to any server results in a new TCP socket being built and closed (BAD!) I finally got around to: print Request :\n . $soapClient-__getLastRequestHeaders() . \n; print

Re: [PHP] HTTP methods, Web Browsers and REST

2007-08-14 Thread Chris
Nathan Nobbe wrote: Chris, thanks for your reply it sounds like apache does allow the use of a script to handle PUT requests If you install the module, yes. from the sound of it; PUT and DELETE wont work well when using a browser to interact w/ a server, it seems like they are mostly

Re: [PHP] HTTP 1.1 keep-alive support in ext/soap/php_http.c ? (fwd)

2007-08-14 Thread Brian A. Seklecki
Found it: http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?annotate=1.109 Lines 892-895 and 903-905 bring the violence. Rev 1.28 commented it out: http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?r1=1.27r2=1.28 The bugs assocaited with it are:

Re: [PHP] HTTP methods, Web Browsers and REST

2007-08-14 Thread Nathan Nobbe
im imagining a system using the REST paradigm where a web browser is the client. rather than a REST paradigm simply for web services. -nathan On 8/14/07, Chris [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: Chris, thanks for your reply it sounds like apache does allow the use of a

Re: [PHP] HTTP 1.1 keep-alive support in ext/soap/php_http.c ? (fwd)

2007-08-14 Thread Chris
Brian A. Seklecki wrote: Found it: http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?annotate=1.109 Lines 892-895 and 903-905 bring the violence. Rev 1.28 commented it out: http://cvs.php.net/viewvc.cgi/php-src/ext/soap/php_http.c?r1=1.27r2=1.28 The bugs assocaited with it are:

[PHP] HTTP methods, Web Browsers and REST

2007-08-09 Thread Nathan Nobbe
all, some time ago i read about RESThttp://en.wikipedia.org/wiki/Representational_State_Transfer . at first i thought for web services SOAP is much better for the self describing feature of the WSDL. then, reading through the Zend certification preparation book, there was a section on using POST

[PHP] Http Client in PHP connecting to a Digest authenticated server

2007-02-09 Thread Manish Marathe
Hello, I have seen some implementations of Server in php implementing HTTP Digest Authentication but I have not seen any guidelines on HTTP Client connecting to a specific host, and using the realm, the username and password to get authenticated and thereby do something like download files etc.

Re: [PHP] http request problem

2007-01-03 Thread Richard Lynch
On Tue, January 2, 2007 11:55 pm, Kencana wrote: I got problem in getting file content. the file is located at another server (tomcat) and it is a jsp file. i don't know why i keep getting the same error message file accessing that file but while i am trying to access to another file, from

[PHP] http request problem

2007-01-02 Thread Kencana
hi all, I got problem in getting file content. the file is located at another server (tomcat) and it is a jsp file. i don't know why i keep getting the same error message file accessing that file but while i am trying to access to another file, from another server it run perfect. this is the

Re: [PHP] http request problem

2007-01-02 Thread Kencana
hi all, by the way, the page that i am trying to get, i can open the page without any problem in IE 7 browser. Thanks Regards, Kencana -- View this message in context: http://www.nabble.com/http-request-problem-tf2911952.html#a8136297 Sent from the PHP - General mailing list archive at

Re: [PHP] http request problem

2007-01-02 Thread Curt Zirzow
On 1/2/07, Kencana [EMAIL PROTECTED] wrote: hi all, I got problem in getting file content. the file is located at another server (tomcat) and it is a jsp file. i don't know why i keep getting the same error message file accessing that file but while i am trying to access to another file, from

[PHP] http://sourceforge.net/projects/dfo/

2006-10-27 Thread Gert Cuykens
I wrote my own phpmyadmin from scratch, so far i got this http://sourceforge.net/projects/dfo/ and i was wondering what i needed to change so other people would like it too ? I only have tested it on firefox so for now IE probably doesnt like dfo at all, sorry i will fix it later for IE 7. And i

Re: [PHP] http://sourceforge.net/projects/dfo/

2006-10-27 Thread Gert Cuykens
Ok, What specific documentation do you want i start with ? i was hoping it would just work on every firefox and php 5 mysql 5 server with one small change to the php.ini to disable magic quotes see http://php.net/manual/en/security.magicquotes.disabling.php Using it should be quit simple if not

[PHP] HTTP ERRORS Boolean

2006-06-07 Thread Rodrigo de Oliveira Costa
Guys is there a way that I can call the func file(www.url.com) and get a result true if there is a page and false if the page doesnt exists (error 404)? the thing is I'm trying to retrieve a page but I cant be sure that it exists so I need my script to try to access it and if it cant access it

Re: [PHP] HTTP ERRORS Boolean

2006-06-07 Thread Rabin Vincent
On 6/7/06, Rodrigo de Oliveira Costa [EMAIL PROTECTED] wrote: Guys is there a way that I can call the func file(www.url.com) and get a result true if there is a page and false if the page doesnt exists (error 404)? This would work, but will not specifically check for a 404: $page =

Re: [PHP] HTTP HEADERS

2006-06-03 Thread David Tulloh
kartikay malhotra wrote: Hi all! I use HTTP POST to upload a file. I've a PHP script running on the server. Are HTTP headers passed with this request? How can I see the headers passed to the server? Headers are passed by the client and server with every request. The Firefox Tamper Data

Re: [PHP] HTTP HEADERS

2006-06-03 Thread Joe Wollard
(sorry for the dup kartikay, forgot to hit reply to all;-) So is the file going from server to server or from a client machine to the server? It sounds like server to server - which if that's the case you can use headers_list() to see what your server is going to be sending out to the other

[PHP] HTTP HEADERS

2006-06-02 Thread kartikay malhotra
Hi all! I use HTTP POST to upload a file. I've a PHP script running on the server. Are HTTP headers passed with this request? How can I see the headers passed to the server? Thanks KM

Re: [PHP] HTTP status code

2006-03-31 Thread gustav
No, I'm creating remote service and it's returning codes according to passed parameters. I only wanted to test it using browsers... I do not care about the output actually, but the status code B. It seems to me, that this is more html-related. Maybe the tags in the html-document screws it

[PHP] HTTP status code

2006-03-30 Thread Bronislav Klucka
Hi, I'm using following construction to send http status code -- header('HTTP/1.1 404 Not Found'); header(Status: 404 Not Found); exit; -- MSIE displays Page not found, but FireFox and Opera don't display anything. Just blank page with no text... full headers sent by

Re: [PHP] HTTP status code

2006-03-30 Thread Anthony Ettinger
Are you seeing the IE-specific 404 page? The one that looks like this: http://redvip.homelinux.net/varios/404-ie.jpg On 3/30/06, Bronislav Klucka [EMAIL PROTECTED] wrote: Hi, I'm using following construction to send http status code -- header('HTTP/1.1 404 Not Found');

Re: [PHP] HTTP status code

2006-03-30 Thread Bronislav Klucka
Yes, I do... B. Anthony Ettinger wrote: Are you seeing the IE-specific 404 page? The one that looks like this: http://redvip.homelinux.net/varios/404-ie.jpg On 3/30/06, Bronislav Klucka [EMAIL PROTECTED] wrote: Hi, I'm using following construction to send http status code --

Re: [PHP] HTTP status code

2006-03-30 Thread Anthony Ettinger
Then it's workingFireFox, et. al. show you the server 404, IE on the otherhand has it's own 404 error page (for those newbies who don't know what a 404 is). You can disable it under IE options. On 3/30/06, Bronislav Klucka [EMAIL PROTECTED] wrote: Yes, I do... B. Anthony Ettinger wrote:

Re: [PHP] HTTP status code

2006-03-30 Thread Jasper Bryant-Greene
In other words, if you want Firefox/Opera/etc to display something, you have to output something. Strange, that. :P Jasper Anthony Ettinger wrote: Then it's workingFireFox, et. al. show you the server 404, IE on the otherhand has it's own 404 error page (for those newbies who don't know

Re: [PHP] HTTP status code

2006-03-30 Thread Anthony Ettinger
well, you typically would redirect 404 to something like foo.com/404.html Otherwise, it's whatever your server (apache/IIS) has as the default 404 handler... Default is something like this: Not Found The requested URL /asdf was not found on this server.

Re: [PHP] HTTP status code

2006-03-30 Thread Jasper Bryant-Greene
The default Apache error handler is not called when PHP sends a 404 header. The code that does Apache error handling happens *before* PHP gets in the loop, and checks to see if the script being referenced exists, which it indeed does, whether it sends a 404 header or not. Tested on Apache 2.2

Re: [PHP] HTTP status code

2006-03-30 Thread Bronislav Klucka
No, I'm creating remote service and it's returning codes according to passed parameters. I only wanted to test it using browsers... I do not care about the output actually, but the status code B. Jasper Bryant-Greene wrote: The default Apache error handler is not called when PHP sends a 404

[PHP] http://www.sitepoint.com/forums/showthread.php?t=342801

2006-02-09 Thread Jochem Maas
hi Jason, you made the following claim on sitepoint (I would have reacted there but couldn't be bother to crteate another website account) - which I think is incorrect: QUOTE Nobody has yet brought up the slightly annoying issue that interfaces are actually implmented as abstract classes under

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-26 Thread ben johnson
Oscommerce itself hasn't released a new version for an age. I am guessing their next release will be better. Still ive seen a lot worse... Strange javascript with frames aggh! I think it was a quick knock-up job to see if anyone else would buy their tat. I don't see the google radio they sent me

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-25 Thread tedd
Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com Nice to see :) James It would be nice to see them being w3c compliant, but they aren't. tedd --

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-25 Thread ben johnson
They are using oscommerce specifically. An open source PHP shopping cart. I have also come accross php errrors when accessing googles suggest feature, some strange reaction with greesemonkey. On 1/25/06, tedd [EMAIL PROTECTED] wrote: Looks like google are using PHP and oscommerce for their web

Re: [PHP] Google using PHP @ http://www.google-store.com

2006-01-25 Thread tedd
They are using oscommerce specifically. An open source PHP shopping cart. ben: Not that you said or implied otherwise. soapbox PHP or not, there's no reason I know of for not complying with w3c -- especially if you're high profile like Google. It's clear that they are not concerned with

[PHP] Google using PHP @ http://www.google-store.com

2006-01-24 Thread James Benson
Looks like google are using PHP and oscommerce for their web store: http://www.google-store.com Nice to see :) James - http://www.ciwcertified.com - Master CIW Designer http://www.zend.com - Zend Certified Engineer

[PHP] http curl to https is that a secure connection?

2005-12-19 Thread Mark Steudel
I was curious, if have a page at http and it initiates a curl session to a https, is the information sent secure or open because the the curl session is from a unecrypted page? Mark

Re: [PHP] http curl to https is that a secure connection?

2005-12-19 Thread Curt Zirzow
On Mon, Dec 19, 2005 at 04:01:34PM -0800, Mark Steudel wrote: I was curious, if have a page at http and it initiates a curl session to a https, is the information sent secure or open because the the curl session is from a unecrypted page? The data sent back and forth to the curl session will

[PHP] HTTP User Authentication Problems

2005-12-06 Thread Rahul S. Johari
Ave, I¹m trying to run this very simple HTTP user authentication script: ?php if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm=Private'); header('HTTP/1.0 401 Unauthorized'); echo 'Unauthorized'; exit; } else {

Re: [PHP] HTTP User Authentication Problems

2005-12-06 Thread Steve McGill
Hi Rahul, Try doing a print_r($_SERVER) to see if the variables are being set. If they aren't, take a look at the phpinfo(); - chances are your host is using a CGI binary version of PHP to use together with a security wrapper like suPHP or phpSuExec, which might throw away the variables that

Re: [PHP] HTTP User Authentication Problems

2005-12-06 Thread Rahul S. Johari
Ave, Steve, I did a phpinfo() on my webhost and as it turns out, they are using a CGI binary version, much to my surprise and dismay. Anyhow... Do I have any alternatives for an http authentication kind of authentication ? Thanks, Rahul S. Johari Coordinator, Internet Administration Informed

[PHP] http protocols defining what gets sent between web server and browser

2005-11-23 Thread bruce
hi... this might not be a php question but might still provide interest... I'm working on a project, and need to know if there's anyone who's a guru with Web Server/Client interactions. Basically, I'm trying to get a much better/deeper understanding of the HTTP protocols defining the information

Re: [PHP] http protocols defining what gets sent between web server and browser

2005-11-23 Thread David Tulloh
I find the LiveHTTPHeaders extension for firefox to be very good for this kind of thing. http://livehttpheaders.mozdev.org/ It gives you a realistic (as opposed to theoretical) view of exactly what is being sent between the browser and the server. Networking details that you listed like the

Re: [PHP] http protocols defining what gets sent between web server and browser

2005-11-23 Thread Curt Zirzow
On Wed, Nov 23, 2005 at 04:53:50PM -0800, bruce wrote: hi... this might not be a php question but might still provide interest... I'm working on a project, and need to know if there's anyone who's a guru with Web Server/Client interactions. Basically, I'm trying to get a much

Re: [PHP] http scanner

2005-07-04 Thread Rory Browne
Something along the lines of preg_replace(#(http://|www\.)\S+#, a/a, $line) I´d have put the proper code in, except that I´m still getting used to a spanish keyboard layout - and don´t know the layout too well. Rory On 7/2/05, timothy johnson [EMAIL PROTECTED] wrote: I am still writing a

[PHP] http scanner

2005-07-02 Thread timothy johnson
I am still writing a script for my friend he asked me about being able to scan strings and make any strings that have http links in them, able to be an anchor in a broswer, as I am sure I am not the first to do this, any one have any ideas??? I am on php.net looking thru the functions see lots of

Re: [PHP] http to https session problem

2005-06-11 Thread Richard Lynch
On Thu, June 9, 2005 7:43 am, Joe Harman said: I am having a little problem with users keeping the same session id when they go from http to https... is there a work around for this... I don't appear to have this problem when using openSSL just when the site has it's own certificate. should

Re: [PHP] http to https session problem

2005-06-11 Thread Joe Harman
On 6/11/05, Joe Harman [EMAIL PROTECTED] wrote: On 6/11/05, Richard Lynch [EMAIL PROTECTED] wrote: On Thu, June 9, 2005 7:43 am, Joe Harman said: I am having a little problem with users keeping the same session id when they go from http to https... is there a work around for this... I

[PHP] http to https session problem

2005-06-09 Thread Joe Harman
Hey ladies gents I am having a little problem with users keeping the same session id when they go from http to https... is there a work around for this... I don't appear to have this problem when using openSSL just when the site has it's own certificate. should I store the session id in a

[PHP] HTTP RAW CONETNE question

2005-03-29 Thread
Dear php users, I've been working on a project which needs to get the raw post content from the http request. Unfortunately,I can't get the content with $HTTP_RAW_POST_DATA variable. My php version is 4.2.2. My OS is rh linux9.0. And I've turned the global variable tag. Any hints would be

Re: [PHP] HTTP RAW CONETNE question

2005-03-29 Thread Burhan Khalid
wrote: Dear php users, I've been working on a project which needs to get the raw post content from the http request. Unfortunately,I can't get the content with $HTTP_RAW_POST_DATA variable. My php version is 4.2.2. My OS is rh linux9.0. And I've turned the global variable tag. Any

[PHP] http authentication with safe mode enabled?!

2005-03-20 Thread Roman Stckl-Schmidt
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi to you all. I've been pulling my hair out over this issue and I really hope YOU can help me. A part of the website that I'm having the problems with should be password protected (nothing much, just to have a slight notion of it not being publicly

Re: [PHP] HTTP Include Error

2005-03-01 Thread AdamT
On Mon, 28 Feb 2005 15:35:36 -0700, Suhas [EMAIL PROTECTED] wrote: Hi This issue has been discusses many times before, but no perticular solution found. Things to check when 'including' with http: i) Can the server resolve the host name? Eg - if, from the server, you run 'ping

[PHP] HTTP Include Error

2005-02-28 Thread Suhas
Hi This issue has been discusses many times before, but no perticular solution found. include '/www/.../file.php' = works fine include 'http://google.com/' = works fine include 'http://myserver.com/file.php' = Warning: main(http://myserver.com/file.php): failed to open stream:

Re: [PHP] HTTP Include Error

2005-02-28 Thread Marek Kilimajer
Suhas wrote: Hi This issue has been discusses many times before, but no perticular solution found. include '/www/.../file.php' = works fine include 'http://google.com/' = works fine include 'http://myserver.com/file.php' = Warning: main(http://myserver.com/file.php): failed to

[PHP] http referer

2005-02-26 Thread Sebastian
ok, so i made a file manager and i need to prevent people from linking directly to files that do not come from another part of the site. i know i can use http_referer, but i wonder how fool proof it is, i dont want to spit out errors to a legit user that actually came from a valid page before

Re: [PHP] http referer

2005-02-26 Thread Stan F
- Original Message - From: Sebastian [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Saturday, February 26, 2005 8:31 PM Subject: [PHP] http referer ok, so i made a file manager and i need to prevent people from linking directly to files that do not come from another part

  1   2   3   4   >