resources
helpful hints - PHP

JavaScript is a scripting language most often used for client-side web development. The primary use of JavaScript is to write functions that are embedded in HTML pages and interact with the Document Object
Model (DOM) of the page. Some simple examples of this usage are:
- Opening or popping up a new window with programmatic control over the size, position and 'look' of the new window (i.e. whether the menus, toolbars, etc. are visible).
- Validation of web form input values to make sure that they will be accepted before they are submitted to the server.
- Changing images as the mouse cursor moves over them.
Because JavaScript code can run locally in a user's browser (client side as opposed to server side), it can respond to user actions quickly, making an application feel more responsive. Furthermore,
JavaScript code can detect user actions which HTML alone cannot, such as an 'onClick' or 'onmouseover' event.
PHP Alert Box
echo "<script type='text/javascript'>
alert('I am here');
</script>";
Force image to not be Cached
Important if you are using dynamic images (i.e. pulling from database)
<img src="../fabric_images/<?=stripslashes($row[some_image]);?>?<?PHP echo time(); ?>"
The little <?PHP echo time(); ?> does the trick!