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

Why doesn't this work? (SSH2)
This is my script:

Code: <?php
$connection = ssh2_connect('213.251.167.109', 22);

understanding functions and classes
Code: [Select]
class person {
var $name = "Jimmy Goe";

function get_nam

Pagination
Okay here is the page in question: http://blenderteachings.000a.biz/tutorials.hamishhill.php

cookie problem
I hv a website url
In this site main menu functionality based on cookie when user click on parti

Generate PDF
Hi guys,

I would like to know if there is a way to generate pdf when clicking on a link. In f

if else problem, help please
i have this script that i made only i try to also put in a if else for for some reason the script is

DataTable Help Required
Hi all I am creating an app that utilises and MS Access back end and queries it quite a bit at vario

Help! refer to a friend script with captcha code
Hi guys, I am posting on here in desperate need for some help with an ongoing search I have been doi

What makes a script your own?
If someone finds a login script online, and changes some variable names around and some other minor

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

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