Reason: Curl is not enabled by default.
Steps:
1. uncomment the following line from your php.ini (remove the ';')
;extension=php_curl.dll
location of php.in
apache\bin
program: xampplite.
ps: there's another one under /php/folder BUT THAT IS PHP5.ini
/php/php5.ini
Tuesday, November 13, 2007
Call to undefined function curl_init() on windows
Reason: Curl is not enabled by default.
Steps:
1. uncomment the following line from your php.ini (remove the ';')
;extension=php_curl.dll
location of php.in
apache\bin
program: xampplite.
ps: there's another one under /php/folder
/php/php5.ini
Steps:
1. uncomment the following line from your php.ini (remove the ';')
;extension=php_curl.dll
location of php.in
apache\bin
program: xampplite.
ps: there's another one under /php/folder
/php/php5.ini
Friday, November 2, 2007
Creating a Virtual Host in Apache (Windows)
1. Open file 'httpd-vhosts.conf' file
\apache\conf\extra\httpd-vhosts.conf
2. Uncomment/add the following line:
NameVirtualHost *:80
3. Add the following code:
<virtualhost *:80>
ServerName www.example.com
DocumentRoot "E:/XAMPP/htdocs/mysitefolder"
</virtualhost>
note: replace the path in red with your path
4. Configure 'hosts' file
\system32\drivers\etc\hosts
127.0.0.1 www.example.com
4. Restart xammp.
5. Try typing "www.example.com" in your browser!! :) ?
\apache\conf\extra\httpd-vhosts.conf
2. Uncomment/add the following line:
NameVirtualHost *:80
3. Add the following code:
<virtualhost *:80>
ServerName www.example.com
DocumentRoot "E:/XAMPP/htdocs/mysitefolder"
</virtualhost>
note: replace the path in red with your path
4. Configure 'hosts' file
\system32\drivers\etc\hosts
127.0.0.1 www.example.com
4. Restart xammp.
5. Try typing "www.example.com" in your browser!! :) ?
Subscribe to:
Posts (Atom)