NHosting
02-26-2001, 10:12 AM
Do you know a way to run a php script from a telnet session ? or, better, is there a way to run a php script from the web under the root priviledges ?
Thank you
NHosting.
Thank you
NHosting.
![]() | View Full Version : php under root ? NHosting 02-26-2001, 10:12 AM Do you know a way to run a php script from a telnet session ? or, better, is there a way to run a php script from the web under the root priviledges ? Thank you NHosting. kunal 02-26-2001, 11:07 AM There is, but its not advisable. NHosting 02-26-2001, 11:12 AM any suggest ? i know that it is not advisable but I'm doing some test on my own linux server. I'm doing some install program and i need, for example, to permit to chown a file or chmod some files and so on. I know that i can do that via perl with a cron program (the cron program run under root) but i like php and i prefer to do it via a simple click (in real time). Thank you NHosting Si-WHN 03-02-2001, 10:41 PM compile curl and then execute the script via apache with php compiled as a module. means you can do this: /usr/bin/curl http://www.yourdomain.com/script.php Much safer than running php as a cgi. regards, Simon |