Profile
Achievement
scopefragger's Recent Snippets
- All /
« Prev 1 Next »
Ever wanted to give your cliant an idear on how much disk space they have remaining? The following script will tell your user how much disk space has been used and how much is remaining. In this example $diskspace refers the amount of diskspace you...
1
801
posted 15 years ago by scopefragger
Ever needed to convert rgb to hex on your website, maybe you have a slider that handles rgb but your backend uses hex, this issue can be resolved easily be using the following code. Remember to keep in mind that php and html primarily uses hex colo...
1
839
posted 15 years ago by scopefragger
Ever needed to use to background images in a table or div? It is possible b just using css. Although this is yet to be a standard safari will allow you to apply 2! Css backgrounds, however IE, FIRFOX and retro opera users will only see 1 !
1
877
posted 15 years ago by scopefragger
Ever needed to restrict an images size? Or stop it from growing best the size of your div/table. It’s a horrible feeling when you see your nicely designed site get trashed by a single image because it’s a pixel or two too big! And if it’s a...
1
992
posted 15 years ago by scopefragger
Ever needed to get the page your user is currently viewing? This can be done quickly in php all thanks to $_server.
3
778
posted 15 years ago by scopefragger
Sometimes you just need to mask a script or reject a user from a page this can be done effortlessly using a single line of code. Header location will allow you to redirect a user quickly and without them having any control over the action.
A good...
1
752
posted 15 years ago by scopefragger