Xu Wei Jie Posted February 26, 2009 Share Posted February 26, 2009 Would you ever use the system function ( http://sg.php.net/system ) extensively to develop PHP applications? Does it have any issues? Link to comment https://forums.phpfreaks.com/topic/147055-solved-system-function/ Share on other sites More sharing options...
rhodesa Posted February 26, 2009 Share Posted February 26, 2009 the problem with running the system() function is that it executes OS Level commands. this then limits your code to a small set of operating systems. is there something specific you are trying to accomplish? Link to comment https://forums.phpfreaks.com/topic/147055-solved-system-function/#findComment-772059 Share on other sites More sharing options...
Xu Wei Jie Posted February 26, 2009 Author Share Posted February 26, 2009 Yes, I am trying to use this function to direct PHP CLI processing outputs to files. But I am sure PHP file manipulating libraries should be able to do the same job but probably more cumbersome and involve more lines of codes. what do you think? Link to comment https://forums.phpfreaks.com/topic/147055-solved-system-function/#findComment-772173 Share on other sites More sharing options...
samshel Posted February 26, 2009 Share Posted February 26, 2009 instead of "outputting" something in PHP CLI files, you can directly write to the file you want using simple file functions. Link to comment https://forums.phpfreaks.com/topic/147055-solved-system-function/#findComment-772196 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.