This question already has answers here:
PHP Fatal error: Call to undefined function curl_init()
(24 answers)
Closed 5 years ago.
i got this error while running php code
Call to undefined function curl_init() in C:\wamp\www\OTP\process.php
on line 25 Call Stack # Time Memory Function Location
1 0.0030 151192 {main}( ) ..\process.php:0
how to resolve this
Try following steps:
Click wamp icon. and go to php -> php extension and check "PHP_CURL" is ticked or not.
If not checked then click it and restart wamp.
if you not understand in above then follow below instructions.
Go to your php.ini file and remove the ; mark from the beginning of the following line:
;extension=php_curl.dll
After you have saved the file you must restart your HTTP server software (e.g. Apache) before this can take effect.
"do not forgot to restart server"
Related
This question already has an answer here:
Warning : session_start(): Cannot find save handler 's' - session startup failed
(1 answer)
Closed 3 years ago.
Very intermittently and rarely my Centos7 httpd 2.4.41 and php 5.6.40 server will half load a page. The PHP loads, but the CSS and JS includes get the error 'Connection Reset' in chrome and dump this error into the php error log.
PHP Fatal error: Unknown: Cannot find save handler '/var/lib/php/session'
I have checked permissions on the session files, and the server has plenty of space, the fact that it works most of the time makes my scratch my head.
I've tried switching to memcached but same issue.
Can anyone share any light on whats causing this error?
Or perhaps a way to stacktrace the httpd PID after the fatal error?
Thanks in advance guys.
This issue might be related to your session save path. If you are not precious on where to save the sessions.
edit your php.ini and change the following
we are using the /tmp directory here.
session.save_path = /tmp
more information can be found here
http://www.php.net/manual/en/session.configuration.php#ini.session.save-path
I am having a problem with a small class project. I have installed XAMPP, created the table that I need, loaded my *.sql database in it, but my project can't run because of some PHP issues I guess.
I had the $_SESSION problem, which I found a solution to, but then...
I am getting the famous:
Fatal error: Call to undefined function mysql_connect() in C:\xampp\htdocs\gabi\telk\DbSql.inc.php on line 11
But I can't bypass the problem. I have read other threads on this problem here but neither of them solves the problem for me.
Here is my code that is inside the DbSql.inc.php :
http://codepad.org/ToGmPB26
Check in your php.ini file if you have the line:
extension=php_mysql.dll
And it's not commented (with the ; in the line start)
This question already has answers here:
"Call to undefined function sqlsrv_connect()" when trying to connect to Azure DB from PHP
(2 answers)
Closed 6 years ago.
How can I get sqlsrv in Registered PHP Streams of my php installation?
I am getting the following error:
Fatal error: Call to undefined function sqlsrv_error() in C:\inetpub\wwwroot\twickenham2013\class\sqlsrv.class.php on line 14
How can I fix this?
Im facing the same issue.
Thats because the Registered PHP streams(phpinfo()) does not contain sqlsrv field.
this can be checked using the code
<?php
phpinfo();
?>
add the necessary .dll files in you xampp/php/ext. and edit the php.ini document.
To download the necessary .dll files and for more detailed installation instructions, see the PHP docs: http://php.net/manual/en/sqlsrv.installation.php
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
curl_init() function not working
I am using PHP for accessing the Foursquare API. I have set up everything for the authentication with Foursquare. But as soon as I click on the "Allow" button, my callback.php gives me the following error:
Fatal error: Call to undefined function curl_init() in C:\wamp\www\EpiFoursquare.php on line 119
Call Stack
Time Memory Function Location
0.0007 372592 {main}( ) ..\callback.php:0
0.0039 571896 EpiFoursquare->getAccessToken( ) ..\callback.php:17
0.0040 572928 EpiFoursquare->request( ) ..\EpiFoursquare.php:31
Where does this error come from? I cannot find the origin. Please help me out.
You need to initialize the cURL extension: http://php.net/manual/en/curl.installation.php
remove ; from extension=php_curl.dll in php.ini ;
ensure that ssleay32.dll and libeay32.dll are in Windows/system32 ;
copy php_curl.dll into Windows\System32 as well.
This worked for me!
This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How to solve “call to undefined function domxml_new_doc()…”
I'm using php5, when I try initializing a domxml_new_doc() it gives following error
Call to undefined function domxml_new_doc()
I checked phpinfo and found that DOM/XML is enabled...
Here is the code line which gives me the error
$doc = domxml_new_doc("1.0");
As suggested by KingCrunch, you're likely to be using PHP5. In that case, just use DomDocument instead.
However if you're still using PHP4, then the following test will tell you whether the extension is loaded:
var_dump(extension_loaded('domxml'));
If it returns false, then you have to enable the domxml library.
If you can modify php.ini, then locate a line extension=domxml.so (unix) or extension=domxml.dll (windows), uncomment it, then restart the web server.
If you cannot find this line, then you may have to install this library, which is outside the scope of this question :)