Results 1 to 10 of 10
Hybrid View
-
7th Nov 2010, 02:24 PM #1You can call me G
assuming that u accept a post field number via the form:
PHP Code:$count = (int)($_POST['number']); //changed the value to integer type casted...
for($i = 0; $i < $count; $i++){
if (@write_file($name, chr(0), 0)) {
clearstatcache();
printf(lang(381), $html_name);
unset($list[$v]);
$time = filemtime($name); while (isset($list[$time])) { $time++; }
$list[$time] = array('name' => $name, "size" => bytesToKbOrMbOrGb(filesize($name)), "date" => $time);
}
}
Gaurav Reviewed by Gaurav on . PHP help! How can I run/execute this in php based on user input? For example I will let a user define the number, then I want this to be executed X times where X is the number he entered. if (@write_file($name, chr(0), 0)) { clearstatcache(); printf(lang(381), $html_name); unset($list); $time = filemtime($name); while (isset($list)) { $time++; } $list = array('name' => $name, "size" => bytesToKbOrMbOrGb(filesize($name)), "date" => $time); } Rating: 5
My Langotiya Yaars (Chaddi buddies): JmZ, humour, Chutad, Esotorisk, l0calhost, Daniel, Mind Freak?, TLK, Amz
-
7th Nov 2010, 02:28 PM #2MemberWebsite's:
CodeSociety.net
-
7th Nov 2010, 02:30 PM #3MemberWebsite's:
CodeSociety.netPoint proven
take a look at this tech
http://php.net/manual/en/control-structures.for.php
-
7th Nov 2010, 02:30 PM #4You can call me G
My Langotiya Yaars (Chaddi buddies): JmZ, humour, Chutad, Esotorisk, l0calhost, Daniel, Mind Freak?, TLK, Amz
-
7th Nov 2010, 02:28 PM #5
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
themaCreator - create posts from...
Version 3.47 released. Open older version (or...