View Single Post
Old 10-05-2007, 09:35 PM   #1 (permalink)
CMellor
The Acquainted
Upcoming Programmer 
 
CMellor's Avatar
 
Join Date: Sep 2007
Location: Leeds, UK
Posts: 141
Thanks: 6
CMellor is on a distinguished road
Default Function Calling

Hey,

Here's a folder structure I have:

configs
- functions.php
- ajax_functions.php

In functions.php I have a function called getUser. I want to use that function in ajax_functions.php, but when I call it, I get the "Function does not exist" message. I used include to include the functions.php file into ajax_functions.php but that gave errors saying it couldn't open such folders as libs/Smarty.class.php.

How can I call getUser in the ajax_functions.php when the function is wrote in functions.php I hope I don't have to have the function in both pages, I was hoping to just have it in the one.

Hope you understand... thanks for the help if any.

- Chris
__________________
Not quite a n00b...
CMellor is offline  
Reply With Quote