tecno40 Posted May 15, 2011 Share Posted May 15, 2011 I'm working on a web hosting service with PHP support, but I don't want users to take advantage of being able to run PHP code on my server, and start messing around with files not on their site. I was wondering if there was a way to turn off everything, but basic PHP functions on certain web pages. I know I could do a find&replace on PHP code when the users upload it, but it is very likely I’ll miss a dangerous function, and my server will come tumbling down. Quote Link to comment https://forums.phpfreaks.com/topic/236443-limit-php-functionality/ Share on other sites More sharing options...
anupamsaha Posted May 15, 2011 Share Posted May 15, 2011 If you have the access to php.ini file, you should be able to do this using disable_functions(). Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/236443-limit-php-functionality/#findComment-1215580 Share on other sites More sharing options...
Zane Posted May 15, 2011 Share Posted May 15, 2011 http://forums.theplanet.com/index.php?showtopic=59910 Quote Link to comment https://forums.phpfreaks.com/topic/236443-limit-php-functionality/#findComment-1215581 Share on other sites More sharing options...
tecno40 Posted May 15, 2011 Author Share Posted May 15, 2011 Thanks, I'll check those out and see if i can get them to work Quote Link to comment https://forums.phpfreaks.com/topic/236443-limit-php-functionality/#findComment-1215585 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.