View Single Post
Old 10-06-2007, 02:12 PM   #2 (permalink)
Karl
The Reckoner
Advanced Programmer Top Contributor 
 
Karl's Avatar
 
Join Date: Sep 2007
Posts: 437
Thanks: 22
Karl is on a distinguished road
Default

It all depends on the project structure. Where are you including functions.php and ajax_functions.php from? For example, consider your full setup was:

my_project
> config
> index.php

If we wanted to include both files inside index.php, we could simply use the following statements:

PHP Code:
require_once('./config/functions.php');
require_once(
'./config/ajax_functions.php'); 
That's all there really is to it. You just need to remember how PHP works, we're including the files in the index.php file, therefor, in reality we're actually pulling the data out of those files and essentially "pasting" it into the index.php file.
Karl is offline  
Reply With Quote