Is it possible to use a sub-one second delay on header("refresh:...") using PHP?
P粉009186469
P粉009186469 2024-03-27 15:37:08
0
2
526

I know you can refresh the page immediately in PHP using header("refresh: 0;");

You can also set your own delay, which is 3 seconds, as shown below

header("refresh: 3;");

My question is, is it possible to set the delay to less than one second, a tenth of a second?

header("Refresh: 0.1;");

P粉009186469
P粉009186469

reply all(2)
P粉129168206

header("refresh: 0.9;"); will be refreshed immediately, header("refresh: 1.9;"); will be refreshed after 1 second, and so on. Decimal points are ignored.

P粉567112391

Tried it, it works

For example: header("Refresh: 0.25;"); header("Refresh: 0.1;"); header("Refresh: 0.75;") " ); header("refresh: 0.5;"); Everything seems to work.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template