background preloader

PEAR - PHP Extension and Application Repository

PEAR - PHP Extension and Application Repository

The web's scaffolding tool for modern webapps | Yeoman PHP Tutorials - What is a Variable? A variable is just a storage area. You put things into your storage areas (variables) so that you can use and manipulate them in your programmes. Things you'll want to store are numbers and text. If you're ok with the idea of variables, then you can move on. If not, think of them like this. You count how many coats you have, and then give these to the man. mr_coats mrs_shoes But it's entirely up to you what names you give your people (variables). man_coats woman_shoes Or HimCoats HerShoes But because your memory is bad, it's best to give them names that help you remember what it is they are holding for you. OK, so your people (variables) now have name. mr_coats = 10 So, the variable name comes first, then an equals sign. However, you're learning PHP, so there's something missing. $mr_coats = 10 If you miss the dollar sign out, then your people will refuse to work! $mr_coats = 10; So the man is holding ten coats. $mrs_shoes = 25; So, $mrs_shoes is holding a value of 25. $total_clothes

Web API reference - Web technology reference The Web offers a wide variety of APIs to perform various useful tasks. These can be accessed using JavaScript code, and let you do anything from making minor adjustments to any window or element, to generating intricate graphical and audio effects using APIs such as WebGL and Web Audio. Each individual interface across all APIs is listed in the index. There's also a listing of all available events in the event reference. Document Object Model The DOM is an API that allows access to and modification of the current document. Device APIs This set of APIs allows access to various hardware features available to Web pages and applications. Communication APIs These APIs let Web pages and applications communicate with other pages or devices. Data management APIs User data can be stored and managed using this set of APIs. In addition to these APIs that are available to any Web site or app, a set of more powerful Mozilla APIs are available to privileged and certified applications. Privileged APIs

24 Cool PHP Libraries You Should Know About Martin Angelov It is an exciting time to be a PHP developer. There are lots of useful libraries released every day, and with the help of Composer and Github, they are easy to discover and use. Here are 24 of the coolest that I’ve come across. Your favorite is not on the list? 1. Dispatch is a minimal PHP framework. include 'dispatch.php'; get('/greet', function () { render('greet-form'); }); post('/greet', function () { $name = from($_POST, 'name'); render('greet-show', array('name' => $name)); }); dispatch(); You can match specific types of HTTP requests and paths, render views and more. 2. Klein is another light weight routing library for PHP 5.3+. respond('/[:name]', function ($request) { echo 'Hello ' . You can also subscribe to specific HTTP methods and use regexes as paths: This is great for small projects, but you have to be disciplined when using a library like this for larger apps, as your code can become unmaintainable very fast. 3. require '.. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.

Emmet — the essential toolkit for web-developers PHP 5 Tutorial Using the Python Interpreter — Python 2.7.8 documentation 2.1. Invoking the Interpreter The Python interpreter is usually installed as /usr/local/bin/python on those machines where it is available; putting /usr/local/bin in your Unix shell’s search path makes it possible to start it by typing the command to the shell. On Windows machines, the Python installation is usually placed in C:\Python27, though you can change this when you’re running the installer. set path=%path%;C:\python27 Typing an end-of-file character (Control-D on Unix, Control-Z on Windows) at the primary prompt causes the interpreter to exit with a zero exit status. The interpreter’s line-editing features usually aren’t very sophisticated. The interpreter operates somewhat like the Unix shell: when called with standard input connected to a tty device, it reads and executes commands interactively; when called with a file name argument or with a file as standard input, it reads and executes a script from that file. Some Python modules are also useful as scripts. 2.1.1. 2.1.2. 2.2.

Related: