Archive for the ‘php’ Category

PHP file convert to XML

<? function parseToXML($htmlStr) { $xmlStr=str_replace(‘<’,'&lt;’,$htmlStr); $xmlStr=str_replace(‘>’,'&gt;’,$xmlStr); $xmlStr=str_replace(‘”‘,’&quot;’,$xmlStr); $xmlStr=str_replace(“‘”,’&apos;’,$xmlStr); $xmlStr=str_replace(“&”,’&amp;’,$xmlStr); return $xmlStr; } // Start XML file, echo parent node echo ‘<items>’; echo ‘<item ‘; echo ‘name=”‘ . parseToXML(stripslashes($sName)) . ‘” ‘; echo ‘address=”‘ . parseToXML(stripslashes($sAddress)) . ‘” ‘; echo ‘price=”‘ . parseToXML($iPrice) . ‘” ‘; echo ‘link=”‘ . parseToXML($sLink) . ‘” ‘; echo ‘details=”‘ . [...]

Convert PHP Array to XML or Simple XML Object

Convert PHP Array to XML or Simple XML Object if you wish……

AutoTags

Basing on WordPress Plugin “tagthepress” .It using for tag suggestions by Yahoo cas API http://tw.developer.yahoo.com/cas/ With this plugin, you will be able to use the the Web service for your posts. Just click on Fetch tags and the title, content and optional excerpt of your post will be analyzed by Yahoo cas API in order [...]

Fckeditor Configuration File

The editor comes with a rich set of configurations that makes it possible to customize its appearance, features and behavior. The main configuration file is named “fckconfig.js“. You can find this file in the root of the FCKeditor installation folder.

Event Registration Joomla

Following is the link to list of components for Event Registration in Joomla. http://extensions.joomla.org/extensions/calendars-a-events/events-registration

Javascript Validation for uploading files

The below javascript funtion checks the browsing file. For example, If the uploading file should accept only excel and word documents like that, then in that scenario, we can use this function.

Joomla Podcast Suite

Podcast Suite. A component, module, and mambot designed to bring podcasting capabilities to Joomla. Support for iTunes.

Oscommerce reference guide

Following is the link to Oscommerce basic. Reference PDF

5 Steps to secure your PHP powered website

Unfortunately there will always be some one out there on the world wide web who will attempt to break any thing they can find on the Internet so you owe it to your visitors/ members to ensure nothing malicious is being hidden on your site and there info isn’t being stolen. In this article i [...]