Free Web Hosting Forum
(#1 (permalink))
Old
Junior Member
dark7568 is on a distinguished road
 
Posts: 4
Join Date: Dec 2011
Default Get error 404 webhost HELP - 12-26-2011, 05:33 AM

When the user doesn't have cookie, it will automatic direct to login.php.
However, I get the error 404 from 000webhost.
How do I fixed that ?


Code:
<?php
if (!isset($_COOKIE["user"]))
  header("Location:session/login.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-AU">

<head>
... ... ... ...
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Linkis's Avatar
Member
Linkis is on a distinguished road
 
Posts: 95
Join Date: Jan 2011
Default 12-27-2011, 02:57 PM

HI dark7568


I read your problem, the truth I have not programmed much in the php language, this error may be because the version of php on the server is different from the one you used to develop their pages

And also examined whether several browsers have the same problem or is it just with one??, Remember that the use of cookies, can be interpreted differently by the browsers

Discuss your results that you have a good afternoon
Reply With Quote
Reply

Tags
error 404 php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com