Archive for April, 2007

50Part IPHP: The BasicsIn addition to these popular (Photo web hosting)

Friday, April 27th, 2007

50Part IPHP: The BasicsIn addition to these popular choices, Keith Edmunds maintains a longer list of PHP-suitable texteditors, many available at no or low cost from http://phpeditors.linuxbackup.co.uk/. Take a deep breath after all that installing and configuring, you should now be ready towrite your first PHP script, which you ll do in Chapter 4. Table 3-2: Popular PHP Editors by PlatformPlatformProductDescriptionMacintoshBBEdit (www.barebones.com) Many Mac developers can t imagine life without it. Integrated in the Macversion of WYSIWYG packageMacromedia Dreamweaver. A no-costversion, BBEdit Lite, is also available. Unixemacs (www.gnu.org/software/emacs)Not for the faint of heart. Good PHP Windowsxemacs (www.xemacs.org)syntax highlighting is finally available at Macintoshhttp://sourceforge.net/ projects/php-mode/. Available on every OS imaginable. Unixvim (www.vim.org)An improved variant of vi, now Windowsstandard on many Unices. This is the Macintoshkinder, gentler Unix hacker s editor, with a notably friendly community. Itwas the first major editor to have PHPsyntax highlighting. Available on almostevery OS. LinuxZend Studio (www.zend.com)The first development tool specifically Windowsdesigned for PHP. debugger, code Macintoshcompletion, and HTML output viewer. WindowsHomeSite (www.macromedia.com/Perennially popular Windows software/homesite/) commercial text editor. Integrated withthe Windows version of WYSIWYGpackage Macromedia Dreamweaver. WindowsNotepad (included with all Believe it or not, many people build Windows systems)fine sites using this crudest of tools. SummaryBefore you can use PHP, you need to decide whether you will self-host, outsource, or adopt acompromise solution, such as colocation. Some important factors in the decision are cost, size and traffic of site, unusual hardware or software needs, type of content, and desire forcontrol. The best candidates for external Web hosting are small sites without unusual require- ments or sites large enough to require at least one entire server to themselves.
Note: In case you are looking for affordable webhost to host and run your web application check Vision cheap hosting services

49Chapter 3Getting Started with PHPFigure 3-1:Screenshot of Zend (Web hosting bandwidth)

Friday, April 27th, 2007

49Chapter 3Getting Started with PHPFigure 3-1:Screenshot of Zend Studio IDERemember that your development client doesn t necessarily have to be on the same operat- ing system as the server this is the beauty of truly cross-platform development. This is particularly valuable if you re using a Unix server, where (to paraphrase The Blues Brothers) We have both kinds of editor: emacsand vi. It must be admitted that Macintosh andWindows have a wider selection of slicker, more user-friendly text editors. Unix, on the otherhand, makes it easy to support multiple client OSes. Many development shops take advan- tage of this best of all worlds situation. emacs, vi, and Zend Studio are editors that come inall the major client platforms so if your team standardizes on one of those, you will be ableto accommodate all client OS preferences. Table 3-2 shows a matrix of the most popular programmer s editors, with information on thedifferent operating systems they run on. If you re going to have developers using multiple OSes, remember that linebreaks and someother characters are incompatible between Windows and Unix. Unix-style linebreaks showup as black boxes in Notepad, while Windows linebreaks look like ^Min Unix text editors. Your PHP scripts will probably still work fine (although in some version control situations itcan break code), but you ll drive each other crazy if you have to edit each other s code. Thebest way to deal with the incompatible linebreaks issue, and a heck of a good idea for a lotof other reasons, is to use a version control system such as CVS and set it to strip linebreaks. Caution05
Note: If you are looking for high quality webhost to host and run your jsp application check Vision florida web design services

48Part IPHP: The BasicsThose coming to PHP from (Shared web hosting)

Friday, April 27th, 2007

48Part IPHP: The BasicsThose coming to PHP from a strictly client-side perspective probably have the hardest adjust- ment to make. There s no such thing as a plush development environment with wizards anddrag-and-drop icons and built-in graphics manipulation. If that sort of thing is important toyou, you can use a WYSIWYG editor to format the page and then add PHP functionality laterusing a text editor. The downside of this strategy is, of course, that machine-written code isoften not very human-readable but one must suffer to be pretty. The last year and a half, however, has seen substantial change in the market. Plenty of editorsfor both Windows and Linux now offer at least syntax highlighting for PHP. Several of thesecan map drive locations to server names so you can debug in place. Even the WYSIWIGDreamweaver now claims some degree of PHP support. It still can t write the code for you, and you probably wouldn t want that if it could but it won t change your code either. Be particularly careful with using Microsoft FrontPage as a PHP editor, as it seems to causeproblems for many users. At a minimum, you will need to enable (by choosing the option inyour php.inifile) and use ASP-style tags; or use JavaScript-style