Current location: Hot Scripts Forums » Programming Languages » PHP » can PHP running real time process?


can PHP running real time process?

Reply
  #1 (permalink)  
Old 03-03-04, 12:56 AM
kakheng kakheng is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Malaysia
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
can PHP running real time process?

can anyone help me?

is that possible for make PHP programming real time? I mean it is real time processing method that continue load and refresh...?
Reply With Quote
  #2 (permalink)  
Old 03-03-04, 07:55 PM
kakheng kakheng is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Malaysia
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Hey all,
i do think of some solution...can i do continuous refreshing?
Reply With Quote
  #3 (permalink)  
Old 03-04-04, 10:53 AM
jerry's Avatar
jerry jerry is offline
Newbie Coder
 
Join Date: Mar 2004
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Hmm...3 ways of accomplishing this.

Hi..

There are currently 3 ways which I can think of to accomplish this.

Firstly, run your job from the console or a cron job.
Secondly, set your max_execution_time variable set up in your PHP configuration file to hours. This will enable you to execute a very time consuming php app via the web browser in real time.

Thirdly, its semi-realtime. You will need to save the state of the batch processing. For instance, if its web crawling and you have a table of 5000 entries:

call self to do crawl for entry 1, save this state into a database table. In this same output, there must be a meta refresh to call self.

Second call, script checks state table, perform crawl on second entry, save new state, output html page to refresh..and so on.

Hope this helps. You can always consider General Scripting for a job you'd like done.
__________________
<font face="Verdana"><a href="http://www.generalscripting.com">General Scripting</a> Web Development Services</font>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically Running a function in PHP at a specified time or on an event RNorden PHP 2 02-26-04 06:45 AM
Unique PHP affiliate script which pays its affiliates instantly/in real time! kailash General Advertisements 5 02-03-04 03:35 PM
php upload on windows takes too time! phpstarter PHP 1 01-05-04 06:17 AM
how to measure how much a process takes time and how much memory was used??? 7d5 Everything Java 0 11-22-03 08:40 AM
Getting CLIENT time in PHP? tawxic PHP 3 11-05-03 03:04 AM


All times are GMT -5. The time now is 09:12 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.