hi..

sorry i haven't explained myself well..

this is what i am trying to do

i need to send house numbers and postcodes to script on another
machine(third party).  the script then sends back complete address details
for the house number and postcode.

i have no control on how the third party script works.  after i send the
script the postcode and house number, it shows a page saying "redirecting to
another page", it then redirects to this page and then the address results
are displayed.

the redirection page is necessary - as this is where some extra infomation
is added, before the data gets forwarded to the last page (so i cannot
connect to the last page directly)

what i want to do is set something up so that a user entering his postcode
and house number will not see the redirection page.

i tried to use fopen to open the redirection url, parse the contents,
extract the forwarding url and then fopen again with that url... but this is
really quite slow.

the whole thing takes about 17 secs instead of 2.

i wanted to know how i could just display the last page without showing the
user the redirection page ..

do you have any ideas... i'm all idea-ed out!




----- Original Message -----
From: Justin French <[EMAIL PROTECTED]>
To: DigitalKoala <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, February 20, 2002 2:02 AM
Subject: Re: [PHP] really hopelessly stuck on this problem!


> Not entirely sure what your trying to do, but...
>
> Unless you need to collect information off the user's machine (cookies,
> form input, etc), then user never needs to render that page in order to
> perform a redirect.  You can have a straight php file which has no HTML,
> and prints nothing to the screen.  Since you aren't sending anything,
> you can do a redirect header, and there will be information send to the
> browser (ie, no need to render a page).
>
> <?
> file://middlepage.php
>
> // do stuff
>
> // redirect
> header("Location: http://www.php.net/";);
> exit;
> ?>
>
>
> > (as some extra information is collected)
>
> You need to be a bit clearer here... If you do need to collect
> information (like a cookie), then you have to render the page I believe.
>
>
> Justin French
> ---
> http://indent.com.au
> http://soundpimps.com
>
>
>
>
> DigitalKoala wrote:
> >
> > you still see the redirection "middle page" then ..
> >
> > (as some extra information is collected)
> >
> > Martin Towell <[EMAIL PROTECTED]> wrote in message
> > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > > what about just include'ing it?
> > >
> > > -----Original Message-----
> > > From: DigitalKoala [mailto:[EMAIL PROTECTED]]
> > > Sent: Wednesday, February 20, 2002 11:53 AM
> > > To: [EMAIL PROTECTED]
> > > Subject: [PHP] really hopelessly stuck on this problem!
> > >
> > >
> > > hi folks,
> > >
> > > i've been tearing my hair out over a redirection problem ... but i
can't
> > > seem to find a satisfactory solution.
> > >
> > > i'm sending some variables to a script on an external webpage, the
webpage
> > > sends me the data i need back.. except that this page goes through a
> > > redirect page...
> > >
> > > i want to keep this redirect page hidden from the end user.
> > >
> > > i cannot link directly to the redirect target, as the redirection is
> > > actually retrieving essential data from elsewhere before arriving at
its
> > > destination.
> > >
> > > also i tried using fopen to read the complete html from this fetch,
parse
> > it
> > > and retrieve the data that i want.. but this is so slow.
> > >
> > > is there a way i can just get the results from the final html page and
> > > display that to the user directly?
> > >
> > > i hope i've explained this clearly enough :)
> > >
> > > thanks for your help!!
> > >
> > > dk
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > 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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to