Page 1 of 1

cURL

Posted: Sat Feb 25, 2012 3:42 am
by Arunn
I dont have idea of cURL... What is the functionality.... where v use in real time..... Thank you

Re: cURL

Posted: Sat Feb 25, 2012 5:12 pm
by Eric!
I use it for sending stuff via FTP via a cron job to other servers. I also use it for fetching remote data off other servers and parsing it for aggregation and feeds. It's a very powerful tool that can handle encryption and a variety of protocols for moving data around the network.

Re: cURL

Posted: Sun Feb 26, 2012 1:40 am
by mnissar

Re: cURL

Posted: Sun Feb 26, 2012 1:56 am
by flying_circus
mnissar wrote:how can i change
http://www.dehkadeyedownload.ir/
to
http://dehkadeyedownload.ir/
in php
You wouldn't use PHP to make that change. The better solution is to use a .htaccess file and mod_rewrite (or similar).

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]