If you are hosted on Bluehost and you're using WordPress, you might have noticed the strange "from" address in the emails WordPress appears to be sending out. (they might look something like something@box123.bluehost.com) There is a very simple fix. The way Bluehost servers are setup, the address "wordpress@{YOURDOMAIN.COM}" needs to actually exist somehow in your […]
Once upon a time, you used to be able to download all images that were on a page using the Firefox Web Developer Toolbar addon. It's been a long time since it worked correctly. You can still download regular images on a page, but any image that is called via CSS (background images, etc.) won't […]
Comments Off on Download all images on a web page
If you have a webpage that has an image on it – and it displays fine in Firefox, Safari, and Chrome – but in IE it's not showing up – or it's showing up with that little icon with the red "x" in it – Check to make sure the image wasn't saved in CMYK […]
When you are working with an online store, sometimes you need to enter a credit card number that will pass the "logic" of how the card number should be structured so that you can test the flow of your site. These card numbers are not valid for purchase, and if validated against a gateway – […]
On a project I was working on recently, I was pulling in some css for iPhone users using PHP with the following code: <php if (strpos($_SERVER['HTTP_USER_AGENT'],"iPhone")) { ?> … CUSTOM CSS FOR IPHONE… <php } ?> This will also work for iPhones and iPod Touch: <php if (strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod')) { ?> … CUSTOM CSS… […]
Comments Off on CSS for iPhone's eyes only (watch out for the cache)
Ran into a bizarre problem today using swfobject. A lot of wasted time, but I'll give you the short story / solution. I'm not sure of what other factors played a role (the fact that the element was in a absolute positioned container, or that the immediate container to the flash element was in a […]
Oh, this one was going to drive me NUTS! I had to use images as buttons in a form. That's easy enough: <input type="image" SRC="blahButton.gif" ALT="blah" name="blah" id="blah" value="blah" /> Which works fine when simply submitting the form when there's ONE button. But on one page I had TWO buttons. The form would submit to […]
I should create a category called "saved my ass"! This script would fall under it. I was asked to create a "look up" tool that would sort of "translate" one piece of text to another. The user would enter in the first piece of text, and then they'd be given the "value". Oh, and this […]
I'm tired of searching for the correct syntax everytime I wan to use this line… if you're doing a simple one line "if" statement, you can use a "ternary conditional operator" – for example: echo $variable == 'value' ? 'print if true' : 'print if false';
(note to self type post) Using "continue" in the middle of a while loop will skip the current iteration and go back to the beginning of the loop (checking the while value again). Using "break" in the middle of a while loop will break the loop entirely. (no more looping) So this code <?php $i […]
Comments Off on Continue vs. Break (in while loops)