How to execute php script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ulala099
Forum Newbie
Posts: 9
Joined: Sat Jun 14, 2008 11:19 am

How to execute php script

Post 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.
calcop
Forum Newbie
Posts: 20
Joined: Fri Mar 04, 2005 2:13 pm

Re: How to execute php script

Post by calcop »

You can have it executed by accessing it from the web. http://<your web server>/<script>.php
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: How to execute php script

Post 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.
calcop
Forum Newbie
Posts: 20
Joined: Fri Mar 04, 2005 2:13 pm

Re: How to execute php script

Post 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 ?
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Re: How to execute php script

Post by Kieran Huggins »

http://ca3.php.net/set_time_limit

the comments are quite helpful
Post Reply