PHP Code
-
Mattias Geniar's Blog: php_value vs php_admin_value and the use of php_flag explained22 February 2012, 6:14 pm
In this quick post to his blog Mattias Geniar looks at three different Apache flags you can use in your configuration/.htaccess files to set various things in your PHP environment.
Back in 2009 there was a bug in the php_admin_value implementation before PHP 5.2.6. Since then, everything should run smoothly again. However, I find there's still a lot of confusion on when to use php_value, php_admin_value, php_flag and php_admin_flag. So I'll see if we can clear some of that.
He compar...
-
NetTuts.com: PDO vs. MySQLi: Which Should You Use?22 February 2012, 5:58 pm
On the NetTuts.com site today there's a quick tutorial comparing two of the main database access methods available to PHP developers - PDO and MySQLi - based on performance and features they each have.
When accessing a database in PHP, we have two choices: MySQLi and PDO. So what should you know before choosing one? The differences, database support, stability, and performance concerns will be outlined in this article.
The article starts with a summary of what each of the tools offer...
-
Dzone.com: A Free Amazon EC2 Cloud Server Based LAMP22 February 2012, 4:42 pm
In this new article on DZone.com, Artur Mkrtchyan shows you how to get an Amazon EC2 instance up and running and get a LAMP server set up and ready to go.
In this article I'm going to show you how to create a free Amazon EC2 cloud based LAMP Server and Point your domain to Amazon EC2 Instance. There are 4 simple steps to do.
The setup process is pretty easy - getting an Amazon free account, creating a server from an existing image, installing the LAMP stack and pointing your domain a...
-
Dave Marshall's Blog: How I'm designing a RESTful(ish) web service22 February 2012, 3:13 pm
Dave Marshall is in the process of building a "RESTish" web service and has shared some of his planning steps in a new post to his blog.
This post is going to describe how I've ending up designing, what I consider to be a fairly RESTful web API. I'm far from being an expert, and this is definitely the closest thing to a RESTful API that I've ever created, so I'm not even experienced with REST APIs. [...] Until about 6 months ago, I'd always been sceptical of creating RESTful APIs, but I t...
-
Community News: Dutch PHP Conference Schedule Announced!22 February 2012, 2:09 pm
The Dutch PHP Conference has officially announced their schedule for this year's event and the opening of the registration (Early Bird pricing ending April 1st).
We are happy to announce that we have just published the schedule and registration is now open. Quickly, go and check out all the great content we have to offer this year! Once you've decided that you want to join us, you can go to the registration page to order your tickets. Please note that you will get a 15% early bird discoun...
-
Community News: Latest Releases from PHPClasses.org22 February 2012, 1:04 pm
Rainbow Maker
URL Tool
IE9 Helper
QR SAT
Simple Session (PDO / MySQL)
Date Convert
DB Schema Management
PDO Database Connection
select2csv
csv2tbl
Smooth Scroll CakePHP Plugin
Fill Form
User Agent Parser
FillForm
...
-
Community News: The Great Web Framework Shootout21 February 2012, 5:03 pm
Seth Davis has put together a github repository with some benchmarking for some of the most common web frameworks - both PHP and not. His statistic is "requests per second" in a few scenarios: a "hello world" string test, a test with a database connection and one with a templated response.
It should also be noted that my goal here was not necessarily to figure out how fast each framework could perform at its most optimized configuration (although built-in caching and other performance twe...
-
Marcelo Gornstein's Blog: Sniffing in PHP using libpcap: Thank you SWIG!21 February 2012, 4:13 pm
Marcelo Gornstein has posted a new article showing how to use SWIG and libpcap to sniff packets from the network directly from his PHP application.
I've been wanting to try SWIG for a long time, but never got the chance, for one thing or the other. So this weekend I've finally decided to give it a try by trying to create a php extension that access a small C++ wrapper for libpcap, so I can sniff packets directly from PHP. Just for fun (and actually because I couldn't find any active pecl ...
-
PHPMaster.com: Creating Web Services with PHP and SOAP, Part 121 February 2012, 3:52 pm
On PHPMaster.com today there's a new tutorial posted, the first part in a series, showing how to create SOAP web services with the help of the NuSOAP library.
In this first of a two part series on web services I'll talk about the SOAP specification and what is involved in creating SOAP messages. I'll also demonstrate how to create a SOAP server and client using the excellent NuSOAP library to illustrate the flow of SOAP. In the second part I'll talk about the importance of WSDL files, how...
-
Voices of the ElePHPant: Interview with Matthew Weier O'Phinney21 February 2012, 2:38 pm
On the Voices of the ElePHPant podcast today Cal Evans has posted the latest interview with a member of the PHP community. This time it's Matthew Weier O'Phinney, lead on the Zend Framework project.
Cal's "three questions" for Matthew were:
Since Zend Framework is the opposite of the ideals behind the Micro PHP Manifesto, what are your thoughts on it?
Zend Framework 2 is close but not done - should a new project go with v1 or v2?
What's your local user group and it's URL (hint: there...
PHP Freaks Content
-
[Snippet] Search for documents by keyword - a bit like tagging22 February 2012, 12:41 am
File Name: Search for documents by keyword - a bit like tagging
File Submitter: PaulD
File Submitted: 29 Jan 2009
File Updated: 29 Jan 2009
File Category: Miscellaneous
This snippet is a piece of code that you may find handy.
I had a folder with lots of documents, each representing an album. I used the keywords on each page to identify the musicians on each album. I wanted then to be able to gather all the documents by a specific musician (keyword).
So this is what I came up with. It works r...
-
[Template] Easy Breeze16 February 2012, 9:52 pm
File Name: Easy Breeze
File Submitter: Dean
File Submitted: 4 Oct 2008
File Updated: 4 Oct 2008
File Category: Etomite Templates
Easy Breeze Template by EtomiteLive.com
Click here to download this file...
-
No Document Tree, No Upload Possible11 February 2012, 10:06 pm
In may from this year I reported that upgrading to php 5.3.2 caused several deprecated functions, but now I don't know if that has been the reason for the malfunctioning. Nothing has changed on the server and I'm having the same problems again. No document tree, no upload function. Does anybody has an idea?...
-
Could You Please Help Me With Questionnaire About Cms10 February 2012, 3:02 pm
My name is Piotr and I am a student at Edinburgh Napier University studying Web Technologies. As part of my course I am required to write a dissertation on a topic of my choice, therefore this dissertation is designed to enable me to understand differences and similarities of Open Source (Wordpress, Drupal, Wiki, Joomla etc.) and Commercial (SiteCore, EpiServe, Ektron, Alterian, Amaxus, Sitefinity etc.) Content Management System within user point of view.
I am aware of the busy schedules of eve...
-
Site Offline Not Showing On Ie10 February 2012, 1:43 pm
I have an interesting problem: I am working on a site, and suring production I place the site offline via the Configuration > Site unavailable message. The "message" has a couple of words and an image using HTML. It displays fine on Firefox and Chrome but NOT on Internet Explorer.
Just to be safe, I changed the HTML and used a simple short text sentence. The same results: the text is displayed on the aforementioned browsers, but not on IE.
You can see what I mean here: http://compaccusa.co...
-
google indexing empty url variable9 February 2012, 2:12 pm
anyone know a way to block indexing of a page with an empty url variable?
ie google indexes ".index.php?id="
can't seem to find how to block this. I read adding a '$' in robots.txt (Disallow: /index.php?id=$) would do it but tested it at GWC and the page is still allowed.
Etomite does a good job of redirecting to the home page when there is an empty variable, but in a site with lots of variables, not managed with Etomite, you get a messed up blank page from these links (from google). Just an...
-
What is a custom data interface?8 February 2012, 12:56 pm
I think many users are scared when they see the terms MVC, or Custom Data Interface. I just wanted to dispell any myths that they are tricky or complex. I posted a controller a long time ago and was very surprised that no-one else added their samples. However, when you think about it, why would someone choose etomite? It is user-friendly (which means it works without having to know a heap about code). But it also means that users who do know code have a great platform to build it on. Which...
-
Site Suddenly Not Saving Pages - Probably Nothing To Do With Etomite Itself :-(25 January 2012, 4:55 pm
Hi,
I don't think this has got anything to do with Etomite, but probably with the hosting environment (which is not my own in this case) but an Etomite site I help out someone with suddenly will not save any page changes. The save button just does not do anything. As far as I can tell, none of the files have changed or altered, and the site was working perfectly.
Has anyone experienced a similar thing before and if so, does anyone have any clues about a possible solution.
Thanks for any help...
-
Problems With Etomite Cache After Hosting Company Moved Site To New Server2 January 2012, 10:33 pm
As I've posted elsewhere my hosting company has moved site to a new server and seems to have messed up permissions in the process.
Caching doesn't work
- new pages can't be cached - it gives a permissions error
- the cache can't be cleared - it gives a permissions error
- pages can't be editted - or at least they can, but pages can't be cached even if the old cached page is manually deleted
Can someone advise on the permissions needed in the directories, please, and on the procedure for re-init...
-
Need new hosting company2 January 2012, 10:28 pm
The company I currently use for hosting my sites is closing down shortly, so I need to find a new hosting company urgently.
I manage about ten sites currently, using Etomite, phpBB, and Wordpress, and am considering trying to expand this, so I'm looking for a small 'entry level' reseller type package. There seem to be few suitable options in the UK -
does anyone have any experience of Daily.co.uk or jabwebsolutions.co.uk
alternatively, maybe its time to look at US offerings, so does anyone have...
-
TellaFriend9 March 2011, 9:36 am
This is a Snippet that generates a dynamic form for sending emails to a FriendList
It makes use of the "prototype" javascript framework for convenient DOM manipulation.
INSTALL :
1) copy the content of the "TellaFriend.txt" file into a new snippet and name it "TellaFriend"
2) copy the content of the "TellaFriend_Chunk.txt" into a new Chunk and name it "TellaFriend"
3) add the "Add.png" and "Remove.png" files to your etomite "assets/images/" directory
4) download the "scriptaculous" javascript...
-
Finding Peace2 March 2011, 2:50 pm
Template...
-
ZanorgPlayer30 January 2011, 1:42 pm
// ZanorgPlayer v1.0
//
// MP3 Player and MP3 File from http://radio.zanorg.com/zplayer_eng.htm
// Turned into an Etomite Snippet by Dean
//
// TO INSTALL:
// 1. Upload the zplayer.swf and sample.mp3 file to the assets folder
// 2. Create a NEW snippet called ZanorgPlayer
// 3. Copy and paste all of this into the ZanorgPlayer snippet you just created
// 4. Place the snippet call within your page, for example:
// [ ! ZanorgPlayer?mp3=sample.mp3 ! ] - this will load the sample.mp3 fil...
-
SiteUpdate11 September 2010, 7:42 pm
// Snippet name: SiteUpdate
// Snippet description: Returns date of most recent published document update
// Revision: 1.2 ships with Etomite Prelude v1.0...
-
SearchResults11 September 2010, 7:41 pm
// SearchResults
// Displays results of SearchPrompt snippet...
-
SearchPrompt11 September 2010, 7:39 pm
// Snippet name: SearchPrompt
// Snippet description: Search prompt snippet for use with SearchResults
// Revision: 1.00 ships with Etomite 0.6.1-Final
// Use: [!SearchPrompt?resultsid=###!] snippet call where ### is the
// document id of the page which contains the [!SearchResults!] snippet call...
-
SearchForm11 September 2010, 7:38 pm
// Snippet name: SearchForm
// Snippet description: All-in-one snippet to search the site
// Revision: 1.1 ships with Etomite 0.6.1-Final...
-
RelatedInfo11 September 2010, 7:37 pm
// Snippet name: RelatedInfo
// Snippet description: Outputs a related chunk into the document
// Revision: 1.0 ships with Etomite 0.6.1-Final
// Author: Lloyd Borrett - 2006-04-09
// Description:
// Outputs a chunk into the document based on the
// document's alias/id, and optionally, a prefix
// passed to the chunk....
-
PageTrail11 September 2010, 7:35 pm
// Snippet name: PageTrail
// Snippet description: Outputs the page trail, based on Bill Wilson's script
// Revision: 1.00 ships with Etomite 0.6.1-Final...
-
NewsListing11 September 2010, 7:34 pm
// --------------------
// Snippet: NewsListing
// --------------------
// Originated as NewsListing v1.0 by Alex
// Revised as NewsListingRevised by mrruben5
// Revised as NewsListingRev02 by LePrince
// Revised as NewsListingRev03 v1.0 by Lloyd Borrett (lloyd@borrett.id.au)
// Revised as NewsListingRev04 v1.0 by Ian Smith (www.n-vent.com)...
PHP.net news & announcements
-
Northeast PHP conference - Call for Papers!9 February 2012, 1:36 pm
...
-
PHP 5.3.10 Released!2 February 2012, 7:32 pm
...
-
PHP 5.4.0 RC6 released24 January 2012, 12:05 pm
...
-
ConFoo 201220 January 2012, 5:20 am
...
-
PHP 5.3.9 Released!10 January 2012, 9:29 pm
...
-
PHP 5.4.0 RC5 released7 January 2012, 2:44 pm
...
-
PHPBenelux 20127 January 2012, 1:47 pm
...
-
PHP 5.4.0 RC4 released25 December 2011, 12:14 am
...
-
Dutch PHP Conference 201223 December 2011, 10:11 am
...
-
PHP 5.4.0RC3 released14 December 2011, 2:43 pm
...
-
ServerCHECK Mini II (Windows)22 February 2012, 12:16 am
...
-
Simple CSS3 Tooltips (Miscellaneous)21 February 2012, 8:05 pm
...
-
Network Merchants Inc Payment Gateway for Jigoshop (Jigoshop)21 February 2012, 5:33 pm
...
-
Responsive KenBurner Slider jQuery Plugin (Sliders)21 February 2012, 11:02 am
...
-
Viral Lock PHP - Like, Google+1 or Tweet to Unlock (Social Networking)21 February 2012, 10:47 am
...
-
JS-Banner (WordPress)21 February 2012, 9:49 am
...
-
Easy Show & Hide for WordPress (Add-ons)21 February 2012, 12:04 am
...
-
Saloon - The jQuery Banner Rotator Plugin (Sliders)20 February 2012, 8:23 pm
...
-
Envatem - Easy Envato Items (Utilities)20 February 2012, 4:01 pm
...
-
Pdf to Image web gallery creator and tools (Images and Media)20 February 2012, 12:06 pm
...
-
Silicon - Premium Vanilla 2 Theme (Vanilla)22 February 2012, 3:32 am
...
-
SmoothDeal E-Mail Template (Email Templates)21 February 2012, 8:13 pm
...
-
Prometheus - A Responsive Business Template (Corporate)21 February 2012, 7:00 pm
...
-
Edgeless Coming Soon Portfolio PSD Template (Portfolio)21 February 2012, 5:31 pm
...
-
Minimal VCard (Virtual Business Card)21 February 2012, 5:03 pm
...
-
Mundus - Business and Portfolio HTML Template (Creative)21 February 2012, 4:48 pm
...
-
SwagMag - Magazine/Review Theme (Entertainment)21 February 2012, 4:05 pm
...
-
Elephant Web - Premium PSD Template (PSD Templates)21 February 2012, 3:32 pm
...
-
Alphapack - Premium WordPress Theme (Creative)21 February 2012, 11:42 am
...
-
Newport - Modern HTML Template (Creative)21 February 2012, 9:45 am
...
-
Synergy - XML Template with Deeplinking (Creative/Portfolio)20 February 2012, 6:29 am
...
-
Shapes from Ribbon Lines (Mouse Controlled)20 February 2012, 4:22 am
...
-
SOLID TIMELINE - XML Template (Site Templates)19 February 2012, 2:14 pm
...
-
TextLight (Effects)18 February 2012, 3:41 pm
...
-
SliceStack Slideshow (Banner Rotators)18 February 2012, 1:51 pm
...
-
Breakable Fence Prefab (Objects)18 February 2012, 2:49 am
...
-
Dart Wheel Flash Game (Shooting)17 February 2012, 11:15 pm
...
-
Light Rays Prefab (Objects)17 February 2012, 7:04 pm
...
-
Follow me on Twitter (Cartoons)17 February 2012, 11:35 am
...
-
Sam The Bubble Popper Game with Cheats and Adverts (Action)17 February 2012, 4:56 am
...