How to remove single file extension using .htaccess
Options +FollowSymLinks RewriteEngine on RewriteCond %{filename.php} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L]
Read articleLatest
Options +FollowSymLinks RewriteEngine on RewriteCond %{filename.php} !-d RewriteRule ^([^\.]+)$ $1.php [NC,L]
Read article1. Who is Anna Hazare? An ex-army man. Fought 1965 Indo-Pak War 2. What’s so special about him? He built a village Ralegaon Siddhi in Ahamad Nagar district, Maharashtra 3. So what? This village is a self-sustained model village. Energy is produced in the village itself from solar power, biofuel and wind mills. In 1975,
Read article[propel-sql-exec] SQLSTATE[42000]: Syntax error or access violation: 106 you have an error in your SQL syntax; check the manual that corresponds to you server version for the right syntax to use near ‘Type=InnoDB’ at line 16 >> propel Running “insert-sql” phing task [propel-sql-exec] Failed to execute: CREATE TABLE `tb
Read articleLONDON (Reuters Life!) – A specialist ice cream parlour plans to serve up breast milk ice cream and says people should think of it as an organic, free-range treat. The breast milk concoction, called the “Baby Gaga”, will be available from Friday at the Icecreamists restaurant in London’s Covent Garden. Icecreamists fou
Read articleSuppose you want to include/require any file in your scripts, But before doing so you want to confirm that the included or required file doesn’t contain error. Then in that case you can use the below code to do the same. /* Implementation */
Read article$requestedUrl = “http://www.example.com/abc.php”; $tags = get_headers($requestedUrl); if(preg_match(“/Not Found/i”,$tags[0]) || preg_match(“/Service Unavailable/i”,$tags[0])) { echo “Requested Url does not exists”; } else { echo “Requested Url exists”; }
Read article$markers = $this->Post->find(‘all’, array( ‘joins’ => array( array( ‘table’ => ‘cp_user’, ‘alias’ => ‘users’, ‘type’ => ‘left’, ‘foreignKey’ => false, ‘conditions’=> array(‘Post.postauthor = users.id’) ) ), ‘conditions’=>’Post.poststatus = 1’, ‘fields’=>array(‘Post.postid’, ‘Post.postdate’, ‘Post.posttitle’, ‘Post.post
Read articleIn case you are viewing the html page in iphone and the content appear differenct (the font size appearing bigger/smaller) than other phone, then add the below meta tag code for iphone in your html file in the head tag For more details visit http://developer.apple.com/safari/library/documentation/appleapplications/refe
Read articleBy using the below code you can export your data from the database to excel file. When you run the below code, the excel file get generated and get downloaded to the client machine.
Read articleThe basic purpose of this post is to guide you all about fetching multilingual content from database. I mean to say that, if you have stored japanese text in your database, So in order to fetch the japanese content , you need to set the character encoding to UTF-8 format, while communication with the database […
Read article1. Download the FCKeditor source from http://ckeditor.com/download 2. Extract the source to /web/js/ directory of your symfony project directory 3. To use the editor in symfony, add (edit if present)the below line //config/settings.yml .settings: rich_text_fck_js_dir: js/fckeditor 4. You have to edit /web/js/fckeditor/
Read articleSuppose you want to execute query like UPDATE tableName SET column1 = ‘abc’,column2 = ‘xyz’ WHERE column =’1′; then you can use the below syntax to do so 🙂 —————————————————————————- $con = Propel::getConnection(); /* Here you have to set the condition for which you need to update */ $c1 = new Criteria(); $c1->add(Tab
Read article