so I am having a bit of a problem here with editing my web project. This is my main.php: which is located in /final/public/main.php
<?php
$path = $_SERVER['DOCUMENT_ROOT'];
$path .= "/projects/final/includes/config.php";
include($path);
render("main_display.php");
?>
hello
Config.php looks like this:
<?php
/**
* config.php
* Configures pages.
*/
// display errors, warnings, and notices
ini_set("display_errors", true);
error_reporting(E_ALL);
// requirements
require("functions.php");
// enable sessions
session_start();
?>
function.php is in the same folder as config.php, and I stole render from CS50 pset7. and render works, get an output of this:
hello, this is my blog
This is where I would put my writing
maybe a comments section?
Thats it.
hello
As per main_display.php in /final/templates/main_display.php But if i change main_display.php to something else, like this
<p>
hello, th blog
</p>
<p>
This is where I would put my writing
</p>
<p>
maybe a comments section?
</p>
<p>
Maybe I should have a link to some php that does recursion you
already had?
</p>
the output STAYS THE SAME:
hello, this is my blog
This is where I would put my writing
maybe a comments section?
Thats it.
hello
How is this even possible??? Help me