Reputation: 174
I had document addsite.php like below.
<?php
session_start();
if(condition){
///Include this document
include_once('sub_docs/addsite.php');
}
else {
die(header("author"));
exit();
}
?>
And my addsite.php in sub_docs is an combo of both HTML and PHP as below
<!DOCTYPE>
<html>
....
....
<?php
?>
....
....
</html>
Everything is working fine in my local server but when went for production it is just showing the blank page. Not even a single markup tag. It is even entering the conditions and just stopping there. Neither of the die or include_once are working. There is no problem with any sql statements or the php script in between the html. I can't find the mistake. Please help.
Upvotes: 0
Views: 55
Reputation: 1847
Try turning on some error reporting so you can see what's happening:
error_reporting(-1);
ini_set('display_errors', 'On');
Also - make sure your secondary page is a .php file and not an .html, unless of course you have it setup in your .htaccess file to allow .html to run as php.
Upvotes: 3