Better Solution for Filtering Bad Words in PHP

I was searching for filtering Bad Words from my site…… I have visited so many links on google but…. 🙁 Here is my simple logic for filtering Bad Words from site or any search engine First you have to make a txt file “badwords.txt” or you can search from google Google Keyword: badwords + filetype:txt … Read more

Oscommerce – Features

* Multi language * Content Management ~ WYSIWYG editor integrated into the shop admin to allow easy entering    of    HTML and uploading of images ~ Add text to your category pages – great for SEO and providing information ~ Content Management System – no more FTP and working with PHP files – amend text for … Read more

Create TCPDF PHP Fonts

TCPDF supports TrueTypeUnicode (UTF-8 Unicode), OpenTypeUnicode, TrueType, OpenType, Type1, CID-0 and Core (standard) fonts. You will find font creation utility at fonts/utils of TCPDF… copy desired font to fonts/utils/svnlabs.ttf * For TrueTypeUnicode # cd /var/www/html/tcpdf/fonts/utils # ttf2ufm -a -F svnlabs.ttf # php -q makefont.php svnlabs.ttf svnlabs.ufm * For embedded fonts to tcpdf PDF file.. copy … Read more

Trim and remove empty key & value in php array

Here is the PHP function that will remove empty key => value in PHP array… function array_trim($sv) { $s = 0; $svn = null; $c = count($sv); for($i = 0; $i < $c; $i++) { if($sv[$i] != “”){ $svn[$s++] = trim($sv[$i]); } } return $svn; } $svarray = array(‘   ‘, ‘svlinux’, ‘svnlabs’, ‘lamp’, ”); $svarray … Read more

CakePHP in svnlabs

CakePHP is the rapid development framework for PHP that provides an extensible architecture for developing, maintaining, and deploying applications. It follows design patterns like MVC and ORM, CakePHP reduces development costs and helps developers write less code. Features of CakePHP: – Extremely Simple. – Active, Friendly Community. – Flexible License. – Clean IP – Best … Read more

send xml over post

<?php /* $url = Web Service Url or Server Url where xml have to post $xml = XML  schema to post on server */ function sendXmlOverPost($url, $xml) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); // For xml, change the content-type. curl_setopt ($ch, CURLOPT_HTTPHEADER, Array(“Content-Type: text/xml”)); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $xml); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // … Read more

Oscommerce – made easy

osCommerce is an online e-commerce solution that offers a wide range of features that allows online stores to be setup quickly with ease, and is available for free as an Open Source based solution released under the GNU General Public License. http://svn.oscommerce.com/confluence/display/OSCDOC/Installation+and+Upgrades http://www.oscommerce.info/contents

Soap Client for MMS

Web services are widely supported the major technologies.. There are some ways to make web services: XML-RPC, SOAP and REST here is the demo in nuSOAP for sending MMS to mobiles using MM7 protocol…. <? // Pull in the NuSOAP code require_once(‘nusoap.php’); require_once(‘nusoapmime.php’); $wsurl = WEBSERVICEURL; $operation = “SubmitReq”; $username = USERNAME; $password = PASSWORD; … Read more

phpinfo

# php -i > php.txt # vi php.txt phpinfo() PHP Version => 5.1.6 System => Linux ip-78-xxx-xx-55.ip.secureserver.net 2.6.9-023stab044.4-smp #1 SMP Thu May 24 17:20:37 MSD 2007 i686 Build Date => Jul 16 2008 19:45:51 Configure Command =>  ‘./configure’ ‘–build=i686-redhat-linux-gnu’ ‘–host=i686-redhat-linux-gnu’ ‘–target=i386-redhat-linux-gnu’ ‘–program-prefix=’ ‘–prefix=/usr’ ‘–exec-prefix=/usr’ ‘–bindir=/usr/bin’ ‘–sbindir=/usr/sbin’ ‘–sysconfdir=/etc’ ‘–datadir=/usr/share’ ‘–includedir=/usr/include’ ‘–libdir=/usr/lib’ ‘–libexecdir=/usr/libexec’ ‘–localstatedir=/var’ ‘–sharedstatedir=/usr/com’ ‘–mandir=/usr/share/man’ ‘–infodir=/usr/share/info’ … Read more