Re: eval() or call_user_func() ???



call_user_func only works if you have the function declared in the
script (not a string). eval is really your only option
Bit Byte wrote:
Anyone know of the pros and cons of these two?

I am writing a simplified 'clone' of crontab, to help me run scheduled
tasks - the tasks (scipts) vbeing stored in a database table - I'm not
sure which of these to use, any ideas ? Is one better than the other ?

.



Relevant Pages

  • Re: Function that returns date of file.
    ... string after the date/time when it is used by itself. ... Is that your entire script? ... I make an IF statement that required the 'equals equals'. ... designed database your job will be all that much harder. ...
    (alt.php)
  • Re: How to genericaly search the entire db for any text string in any stored procedure, function, ta
    ... Hmmm... ... This script will quickly generate DML to search all the tables in the ... current database for a given string. ...
    (microsoft.public.sqlserver.connect)
  • Get IP Address and MAC Address via script
    ... I am currently writing a domain migration script to join workstations ... Two of the columns in the database are for IP Address and ... multiple adapters with an IP Address or a single adapter with multiple ...
    (microsoft.public.scripting.vbscript)
  • Re: Help with Date
    ... > Im writing a script that will get the last 7 days of information, ... What database are you using? ... Please reply to the newsgroup. ...
    (microsoft.public.inetserver.asp.general)
  • Re: Decoding the query string array
    ... First off - you ought to becareful writing $_POST data to the database ... I'm new to MySQL but I have written a script that takes my HTML field/box ...
    (comp.lang.php)