Call to undefined function: 'curl_init'
2 posts
• Page 1 of 1
Call to undefined function: 'curl_init'
Hello guys;
I have problem with 'curl_init' in Phalanger Compiler on my VISUAL STUDIO 2012;
So i enable extension=php_curl.dll in my php.ini for vs compiler. but after run or execute show for me this error :
PhpException was unhandled by user code ~> Call to undefined function: 'curl_init'
how i can solve this error ? please say me step by step !
and a important problem... this is do you PHP Compiler in VS can't run some functions ? for example i can't run function mail(...);
Thank you.
I have problem with 'curl_init' in Phalanger Compiler on my VISUAL STUDIO 2012;
So i enable extension=php_curl.dll in my php.ini for vs compiler. but after run or execute show for me this error :
PhpException was unhandled by user code ~> Call to undefined function: 'curl_init'
how i can solve this error ? please say me step by step !
and a important problem... this is do you PHP Compiler in VS can't run some functions ? for example i can't run function mail(...);
Thank you.
- Kamb!z
- Posts: 3
- Joined: May 22nd, 2013, 8:58 am
Re: Call to undefined function: 'curl_init'
Hi,
Phalanger and PHP are two completely different programs. So php.ini is actually not important.
Phalanger is .NET application, configured in .NET .config files. curl_* functions and defined in PhpNetCurl.dll. mail in PhpNetClasslibrary.dll.
So ensure in your app.config (desktop app) or web.config (asp.net app) is following:
In Visual Studio, you can also just add references to these files.
Thanks,
Phalanger and PHP are two completely different programs. So php.ini is actually not important.
Phalanger is .NET application, configured in .NET .config files. curl_* functions and defined in PhpNetCurl.dll. mail in PhpNetClasslibrary.dll.
So ensure in your app.config (desktop app) or web.config (asp.net app) is following:
- Code: Select all
<phpNet><classLibrary>
...
<add assembly="PhpNetClassLibrary, Version=3.0.0.0, Culture=neutral, PublicKeyToken=4af37afe3cde05fb" section="bcl" />
<add assembly="PhpNetCurl, Version=3.0.0.0, Culture=neutral, PublicKeyToken=2771987119c16a03" section="curl" />
In Visual Studio, you can also just add references to these files.
Thanks,
Jakub Misek │ DEVSENSE s.r.o. | @misekjakub │ jakub@devsense.com │
-
Jakub Misek - Posts: 2092
- Joined: January 4th, 2012, 2:42 pm
- Location: Prague
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 7 guests