set_time_limit() error in Intermediate php version

Status
Not open for further replies.

arhun

New Member
Messages
10
Reaction score
0
Points
0
Sir,

By last week i got error "set_time_limit()" error while running my php script.

I have requested for intermediate php version and got upgraded now.

While i running the script manually on firefox/ie browser i don't have any problem.

But while i running the script via cron jobs the script returns the following the message

ALERT - function within blacklist called: set_time_limit() (attacker 'REMOTE_ADDR not set', file '/home/veeran1/public_html/veera/cprocessmsgs.php', line 38)
X-Powered-By: PHP/5.2.6
Content-type: text/html

<br />
<b>Warning</b>: set_time_limit() has been disabled for security reasons in <b>/home/veeran1/public_html/veera/cprocessmsgs.php</b> on line <b>38</b><br />

I got mail like this for every cron execution.but iam in intermediate php.why did the script not working on cron execution.

Please fix this error... I have punished by this error for last ten days...

So fix it for me...
 
Last edited:

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
Comment out the set_time_limit function by adding // infront of it. It is trying to change change the PHP setting that limits how long a script runs which we don't allow.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
When doing your cron, use php-cron and NOT php for the binary.

-Corey
 
Status
Not open for further replies.
Top