Page 1 of 1

How to execute php script

Posted: Fri Jun 20, 2008 12:45 am
by ulala099
Hi,
I am new in php. I want to execute my server_socket.php (with 755 permission) file in my web server and want this script to run forever. I have cPanel and "parallels power panel" as control panel.

Here my server_socket.php script resides in /home/abc/public_html/server_socket.php

Now how can I do that? Is there any terminal in any of those control panels?

Thank you.

Re: How to execute php script

Posted: Sat Jun 21, 2008 3:37 am
by calcop
You can have it executed by accessing it from the web. http://<your web server>/<script>.php

Re: How to execute php script

Posted: Sat Jun 21, 2008 3:40 am
by Kieran Huggins
some of those panels allow you to add "cron jobs" - they're like scheduled tasks in windows.

As for the running "forever" part - I'm not sure what you're getting at.

Re: How to execute php script

Posted: Sat Jun 21, 2008 3:56 am
by calcop
Kieran Huggins wrote:some of those panels allow you to add "cron jobs" - they're like scheduled tasks in windows.

As for the running "forever" part - I'm not sure what you're getting at.
I'm thinking he made a server script and wants it to continue accepting connections ?

Re: How to execute php script

Posted: Sat Jun 21, 2008 3:58 am
by Kieran Huggins
http://ca3.php.net/set_time_limit

the comments are quite helpful