Jump to content
Larry Ullman's Book Forums

Installing Libcurl


Recommended Posts

Hi, Larry and everyone:

 

Thanks for setting up this forum which is really helpful.

 

I am on page 252, I checked my local installation of XAMPP (1.7.7) I used phpinfo() and it DOES not have "curl". My XAMPP does come with the default enable the SSL, after I typed in shipping information it gives an erorr:

Fatal error: Call to undefined function curl_init() in C:\xampp\private\gateway_process.php on line 59

 

I am trying to download, I just want to make sure I download the right stuff (I am new to php development and programming in general")

http://curl.haxx.se/dlwiz/?type=bin&os=Win64

Is the second link the right one to download? (I had problem downloading some other software then got virus infected my computer which had been pain)

I have Window7 so I choose win64 right?

 

In the book it says "if your PHP installation does not support libcurl, you can have PHP invoke the command-line cURL application via the exec() function:

 

exec('curl<arguments>', $response);

 

I do not get this, where do you type in "exec('curl<arguments>', $response);" , in the php.ini file or the libcurl I will download?

 

Thanks,

 

Brooke

Link to comment
Share on other sites

I am trying to download, I just want to make sure I download the right stuff (I am new to php development and programming in general")

http://curl.haxx.se/...pe=bin&os=Win64

Is the second link the right one to download? (I had problem downloading some other software then got virus infected my computer which had been pain)

I have Window7 so I choose win64 right?

 

That is correct. You want win64. Except you really want libcurl, if possible. If it comes with XAMPP, it'd be in the PHP/ext directory, named php_curl.dll. See these instructions for enabling support: http://curl.haxx.se/libcurl/php/install.html

 

In the book it says "if your PHP installation does not support libcurl, you can have PHP invoke the command-line cURL application via the exec() function:

 

exec('curl', $response);

 

I do not get this, where do you type in "exec('curl', $response);" , in the php.ini file or the libcurl I will download?

 

No, that would go in your PHP code and would invoke the standalone cURL, which would have to be installed on your system.

 

I'll also say that the book does assume complete comfort with PHP and MySQL, just so you're aware.

  • Upvote 1
Link to comment
Share on other sites

 

I'll also say that the book does assume complete comfort with PHP and MySQL, just so you're aware.

 

I would like to add two things (maybe this isn't the place, let me know) that the people that who pick up your books without the background are the hard core knowledgologists that know your teaching is far better then most, THANK YOU.

 

Second: using the command line is the easiest way to get around MySQL. What I found helpful is this

1) in windows 7 goto START > CONTROL PANEL > SYSTEM > ADVANCED SYSTEM SETTINGS (on the left): Select the Advanced tab, Select Environment Variables... Under User variables for %Name%, Select New.

Under Variable Name, type: MySQL

Under Variable Value, type: C:\XAMPP\mysql\bin\mysql.exe

Select OK (2x's)

 

Then, go to START and type in CMD

In the command window type in: %mysql% –h localhost –u root -p

(Yes, include the percent signs.)

Type in your password and continue from there.

 

For reference: download the PDF (3752p.) refman-5.5-en located at: http://dev.mysql.com/doc/

Refer to chapter 3: Tutorial

 

Hope this helps other Newbies, just like me:)

Link to comment
Share on other sites

 Share

×
×
  • Create New...