Salvatore
10-08-2004, 10:49 PM
What ssh command can i run on my server to find out if php is "compiled" with curl?
Thank you very much
Thank you very much
![]() | View Full Version : php compiled with curl? Salvatore 10-08-2004, 10:49 PM What ssh command can i run on my server to find out if php is "compiled" with curl? Thank you very much mattwade 10-08-2004, 10:59 PM Create a php script that only has: <?php phpinfo(); ?> and load it up in your web browser. See if curl is compiled in by looking at that page. mattwade 10-08-2004, 11:01 PM As a follow up, you could use this shell command: php -r "phpinfo();" | grep curl Salvatore 10-08-2004, 11:07 PM root@ns1 [~]# php -r "phpinfo();" | grep curl Error in argument 1, char 2: option not found r Thanks everyone. Salvatore 10-08-2004, 11:16 PM When I check the PHP info in my modernbill software it shows that curl is compiled with php but when I upload this file (<?php phpinfo(); ?>) to a website it shows that curl is not there. Please advise, Thank you mattwade 10-08-2004, 11:18 PM And these are on the same server? Salvatore 10-08-2004, 11:22 PM Yes they are. Thank you Salvatore 10-08-2004, 11:27 PM Wait, sorry I made a mistake. They are not on the same server. How do I compile php with curl using WHM? Do I just use the "Update Apache" feature and choose both curls? Will this "compile it with php? Thanks and sorry for the mistake. mattwade 10-08-2004, 11:28 PM Yep..just use the update apache and away it goes. Make sure to choose all the other options you want as well. Check that phpinfo page to see what is currently installed. Salvatore 10-08-2004, 11:31 PM Thanks so much. Burhan 10-09-2004, 02:53 AM For your reference, the command to run is : $ php -i | grep CURL CURL support => enabled CURL Information => libcurl/7.11.0 OpenSSL/0.9.7d zlib/1.2.1 Other useful command line options: $ php -v PHP 4.3.9 (cli) (built: Sep 30 2004 17:12:36) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies Note that this is a cli build, not a cgi build -- options vary To run files, add -q option, which suppresses the headers: $ php -q test.php 04/09/2004 To check for syntax errors, use the -l option $ php -l test.php No syntax errors detected in test.php |