All Entries in the "PHP" Category
How to create Virtual Hosts PHP | Apache ?
Focus Web Developer should have a requirement to work on various environment . Some projects are in plain php, some are in Framework like CodeIgniter, Symfony .. These all need different configuration and sometime need to use htaccess mode rewrite etc. Those need to be in root folder. We can access each project like http://accommodationcheap.oi [...]
How To enable mod_rewrite on Xampp
Search For httpd.conf file and uncomment this line #LoadModule rewrite_module modules/mod_rewrite.so LoadModule rewrite_module modules/mod_rewrite.so Restart your Server create a .htaccess file on your server root put this code RewriteEngine On RewriteBase / RewriteRule ^contact-us$ index.php
Creating XML-RSS Feed Using PHP MYSQL
I have been working to create crowler friendly rss feed for our website. I think it is very easy to build . But when i started coding it i got so many problems with xml and special charcters. I tried program for replacing special characters. But it wont work. Finally i used utf8_encode. It worked [...]
How to configure cURL in xampp server
xampp server with default configuration can’nt run curl_init(); to make it work in xampp server we have to edit three files namely 1. php.ini(which is a configuration stting file). 2. php.ini-recommended(INI-DIST file) 3. php.ini-dist(INI-RECOMMENDED file) open these files in notepad and search for ‘curl’ and remove ‘;’ symbol, save and close the files. Remember to [...]
Symfony Study Guide – Small Project Implementation
Download Symfony Sandbox 1.4 Source : www.symfony-project.org/installation Requirement : Xampp or Wamp Package PHP: 5.2 Above Download Symfony and put this into your website root Rename sf_sandbox to your project name. Here it is CRM open config/properties.yml file and put below details [symfony] name=CRM author=Arun Raj R orm=Doctrine
Symfony 1.4 Doctrine Pagination
Doctrine Pagination is made very simple . public function executeIndex(sfWebRequest $request) { $this->pager = new sfDoctrinePager(‘TableName’, sfConfig::get(‘app_max_jobs_on_homepage’); $this->pager->setQuery(Doctrine::getTable(‘TableName’)->createQuery(‘a’)); $this->pager->setPage($request->getParameter(‘page’, 1)); $this->pager->init(); } Success page <?php foreach ($pager->getResults() as $post): ?><div> <?php if($post->getTitle()) { echo link_to($post->getTitle(), ‘news/fullstory?expand=’.$post->getId(),’class=”mhead”‘); } ?> <?php if($post->getDn2()!=”) { echo image_tag($post->getDn2()); } ?> <?php $content=$post->getContent(); $stripcontent=substr($content,” “,700); echo $stripcontent; ?> <div style=”display:block;” > [...]
PHP MYSQL Tips and Tricks
This is a small article containing tricks and tips I aquired by reading PHP 6 Text Book. I was used isset() function to check whether these arguements are set or not. And also I need to check this is empty or not. Here is another function to check both of this requirement at single line. empty() [...]
PHP 6 upgrade : Advantages covered
PHP Personal Home Page now it is Hypertext Pre Processor. Version : 6 (PHP 6) Advantages, Addition of improved MySql Extension PHP 6 support Unicode, so that PHP 6 can handle all languages in the world. I faced lot of problems with ‘Malayalam’ font integration. PHP 6 cleans up a lot of garbbages that was [...]



