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();}?>

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

Aris, Netweaver BPM, Visual composer and X'app
Dear Experts,

Whats the relationship between the following components: Aris, Netweaver BP

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

preg_replace question
Hello!!

I hope someone can help me with preg_replace.

I load two tables from an extern

Ignore html and bbcode?
I've created a function to limit the amount of text according to the amount of words.

However

db entry based on primary key
My "topics" table contains 10 entires
*--------------*
topicid topic
------

Displaying different page content, depending on the logged in user.
Hi all, I am new to ASP.net (and web development in general), and have a question about how I can di

Map.php
I am a complete beginner to PHP and am looking for some help with a program I am messing around with

Why Are These Functions Causing MASSIVE Memory Problems? Please Help!
Hi,

I have a script with some options.

I use regex to replace patterns in strings, but

fwrite error
Hi All,
Does anyone know what is causing the error in this code?

Code: <?
$error

problem when runing a funciton
I am trying to connect to database using a funciton in a functions.php

<?php
funct

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