How the browser works.

This is great video for how the browser works, well worth a watch.

“This comprehensive primer on the internal operations of WebKit and Gecko is the result of much research done by Israeli developer Tali Garsiel. Over a few years, she reviewed all the published data about browser internals (see Resources) and spent a lot of time reading web browser source code.”

 

Visit this link for more: http://www.html5rocks.com/en/tutorials/internals/howbrowserswork/

Running php on Windows 8 without xamp or anything else

  1. Grab the binary required from here: windows.php.net/download I have tried and currently have working the 5.6 thread safe version.
  2. Unzip the folder to somewhere sensible eg “c:\php”
  3. Now add php to you system path variable
    1. control panel > system > advanced system setting > environment variables button at the bottom.
    2. In the 2nd section “System variables” find “path” select and press edit.
    3. If you’re on win7 or 8 you should see an input with “;” separated system paths. Jump to the end, ensure there is a “;” and enter “c:\php;” or whatever the path to your php files is
  4. Restart your terminal.
  5. Type “php -v” and you should see your php version.
  6. The easiest way to configure the ini file.. delete one of them and call the other just “php.ini”. Have a look in the php folder and you will see what i mean.

Using composer? You will need the openssl extension enabled

  1. Open your php.ini file you created earlier. You now have two options:
    1. Option 1
      1. Find “;extension=php_openssl.dll” and uncomment it by removing the semi colon, then save.
      2. Now, in your php folder open the ext directory and copy out the ‘php_openssl.dll’ and place in the same folder as the php.exe file.
    2. Option 2
      1. Find “;extension=php_openssl.dll” and uncomment it by removing the semi colon,¬†then add ext to the path so it looks like “extension=ext\php_openssl.dll”
      2. Save

Any other extensions you require, just repeat the above process for the rel. extension.

 

 

Automatic virtual hosts on dev machine

Genius bit of apache conf code is an automatic vhost conf setup.

With above in place, I can now place any folder in ‘/var/vhosts/’ and it will be automatically mapped to http://.dev

Only thing to do is place .dev in your hosts file.

If you are using a .htaccess file you will need to add a rewrite base to it, otherwise this wont work.
EG:

You can also use Acrylic DNS proxy and stick a wild card in its host file like:
*.dev