How to debug php on remote server?

I’ve talked about debugging php using netbeans. Debugging php locally is relatively easy. You only need to install apache server such as xampp/wampp on your PC, and put your website […]

If you want php file_get_contents to use proxy, you can use the following code: $options = array( ‘http’ => array( ‘proxy’ => ‘tcp://localhost:3128’, ‘request_fulluri’ => true, ), ); $cx = […]

The default include path in php is “.:/usr/share/pear:/usr/share/php”(3 directories). You can change the include path by the include_path=”” option in php.ini. Note that the directories are  separated by colon  in […]

Two modifiers are involved in php multiline regex expression: m and s. Specifically, the m modifier has influence on the interpretation of  the ^ and $ symbols while the s […]

We’ve talked about how to install composer on Windows. But your website which uses composer packages in php is typically on a Linux server. So, today we will present you […]

I never used php namespace as my project is not complex enough to use it. But a small project cannot prevent some programming guru from using namespace. The result is […]

To access public property of object in php, just use $obj->propertyname like: class MyClass { public $a; }; $my=new MyClass; $my->a=1; echo $my->a; Note that, unlike C++, you cannot use […]

php has a set of functions that you can use to generate images on the fly, or add text to existing images. Basically, you use imagecreatetruecolor to create an image(or […]