Using PHP with Expression Web 2.
Monday, October 27, 2008 14:14If you are a PHP Programmer, and you want to take advantage of all the cool stuff that Expression Web 2 has to offer, there are 2 configuration items you should set correctly. (e.g. ‘session_start()’ etc.)
First, make sure to remove the BOM from UTF-8 encoded files; Click ‘Tools’, Click ‘Page Editor Options’ and make sure that the BOM won’t be written for .php files.
Second, make sure that you set an alternate DOCTYPE declaration for the editor. Since you have to make sure the DOCTYPE declaration is after the PHP initialization, Expression Web cannot find out your DOCTYPE. Setting a secondary DOCTYPE will tell Expression Web to use that DOCTYPE if the DOCTYPE declaration cannot be found; Click ‘Tools’, Click ‘Page Editor Options’ and set type proper DOCTYPE declaration at ‘Second Schema’.
That’s it! If you have correctly configured PHP and set the proper PHP path in ‘Tools’, ‘Application Options’, you are set to go.
Note; If you use VS.PHP for editing PHP files in Visual Studio (which lacks a graphical WYSIWIG editor), you can also use this trick. Please the the PHP path to the PHP version that is installed with VS.PHP.
Leave a Reply
You must be logged in to post a comment.
