Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Running a php script in the background...
Old 08-10-2009, 07:04 PM Running a php script in the background...
Banned

Posts: 7
Trades: 0
Hi,

I have quite a bit of experience in ASP and have just started on PHP.

I have a script that will take a long time to process, let me call it form2.php

Now i post from form1.php to form2.php.

On form1.php I ask the user to enter his email address and tell him that once the process is complete he will be mailed

Now what i need is that when i post from form1.php to form2.php, the browser should show a message that says processing.. mail will be sent to your address.

In the background the script must do what its supposed to do

In form2.php,I have put the message as plain html on top of the page.Below that i have put the php code. I have used flush(), but it doesnt show the html part till the whole script is finished.

Any idea how to accomplish this??

The keyword tool at digitalpoint runs as a background process, perhaps i can do the same??

Thanks
ProMaster is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-10-2009, 07:15 PM Re: Running a php script in the background...
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
the DP tool "runs in the background" because it isnt a PHP script. It is an process that runs on the server and takes input from PHP scripts and outputs to PHP scripts.

PHP only runs when the page is requested and ends when the page is served to the client.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to Running a php script in the background...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25060 seconds with 12 queries