Search results

  1. kbjradmin

    PHP - unlink() returning true, but not deleting file

    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)...
  2. kbjradmin

    Take a screenshot of a client browser

    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...
  3. kbjradmin

    Just another web template

    http://design.kbjrweb.com well, there you go. what do you guys think?
  4. kbjradmin

    Maybe this will save someone some time . . .

    i'm not quite sure if this is the right place to post this; if not, please just move it (: anyway, i recently decided to change over my http error handling from storing information in a hard-coded file to storing it in a database. i figured this might be helpful to someone else out there, so...
  5. kbjradmin

    Just a basic template

    there isn't much to this, yet, I'm just trying to decide what I want to do with it from here. Suggestions please (: http://kbjrweb.com/template01/
  6. kbjradmin

    Extreme Slowness

    for some reason, since yesterday my site has been having a lot of trouble with some severe slowness. i know it isn't the specific content (eg. script running slow or lots of images) because it is affecting ftp, too. for example, trying to download some files via ftp, it was moving at 23...
  7. kbjradmin

    Cron trouble

    i guess this sort of goes in programming help, if not, please just move it. i am trying to set up a php script to run automatically each day using cron, but i can't seem to get it to work. i have it running the command: cd /home/kbjr/cron && /usr/bin/php -q cleanPackages.php with the time...
  8. kbjradmin

    Web Programming Work

    I am offering up my services of web programming. I will do PHP or JavaScript (including AJAX) or possibly something else, depending on what it is. So, if you need something programmed for your site, go ahead and make an offer. Edit: this is still available to any interested. if you want to see...
  9. kbjradmin

    Internal Server Error

    I was working on my site (http://ajax-builder.kbjrweb.com) when all of a sudden i start getting 500 Internal Server Error. I don't think its anything i did (because its affecting my other sub-domains and cPanel). I really need some help here... thanks in advance.
  10. kbjradmin

    Error 500

    Up until about 5 minutes ago, my site (http://ctec126.kbjrweb.com) worked fine, but now every page on that site won't work; i just get a 500 Internal Server Error. Just before the problem, i was changing the setting on the cPanel Index Manager. now my site is broken. please help and thanks in...
  11. kbjradmin

    Static Variables in Python

    This only works in Python 3.0+ (due to relying on the use of the __new__ class method), but it allows you to use "static" class attributes in python. It can also be used to pass variables to a function by reference, another feature left out of python. If anyone makes improvements on this, please...
  12. kbjradmin

    PHP CSS Parser

    I wrote a PHP class that allows you to use your PHP variables in your CSS. Since I wrote it, I've used it on every site I've made and it's very helpful, so I decided to post it up here so that if anyone else wants to use it they can. Enjoy :)
  13. kbjradmin

    feedback please

    i'm currently working on a design and have most of the "design" parts done. there isn't any content (... at all...) but i would like some feedback on the design. http://design.kbjrweb.com thanks :]
  14. kbjradmin

    C++ ncurses help

    i am teaching myself C++ and as a project to get used to the language i am making a simple dice game using ncurses. i got everything to work up to the point where i tried to put the individual dice in their own windows. there is no error occurring, but the window isn't showing up. please help...
  15. kbjradmin

    HTTP Status Codes

    I've always been annoyed with having to go and get definitions for all of the main HTTP status codes (like 404 and 500) every time I make a website. It's not exactly difficult, but it gets old after a while. So, I decided to make a document that would contain them all for later use. It's just a...
  16. kbjradmin

    C# - Run a command on shutdown

    I am working on writing a program that will start automatically when the system boots, times how long the computer is running, and store that information in a file when the computer is shutdown. I know how to do all of this except the last part. Is there some way to make my program do something...
  17. kbjradmin

    JavaScript - Loading contents from one div to another

    i'm trying to make a page that uses javascript to change the content in the main area of the page. i wrote this function: function changeContent( value ) { var content = document.getElementById("content"); var source = document.getElementById(value); content.innerHTML = (...
  18. kbjradmin

    JavaScript strip tabs function

    ok, so i wrote a function to find all 'pre' tags with the class name 'code' and strip out the first n number of tabs from each line, then put the new text back in the 'pre' tag. function untabCodePres(tabs) { if ( ! tabs ) { var tabs = 5; } var codeBlocks =...
  19. kbjradmin

    CSS Layout Not Fluid

    ok, so i made this layout in css, and from what i can tell, it should be fluid, but its not. i don't understand why the whole page won't expand with the main content. here is the code: index.php <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">...
  20. kbjradmin

    JavaScript Form Validation

    i am working on a site for my web developement class and am having some trouble with validating the contents of a form. the page i'm having trouble on is at http://cs.clark.edu/~jbrum4030/ctec122/final/order.htm (before anyone says anything, no, none of this works in IE, but the instructor...
Top