PHP Freelancer

 

PHP Programmer India

PHP Freelancer PHP Freelancer India PHP Programmer India PHP Freelancer Indian Freelancer Freelance Programmer Freelance Developer Freelance Web Developer Freelance Programmer India Hire PHP Developer India Wordpress Developer India CakePHP Developer India

Helpful Tips and Tricks

[JavaScript] How to Reload iFrame – Works in FF, Crome, IE, Safari

I was working with one web application and I placed a iFrame in it. I am making ajax call and updating iFrame files. Now I want to refresh only iFrame. I found many solution via Google and I tried many with my own idea to replace iFrame or load iFrame etc etc. But none of them works in all browsers including IE. Some of them are working in FF, some of them in other browsers. I was looking for a solution which works in all browsers. Finally I found the one which works in all browsers.

[PHP] Stripslashes and fwrite not working

I was working with one project and writing textarea’s data into one file using fwrite function of PHP. It keeps adding forward slash whenever single quote comes in string. I have tried to use stripslashes but it did not work. I tried stripslashes twice but it did not work as well.

[Solved] Cooloris 3D Wall Crossdomain.xml error

I was implementing Cooloris 3D Wall. After so much trouble, i get success in implementing Cooloris 3D Wall. If you are facing problem in implementing Cooloris 3D Wall Gallery with your own Media RSS than look at my last post. If you are done with implementing Cooloris 3D Wall and facing a crossdomain.xml issue than follow below instructions.

[Solved] Cooloris 3D Wall – Not Working – Media RSS – Flickr Picasa RSS

I was implementing Cooloris 3D Wall for one of my client. I followed the instructions given in Cooloris site. I am really unhappy with their documents, help, forums and developer section. They are not clear with the point how to implement media RSS in Cooloris 3D Wall. I searched in Google but not finding any solutions. Peoples or developers are searching for the code and they are just trying to solve by try-error method.

[PHP] What is the difference between sort & asort in php ?

Many times developers are not aware with the core functions of PHP. PHP have sort and asort built in array functions. You may or may not be aware with these functions. But when you will face a PHP interview than you may be asked for this question.

[Dreamweaver] Open .thtml .ctp .phtml (view) Files in Dreamweaver

I am working with Famous PHP Frameworks i.e. CakePHP and Zend Framework in recent days. For CakePHP, view file extensions are either ctp or thtml and for Zend Framework, view file extentions is phtml. They are not opening in Dreamweaver. You need to add file extentions in document types file of Dreamweaver.

Javascript and PHP Email Validation

I have noticed that many developers are facing problem in Form Email validation. Developers are always use to make a JavaScript Email validation and forgot to put server side email validation. As a developer, i suggest to put a server side validation as well. Serverside validation is most important if you want to make spamming free web application. Please have a look at both validation code. First is JavaScript Email Validation and second one is PHP Email validation.

Find a Lat/Long with in x miles/kilometer Radius

You are at the right place if you are looking for solution to get or check latitude and longitude is with in x miles of radius with given latitude and longitude. This is very easy with a single equation. Get all lat/long list from database if current lat/long is with in x miles of radius.

Parse/Get XML attribute using PHP SimpleXMLElement

Today i write something about xml parsing using PHP. I am taking xml file contents using file_get_contents function. Now parsing file contents by creating object of SimpleXMLElement. I can easily get all elements of xml using $xml->name or if it is an array than $xml->name[0]->fname. But the problem is with attributes. I have one array which have attributes. Below is the simple way to get/parse xml attributes.

Write Array in txt file with PHP

Every programmer knows how to interact with file functions like fopen, fwrite, fread and fclose. Also most of us are aware with writing values in text file by using fwrite file handling function. Today i face a situation where i need to write array in text file using php as i am interacting with XML-RPC