<? function parseToXML($htmlStr) { $xmlStr=str_replace(‘<’,'<’,$htmlStr); $xmlStr=str_replace(‘>’,'>’,$xmlStr); $xmlStr=str_replace(‘”‘,’"’,$xmlStr); $xmlStr=str_replace(“‘”,’'’,$xmlStr); $xmlStr=str_replace(“&”,’&’,$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=”‘ . [...]
Archive for the ‘php’ Category
Convert PHP Array to XML or Simple XML Object
January 5th, 2011
admin Convert PHP Array to XML or Simple XML Object if you wish……
AutoTags
October 7th, 2010
admin 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
August 15th, 2010
narayanvj 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
August 8th, 2010
narayanvj 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
August 8th, 2010
narayanvj 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
August 6th, 2010
narayanvj Podcast Suite. A component, module, and mambot designed to bring podcasting capabilities to Joomla. Support for iTunes.
Who is online PHP script
August 2nd, 2010
narayanvj We can find out who are online or logged in to the system. This also displayed as members active now at the footer of any site or in any login system. This is integrated in any login system of any site. We will try to learn how such a system works and display the names [...]
Oscommerce reference guide
July 28th, 2010
narayanvj Following is the link to Oscommerce basic. Reference PDF
5 Steps to secure your PHP powered website
July 27th, 2010
narayanvj 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 [...]

Posted in
Tags:












































