Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-22-2009, 06:23 PM   PM User | #1
The_Return
Regular Coder

 
Join Date: Dec 2008
Posts: 116
Thanks: 11
Thanked 4 Times in 4 Posts
The_Return has a little shameless behaviour in the past
Command line script from the browser

I have a aim bot script that sends out notifications to the users in the database the problem is when the user hits submit and it runs the script in his browser it will simply timeout because to the server sees it as loading and loading. So my question how would I run it internally such as if I was doing php -q aim.php and then show the output in the browser
The_Return is offline   Reply With Quote
Old 08-22-2009, 06:31 PM   PM User | #2
barkermn01
Regular Coder

 
Join Date: Nov 2007
Location: Leeds, UK
Posts: 514
Thanks: 24
Thanked 19 Times in 19 Posts
barkermn01 can only hope to improve
PHP Code:
set_time_limit(600);// will set the time out to 10 mins 
__________________
Working towards a Internet where we don't have website just browser applications Kill the Hyper-link and say hello to 3D Games in the browser :)
barkermn01 is offline   Reply With Quote
Old 08-22-2009, 06:34 PM   PM User | #3
The_Return
Regular Coder

 
Join Date: Dec 2008
Posts: 116
Thanks: 11
Thanked 4 Times in 4 Posts
The_Return has a little shameless behaviour in the past
That will help but the user will still see the browser loading instead of showing the output
The_Return is offline   Reply With Quote
Old 08-22-2009, 06:40 PM   PM User | #4
barkermn01
Regular Coder

 
Join Date: Nov 2007
Location: Leeds, UK
Posts: 514
Thanks: 24
Thanked 19 Times in 19 Posts
barkermn01 can only hope to improve
Add this to the top of you file,

ob_implicit_flush(true);
__________________
Working towards a Internet where we don't have website just browser applications Kill the Hyper-link and say hello to 3D Games in the browser :)
barkermn01 is offline   Reply With Quote
Old 08-22-2009, 06:49 PM   PM User | #5
The_Return
Regular Coder

 
Join Date: Dec 2008
Posts: 116
Thanks: 11
Thanked 4 Times in 4 Posts
The_Return has a little shameless behaviour in the past
hmmm Looks like it seems to work thanks
The_Return is offline   Reply With Quote
Old 08-22-2009, 06:57 PM   PM User | #6
barkermn01
Regular Coder

 
Join Date: Nov 2007
Location: Leeds, UK
Posts: 514
Thanks: 24
Thanked 19 Times in 19 Posts
barkermn01 can only hope to improve
Quote:
Originally Posted by The_Return View Post
hmmm Looks like it seems to work thanks
your welcome,
how that works is as php outputs it stores it in an ob so then that just stops it storing and then just output

But can you use the thank this user buttom when some one provides you with info that helps
__________________
Working towards a Internet where we don't have website just browser applications Kill the Hyper-link and say hello to 3D Games in the browser :)
barkermn01 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 09:36 AM.


Advertisement
Log in to turn off these ads.