Jump to content

[SOLVED] require_once


canadabeeau

Recommended Posts

Hi,

I am having problems with my PHP code, I have 3 files:

index.php, header.php and functions.php.

 

(Example code below;)

index.php

<?php require_once('header.php');?>

header.php

<?php require_once('functions.php');?>

functions.php

<?php $test="test";?>

 

the rtequire_once in header.php is not working, it is not pulling across any data fro example $test

 

Can anyone help me with this ASAP please :-)

And thankyou in advance

Link to comment
https://forums.phpfreaks.com/topic/181477-solved-require_once/
Share on other sites

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.