twatkins Posted July 13, 2007 Share Posted July 13, 2007 Can anyone please tell me why this <? header("location: htttp://www.mysite.com"); ?> will not work my web sever. It works on my test sever just fine. Please help Quote Link to comment Share on other sites More sharing options...
pocobueno1388 Posted July 13, 2007 Share Posted July 13, 2007 What PHP version do you have? This function is only available for PHP 4 and 5. Quote Link to comment Share on other sites More sharing options...
metrostars Posted July 13, 2007 Share Posted July 13, 2007 you've got 3 't's in your http:// should only be 2. that might be it. Quote Link to comment Share on other sites More sharing options...
twatkins Posted July 13, 2007 Author Share Posted July 13, 2007 thanks for quick answers but im using php 5 and the t's were just a typo Quote Link to comment Share on other sites More sharing options...
cybercrypt13 Posted July 13, 2007 Share Posted July 13, 2007 The only time I've seen that function not work is when you accidentally send other html code ahead of it. If you only have a single php file and that is all that is in it then it should work. Also note: Your server must support either php inside an html file and must support php... These are not necessarily default settings on all servers. Good luck, Quote Link to comment Share on other sites More sharing options...
twatkins Posted July 13, 2007 Author Share Posted July 13, 2007 hey thanks alot I did not relize the file i was including before that did have som html thanks alot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.