Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP redirect won't work

Status
Not open for further replies.

GKChesterton

Programmer
Aug 17, 2006
278
US
I built some code around redirects:

header( "Location: http://localhost/mainmenu.php" );

and it worked fine on my localhost workstation. But when I uploaded them to the ISP, using of course a new location like

header( "Location: http://www.mydomain.com/mainmenu.php" );

the redirects don't work at all. The rest of the script runs. Any idea why? Is it a php.ini setting? Is there an alternative to header()?

[purple]If we knew what it was we were doing, it would not be called
research [blue]database development[/blue], would it? [tab]-- Albert Einstein[/purple]​
 
I feel I ought to check in, as the founder of this dynamic and even scintillating thread. Well, I changed ISPs. Immediately my MySQL database in .sql format squirted into place. All kinds of controls were available to me and thus many issues were removed. It stands to reason I need to survey the new ISP for security holes; but for now it's just an incredible relief to watch things work.

Concurrently the pressure was very high to produce the site in some form. This thread was started in relation to a security scheme, but I replaced all that with directory permissions set from the ISP control panel. Now things are cruising pretty well ... my other big issue has been session handling, and I must return to that now as I've been using the "get" method to preserve my variables and that clearly won't do.

[purple]If we knew what it was we were doing, it would not be called
research [blue]database development[/blue], would it? [tab]-- Albert Einstein[/purple]​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top