Archive for PHP

Pipni.cz Virtual Linux Server

PIPNI – Vlastní dedikovaný virtuální server s ROOT přístupem – Debian or Slackware (for free bez garance)

Comments off

Helpful WordPress Plugins

Comments off

JSON in PHP

JSON (general information – many references)
A comparison of php json libraries (April 2007)
Services_JSON (PEAR proposal) (m. migurski / json)
XML-RPC for PHP (2) A PHP implementation of the XML-RPC web RPC protocol. Extra modules provide support for the JSON and JSONRPC protocols. A javascript version of the library is also available.

Comments off

Charts in Flash

Open Flash Chart is open source. It is free to use and you get the source code to fiddle with!
How does it work?

  1. User browses to your web site.
  2. The browser downloads the web page which contains the Open Flash Chart.
  3. Open Flash Chart downloads the data file and displays the chart.

When you add Open Flash Chart to your web page, you tell it where to find the data file.
Helper classes for Java, Php, Perl, .NET, Ruby and Python available

Comments off

Ajax from Sun

jMaki (java.net)s an Ajax framework that provides a lightweight model for creating JavaScript centric Ajax-enabled web applications using Java, Ruby, PHP, and Phobos.

Comments off

Programming Language Cookbooks Project

PLEAC – Programming Language Examples Alike Cookbook:
Following the great Perl Cookbook by Tom Christiansen & Nathan Torkington, published by OReilly; you can freely browse an excerpt of the book here which presents a suite of common programming problems solved in the Perl language, this project aims to gather fans of programming, in order to implement the solutions in other programming languages. (Perl, Java, PHP, TCL, Groovy, Python, Smalltalk, C++, Ada, Erlang, etc.)

Comments off

Ant for PHP

PHing Is Not GNU make; its a project build system based on Apache Ant. You can do anything with it that you could do with a traditional build system like GNU make, and its use of simple XML build files and extensible PHP “task” classes make it an easy-to-use and highly flexible build framework. Features include file transformations e.g. token replacement, XSLT transformation, Smarty template transformations, file system operations, interactive build support, SQL execution, CVS operations, tools for creating PEAR packages, and much more.

Comments off

Info on Ning

Comments off

PHP Web Application Development Framework

VCL for PHP is PHP framework to develop web applications, it’s OpenSource and it’s licensed using LGPL. The framework has been designed to be integrated into an IDE, called Delphi for PHP, which allows you to develop PHP web applications visually with all the benefits of a RAD Integrated Development Environment.

Among the features the library provides, here are the main ones:

* Fully OO applications
* Complete MVC model
* Properties, Methods and Events
* I18N functionality
* Template Engines
* Ajax abstraction
* Database abstraction and data-aware components
* Input filtering using objects
* Webservices integration

It’s easy to extend and provides a fast path to get web applications up and running with an attractive usert interface.

Comments off

Free Web Statistics Scripts

The LevelTen Hit Counter is a top rated web counter statistics package available for free download. It features a one-of-a-kind Flash rich media reporter that quickly generates hundreds of real-time graphical web traffic reports. It is powered by PHP / MySQL scripts (Perl version also available) that install in minutes on virtually any webserver.

The LevelTen Hit Counter provides all the standard statistics of other free web counters; visitor and page traffic, referrer and search engine analysis, browser, OS and hardware settings. Yet, it is the LevelTen’s advanced analytics, not found in other free hit counters, that give you a true advantage by intelligently mapping key results-focused web statistics. The LevelTen Hit Counter’s focus is different then other hit counters, it not only tracks your site’s traffic but also enables you to accurately evaluate the success of your site’s design and marketing.

The statistics can be viewed online (flash) or via a desktop application.

It said to show less information then Google Analytics (but with the advatage of always current data).

Comments off

Application Visualizer

Language Independent Visualizer LIVER (PHP, Java, JavaScript, etc.), written in Ruby, generating .dot files for visualization in any GraphViz viewer.

Comments off

Crontab Regular Expression

Regular expression for validating crontab records could be like this:
“^([^#\s]+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.+)$” (the parts are: minute, hour, day, month, weekday, command)
(From here)

Comments off

PHP APC Sucks

“It should be noted that apc_store appears to only store one level deep.” (PHP: apc_store – comments)

Comments off

USB Webserver

Server2Go is a Webserver that runs out of box without any installation. That means it is a webserver that can run directly from cdrom, usb stick or from any folder on harddisk. Server2Go allows you to create a standalone working web site or PHP application on a CD-ROM. Server2Go was primary developed for the usage on CD-ROM but there is no problem use it from other drives too. Using a web browser, a user can run php programs as well as view html files on the CD-ROM. He only need to insert a CD with Server2Go under the supported Windows operations systems. The server starts automaticly and opens a browser with the Website of the CD-ROM.
Server2Go was build to replace a tool called WampOnCD that lacks some important features and isnt activly developed.

Server2Go supports PHP5, SQLite and MySQL.

Comments off

PHP Class Constructors Goodies

1. Calling the parent’s constructor without knowing its name:

$this->{get_parent_class(__CLASS__)}($arg1, $arg2, ...);

2. Creating an object of different type in a constructor.
Note that you can NOT return an object from a constructor. A constructor can never return a value. However, you can set the value of $this to acheive this.

class A
{
  function A()
  {
    $this = new B();
  }
}

(Found in comments in PHP: Constructors – Manual)

Comments off

Pokus – příliš žluťoučký kůň úpěl ďábelské ódy

__nadpis__ _jedno_
*hvezda*
h2. podnadpis
Pokus – příliš žluťoučký kůň úpěl ďábelské ódy
Read the rest of this entry »

Comments off

The PHP Rapid Development Framework

CakePHP is a rapid development framework for PHP which uses commonly known design patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC. Our primary goal is to provide a structured framework that enables PHP users at all levels to rapidly develop robust web applications, without any loss to flexibility.

Comments off

AJAX with Smarty

AJAX-enabled Smarty plugins uses Prototype JavaScript library to implement three basic (but useful) AJAX calls:
- ajax_update (used for update some parts of web-page)
- ajax_call (used for call PHP function on server side and retrieve its output)
- ajax_form (used for submit Web-forms without post-back)

Author also writes some articles on that: AJAX-enabled Smarty plugins.

Comments off

How to store PHP variables

It is not hard to use var_export(var) and file_put_contents/file_get_contents() function to store PHP variable in a file and get it back.
What is interesting is how to make a PHP variable from string produced by var_export($var, true):
$var2 = eval(‘return ‘. $str2 . ‘;’);
Adding ‘return’ and semicolon are the key points! (see PHP: return – Manual).

See the full example bellow.
Read the rest of this entry »

Comments off

Inter-Process Communication in PHP (eZ Publish founders)

Comments off

Odstranění diakritiky z různých kódování

La Trine
KEYWRODS: win2ascii, iso2ascii, utf2ascii

Comments off

Standard input in PHP

Using PHP from the command line:

$fd=fopen("php://stdin","r");
if (!$fd)
  exit;

Comments off

Processes in PHP

Process Forking with PHP

Thorough look at PHP’s pcntl_fork() – very good article with interesting comments.

Comments off

Worth Mentioning PHP Classes

PHP Serial class can be used to communicate with a serial port under Linux.
It takes the path of serial device and checks whether it is valid before opening a connection to it.
Once the connection is opened, it can send data to the serial port.
The class may also change connection parameters for the given serial device.

TailFile class emulates UNIX "tail -f" command for cgi php.

Comments off

Threads in PHP

PHP: Process Control Functions support in PHP implements the Unix style of process creation, program execution, signal handling and process termination. Process Control should not be enabled within a web server environment and unexpected results may happen if any Process Control functions are used within a web server environment.
UNIX only

Class: Thread (seems o be the same as Pear::PHP_Fork package) is a wrapper around the pcntl_fork() stuff, with a API set like Java language.
Practical usage is done by extending this class, and re-defining the run() method.
This way PHP developers can enclose logic into a class that extends PHP_Fork, then execute the start() method that forks a child process.
Communications with the forked process is ensured by using a Shared Memory Segment; by using a user-defined signal and this shared memory developers can access to child process methods that returns a serializable variable.

SourceForge.net: PHPlet
PHPlet, is an Application Server written in PHP that serves PHP servet (<i>PHPlet</i>). PHPlet are similar to Java Servlet as they implements the init(), service(), destroy() methods. The lifecycle of PHPlet is the same of servlet.

Class: Daemon provides a base class that can create and manage daemon processes on Linux or other Unix-like systems.

This base class can fork the current process and store the child process identifier in a pid file. The forked process enters an infinite loop executing its job until it receives a termination signal.

The base class is not useful by itself. It needs to be derived to implement daemon job as a function of the sub-class. A daemon job subclass is provided as an example.

Article Fork PHP! brings another easy but cute solution. The fundamental thing is that you run a system command (php interpreter in fact) in background – example:

exec("/usr/local/bin/php /path/to/forked_script.php Value1 $ip > /dev/null &1");

Comments off

Tags for WordPress

Ultimate Tag Warrior 3 is a multi-headed hydra of a plugin. It allows you to add tags either through the Write Post page in wordpress in a tag box, on posts using an AJAXy box, and in posts using special syntax from external editors (or internally, if you’d like). From the write post page, you can also get suggestions for tags using the Yahoo! keyword suggestion service.Once you’ve got your tags entered; you enter a realm of interesting ways of doing things with your tags.

Comments off

Marigold.cz o WordPress (plugin list, etc.)

Comments off

Categories in Nucleus

Multiple Categories and SubCategories plug-ins for NucleusCMS.

Comments off

Comments off

Comments off

PHP web framework

symfony – open-source PHP web framework: Based on the best practices of web development, thoroughly tried on several active websites, symfony aims to speed up the creation and maintenance of web applications, and to replace the repetitive coding tasks by power, control and pleasure.
Symfony provides a lot of features seamlessly integrated together, such as:
- simple templating and helpers
- cache management
- smart URLs
- scaffolding
- multilingualism and I18N support
- object model and MVC separation
- Ajax support
- enterprise ready

Comments off

Assymetric Encryption in PHP

Comments off

Book on PHP Security

Pro PHP Security (APress.com)

Comments off

PHP Online Book

Practical PHP Programming (and here) online version of a book PHP in a Nutshell (Paul Hudson)

Comments off

Check PHP syntax

Either command line (CLI):
php -l
Or:
runkit_lint_file (requires runkit PECL)

Comments off

PHP Debugging

Comments off

File Size Format for Smarty

Comments off

Smarty – format file date

Comments off

PHP Navigator

PHP Navigator is a web based open source file management system in PHP and AJAX.

Comments off

PHP Download script

Comments off

Handling URL in Smarty

Purl (Smarty pligin): purl parameter plugins are handy when handling GET parameters. They give you an easy way for managing parameters for hyperlinks in the smarty template files. The simplest scenario when working with GET parameters is when calling a different php-script with the *exact* same parameters than the current URL.

Comments off

Performance Tuning PHP (talk/presentation)

Comments off

Comments off

Caching Strategies in Diploma Thesis

Comments off

PHP Cache

Comments off

Comments off

PECL :: The PHP Extension Community Library

PECL(The PHP Extension Community Library) is a repository for PHP Extensions, providing a directory of all known extensions and hosting facilities for downloading and development of PHP extensions.

Comments off

Top 25 PHP template engines with short description for each.

Comments off

Pager for Smarty

SmartyPaginate (uses session for storing important data)

Comments off

Smartest with Gettext

Comments off

« Previous entries Next Page » Next Page »