Jump to content

require_once not working


canadabeeau

Recommended Posts

This is the index.php

<?php
$require_once = "http://".$_SERVER['HTTP_HOST']."/_inc/php/content.php";
require_once($require_once);
?>

 

Content.php

<?php
$require_once = "http://".$_SERVER['HTTP_HOST']."/_inc/php/functions.php";
require_once($require_once);
echo uri();
?>

 

then the functions.php

<?php function uri(){ $test = "AAA"; return $test ;}?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.