Questions tagged as 'loop'

2
answers

Download multiple pages with curl at the same address without overwriting

I need to download this page multiple times, it returns a different result each time it is accessed: i="0" while [ $i -lt 10 ]; do curl -O http://httpbin.org/bytes/128 i=$[$i+1] done But every time the curl command is executed, the...
asked by 28.10.2016 / 23:30
1
answer

Return values from Database

I'm getting this error:    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to   allocate 1640 bytes) in C: \ AppServ \ www \ muweb \ class \ Connect.php on line   31 When I run these scripts: index.php <?php...
asked by 31.07.2016 / 18:59
1
answer

Flowchart to code conversion

I'm trying to convert a sizeable flowchart to Arduino code. The flowchart is as follows: Considering your size I would feel more comfortable using the goto command as a flow control. However I have always heard that its use is a...
asked by 18.06.2016 / 10:23
1
answer

How to create thread in loop in C #?

How do I create a thread that executes a function, waits 1 second, and then re-runs in loop until the program quits?     
asked by 08.08.2016 / 22:18
1
answer

How to send messages in time intervals to a batch of emails

How can I get the loop to send every 10 emails or every X seconds? I want to prevent emails from falling on the spam list. And how can I make the code read a .txt file with the emails listed and in future a database? <?PHP require_once(...
asked by 12.01.2016 / 04:31
1
answer

For without the use of key

#include<stdio.h> int main ( void ){ int row; int column; for ( row = 1; row <= 7; row++ ){ for (column = 1; column <= row; column++ ) printf("*"); printf("\n"); } printf("\n"); }...
asked by 15.12.2016 / 01:14
1
answer

Unlink is not working inside loop [closed]

I'm trying for some time to delete images from a folder through an unlink inside a loop , in the case while , however I'm encountering the error:    PHP Warning: unlink (admin / imgsupload / 32acafa5b1bac0d2af522f76627e3212.jpg) [...
asked by 18.10.2015 / 02:04
1
answer

Wordpress Loop coming out unlike!

Good morning, I'm doing the loop using wordpress + bootstrap and at the time of showing the content the loop adds some posts as shown in the following image: Followtheloopcode:<divclass="container"> <div class="row">...
asked by 19.04.2016 / 14:28
1
answer

add to array after loop

I have some loops in my php and I want to get an array like this: Array ( [nome1] => valor [nome2] => valor ) Within a loop I've tried: $array_dos_pagamentos[nome] = $variavelnome; and in another loop $array_dos_pagamentos[...
asked by 13.01.2016 / 19:17
2
answers

How to add +10 integer seconds to date in a loop in PHP

I want the loop to run 10 times, and that every loop the $tempo variable that has the date / em> minute and seconds receive +10 seconds, but in the final result does not appear in fragmented seconds, 59, I want onl...
asked by 31.03.2016 / 02:03