Functions...

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Functions...

Post by mikusan »

I have looked in my book and some online resources but i cannot pinpoint the problem, can you not call a function within a function, i do not mean recursion i mean inside a function can i call another function. Even better can you call a function withing a function that has been included previously?
McGruff
DevNet Master
Posts: 2893
Joined: Thu Jan 30, 2003 8:26 pm
Location: Glasgow, Scotland

Post by McGruff »

Bigger fleas have little fleas
Upon their backs to bite 'em
Little fleas have lesser fleas
And so ad infinitum.
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

NICE :)
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

Anyone could add to that :)
no really can you or can you not? Why if not?
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you tried writing a couple of functions to test whether it works or not?

Mac
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

:lol: yea i did that...but my server is really acting funny lately and i am not the admin of it... i have many problems that often don't relate to everyone else, and though i am assured that php.ini was not touched... but amongst these is my inability to call functions withing functions something if i recall correctly i was able to do in java. I can't in php and it's somewhat of a problem, i mean i can live with it but it wold make my life easier ;)
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

You can call a function within another function - if it's not working it could be a symptom of another problem.

Mac
User avatar
mikusan
Forum Contributor
Posts: 247
Joined: Thu May 01, 2003 1:48 pm

Post by mikusan »

/Have you ever encountered this sorta problem... unfortunately the sys admins are unreachable and me i have no rights to even see the files in questions... do you think it couls be a setting in php.ini or is it the apache module that is not working well with php?
Coco
Forum Contributor
Posts: 339
Joined: Sat Sep 07, 2002 5:28 am
Location: Leeds, UK
Contact:

Post by Coco »

have you tried phpinfo()? this pretty much spits out the contents of php.ini
Post Reply