Re: [PHP-DB] URL Problem

2004-04-21 Thread C Daniel Chase
Lambert, Patrick wrote: So it sounds like you need to examine the headers of the response (which sounds like it is a redirect)? Try PEAR's HTTP_Request (http://pear.php.net/package/HTTP_Request). This time in PHP using the above: Array ( [response_code] => 302 [response] => HTTP/1.1 302 Fo

Re: [PHP-DB] URL Problem

2004-04-21 Thread C Daniel Chase
Lambert, Patrick wrote: So it sounds like you need to examine the headers of the response (which sounds like it is a redirect)? Try PEAR's HTTP_Request (http://pear.php.net/package/HTTP_Request). More specifically, you need a HEAD request: http://pear.php.net/manual/en/package.http.http.head.php Fo

RE: [PHP-DB] URL Problem

2004-04-21 Thread Lambert, Patrick
[EMAIL PROTECTED] > Subject: RE: [PHP-DB] URL Problem > > Hi there, > > Thanks for the below, but I'll try to explain it a bit better. > > I don't have access to the ASP server, it's a general server setup for > companies, to query their server you must us

RE: [PHP-DB] URL Problem

2004-04-21 Thread Chris Payne
Hi there, >Just to help clarify, is this what you're saying? If you were to go to the page via a web browser, and put in something like: http://www.someserver.com/somepage.asp?pid=11101 it would get changed (in the browser address bar) to something like http://www.someserver.com/somepath/someo

RE: [PHP-DB] URL Problem

2004-04-21 Thread Mark
--- Chris Payne <[EMAIL PROTECTED]> wrote: > Hi there, > > Thanks for the below, but I'll try to explain it a bit better. > > I don't have access to the ASP server, it's a general server setup > for > companies, to query their server you must use the > ?pid=uniquecompanynumber > as it tracks you

RE: [PHP-DB] URL Problem

2004-04-21 Thread Daniel Clark
Can also open it in read only: $fp = fopen ("/home/rasmus/file.txt", "r"); > Hi there, > > Thanks for the below, but I'll try to explain it a bit better. > > I don't have access to the ASP server, it's a general server setup for > companies, to query their server you must use the ?pid=uniquecompa

RE: [PHP-DB] URL Problem

2004-04-21 Thread Chris Payne
Hi there, Thanks for the below, but I'll try to explain it a bit better. I don't have access to the ASP server, it's a general server setup for companies, to query their server you must use the ?pid=uniquecompanynumber as it tracks your IP to make sure the correct server is connecting. Anyway, w

Re: [PHP-DB] URL Problem

2004-04-21 Thread Viorel Dragomir
and then <% Response.Write( myResult ) %> The myResult is what the php will be printing and the value you can use. Use only one Response.Write in entire .asp Have fun :) - Original Message - From: Chris Payne To: [EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 7:33 PM Su

[PHP-DB] URL Problem

2004-04-21 Thread Chris Payne
Hi there everyone, I have a problem. Basically this is what I need to do: Request behind the scenes (PHP) an ASP Url on a different website with the value pid=1 (Where 1 is an identifying number). Then I need PHP to listen to the response from that request as ASP will then return