Copy the according library (third_party_lib) in symfony_project_folder/lib. To include a file from this folder in another php file do:
include_once sfConfig::get('sf_lib_dir')."/third_party_lib/File.php";
Code Snippets and Hints for HTML, PHP, Java, MySQL, Xcode etc...
include_once sfConfig::get('sf_lib_dir')."/third_party_lib/File.php";
<?php $path = getcwd(); echo $path; ?>
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
class test{ var $runtest; function test(){ $this->runtest = 1; // proper usage } function printThis(){ echo $this->runtest; } } $object = new test(); echo $this->runtest; // fails this not part of an object. echo $object->runtest; // success
class TestClass { var $test; function testMethod() { $this->test = 'test'; } } TestClass::testMethod(); // Error
class TestClass { var $test; function testMethod() { TestClass::$test = 'test'; } }