Magento installation problem in localhost – [validate-url] – Please enter a valid URL. Protocol is required…

Comment line no. #501 in \magento-\js\prototype\validation.js file by code below:
like below i did
['validate-url', 'Please enter a valid URL. Protocol is required (http://, https:// or ftp://)', function (v) {
//return Validation.get('IsEmpty').test(v) || /^(http|https|ftp):\/\/(([A-Z0-9][A-Z0-9_-]*)(\.[A-Z0-9][A-Z0-9_-]*)+)(:(\d+))?\/?/i.test(v)
return true;
it will works

Insert Your Recent Comments from Facebook to Database

The sample is for scraping data from Facebook home page. Once you will pass your username and password in variables  i have declared in file and execute the code you will get your home page of Facebook.
Here php code will pass the variables by POST method to page and login into facebook account then other curl call [...]

Update Your Facebook Status By PHP Script

Hey would you like to update your facebook status, but don’t want to go to, login, and finally being able to update your status?
Then Do one thing simply save the following code on your server, define the variables and Rock
* Facebook Status Updater
* Christian Flickinger
* April 20, 2007

$status = ‘YOUR_STATUS’;
$first_name = ‘YOUR_FIRST_NAME’;
$login_email = [...]

Get Safe File Name

This function come up with a function that does a good job of sanitizing certain strings so that they are safe to use in the URL (like a post slug) and also safe to use as file names. For example, when someone uploads a file I want to make sure that I remove all dangerous [...]

Uploading file by PHP Code

Let’s start by creating the html file form:
Files are uploaded from the browser using an input tag, with the type parameter set to “file”. This is supported by all browsers currently available on the market.
The most important thing is to set the ENCTYPE attribute of the form to “multipart/form-data” and set the form’s action to [...]

PHP Functions to Import/Export CSV data

These two function make it very easy to import and export CSV in PHP.

This function has just one argument – the query that returns the necessary data to be exported.

Example: CSVExport(“SELECT name,username,email,url FROM User WHERE status=1″);

This will upload a CSV file and import the data into the specified table. This function must have the following arguments…

Curl Function in GoDaddy Hosting

I use GoDaddy Hosting for this site. A few days ago I tried to use the curl library. Curl was there – but all my calls timed out. I tried different approaches – but all failed. After some google searches I found out why – GoDaddy is using a proxy server.
So if you are using [...]

Using PHP Short Tags

PHP Short Tags refers to ‘

Convert PHP arrays to JSON

While we are working with json arrays or calling ajax files that return json in their response sometime we stuck for making json array.
This is because the json array is quite difficult to maintain. You must have to take care of each every special character that is really very difficult if you are thinking to do it manually like “CDATA” for xml.
The best solution that i got from “” is to just make array of PHP and convert it into JSON by using user defined PHP function.

Cross Domain Ajax Call

Cross Domain Ajax Call , Calling file of other server by Javascript , Ajax Call to another Server.
Steps :
1] Create one javascript function name it as “AjaxCallForOtherDomain”

Hire Me
Follow Me!
Most Popular Articles & Pages
Because your vote is Important
Sorry, there are no polls available at the moment.