Monthly Archives: September 2010

Automatically Upload Images with PHP Directly from the URI

It is a simple task to upload images on the server with PHP using a simple web form. Than everything’s in the $_FILES array and after submitting the form the file’s on the server. By simply move_uploaded_file you can change … Continue reading

Posted in micro tutorial, PHP | Tagged , , , , , , , , , , , , , | Leave a comment

HTTP POST with PHP without cURL

Awesome PHP It’s strange how powerful PHP can be. There’s a legend that cURL is the only way to perform a HTTP POST with PHP, but that isn’t the truth. An extremely useful script is by using stream_context_create: $optional_headers = … Continue reading

Posted in micro tutorial, PHP | Tagged , , , , , , , , , | 4 Comments

The Better Way to Unset Variables in PHP

Don’t know why, but most of times I see the PHP unset() multilined with a only one parameter!? unset($var1); unset($var2); unset($var3); But as you can see from the PHP doc page of unset() this method takes optional parameter count. void … Continue reading

Posted in micro tutorial, PHP | Tagged , , , , , , , , , , , , | Leave a comment

Friday Algorithms: Input Data and Complexity

Size of .. As we all know most of the cases a program execution time depends most from the input data. As I wrote in my post the degree of the input data estimates the algorithm complexity. Of course 3*n² … Continue reading

Posted in algorithms, web development | Tagged , , , , , , , , , | 1 Comment