I am using the following PHP function to recursively delete directories:
class Classname{
//...
public function rmdir($dir) {
if (is_dir($dir)) {
$objects = scandir($dir);
foreach ($objects as $object) {
if ($object != "." && $object != "..") {
chmod("$dir/$object", 0777)...
alright, i have a javascript "application" that allows the user to add new elements, move them around, and create a design. when they are finished, they need to be able to submit their design. i considered maybe json encoding the information i need about the elements and uploading that, i just...
hello all,
i am working on a webpage and i need to be able to take a screenshot of the client's browser window (or at least a portion of it). from my searching i have found that this cannot be done in JavaScript, but that it may be able to be done using Java. i honestly know nothing about Java...
yes, i know that there are a few problems and bug here and there. i am working on those. i mainly am interested in what people think of the idea.
as a side note:
i am aware that this template currently looks really crappy in IE. i am working on it...
i don't know a lot about aspx (therefore, please correct anything wrong that i say), from what i've gathered by searching around, your error seems to mean that your document is empty, usually resulting from some sort of exception being thrown before any output can be made. however, without being...
if you want to cut back on the code in your html document, you could put a lot of that in an external file like this
index.html
<!--[if IE]>
<link rel="stylesheet" href="ie-only.css" />
<![endif]-->
<link rel="stylesheet" href="main.css" />
ie-only.css
@font-face {...
i've done some looking around, and from what i can tell, the best way to do it is to use conditional comments to do the IE part. eg.
<!--[if IE]>
<style type="text/css" media="all">
@font-face {
font-family: Bleeding Cowboys;
font-style: normal;
font-weight: normal;
src...
first, your code there is valid CSS3.
second, what version of IE are you using? as far as i'm aware, older versions of IE do not support custom fonts at all. (although i'm not sure on that).
edit:
woot! 500th post!