Blog Archives

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

Tagged with: , , , , , , ,
Posted in domains, Featured, PHP, Programming, Project Managament, Projects

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

Tagged with: , , ,
Posted in PHP, Programming

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

Tagged with: , , , , , , , , ,
Posted in PHP, SEO

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

Tagged with: , , , , ,
Posted in PHP, Programming, Troubleshoot

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

Tagged with: , , , , , , ,
Posted in framework, PHP, Projects, Symfony

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()!=”)

Tagged with: ,
Posted in database, framework, PHP, Project Managament, Symfony

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

Tagged with: , , ,
Posted in PHP, Programming

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

Posted in Mysql, PHP, Programming