Permalink
Browse files

Use dirname(__FILE__) instead of realpath('.')

  • Loading branch information...
shuber committed Dec 19, 2008
1 parent f3d0da9 commit ee9f201544f826ed909f7a149447cade6c92e587
Showing with 5 additions and 2 deletions.
  1. +3 −0 CHANGELOG
  2. +1 −1 curl.php
  3. +1 −1 curl.php4
View
@@ -1,3 +1,6 @@
+2008-12-19 - Sean Huber (shuber@huberry.com)
+ * Use dirname(__FILE__) instead of realpath('.')
+
2008-06-12 - Sean Huber (shuber@huberry.com)
* $curl->cookie_file defaults to curl_cookie.txt using an absolute path
View
@@ -23,7 +23,7 @@ class Curl
public function __construct()
{
- $this->cookie_file = realpath('.').'/curl_cookie.txt';
+ $this->cookie_file = dirname(__FILE__).'/curl_cookie.txt';
$this->user_agent = isset($_SERVER['HTTP_USER_AGENT']) ?
$_SERVER['HTTP_USER_AGENT'] :
'Curl/PHP ' . PHP_VERSION . ' (http://github.com/shuber/curl/)';
View
@@ -29,7 +29,7 @@ class Curl
function __construct()
{
- $this->cookie_file = realpath('.').'/curl_cookie.txt';
+ $this->cookie_file = dirname(__FILE__).'/curl_cookie.txt';
$this->user_agent = isset($_SERVER['HTTP_USER_AGENT']) ?
$_SERVER['HTTP_USER_AGENT'] :
'Curl/PHP ' . PHP_VERSION . ' (http://github.com/shuber/curl/)';

0 comments on commit ee9f201

Please sign in to comment.