BB code is a very simple set of instructions (also known as BB tags) that provide rules as to how a piece of text should be formatted. When a page that contains BB code is displayed in the browser, the BB tags are replaced with appropriate HTML tags that the browser can understand.
Category Archives: PHP
Encode your images straight into PHP
Came across this today messing around with WAMP server. The index page it has has some images. I was looking to replace them as i was feeling lazy about creating an Index page
How to Scrape Meta Tags From Any Web Page With PHP
A couple of weeks ago I was going to work on a new project, it was a directory-like kind of app. One the things this application had to do was let users add their websites to their profiles, and so the first question came up, “how am going to get their website’s title and meta …
Continue reading “How to Scrape Meta Tags From Any Web Page With PHP”
PHP: Simple Try Catch Example
With object orientated languages came the concept of the try-catch block to better manage exceptions and application crashes, and from PHP 5 onwards, the popular web server-side scripting language too adopted this ideology.
Translate characters or replace substrings
Is there any function which replaces params in a string? Something like this:? Code: $format_str = "My name is %name."; /* this was set in a configuration file – config.php */$str = xprintf($format_str, array(\’name\’ => \’Joe\’, \’age\’ => 150)); /* above is somewhere in main code */ The expected value of $str after …
Continue reading “Translate characters or replace substrings”
php Reserved Words
PHP Reserved Words