PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Friday, January 7, 2022

[FIXED] set_time_limit() has been disabled for security reasons

 January 07, 2022     apache, execution-time, php, wamp     No comments   

Issue

I need to set set_time_limit(0); in my PHP script but I get

Warning: set_time_limit() has been disabled for security reasons

I already tried increasing max_execution_time property in my php.ini with no effect. I'm running WAMP 2.4 with Apache 2.4.4 and PHP 5.4.12.

EDIT: I'm running it on my localhost, not shared hosting


Solution

OK looks like I was just stupid... I had .htaccess file in the root folder and due to that I was running the script not from my localhost but from shared hosting where obviously it failed... after removing the .htaccess it works fine!



Answered By - Michal Artazov
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home
View mobile version

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing