background preloader

PHP

Facebook Twitter

Notifications - Applications - Guides - IPS Community Suite Guides - Invision Power Services. Guide added by Brandon Farber, Mar 15 2012 02:35 PM (Updated Feb 11 2013 09:42 AM) It is a common necessity in web applications to send notifications to users of the system, alerting them to changes or other events that may require their attention.

Notifications - Applications - Guides - IPS Community Suite Guides - Invision Power Services

IP.Board provides a powerful notifications framework that will allow you to send notifications to your users with ease. Configuration IP.Board itself will handle the large bulk of the configuration needs for you, however you will need to signal to IP.Board the types of notifications your application supports. This will, in turn, allow the administrator and individual users to elect if they wish to receive the notifications, and the method to use. <? Notifications are shown in the ACP and to the user based on the 'key' that is defined for each notification type. <? The getConfiguration() method is the only required method, and must return an array (as structured above). Sending Notifications Here is a basic example: Typical Usage. Real time notifications (part II). Now with node.js and socket.io. In one of my previous posts I wrote about Real time notifications with PHP.

Real time notifications (part II). Now with node.js and socket.io

I wanted to create a simple comet system fully written in PHP and JavaScript. It worked but as Scott Mattocks told me in a comment this implementation was still just doing short polling. The performance with this solution may be bad in a medium/hight traffic site. This days I’m playing with node.js and I want to create a simple test. I want to do exactly the same than the previous post but now with node.js instead of my PHP+js test. Now I want to use socket.io instead of pure web-sockets like my previous posts about node.js. WebSocketAdobe Flash SocketAJAX long pollingAJAX multipart streamingForever IframeJSONP Polling First we create our node.js server. This server will broadcast the message received from the browser to all connected clients.

Our HTML page will look like that: As we can see we are including the js script called socket.io/socket.io.js. And that’s all. Real Time Notifications With PHP. Uploading Files with PHP. What do pictures in an online photo album, email attachments in a web-based mail client, and data files submitted to an online application for batch processing all have in common?

Uploading Files with PHP

They all rely on the ability to upload files across the Internet from the user’s web browser. Indeed, uploading files is an important feature of many of the sites and web-based applications we use on a daily basis. In this post, I show you how to add support for file uploads to your site using PHP. Requirements Handling file uploads isn’t difficult, but there are a handful of small details that must be correct or else the upload will fail.

File_uploads = On Uploaded files are first stored in a temporary directory (don’t worry… your PHP script can move the files to a more permanent location afterward). Upload_tmp_dir = "/tmp" tboronczyk@zarkov:~$ ls -l / | grep tmp drwxrwxrwt 13 root root 40960 2011-08-31 00:50 tmp Scripting the Upload Process Here’s what markup for a basic file upload form looks like: Summary. Steps to display PDF on web browser. Show a PDF files in users browser via PHP/Perl. Dynamic input fields for mysql table with jquery, ajax and php - Killersites Community. Display locations from a database on a map using Google Maps JavaScript API and PHP. INSERT INTO `locations` (`id`, `name`, `address`, `lat`, `lon`, `description`) VALUES (1, 'Archaeological Museum', 'Nikola Šubić Zrinski Square 19, 10000, Zagreb, Croatia', 45.823704, 15.990757, 'The Archaeological Museum in Zagreb, Croatia is an archaeological museum with over 450,000 varied artifacts and monuments, gathered from various sources.'); INSERT INTO `locations` (`id`, `name`, `address`, `lat`, `lon`, `description`) VALUES (2, 'Modern Gallery', 'Andrije Hebranga 1, 10000, Zagreb, Croatia', 45.809280, 15.977570, 'Modern Gallery is a museum in Zagreb, Croatia that holds the most important and comprehensive collection of paintings, sculptures and drawings by 19th and 20th century Croatian artists.

Display locations from a database on a map using Google Maps JavaScript API and PHP

Learn PHP, MySQL, jQuery, CSS and Java. Phpacademy. EDU. PHP Developer Blog - Part 3. Zend Framework from Scratch. Ready to take your PHP skills to the next level?

Zend Framework from Scratch

In this new “From Scratch” series, we'll focus exclusively on Zend Framework, a full-stack PHP framework created by Zend Technologies. First in our tutorial series, is "Getting Started with Zend Framework. " Zend Framework is a full-stack PHP framework created by Zend Technologies. For those who aren't familiar with the company, Zend Technologies provides web developers with various tools to help them in their work. Notable examples are Zend Server, a web application server for running and managing PHP applications, and Zend Studio, a full-featured IDE for PHP. Zend: The PHP Company Zend Framework is made up of many different libraries and classes. Zend Framework Login: Preparing Database Step By Step Tutorial. Welcome to phpacademy.