RE: [PHP] newbie : how to access functions in seperate files???

2001-09-03 Thread Lukas Smith
> > What do people do with required files? I have a file called config.php > > which contains all my functions. It is 329526 bytes. Should I split this > > up into other files? I don't think so, but what do others think? > > I too am curious about a recommended or best practice. what you want tod

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-03 Thread web-dev
speedboy wrote: > > What do people do with required files? I have a file called config.php > which contains all my functions. It is 329526 bytes. Should I split this > up into other files? I don't think so, but what do others think? I too am curious about a recommended or best practice. I create

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-03 Thread speedboy
What do people do with required files? I have a file called config.php which contains all my functions. It is 329526 bytes. Should I split this up into other files? I don't think so, but what do others think? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-03 Thread Aaron Moore
its functions.php as i've said my include works... because i'm able to echo from it... i just can't access the functions. "Cc Zona" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] (Aaron Moore) wrote: > > > r

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aaron Moore) wrote: > resides in line 6 of test.php where i try to call a function which is in > function.php > > the test.php file : > ___ > require("functions.php"); > function.php file : Umm, so is th

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Aaron Moore
Heres what I have so far. I've put all the fiels into one folder, and i know the paths are correct since they don't give an include error. The error resides in line 6 of test.php where i try to call a function which is in function.php the test.php file : ___ _

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aaron Moore) wrote: > Its obviously not finding it... my question is why the includes don't > work??? Make sure you have error_reporting set to E_ALL and display_errors turned on, then try running the script again. -- CC -- PHP General Mai

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread John Monfort
A few things to consider: 1) double check the include path. 2) if you're not the appropriate file is being included, then user REQUIRE, as that will stop the program. 3) Variable Scope Your function variables may be out of scope. Double check them, or make them global. 4) If y

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Chris Aitken
At 10:15 PM 2/09/2001, Aaron Moore wrote: >Its obviously not finding it... my question is why the includes don't >work??? > >Thanks Are you 100% positive that the get_total() function is defined in your functions.php file ? Check it, make sure there is no typos because this seems synonymous wi

Re: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Aaron Moore
Its obviously not finding it... my question is why the includes don't work??? Thanks Aaron Moore "Don Read" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On 03-Sep-2001 Aaron Moore wrote: > > ok i have this at the top of my page: > > > > include("/www/data

RE: [PHP] newbie : how to access functions in seperate files???

2001-09-02 Thread Don Read
On 03-Sep-2001 Aaron Moore wrote: > ok i have this at the top of my page: > > include("/www/data/vi2/root/layout/functions.php"); > include("/www/data/vi2/root/layout/config.php"); > require("/www/data/vi2/root/layout/init.php"); > > but when I call one of the functions included in functions.php