Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 1st, 2004, 08:36 AM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default header redirection problem

Hi,

I have a somewhat annoying problem using the header function of PHP.
I am trying to redirect the user to a certain page (let's call it done.php) which is not in the same folder as the page which is doing the redirecting (let's call it working.php).
So basically I have the following setup:
/done.php
/temp/working.php

I use the following line to try to redirect:
header('Location: ../done.php);

However even the file does exist I get this back:
Warning: Unknown(/opt/apps/iplanet/webserver/docs/ifran/id.php): failed to open stream: No such file or directory in Unknown on line 0

Warning: (null)(): Failed opening '/opt/apps/iplanet/webserver/docs/ifran/id.php' for inclusion (include_path='.:/usr/local/lib/php') in Unknown on line 0

NOTICE the id.php!!! I have no idea why this is happening and where is it coming from

Any help will be appreciated.
Thanx


 
Old September 1st, 2004, 04:00 PM
richard.york's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts
Default

The error text that you are showing doesn't have anything to do with the call to header() this is error text from failing to *include* a file via the include or include_once constructs.

Regards,
Rich

--
[http://www.smilingsouls.net]
[http://pear.php.net/Mail_IMAP] A PHP/C-Client/PEAR solution for webmail
 
Old September 1st, 2004, 07:58 PM
Registered User
 
Join Date: Sep 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you for your reply.

while I was waiting for a response I kept trying to fix my problem and I have found out that the real problem was the session ID that I was passing in the URL. it wasn't formatted properly so once i fixed that, everything was cool.
Thanx for all the help though
Iggy






Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Redirection Problem rch123 Need help with your homework? 0 June 18th, 2007 11:20 AM
Redirection file problem itsjustme PHP Databases 4 August 7th, 2006 03:47 AM
header problem? hosefo81 PHP How-To 4 June 23rd, 2006 01:06 AM
Header rediect problem .... ajutla Pro PHP 3 October 14th, 2004 09:13 AM
Header redirection problem ronin2307 Beginning PHP 1 September 1st, 2004 04:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.