cant redeclare FUNCTION name?

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

Locked
mzfp2
Forum Contributor
Posts: 137
Joined: Mon Nov 11, 2002 9:44 am
Location: UK
Contact:

cant redeclare FUNCTION name?

Post by mzfp2 »

Hi

I have a script which has a function named 'write()' .. works perfectly on my local Apache WIN32 machine, but when uploading it to UNIX host server .. when trying to run the script it says the function has been already declared, changing the name of the function solves the problem, but how can i carry on using the name?

M
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Please look here:
viewtopic.php?t=6959

Especially where I refer to include_once() and require_once().

Mac
Locked