MilesWilson
-
Posts
3 -
Joined
-
Last visited
Never
Posts posted by MilesWilson
-
-
Hi
Perhaps I'm wrong, but doesn't
[code]
document.write(\"<input type=\"checkbox\"
[/code]
Essentially open the double quotes, and then close them for 'checkbox' and then open them again?
If that is the case, that is where you're problem is. Try using a single quote:
[code]document.write(\"<input type='checkbox'[/code]
and see what happens.
Cheers
M -
Hello!
Can anyone help me with this? I want to be able to count the number of files in an uploaded zip file.
I have this code:
[code]
<?php
$zip = zip_open("images.zip");
/* At this point I would like to echo another peice of javascript, telling the parent how many files there are in the zip */
if ($zip) {
while ($zip_entry = zip_read($zip)) {
if (zip_entry_open($zip, $zip_entry, "r")) {
$buf = zip_entry_read($zip_entry, zip_entry_filesize($zip_entry));
$name = zip_entry_name($zip_entry);
$stream = fopen('images/'.$name, "w");
fwrite($stream, $buf) or die("helllp!");
zip_entry_close($zip_entry);
echo "<script language='javascript'> window.parent.displayImage('".$name."'); </script>";
ob_flush();
flush();
sleep(3);
}
}
zip_close($zip);
}
?>
[/code]
The sleep(3) is there to replace the code I will write shortly, which resizes the image. In the meantime, sleep() means I get a simulation of the time passing.
Thanks in advance.
Miles
Counting the number of files in a Zip file.
in PHP Coding Help
Posted
Thanks
M