You are here: Re: [PHP] Is there a function to c if a php function exists « PHP « IT news, forums, messages
Re: [PHP] Is there a function to c if a php function exists

Posted by The Disguised Jedi on 10/20/68 11:07

The function is called function_exists. Honestly, just look at the
manual dude....


On Tue, 01 Feb 2005 20:33:11 +0000, Ben Edwards (lists)
<lists@videonetwork.org> wrote:
> I have been implementing a system on a different ISP than I normally use
> and have got:-
>
> Fatal error: Call to undefined function: cal_days_in_month()
> in /home/hosted/www.menublackboard.com/public_html/dev/classes/validator.class.php on line 134
>
> I found a reference to this an the web and it seems PHP is not compiled
> with calender support.
>
> "recompile php with the "--enable-calendar" option."
>
> Cant see being able to get the to re-compile PHP so I guess I am going
> to have to disable the feature. I seem to remember a while ago seeing a
> function to test weather a function exists in PHP. That way I can have
> the relevant validation skipped if the function is missing (I will tell
> the client if they get decent hosting it will start working).
>
> So something like
>
> function_exists( cal_days_in_month() )
>
> Anyone know what the function is called.
>
> Ben
> --
> Ben Edwards - Poole, UK, England
> If you have a problem sending me email use this link
> http://www.gurtlush.org.uk/profiles.php?uid=4
> (email address this email is sent from may be defunct)
>
>
>


--
The Disguised Jedi
disguised.jedi@gmail.com

PHP rocks!
"Knowledge is Power. Power Corrupts. Go to school, become evil"

Disclaimer: Any disclaimer attached to this message may be ignored.
This message is Certified Virus Free

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация