Blog de diseño y desarrollo de páginas y aplicaciones web.

18

Barra de progreso PHP

Posted on por

A continuación, os voy a mostrar un código muy tonto pero extremadamente útil.

Cuando necesitéis lanzar un proceso en php de cierta duración, y queráis conocer el avance del mismo, podéis hacer una barra de progreso fácilmente con las siguientes líneas de código.

Evidentemente, el ancho del progreso (en px) habrá que calcularlo de forma dinámica según el número de instrucciones o ciclos de vuestro script, pero en esencia, con esas líneas tan estúpidas todo os será un poquito más fácil.

Además, con ello evitáis el timeout del navegador. Si el proceso es extremadamente largo, podéis poner otro par de líneas salvadoras en la cabecera del script y éste se ejecutará…sí o sí.

Ya os veo a todos pensando en hacer una fantástica newsletter…. Eso, próximamente.

VN:F [1.9.22_1171]
Rating: 3.9/5 (14 votes cast)
VN:F [1.9.22_1171]
Rating: +8 (from 10 votes)
Barra de progreso PHP, 3.9 out of 5 based on 14 ratings

Esta entrada fue publicada en Php y etiquetada , , por DGCmedia. Guarda enlace permanente.

18 comentarios

Stefanguppy

Stefanguppy en dijo:

4] Join the Crypto Revolution with AnubisSwap.xyz!

Are you ready for a trading experience like never before? AnubisSwap.xyz is here to take your crypto journey to the next level! We’re thrilled to introduce the FIRST exchange with Virtual Reality (VR) and Augmented Reality (AR) features, adding a whole new dimension to crypto trading.

Immerse Yourself in VR: Imagine trading in a virtual world, where every movement is synced with your crypto actions. Witness your portfolio growth like never before, surrounded by an engaging VR environment that makes trading an adventure.

Unleash the Power of AR: Augmented Reality overlays provide real-time insights and data right in front of your eyes. Visualize market trends, track assets, and make informed decisions with the power of AR technology.

Join our Telegram community to stay updated and be part of the innovation that’s changing the game. And don’t miss the opportunity to be part of our upcoming Presale on PinkSale – your chance to own a piece of the future!

Are you ready to embrace the future of crypto trading? Join us now and let’s create history together!

#AnubisSwap #CryptoTrading #VR #AR #Innovation

VA:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VA:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Free Music

Free Music en dijo:

I аm truly grɑteful to the holder of this wweb page who
has shared this wonderfսl artiϲle at at this ρlace.

VA:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VA:F [1.9.22_1171]
Rating: 0 (from 0 votes)

home page

home page en dijo:

It’s in fact very difficult in this busy life to listen news on Television, so I
only use web for that purpose, and obtain the latest information.

VA:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VA:F [1.9.22_1171]
Rating: 0 (from 0 votes)

weightlifting shoes

weightlifting shoes en dijo:

Jordan original shoes base price is 25000 and this Jordan shoes in this Blog
being sold for 3000 this is copy of original.
Those are a scam id rather tie them mysleves.

Look into my web site; weightlifting shoes

VA:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VA:F [1.9.22_1171]
Rating: 0 (from 0 votes)

How Dog Feces Is Bad?

How Dog Feces Is Bad? en dijo:

I do not even understand how I ended up here, however I thought this post was
good. I do not realize who you are but certainly you’re going to a well-known blogger when you aren’t
already. Cheers!

VA:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VA:F [1.9.22_1171]
Rating: 0 (from 0 votes)

lap band procedure

lap band procedure en dijo:

Instant entertainment in the flick of a switch; instant
exposire to your maates vvia Facebook or text; instant requirement forr medical fixes rather tthan waiting to find out
if youur body can heal itself of a cold, or virus, without the need for a
visit to the doctor; own it now with credit cards, as opposed to save up and purchase
it if the momey is available. It also increases cell sensitivity to insulin,
shown to help get ridd of fat by raising our muscle metabolism rate.
I decided to write this because many a time have people inquired about is there a worst food
you can eat.

VA:F [1.9.22_1171]
Rating: 0.0/5 (0 votes cast)
VA:F [1.9.22_1171]
Rating: 0 (from 0 votes)

smart contract

smart contract en dijo:

Fantastic website. A lot of helpful info here.
I am sending it to some buddies ans additionally sharing in delicious.
And certainly, thanks for your effort!

VA:F [1.9.22_1171]
Rating: 3.0/5 (2 votes cast)
VA:F [1.9.22_1171]
Rating: +1 (from 1 vote)

ichungcumoi.info

ichungcumoi.info en dijo:

The fact is, this can be a well-known investment vehicle
specifically for the center and upper class. Cabral was very impressed by the beauty of the place and thus will anyone
today. The first property that I bought back
1998 for $69,000 (that I still own today) may be worth $170,000 today.

VA:F [1.9.22_1171]
Rating: 1.0/5 (1 vote cast)
VA:F [1.9.22_1171]
Rating: -1 (from 1 vote)

l

l en dijo:

esto ees lo

VA:F [1.9.22_1171]
Rating: 1.0/5 (1 vote cast)
VA:F [1.9.22_1171]
Rating: 0 (from 0 votes)

l

l en dijo:

l

VA:F [1.9.22_1171]
Rating: 1.0/5 (2 votes cast)
VA:F [1.9.22_1171]
Rating: 0 (from 0 votes)

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *

Contacto

Su nombre*

E-Mail*

Asunto*

Mensaje*

Captcha
Otro Captcha

Captcha*