help need on ob_start()


Posted on 16th Feb 2014 07:03 pm by admin

Hi

I am a newbie in php, I have a code
Line number On/Off | Expand/Contract <?phpob_start();for($i=1;$i<=10;$i++){ sleep(1); echo $i; ob_flush();}?>
Did you know?Explore Trending and Topic pages for more stories like this.

I am trying to display one number in each second, but the browser showing all the numbers at once. where is the error ? how can I modify this code to show such a way
No comments posted yet

Your Answer:

Login to answer
169 Like 8 Dislike
Previous forums Next forums
Other forums

Random date selection
i want to select random date with time(hour+minutes+sec) where date is specified(10/22/2009) and tim

Downloading file (Headers)
I'm trying to make users download a file, but they must wait 60 seconds before it begins.

But

Help with file_get_html
The following code gives the expected results:

<html>
<head&g

Save cookie to DB
I'm working on a pixel tracking script for an incentive website and I need to use an ASP script to s

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

opening a window with after form submission
I know this this forum has nothing to do with JS, but i'm trying to use it with my php script.
<

start new row of pictures
on my site www.budstreasureauctions.com there is a featured auctions box that users will pay to get

Contents of variable not echoing
Hey guys, hopefully this is an easy one...

In this line, the variables are not echoing out. T

Good Programming and Web Design Books
Hi,

I recived a pm today from a fellow phpfreaker regarding php books, i replied with the fo

highlighting search terms
well, I started this in the regular PHP section, but it no longer fits there. Suffice it to say, I'm

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash