Online Ordering PHP Script for Local Takeaways and Restaraunts

http://static.phpjabbers.com/files/banners/online-food-ordering-system-image.pngAre you are local takeaway or a restaraunt that provides a takeaway service? Then have a look at a new PHP script by phpjabbers which allows your customers to easily order for delivery or pickup and pay online.

You can even setup the application to handle multiple delivery zones.

Take a look by going to Food Delivery Script

Need this script style then contact Zone1 Creative for a free quote

Online html php editor with shiftedit

I never use dreamweaver or any other code generator. I have always used my trusty notepad++. But I have come across shiftedit.net which allows you to have all the syntax highlighting of notepad++ but through an online editor.
It includes an FTP manager to store you connection settings so you do not have to remember this everytime.
If you are with heartinternet then you will need to add your servers ip address to the global unlock.otherwise you will get annoyed with have to log into your hosting control panel before try to edit any files.

How to identify the browser in PHP

Bastian Allgeier has posted a great article on how to identify what browser is being used to view your website. The code is written in PHP and set the HTML class to the browser being used.

The implementation involves downloading the PHP code from Bastian’s website and adding two line of code to your PHP script. Then adding CSS accordingly.

Full Article

PHP programmer tools

So you want to be a PHP programmer? Here are a list of the tools I have installed on my computer before I can start coding. Most of these apps can be installed using Ninite which is a multi installer and greater when you buy a new computer.

Code Editor

Notepad++

http://notepad-plus-plus.org/download

FTP

Filezilla
http://filezilla-project.org/

Database Editor (MYSQL)

Heidi
http://www.heidisql.com/

Internet Browsers

Firefox
http://www.mozilla.com/en-US/

Web Developer Toolbar for firefox
https://addons.mozilla.org/en-US/firefox/addon/60/

Firebug for firefox
https://addons.mozilla.org/en-US/firefox/addon/1843/

Live HTTP Headers for Firefox
https://addons.mozilla.org/en-US/firefox/addon/3829/

Password Manager

Keepass
http://keepass.info/

Remote Desktop

Logmein
http://www.logmein.com/

Teamviewer
http://www.teamviewer.com/

Skype
http://www.skype.com/

Compression

7-zip
http://www.7-zip.org/

Terminal Clients

Putty
http://www.chiark.greenend.org.uk/~sgtatham/putty/

Have Fun

Writing an API in PHP for your app

Lately I have writing an API for Micro Site Manager a satellite site generator. This app is currently in Alpha stage and is being tested by a number of my clients.

If written a lot of bespoke PHP code to handle data transfer between the site and the satellite sites. So a Satellite makes a request for page information and this is return with JSON formatted information.

Now I have come across a site were all the hard work has been done for you. This code can generate JSON, XML, CSV and also limit usage per hour per user.

The code on costs $7, so a bargain. I could have coded this myself but this saves me time.

Display the contents of an array in Smarty

Some time you just need to see what variables are available in an array in Smarty. In PHP this is usually done using “print_r($foo)” where $foo is your array. But in smarty this is done using the following method.

{$foo|@print_r}

When you use this command I recommend placing open and closing pre tags around the command to ensure the output is formatted in a readable format.

The @ tells smarty to pass the entire array to the modifier rather than calling the modifier for each element of the array. Smarty also ships with a modifier that does similar to print_r(): {$foo|@debug_print_var}. You may also consider smarty’s debug facility (which you can enable in-template by inserting a {debug} tag or you can enable by configuring the Smarty object appropriately — see the docs for more info)