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. 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.

To tell IP.Board what types of notifications your application supports, you need to add a file notifications.php to your application's extensions/ folder. This file should contain a class labeled "(applicationkey)_notifications", replacing "(applicationkey)" with your application's unique key. <? <? 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. 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. Let’s start 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. Full code Code at github. Real Time Notifications With PHP. Phpmaster | 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?

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. First, you need to ensure PHP is configured to allow uploads. Check your php.ini file and verify the file_uploads directive is set On. 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).

Scripting the Upload Process Security Considerations Summary. Steps to display PDF on web browser | Online Web Log. 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 | salopek.eu. 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.'); INSERT INTO `locations` (`id`, `name`, `address`, `lat`, `lon`, `description`) VALUES (4, 'St.

Web development tutorials | Learn PHP, MySQL, jQuery, CSS and Java | phpacademy. Phpacademy. EDU. PHP Developer Blog - Part 3. Zend Framework from Scratch. Ready to take your PHP skills to the next level? 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.

Needless to say, Zend is very invested in PHP, which is why Zend Framework is a great tool to add to any developer's arsenal. Zend: The PHP Company Zend Framework is made up of many different libraries and classes. In this series of tutorials, we'll be diving into how Zend Framework works and learning how to use its different components. Zend Framework Download Now link P.S. Zend Framework Login: Preparing Database Step By Step Tutorial. Welcome to phpacademy | phpacademy.