Solutions
-
ELITE's post in refresh an iframe without a src was marked as the answerSolved this, after the ajax call added
.done(function(data) { var result = data; var iframe = document.getElementById('view'); if(iframe.contentDocument) doc = iframe.contentDocument; else if(iframe.contentWindow) doc = iframe.contentWindow.document; else doc = iframe.document; doc.open(); doc.writeln(result); doc.close(); }) this updates the iframe and refreshes the iframe so it works like js fiddle
-
ELITE's post in unzip a zipped folder into the root was marked as the answerSolved
<?php $path = 'zip.zip'; $zip = new ZipArchive; if ($zip->open($path) === true) { for($i = 0; $i < $zip->numFiles; $i++) { $filename = $zip->getNameIndex($i); $fileinfo = pathinfo($filename); copy("zip://".$path."#".$filename, "".$fileinfo['basename']); } $zip->close(); } ?>
-
Solved
$conn = ftp_connect("**.***.**.***") or die("Could not connect"); ftp_login($conn,"********","********"); if(ftp_nb_put($conn,"www/white.zip","white.zip",FTP_ASCII)) { echo "uploaded"; } else { echo "failed"; } ftp_close($conn); i was missing the www/
-
ELITE's post in Foundation 3 navigation and Fancybox javascript clash was marked as the answeryou have the jquery library included twice i have removed line 306 and it seems to be working for me