By default appserv don’t enable curl extension. To enable that extension you need to check the following section :
1. php extension directory
Make sure you see php_curl.dll in the list.

curl How to enable curl in Appserv to overcome Fatal error: Call to undefined function curl init()

As you see php_curl listed inĀ  you can continue.

2. Open php.ini

Delete ; sign in front of extension=php_curl.dll

;extension=php_mbstring.dll
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
extension=php_gd2.dll
;extension=php_gettext.dll

save the file.

3. Restart apache service

curl2 How to enable curl in Appserv to overcome Fatal error: Call to undefined function curl init()

Try again to run script that utilize curl() related function.

See you in other post!

 

How to add password protection to a folder inside my blog?

That question came from a hostingformula.net reader and I try to answer it with example.

I use cpanel based hosting where facility for password protect directory provided under ‘Security’ section.

Target :

I’ll create new folder called ‘magic‘ that protected by username and password.

Open cpanel and find security area, find password protected directory and clic the icon.

cpanel protect directory 1 Howto password protect directory in cpanel based hosting

Pick a directory to open. I choose hostingformula.net

click Go.

Continue reading »

© 2011 Hosting Formula Suffusion theme by Sayontan Sinha