CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
PHP Problems
PHP weather changer returns 'Call to undefined function curl_init()'
stevelee
Permalink to comment
#
June 2011
Hi,
I'm currently creating a project on my localhost and I would like to include css-trick's php weather changer -
http://css-tricks.com/2008/02/using-weather-data-to-change-your-websites-apperance-through-php-and-css-534
The only problem is that when I've put everything into the website I get the error "Fatal error: Call to undefined function curl_init()" which is on line 29 of the code.
Does anyone know why this is?
WJvanTilburg
Permalink to comment
#
June 2011
Do you have the curl module enabled?
TT_Mark
Permalink to comment
#
June 2011
This would be because Curl is not enabled in your PHP configuration
Add a Comment
I'm currently creating a project on my localhost and I would like to include css-trick's php weather changer - http://css-tricks.com/2008/02/using-weather-data-to-change-your-websites-apperance-through-php-and-css-534
The only problem is that when I've put everything into the website I get the error "Fatal error: Call to undefined function curl_init()" which is on line 29 of the code.
Does anyone know why this is?