Category Archives: PHP

PHP: Hypertext Preprocessor (PHP)

Images in if-else

If you want to see different type of image & size in different post then you may use following code- < ?php if ($image = get_post_meta($post->ID, ‘slide’, true)) { ?> <img width=”617″ height=”350″ src=”<?php echo $image; ?>” alt=”Image” /> < ?php } else { ?> < ?php $image = get_post_meta($post->ID, ‘simg’, true) ; ?> <img width=”80″ […]

A to Z PHP and MySQL Tutorial

PHP MySQL Connect to a Database Create a Connection to a MySQL Database Before you can access data in a database, you must create a connection to the database. In PHP, this is done with the mysql_connect() function. Syntax mysql_connect(servername,username,password); Parameter Description servername Optional. Specifies the server to connect to. Default value is “localhost:3306” username […]

Template processor

A template processor (also known as a template engine or a template parser) is software or a software component that is designed to combine one or moretemplates with a data model to produce one or more result documents.  For purposes of this article, a result document is any kind of formatted output, including documents, web pages, or source code, either in whole or in fragments. […]

List of PHP editors

This article contains a list of text editors with features specific to the PHP scripting language. Free editors Cross Platform ActiveState Komodo Edit Bluefish – Supports any protocol that is supported by GnomeVFS. (SSH…) Eclipse – PHPEclipse and PHP Development Tools projects. With additional plugins supports SVN, CVS, Database modelling, SSH/FTP access, Database Navigation, Trac integration, and others. Emacs – Advanced text editor. The nXhtml addon has […]

List of PHP accelerators

Alternative PHP Cache Alternative PHP Cache (APC) is a free, open source framework that optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory. APC is quickly becoming the de-facto standard PHP caching mechanism as it will be included built-in to the core of PHP starting with PHP 6. Home […]

PHP accelerator

A PHP accelerator is an extension designed to boost the performance of software applications written using the PHP programming language. Most PHP accelerators work by caching the compiledbytecode of PHP scripts to avoid the overhead of parsing and compiling source code on each request (some or all of which may never even be executed). For best performance, caching is to shared […]

PHP

PHP: Hypertext Preprocessor is a widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. For this purpose, PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. As a general-purpose programming […]