how can I 'socket_bind' to port 80?
Posted: Sat May 30, 2009 11:27 am
Hello!
I want to bind to port 80 but in order to do this I must run my php script as root. My script runs in cli. If i execute 'sudo php myscript.php' it connects to port 80. What should I do in order not to use sudo?? This script is called from another script by using proc_open. Is there any way to make it run?
Thanks in advance.
I want to bind to port 80 but in order to do this I must run my php script as root. My script runs in cli. If i execute 'sudo php myscript.php' it connects to port 80. What should I do in order not to use sudo?? This script is called from another script by using proc_open. Is there any way to make it run?
Thanks in advance.