How to redirect to another page in php. Is there any inbuilt function
available for redirection.
If possible send with example.
Thanks
kishor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To cont
fine.
Script.php
//some validations go here.
$relative_file =
"http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF']).
"/../Dir/".$fileName;
header('Content-type: image/jpeg');
header('Content-Disposition: attachment; filename=' . $relat
Thanks for pointing that out. But still it doesn't solve my problem.
Thanks for a prompt response.
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Divick Kishore wrote:
> > Hi,
> > I am a newbie to php so pls be gentle
Indeed you figured it right. I do have a new line at the top of the
wrote in message
news:[EMAIL PROTECTED]
> On Fri, 24 Sep 2004 16:15:19 +0530, Divick Kishore
> <[EMAIL PROTECTED]> wrote:
> >Another problem is that when the file is downloaded a new
> >line characte
eName);
>
> ?
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Divick Kishore wrote:
> > Indeed you figured it right. I do have a new line at the top of the
> > > newline is not being appended. But the problem of file nam
Sorry what I have is header('Content-Disposition: attachment; filename=' .
$relative_file); And changing that to fileName solved my problem perfectly.
Thanks a lot once again.
Divick Kishore
"Divick Kishore" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTE
6 matches
Mail list logo