$content = file_get_contents('filename.extension'); //Example file_get_contents('filename.hml');
Here $key is the search word //Example $key = "php";
if(preg_match("/".$key."/", $content, $matches))
echo "found";
else
echo "not found";
Monday, April 18, 2011
open source cms in php
CMS - Content Management System
1)joomla
2)drupal
3)wordpress
4)magento
4)oscommerce
5)zencart
6)phpbb(forum)
7)concrete
8)pligg
9)sugarcrm(crm)
1)joomla
2)drupal
3)wordpress
4)magento
4)oscommerce
5)zencart
6)phpbb(forum)
7)concrete
8)pligg
9)sugarcrm(crm)
internal server error in php
This error is most common while using htaccess if htaccess is not enable in localhost we will get this error.
We can solve this error by enable the Htaccess
Open AppSer installed folder in that find conf folder and find httpd.conf file. In that file find below line(LoadModule rewrite_module modules/mod_rewrite.so)
For Example In Windows: D:\AppServ\Apache2.2\conf\
"LoadModule rewrite_module modules/mod_rewrite.so" if hash is there before the line remove that hash("#") and save the file and restart the AppServer to work
for remaining servers also same procedure i.e have to find the httpd.conf file and have to remove the starting # from the mod_rewrite line and restart the server
We can solve this error by enable the Htaccess
Open AppSer installed folder in that find conf folder and find httpd.conf file. In that file find below line(LoadModule rewrite_module modules/mod_rewrite.so)
For Example In Windows: D:\AppServ\Apache2.2\conf\
"LoadModule rewrite_module modules/mod_rewrite.so" if hash is there before the line remove that hash("#") and save the file and restart the AppServer to work
for remaining servers also same procedure i.e have to find the httpd.conf file and have to remove the starting # from the mod_rewrite line and restart the server
svn in php
The concept is to save the previous files that what we had modified. The most common tool used for this one is tortoise.
you can download it from below link
http://websvn.tigris.org/servlets/ProjectDocumentList
and you can get some useful information
http://lifehacker.com/#!192367/hack-attack-using-subversion-with-tortoisesvn
http://www.openkore.com/index.php/TortoiseSVN_Guide
you can download it from below link
http://websvn.tigris.org/servlets/ProjectDocumentList
and you can get some useful information
http://lifehacker.com/#!192367/hack-attack-using-subversion-with-tortoisesvn
http://www.openkore.com/index.php/TortoiseSVN_Guide
component generator joomla site
It will provide the basic component structure
http://www.notwebdesign.com/joomla-component-creator/index.php
http://www.notwebdesign.com/joomla-component-creator/index.php
get url of wordpress site
<?php echo get_option('siteurl'); ?>
It prints the site url from wp_options table
It prints the site url from wp_options table
concat fields in mysql
SELECT CONCAT('field1', 'field2', 'field3');
It returns the concatnated string followed by field1.field2.field3 rows
It returns the concatnated string followed by field1.field2.field3 rows
Subscribe to:
Comments (Atom)