Login   Register  
PHP Classes
elePHPant
Icontem

File: Introduction_to_p4a_4

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Francisco Arias  >  PHP 4 Applications  >  Introduction_to_p4a_4  >  Download  
File: Introduction_to_p4a_4
Role: Documentation
Content type: text/plain
Description: Introducction IV. INSTALATION AND LIMITATIONS
Class: PHP 4 Applications
Create event driven Web GUI using remote scripting
Author: By
Last change: some corrections
Date: 2004-08-01 10:12
Size: 3,045 bytes
 

Contents

Class file image Download
******************************** LIMITATIONS ***********************
********************************************************************
The principal limitation of this framework is that only has been developed  for Internet Explorer 5 or newer and it also has been developed under IIS 5.
There is no reason for that, only my own time. The flush methods of the objects are actually generating HTML and JavaScript code optimized for IE. Beginning in the ‘iframe’ object itself, that is exclusive for IE, and ending with some tricks of JavaScript.

CROSS-PLATFORM
Doing this framework cross-platform is an easy job, it is necessary only
1.To change the p4a path in the P4A_PATH_P4A constant into the p4a_contants.php script:
define('P4A_PATH_P4A',		"c:/inetpub/wwwroot/p4a");

		2.To change the img path in the css definitions of the themes:
		for example:

div.clsListView table tr td table.clsListViewControls tr td
{
			background:'#0044cc  url("/p4a/themes/bluetheme/img/control.gif")';
			…
		3.And to change the include_path variable in the php.ini file

		include_path=…” c:/inetpub/wwwroot/p4a;…

CROSS-BROWSER
Doing this framework cross-browser is a bit more complicated because it is necessary to overload or duplicated all the flush methods in order to generate HTML+JavaScript code compatible with other browsers. Then the actions to do (in a next future) are:
	1.To Overload the flush methods to generate code cross-browser
	2.To Replace the ‘iframe’ tag in the p4a_Application flush method to the equivalent in other browsers (if they have it).

DATA BASE
For the moment, the p4a_DataSource class works only with MySQL, but it is simple to extend the class to provide compatibility with other engines.

**************************************************************************
*************************** INSTALATION **********************************
**************************************************************************

*************** I. INSTALATION OF P4A FRAMEWORK FILES ******

1.You have to create a folder C:\inetpub\wwwroot\p4a
2.Then copy here all the p4a_ files
3.Create a subfolder called 'themes', into it create a sub folder called bluetheme ==> p4a\themes\bluetheme. Copy in the bluetheme folder the bluetheme.css file. Then create a subfolder \p4a\themes\bluetheme\img an you should have there two images called 'key.gif' and 'control.gif'.
4.Add in the include_path variable of php.ini this path (c:\inetpub\wwwroot\p4a)
5.Remember re-start IIS (you have changed php.ini)

*********************** INSTALATION OF EXAMPLE FILES
1.Create a folder ==> C:\inetpub\wwwroot\p4a_Example
2.Copy there:
           index.php
           myapp.php
           myapp_classes.php
           p4a_events.php

3.Add in the include_path variable “c:\inetpub\wwwroot\p4a_Example” and restart-IIS.
4.Create a "virtual directory" called p4a_Example with the script "index.php" as the initial document.
5.Execute the p4aex_db.sql script to construct the database example in mysql.