Snippet IT IT News, Programming, Internet and Blogging

24Apr/090

PHP: session_start() – No such file or directory error

Have you encountered the following PHP error (or something similar) before in your Windows Vista?

Warning: session_start() [function.session-start]: open(C:\Users\YOURNAME\AppData\Local\Temp\php\session\sess_ficdel21e6lupsojqdk62ofts5, O_RDWR) failed: No such file or directory (2) in C:\webapp\folder\index.php on line 24

The solution to the above error is really simple. Simply re-create the folderĀ C:\Users\YOURNAME\AppData\Local\Temp\php\session\. For some reason, you or your Windows Vista (e.g. during a disk cleanup) may deleted all the files and folder underĀ C:\Users\YOURNAME\AppData\Local\Temp\ and this is the main reason PHP can't find the correct location to create its temporary file for new session.

22Jan/091

Share LAN connection over Wireless Network in Windows Vista

Few months ago I was in New Zealand for working holiday, my friends and I were staying in a room with only one LAN point but 3 of us have a notebook and need to access to the Internet.