The Revolutionary Web

My dev notes about the web

PHP: Session Save Path Error

Error: Cannot start without errors, please check errors given in your and/or webserver log file and configure your installation properly.

This error has something to do with the directory where your sessions are saved. Check the value of . in your and make sure that the directory has a write permission or if it exists. If you are running on , typically on install time, the default setting for this is under C:\Documents and Settings\[user]\Local Settings\\\. In some weird cases, deletes this directory. So if you get the error message above, make sure that this directory still exist. If not, you can simply create the directory or better yet, change your . setting to a directory out of .

JavaScript: How To Force Page To Reload

When you want to load a page on a , you would normally click the / button or press F5 or CTRL-R on your keyboard. If you set your to cache previously viewed pages, doing a normal page will cause the to fetch the requested page from cache unless otherwise instructed by a script or meta tag in the page. When this happens, images and css will be read from cache and form fields will also retain their values (this included text, textarea, radio button and checkbox).

In order to completely force a page to , which means, instructing the to skip the cached data and re-fetch everything from the server, you need to press CTRL-F5 on IE and Firefox or Command-R on Mac-Safari.

In , there are also different ways to a page. Here are the methods for a normal page :

window.location.assign(url);
Loads the page at the the provided URL.

window.location.replace(url);
Same as assign() method except that when replace() is used, the current page will not be saved in the history as it was replaced by the provided URL.

document.location = url;
Technically, location is a read-only property of the document. But some browsers allow you to assign a URL to it, which causes the page to . The reason for this is because whenever the location property is modified, a page will with the new assigned URL. I recommend using window.location for compatibility.

window.location.href = url;
Same as document.location

The other properties of location that when modified will the page are hash, host, hostname, pathname, port, protocol and search.

What if you want to completely force a page to ? Say, you want to clear all entered values in a form or maybe you have modified your CSS and you want to make sure that the page will pickup the new changes. In order to do so, you can do the following:

window.location.(true);

The method accepts a boolean value, which, when it is true, causes the page to always fetch document from the server. When none is specified, it defaults to false, which may the page from its cache.

As you can see, the methods for forcing a page to has their own purposes. If you simply want to the page and do not care about displaying fresh data, you should not always force it to from the server to avoid making http requests, which is an expensive call and a waste of bandwidth. You are not only calling the page itself but you maybe reloading an external CSS page too.

Web Acronyms

I want to blog some basic stuff for at least a month. How about I start with listing some of the acronyms commonly use on the web. You probably already heard all of them, but do you know what they stand for? Here they are:

ASCII - American Standard Code for Information Interchange
AJAX - Asynchronous
ASP - Active Server Pages
CGI - Common Gateway Interface
CF - Cold Fusion
CFM - Cold Fusion
CFML - Cold Fusion
CSS - Cascading Style Sheet
DB - Database
DHTML - Dynamic Hypertext Markup Language
DMX - Dreamweaver MX
DOM - Document Object Model
DTD - Document Type Definition
DW - Dreamweaver
FF - Firefox
FE - Front-end
FEE - Front-end Engineer
FH - Freehand
FL - Flash
FP - Fireworks
FTP - File Transfer Protocol
FW - Fireworks
GIF - Graphic interchange Format
GUI - Graphical User Interface
HDML - Handheld Device Markup Language
HTML - Hypertext Markup Language
HTTP - Hypertext Transfer Protocol
HTTPS - Secure Hypertext Transfer Protocol
IDE - Integrated Development/Design Environment
IE - Internet Explorer
IP - Internet Protocol
IRI - Internationalized Resource Identifier
JPG/JPEG - Joint Photographic Experts Group
JS -
JSP - JavaServer Pages
LAMP - Linux, Apache, MySQL, /Perl/Python
MIME - Multipurpose Internet Mail Extensions
MM - Macromedia
MOZ - Mozilla
MSIE - Microsoft Internet Explorer
NN - Netscape Navigator
PERL - Practical Extraction/Expansion and Report Language
- Hypertext Preprocessor
PNG - Portable Network Graphics
POP - Post Office Protocol
PS - Photoshop
RDF - Resource Description Framework
REST - Representational State Transfer
RPC - Remote Procedure Call
RS - Recordset
RTSP - Realtime Streaming Protocol
SB - Server Behavior
SGML - Standard Generalized Markup Language
SMIL - Synchronized Multimedia Integration Language
SMTP - Simple Mail Transfer Protocol
SOAP - Simple Object Access Protocol
SQL - Structured Query Language
SRGS - Speech Recognition Grammar Specification
SSI - Server Side Includes
SSML - Speech Synthesis Markup Language
SSL - Secure Sockets Layer
SVG - Scalable Vector Graphics
TCP/IP - Transmission Control Protocol over Internet Protocol
TLS - Transport Layer Security
UCS - Universal Character Set
UI - User Interface
URI - Uniform Resource Identifier
URL - Uniform Resource Locator
UTF - Unicode Transformation Format
W3C - World Wide Web Consortium
WAI - Web Accessibility Initiative
WASP - , Apache, SQL,
WML - Wireless Markup Language
WSDL - Web Services Description Language
WWW - World Wide Web
WYSIWYG - What You See Is What You Get
XHTML - Extensible HyperText Markup Language
XML - Extensible Markup Language
XPATH - XML Path Language
XRI - Extensible Resource Identifier
XSL - Extensible Stylesheet Language
XSLT - Extensible Stylesheet Language Transformations