473,387 Members | 1,529 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

parallel execution

Hi.

I would like to start from a PHP program another PHP program in such a
way that the calling program can continue it's execution (after
started the second program, both must be executed in parallel way).

It's is possible to do this? There is someone that can suggest me how
I can reach my objective?

Thank you from Franco in Gaeta (Italy)
Jul 17 '05 #1
3 3065
I had looked into this a while back and found an article pretty much saying
it's something that php is not currently capable of. However, there was
work in progress to achieve this functionality. Check out this link
http://www.zend.com/zend/week/week97.php
Mike
"Franco Fellico'" <ff******@inwind.it> wrote in message
news:d8**************************@posting.google.c om...
Hi.

I would like to start from a PHP program another PHP program in such a
way that the calling program can continue it's execution (after
started the second program, both must be executed in parallel way).

It's is possible to do this? There is someone that can suggest me how
I can reach my objective?

Thank you from Franco in Gaeta (Italy)

Jul 17 '05 #2
Thank you Mike. I checked the link you suggest me and I read about
threads for PHP in the future. So for now I shoud wait for it.

What I need exactly, is the following:

Start manually a PHP program named flip.php wich will do something,
then sleep for a while and after start another program (flop.php) and
close itself. The flop.php program must do the same work of the
flip.php program and after sleeping for a while must call again the
flip.php program. This process will continue about indefinitely. (I
will put a signal on a database table to stop the work of the two
programs).

I can't loop on the same program because it must run in a host that
kill the programs after they have used 120 second of CPU.

I explained you my needs with more details so if you have some idea to
solve my problem, you can help me. As you have read I am finding a way
to make periodically a work, but I dont like to start it manually; I
discarded also the idea of program wich must start my process using a
cron in a batch file from a host, because I can't put it on a host
wich is alwais connected on Internet.

Again many thanks. Franco.
"Mike" <no*****@noemail.com> wrote in message news:<bn**********@nic.grnet.gr>...
I had looked into this a while back and found an article pretty much saying
it's something that php is not currently capable of. However, there was
work in progress to achieve this functionality. Check out this link
http://www.zend.com/zend/week/week97.php
Mike
"Franco Fellico'" <ff******@inwind.it> wrote in message
news:d8**************************@posting.google.c om...
Hi.

I would like to start from a PHP program another PHP program in such a
way that the calling program can continue it's execution (after
started the second program, both must be executed in parallel way).

It's is possible to do this? There is someone that can suggest me how
I can reach my objective?

Thank you from Franco in Gaeta (Italy)

Jul 17 '05 #3
Carved in mystic runes upon the very living rock, the last words of
Franco Fellico' of comp.lang.php make plain:
I would like to start from a PHP program another PHP program in such a
way that the calling program can continue it's execution (after
started the second program, both must be executed in parallel way).

It's is possible to do this? There is someone that can suggest me how
I can reach my objective?


flip.php:
<?
[do stuff]
header("Location: ./flop.php");
?>

flop.php:
<?
[do stuff]
header("Location: ./flip.php");
?>

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: mmf | last post by:
Hi! I am using Python for CGI scripting. I had the following script: #!/usr/bin/python import sys print 'Content-type: text/html\r\n\r\n' print 'starting...' sys.stdout.flush() x = 999999
6
by: | last post by:
Assume that we have a complex application with many math operations and it is written in an ANSI C++ code and running on a single PC without any problem. Is there an automatic way to execute the...
2
by: Neil Ginsberg | last post by:
I have a SQL 7 db with a union query (view), and I'm getting the error, "The query processor could not start the necessary thread resources for parallel query execution." This union query has been...
2
by: opt_inf_env | last post by:
Hello, On my server users have access to MySQL database (through PHP). What I would like to avoid is parallel execution of commands. I mean, if one user run some sequence of command the sequence...
3
by: paytam | last post by:
Hi all, Is it possible to write parallel programming in C? I mean for example a simple program like I have a clock on a program that show me current time and and at the same time another job like...
14
by: Dave Booker | last post by:
I'm doing some analysis that is readily broken up into many independent pieces, on a multicore machine. I thought it would be best to just queue like 1000 of these pieces in the ThreadPool, and...
43
by: parallelpython | last post by:
Has anybody tried to run parallel python applications? It appears that if your application is computation-bound using 'thread' or 'threading' modules will not get you any speedup. That is because...
5
by: fdu.xiaojf | last post by:
Hi all, I'm interested in Parallel Python and I learned from the website of Parallel Python that it can run on SMP and clusters. But can it run on a our muti-CPU server ? We are running an...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.