Tag: library

How to call url from php using C-url :: alternative to file_get_contents()

This is a nice and simple substitute to get_file_contents() using curl, it returns FALSE if $contents is empty. <?php function curl_get_file_contents($URL) { $c = curl_init(); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_setopt($c, CURLOPT_URL, $URL); $contents = curl_exec($c); curl_close($c); if ($contents) return $contents; else

Tagged with: , , , , , , , , , ,

How to install /configure GD library for PHP 5 on appache / windows xp ?

The default windows distribution of PHP comes with GD. So enabling the GD extension should be as simple as opening your php.ini file and uncommenting the necessary line. So this line: Code: ;extension=php_gd2.dll Should look like this (Remove the preceeding

Tagged with: ,