PHP & More

A technical blog about programming in PHP and about technology in general: programming, workarounds and troubleshooting

When you see a change in the major version (the number before the first point of the version id), expect a great leap. New features have been added to PHP in version 7, that make programming more convenient. I’m going to discuss some of them. Null Coalescing Suppose you’re trying to get a value from …

Continue reading

cURL is a tool used for browsing the web from the shell or command-line. It supports many internet protocols, such as HTTP, FTM, POP3, IMAP, SMTP and more. See the full list here. With libcurl installed in your system and the C API, you can browse using a C program. You can also install the …

Continue reading

You probably know the SWF file format. This is not just a movie, but also can be an interactive application. SWF files can be created with the Ming PHP extension. You can get information on how to install and use the extension here. The movie format can be extended with a special scripting language, named …

Continue reading

I have an account on Godaddy.com. This site allows its user to install products such as Drupal. Drupal is a 3rd-party PHP framework that can be installed automatically by web hosting sites. Sites built with Drupal can have registered users, and when a users signs up, they get confirmation e-mails. But the site does not …

Continue reading

Backbone.js is a Javascript framework known as MV* (Model, View and stuff). This framework has the Backbone.sync function to perform CRUD (Create, Read, Update, Delete) operations. In order for a model object to perform these operations, it should have a property named ‘url’. The ‘sync’ function receives 3 arguments: method, model and options. Model objects …

Continue reading