Click here to Skip to main content
15,913,941 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
Questionrewriterule for URL with Arguments problem [modified] Pin
random428-Mar-09 21:39
random428-Mar-09 21:39 
AnswerRe: rewriterule for URL with Arguments problem Pin
Marc Firth29-Mar-09 23:41
Marc Firth29-Mar-09 23:41 
AnswerRe: rewriterule for URL with Arguments problem Pin
random430-Mar-09 1:37
random430-Mar-09 1:37 
Questionurl cleaning and search engines Pin
random427-Mar-09 22:55
random427-Mar-09 22:55 
Questionregarding http status code Pin
random426-Mar-09 0:56
random426-Mar-09 0:56 
AnswerRe: regarding http status code Pin
Marc Firth26-Mar-09 2:01
Marc Firth26-Mar-09 2:01 
GeneralRe: regarding http status code Pin
random426-Mar-09 3:59
random426-Mar-09 3:59 
GeneralRe: regarding http status code Pin
Marc Firth26-Mar-09 5:01
Marc Firth26-Mar-09 5:01 
You need to send headers first. I.E :


<?php
session_start();
$pageExists = false; //try changing to true

if ($pageExists == false){
header("HTTP/1.0 404 Not Found");
header("Status: 404 Not Found"); //in case the above doesn't work
flush(); //send headers
} else {
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>Hello World!
</body>
</html>
<?php } ?>



Neonlight
GeneralRe: regarding http status code Pin
random426-Mar-09 22:41
random426-Mar-09 22:41 
GeneralRe: regarding http status code Pin
random427-Mar-09 22:50
random427-Mar-09 22:50 
GeneralRe: regarding http status code Pin
Marc Firth29-Mar-09 23:37
Marc Firth29-Mar-09 23:37 
AnswerRe: regarding http status code Pin
fly90426-Mar-09 2:45
fly90426-Mar-09 2:45 
QuestionA better explanation on pipes, parents, and childs and tips to code Pin
Endomlic22-Mar-09 15:51
Endomlic22-Mar-09 15:51 
QuestionExplain this regex. Pin
jschell22-Mar-09 9:15
jschell22-Mar-09 9:15 
AnswerRe: Explain this regex. Pin
Garth J Lancaster22-Mar-09 11:42
professionalGarth J Lancaster22-Mar-09 11:42 
GeneralRe: Explain this regex. Pin
jschell26-Mar-09 10:23
jschell26-Mar-09 10:23 
AnswerRe: Explain this regex. Pin
JimmyRopes12-May-09 12:28
professionalJimmyRopes12-May-09 12:28 
GeneralRe: Explain this regex. Pin
jschell19-May-09 8:00
jschell19-May-09 8:00 
QuestionPerl and Regular Expressions Pin
BobInNJ21-Mar-09 12:16
BobInNJ21-Mar-09 12:16 
AnswerRe: Perl and Regular Expressions Pin
Garth J Lancaster22-Mar-09 0:11
professionalGarth J Lancaster22-Mar-09 0:11 
AnswerRe: Perl and Regular Expressions Pin
Member 38111902-Sep-09 1:11
Member 38111902-Sep-09 1:11 
Questioncan php make os like java Pin
RAJudev8920-Mar-09 8:14
RAJudev8920-Mar-09 8:14 
AnswerRe: can php make os like java Pin
Mohammad Dayyan20-Mar-09 17:53
Mohammad Dayyan20-Mar-09 17:53 
AnswerRe: can php make os like java Pin
phparray23-Mar-09 3:46
phparray23-Mar-09 3:46 
AnswerRe: can php make os like java Pin
Marc Firth24-Mar-09 23:17
Marc Firth24-Mar-09 23:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.