Tag Archives: php

Heredocs and Nowdocs in PHP

A here document (also called a here-document, a heredoc, a here-string or a here-script) is a way of specifying a string literal in command line shells including all the Unix shells (sh, csh, ksh, Bash and zsh) and the Windows … Continue reading

Posted in Tech Tips, Web Development | Tagged | 0 Comments

The PHP Object Expands in PHP5

Starting with PHP 5, the object model was rewritten to allow for better performance and more features. This was a major change from PHP 4. PHP 5 has a full object model. Among the features in PHP 5 are the … Continue reading

Posted in Tech Tips, Web Development | Tagged , | 0 Comments

Good Practices in PHP

Here are a few tips for those of you who’d like to write good code in PHP: Set up a Development Server Set up a development server or sandbox. Don’t write, test, or develop code on a production server. If … Continue reading

Posted in Tech Opinion, Tech Tips, Web Development | Tagged , | 0 Comments

Complete list of built-in PHP functions

Phar PharData PharException PharFileInfo abs acos acosh addcslashes addslashes aggregate aggregate_info aggregate_methods aggregate_methods_by_list aggregate_methods_by_regexp aggregate_properties aggregate_properties_by_list aggregate_properties_by_regexp aggregation_info apache_child_terminate apache_get_modules apache_get_version apache_getenv apache_lookup_uri apache_note apache_request_headers apache_reset_timeout apache_response_headers apache_setenv apc_add apc_cache_info apc_clear_cache apc_compile_file apc_define_constants apc_delete apc_fetch apc_load_constants apc_sma_info apc_store apd_breakpoint apd_callstack … Continue reading

Posted in Web Development | Tagged | 0 Comments

Using json_encode() and json_decode() in PHP4

clipped from abeautifulsite.net , additions by me I use json_encode() a lot for AJAX calls. Teamed with jQuery’s $.getJSON(), it’s too convenient not to use. Unfortunately, json_encode() doesn’t come standard until PHP 5.2. To add insult to injury, most current … Continue reading

Posted in Web Development | Tagged , , | 0 Comments