Re: [PHP] HTTP Authenticaion Query

2011-02-20 Thread Peter Lind
On 21 February 2011 06:27, Ashim Kapoor wrote: >   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 "Hello {$_SERVER['PHP_

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

Re: [PHP] http request

2010-12-05 Thread Daniel Molina Wegener
On Sunday 05 December 2010, Moses 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 > executed. You

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

2010-10-13 Thread Daniel P. Brown
2010/10/13 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" 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

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, b

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 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, sometimes not, depending

Re: [PHP] HTTP headers and include()

2009-07-12 Thread Zareef Ahmed
On Sun, Jul 12, 2009 at 11:27 PM, James Colannino wrote: > 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 po

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 Fri, Jul 10, 2009 at 12:54 PM, 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.

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 wrote: > James Colannino wrote: > > > > White space can cause this - make sure your code has top and ?> at the very bottom, or the white spac

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 wrote: > > James Colannino wrote: > > > > > > > > White space can cause this - make sure your code has > top and ?> at the very bottom, or the white space may trigger the web > > server to send a he

Re: [PHP] HTTP headers and include()

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

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

Re: [PHP] HTTP headers and include()

2009-07-10 Thread tedd
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 solution wa

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 befor

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

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 been

Re: [PHP] HTTP headers and include()

2009-07-09 Thread Eddie Drapkin
On Fri, Jul 10, 2009 at 1:21 AM, 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

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 a

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 > &

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 B

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

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 c

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, > > > >

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 so

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 a

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 a

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 Inte

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: Arrggg! switch ($status) { case 'RETEMP02': echo "Mobile number is empty."; break; case 'RETEMP03': echo "Message is empty."; break; case 'RETEMP05': echo "Message Id is empty."; b

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

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=0823172&message=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,sorr

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 ""; echo ""

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 H

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.27&r2=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

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.27&r2=1.28 The bugs assocaited with it are: http://bugs.php.net/bug.p

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 suppli

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

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 for

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,

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

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 Nabbl

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

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 = file('.

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 server

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 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 scr

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

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 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
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 wh

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 wro

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
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'); > h

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

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

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 y

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 > better

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 m

Re: [PHP] http scanner

2005-07-04 Thread Rory Browne
Something along the lines of preg_replace("#(http://|www\.)\S+#", "", $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

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 t

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. > > sh

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. >

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 host.

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 o

Re: [PHP] http referer

2005-02-26 Thread John Holmes
Sebastian wrote: 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

Re: [PHP] http referer

2005-02-26 Thread Stan F
- Original Message - From: "Sebastian" <[EMAIL PROTECTED]> To: 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 of the site. > > i know i

Re: [PHP] HTTP Authenticate via PHP

2004-11-30 Thread Jason Wong
On Tuesday 30 November 2004 14:13, Jeffery Fernandez wrote: > Is it possible for me to store the username password credentials within > the php page and pass that across via headers to authenticate the page > for viewing the stats. The main purpose is to make the webstats > transparent to the admi

Re: [PHP] HTTP Authenticate via PHP

2004-11-30 Thread Raditha Dissanayake
Jeffery Fernandez wrote: Hi, I am trying to find out if its possible to authenticate a page against an HTTP authentication. Basically what I am trying to do is make available the stats page of the Cpanel to the admin interface of a site. When accessing the stats via the cpanel the user needs to

Re: [PHP] http header script to stimluate upload with drag anddrop??

2004-11-16 Thread Scott Fletcher
:-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] http header script to stimluate upload with drag and drop??

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 13:10 -0500, Scott Fletcher wrote: > Hi! > > I wonder is is it possible to have an http header that would stimluate > files/folders upload via dragging over to the browser window? If so then > what are the sample functions or scripts that make this possible... > > Thank

RE: [PHP] http response

2004-11-13 Thread Josh Howe
That's perfect, thanks Rob. -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Saturday, November 13, 2004 10:48 AM To: Josh Howe Cc: PHP-General Subject: Re: [PHP] http response On Sat, 2004-11-13 at 10:38, Josh Howe wrote: > > Is it possible in p

Re: [PHP] http response

2004-11-13 Thread Robert Cummings
On Sat, 2004-11-13 at 10:38, Josh Howe wrote: > > Is it possible in php to get a hold of the response stream and see what has > been sent already? I have a global php function, but it can't be called > inside html elements, because it creates its own form, and when you > nest html forms things g

Re: [PHP] HTTP AUTH in PHP5

2004-10-27 Thread Christophe Chisogne
Nunners wrote: I'm having some problems with using HTTP Auth in PHP5 IIRC, php 5.0 had a bug related to HTTP auth, corrected in php 5.0.1: [1] "Fixed bug #29132 [http://bugs.php.net/29132] ($_SERVER["PHP_AUTH_USER"] isn't defined). (Stefan)" Note, I cant access bugs.php.net right now. If you use P

Re: [PHP] HTTP AUTH in PHP5

2004-10-26 Thread John Nichel
Nunners wrote: I'm having some problems with using HTTP Auth in PHP5 - how do I check whether the old $PHP_AUTH_USER exists? It's part of the $_SERVER super global. $_SERVER['PHP_AUTH_USER'] -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://w

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Nick Wilson
* and then Nick Wilson declared > > * and then Marek Kilimajer declared > > CURLOPT_HTTPHEADER - An array of HTTP header fields to set. ahhh [EMAIL PROTECTED] it! that dont work and niether does this: curl_setopt($ch, CURLOPT_HTTPHEADERS, array("Content-Length: $postL")); im off to be

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Nick Wilson
* and then Marek Kilimajer declared > CURLOPT_HTTPHEADER - An array of HTTP header fields to set. Marek, im sure you dont need to know this, but i think it's funny so maybe you will, i just went to bed, im now sitting here er.. without much on at the PC cos i just realized the same thing! - s

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared Opps! CURLOPT_HTTPHEADER I go play with it now ;-) Sorry, I got it mixed :) But you figured it out. do you know if the lenght includes the args? like this strlen("val=$var&val2=$var2"); This one. Don't forget to urlencode where necessary -

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Marek Kilimajer
Nick Wilson wrote: * and then Marek Kilimajer declared Nick Wilson wrote: * and then Marek Kilimajer declared Opps! CURLOPT_HTTPHEADER I go play with it now ;-) Sorry, I got it mixed :) But you figured it out. do you know if the lenght includes the args? like this strlen("val=$var&val2=$v

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Nick Wilson
* and then Marek Kilimajer declared > Nick Wilson wrote: > >* and then Marek Kilimajer declared > > > >>>Opps! > >>> > >>>CURLOPT_HTTPHEADER > >>> > >>>I go play with it now ;-) > >>> > >> > >>Sorry, I got it mixed :) But you figured it out. > > > > > >do you know if the lenght includes the

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Nick Wilson
* and then Marek Kilimajer declared > >Opps! > > > >CURLOPT_HTTPHEADER > > > >I go play with it now ;-) > > > > Sorry, I got it mixed :) But you figured it out. do you know if the lenght includes the args? like this strlen("val=$var&val2=$var2"); or strlen($var . $var2=; ? cheers marek

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Marek Kilimajer
Nick Wilson wrote: * and then Nick Wilson declared * and then Marek Kilimajer declared * How to resolve this? header('Content-Length: ' . strlen($data_you_are_posting)); Ok, im with you Marek but how/where do i put it in my curl function? Not with CURL_POSTFIELDS for sure.. i've been lookin

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Nick Wilson
* and then Nick Wilson declared > > * and then Marek Kilimajer declared > > >* How to resolve this? > > > > header('Content-Length: ' . strlen($data_you_are_posting)); > > Ok, im with you Marek but how/where do i put it in my curl function? > Not with CURL_POSTFIELDS for sure.. i've bee

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Nick Wilson
* and then Marek Kilimajer declared > >* How to resolve this? > > header('Content-Length: ' . strlen($data_you_are_posting)); Ok, im with you Marek but how/where do i put it in my curl function? Not with CURL_POSTFIELDS for sure.. i've been looking through the options in the manual and dont

Re: [PHP] http 411 error with cURL

2004-10-09 Thread Marek Kilimajer
Nick Wilson wrote: hi all, Im getting an http 411 error when trying to post data with php's cURL functions. The spec says ***The message for this error code is "Length Required." The server refuses to accept the request without a defined Content- Length.*** Im confused on 2 points: * Is it the

Re: [PHP] HTTP Authentication in include()

2004-09-04 Thread Chris Shiflett
--- Matt Wondra <[EMAIL PROTECTED]> wrote: > I'm trying to include a file from an HTTP Authenticated server > in PHP. I have a valid username and password. Is there any way > to remotely login and include the file? > > Ex: > > include("https://www.url.com/incl1.php";); When allow_url_fopen is en

Re: [PHP] HTTP Authentication in include()

2004-09-03 Thread Jason Wong
On Friday 03 September 2004 05:27, Matt Wondra wrote: > I'm trying to include a file from an HTTP Authenticated server in PHP. I > have a valid username and password. Is there any way to remotely login and > include the file? > > Ex: > > include("https://www.url.com/incl1.php";); // Trying to inc

Re: [PHP] HTTP POST then Redirect?

2004-08-04 Thread Justin Patrin
On Wed, 04 Aug 2004 17:39:51 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: > > > Justin Patrin wrote: > > On Wed, 04 Aug 2004 16:01:31 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: > > > >>I'm using the code below to post form data to an ASP script. But I need > >>to redirect to a "thank you" page wh

Re: [PHP] HTTP POST then Redirect?

2004-08-04 Thread Jeff Oien
Justin Patrin wrote: On Wed, 04 Aug 2004 16:01:31 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: I'm using the code below to post form data to an ASP script. But I need to redirect to a "thank you" page when it all done or the person filling out the form sees what they're not supposed to see. Any way

Re: [PHP] HTTP POST then Redirect?

2004-08-04 Thread Justin Patrin
On Wed, 04 Aug 2004 16:01:31 -0500, Jeff Oien <[EMAIL PROTECTED]> wrote: > I'm using the code below to post form data to an ASP script. But I need > to redirect to a "thank you" page when it all done or the person filling > out the form sees what they're not supposed to see. Any way I can do > this

Re: [PHP] HTTP Session Recorder?

2004-07-13 Thread Justin Patrin
On Tue, 13 Jul 2004 19:42:19 -0400, John W. Holmes <[EMAIL PROTECTED]> wrote: > Does anyone know of a program that'll "record" the clicks and requests > as I go through a site? Something that'll watch as I click on links, > fill in forms, etc and then be able to perform the same requests > (duplica

Re: [PHP] HTTP RAW DATA

2004-07-01 Thread raditha dissanayake
Alan McDonald wrote: Does anyone know a way of getting the raw data passed back from a server? I want to compare the total raw data sent back from Apache with that sent back from IIS for a particular file. I don;t want any filtering at all and I need to catch it so I can see it all. Thanks Alan

RE: [PHP] http to https

2004-06-18 Thread R'twick Niceorgaw
Hi Ryan, you have an error in your script. Quoting Ryan Schefke <[EMAIL PROTECTED]>: > > header ('Location https://www.tgwedding.com/payment6.php'); > exit; > ?> correct one is https://www.tgwedding.com/payment6.php'); ?> Note the ":" after Location. HTH -R'twick -- This is a signature --

RE: [PHP] http to https

2004-06-18 Thread Ryan Schefke
27;); exit; ?> Which just hangs when I access the page and it doesn't redirect. Typing URL in browser correctly sends me to the secure page though. -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 9:42 PM To: [EMAIL PROTECTED] Subject:

Re: [PHP] http to https

2004-06-17 Thread hitek
try placing an exit(); after your header line. At 04:27 PM 6/17/2004, Ryan Schefke wrote: I'm getting some strange behavior when trying to go from http to an https script. After clicking a form submit button the script will execute the two lines below. It does this and sends it to the correct pag

Re: [PHP] http to https

2004-06-17 Thread Andre Dubuc
quot; and "https" and didn't find anything though > > > -Original Message- > From: Andre Dubuc [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 17, 2004 8:26 PM > To: Ryan Schefke > Subject: Re: [PHP] http to https > > Just a thought - is https

RE: [PHP] http to https

2004-06-17 Thread Ryan Schefke
";); exit;} // $redirect = "https://www.tgwedding.com/payment6.php";; //header ("Location: $redirect"); } = -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2

RE: [PHP] http to https

2004-06-17 Thread Ryan Schefke
ser http is working fine. -Original Message- From: Andre Dubuc [mailto:[EMAIL PROTECTED] Sent: Thursday, June 17, 2004 8:01 PM To: Ryan Schefke; [EMAIL PROTECTED] Subject: Re: [PHP] http to https Hi Ryan, I encountered all sorts of problems attempting to do the same (especially with AO

RE: [PHP] http to https

2004-06-17 Thread Chris W. Parker
Ryan Schefke on Thursday, June 17, 2004 4:28 PM said: [snip] > > > [snip] > > > [snip] > > > > > > What am I doing wrong? you're pressing the return key too much. 0_0 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: htt

Re: [PHP] http to https

2004-06-17 Thread Andre Dubuc
Hi Ryan, I encountered all sorts of problems attempting to do the same (especially with AOL, Yahoo, etc click-throughs). I finally resolved the problem by calling https on the page itself (which is listed then as http) like so at the top (after my session_start(); of course: https://www.your_s

  1   2   3   >