After the default normal installation of Ubuntu, here are the additional steps I need to do to have a Apache-PHP-MySQL Server.
1. SSH Server (for my remote access)
sudo apt-get install ssh
2. Database Server
sudo apt-get install mysql-server
3. Apache HTTP Server
sudo apt-get install […]
Archive for the ‘PHP’ Category
Ubuntu Apache-PHP-MySQL Server
PHP array length or size count
Array is very flexible and any time we can add element to array or remove element from an array. So we must know what are the present number of elements in an array. To know the total length or total element in an array we have to use count command.
We will first create an […]
The SimpleTest PHP unit tester
The SimpleTest PHP unit tester is available for download from your nearest SourceForge. It is a PHP unit test and web test framework. Users of JUnit will be familiar with most of the interface. The JWebUnit style functionality is more complete now. It has support for SSL, forms, frames, proxies and basic authentication. […]
List of object-relational mapping software
http://en.wikipedia.org/wiki/List_of_object-relational_mapping_software
List of object-relational mapping software
From Wikipedia, the free encyclopedia
Jump to: navigation, search
This is a list of well-known object-relational mapping software. This list is neither up-to-date nor all-inclusive.
Contents
[hide]
* 1 C++
* 2 Delphi
* 3 Groovy
* 4 Java
* […]
check of request is xmlHttp in php
For axja server side
if($_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest')
{
}
Associative Arrays PHP
An array in PHP is actually an ordered map. A map is a type that associates values to keys. This type is optimized for several different uses; it can be treated as an array, list (vector), hash table (an implementation of a map), dictionary, collection, stack, queue, and probably more. As array values can be […]
SERVER in PHP
$_SERVER
$HTTP_SERVER_VARS [deprecated]
$_SERVER — $HTTP_SERVER_VARS [deprecated] — Server and execution environment information
Description
$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server. There is no guarantee that every web server will provide any of these; servers may omit some, or provide others not […]
flash video links
About using FLV video
About using video
http://livedocs.adobe.com/….
For information on video fundamentals, such as streaming, progressive download, dimensions, encoding, importing, and bandwidth concerns, see Working with Video in Using Flash.
template languages, such as Smarty or CheetahTemplate
Cheetah is an open source template engine and code generation tool, written in Python. It can be used standalone or combined with other tools and frameworks. Web development is its principle use, but Cheetah is very flexible and is also being used to generate C++ game code, Java, sql, form emails and even Python […]
AMP Installers
You undoubtedly know where to find these by now, but just in case, the Web sites associated with each
of our three components have incredibly detailed information to help you work out any issues, or report
any bugs you may find in the programs:
❑ For Apache questions and information: www.apache.org
[…]
PHP5: The Future of PHP
At the time of this writing, PHP5, the newest version of PHP, is in the beta-testing phase. While we can’t
speculate on which changes, if any, will be made to the final release, we would be negligent if we did not
prepare you for some changes that will most likely be in store for those who choose […]
PHP
PHP is a server-side scripting language that allows your Web site to be truly dynamic. PHP stands for
PHP: Hypertext Preprocessor (and, yes, we’re aware PHP is a “recursive acronym”—probably meant to
confuse the masses). Its flexibility and relatively small learning curve (especially for programmers who
have a background in C, Java, or Perl) make it […]
Installation Configuration LAMP
You can choose to install one, two, or all three components of the AMP package based on your
specific needs. For example, if you are responsible for providing a company-wide intranet and/or
hosting your own Web site, you should probably install all three. If your site is hosted by a third-
party Web hosting company, however, you do […]
Database Access with PHP
A DATABASE IS A WEB DEVELOPER’S DAILY TOOL, and he or she should know SQL
at least as well as PHP. Most data models of Web applications involve a relational
database.While novice users may try to avoid the perceived overhead of SQL and a
relational database management system (RDBMS), the advanced developer appreciates
the […]
PHP and Java
Java, the “language du jour” for many corporate software developers, is increasingly
being used in all areas of development. Since version 4.0, PHP can be compiled to
support the calling of native Java functions, effectively enabling you to use enterprise
Java components in a multi-tier environment.
Installation of the Java support is not difficult.You have […]
PHP and COM
The Component Object Model (COM ) is a software architecture developed by Microsoft
that allows abstracting software chunks into binary components. COM defines a
standard for component interoperability and specific features a component must have.
It doesn’t depend on any programming language; indeed, Microsoft shows efforts to
establish COM as an open IETF (Internet Engineering Task Force) standard. COM
objects […]
PHP and Multi-Tier Applications
The concept of multi-tier systems became popular in the early 1990s and is now
establishing itself as the enterprise application software architecture for the late 90s and
early 21st century. A multi-tier (often referred to as three-tier) architecture provides
greater application scalability, lower maintenance, and increased reuse of components.
Three-tier architecture offers a technology-neutral method of building client/server
applications with […]
The MCrypt Functions
With the MCrypt library, many block algorithms are available, including DES,
TripleDES, Blowfish, and IDEA. Space doesn’t allow for explaining all these algo-
rithms here, or giving recommendations on how to choose one for a specific scenario;
this is covered in detail by many in-depth blogs and online articles, some of which
you can find listed in the Resources […]
PHP interface to PGP
class pgp
{
var $pgp_bin = “/usr/bin/pgp”; // Path to PGP binary
var $tmp_path = “/tmp”; // Path where temporary files are stored
var $error; // Used to store the last error message
function pgp()
{
// Check if the PGP binary exists
if(!file_exists($this->pgp_bin))
{
$this->error = “PGP binary file “.$this->pgp_bin.” does not exist.\n”;
return(false);
[…]
Don’t Reinvent Cryptography
Cryptography is the science of using mathematics to encrypt and decrypt data. It
enables you to store sensitive information or transmit it across insecure communication
channels so that it can’t be read by anyone except the intended recipient. Data encryp-
tion is a science of its own—don’t even try to invent your own encryption algorithms.
Use established algorithms such […]
