PHP stands for PHP: Hypertext Preprocessor. Hypertext refers to files linked together using hyperlinks, such as HTML (HyperText Markup Language) files. Preprocessing is executing instructions that modify the output. Below is a demonstration of the difference between HTML and PHP files.
Data structures are defined via PHP as follows:
Main data is the array of values, having the following fields:
Name - name of the field
Type - type of the field, can be:
I5_TYPE_SHORT
I5_TYPE_LONG
I5_TYPE_DOUBLE
I5_TYPE_BIN
I5_TYPE_DATE
I5_TYPE_TIME
I5_TYPE_TIMESTP
I5_TYPE_DBCS
I5_TYPE_LONG8
I5_TYPE_NUMERICCHAR
I5_TYPE_BLOB
I5_TYPE_CLOB
I5_TYPE_UNICODE
I5_TYPE_VARCHAR
I5_TYPE_VARBIN
Length
For CHAR, BYTE - integer describing length. Length can be number or name of the variable holding the length in the data structure.
For PACKED, ZONED - string "NUMBER.NUMBER" defining length and precision
For STRUCT - array containing data definition of the structure
For INT, FLOAT - ignored
IO
I5_IN
I5_OUT
default is input, these values can be OR'ed together to get input-output value
Count (optional) - repetition count if the field is an array
CountRef (optional) - reference to the repetition count if the field is an array
Data structure is defined via PHP as follows:
DSName - name of the parameter
DSParm (optional) - array of the parameter of the Data structure. Each parameter is defined by a simple data definition.
Example:
<?php
$description = Array(
array("Name"=>"P1", "IO"=>I5_INOUT,
"Type"=>I5_TYPE_CHAR, "Length"=>"10", "count"=>5),
array("Name"=>"P2C", "IO"=>I5_INOUT, "Type"=>I5_TYPE_LONG),
array("Name"=>"P2", "IO"=>I5_INOUT, "Type"=>I5_TYPE_CHAR,
"Length"=>"1", "countRef"=>"P2C"),
array("DSName"=>"PS", "count"=>2, "DSParm"=>array(
array("Name"=>"PS1", "IO"=>I5_IN|I5_OUT, "Type"=>I5_TYPE_CHAR,
"Length"=>"10"),
array("Name"=>"PS2", "IO"=>I5_IN|I5_OUT, "Type"=>I5_TYPE_CHAR,
"Length"=>"10"),
array("Name"=>"PS3", "IO"=>I5_IN|I5_OUT, "Type"=>I5_TYPE_CHAR,
"Length"=>"10"),
)
)
);
$prg = i5_program_prepare("MYLIB/PERSONPGM", $description);
?>
mAN pke pass ko ani ni sir palihug wla koi gmail nya
PHP is stand a Hypertext Preprocessor - is a scripting language that was originally designed for web development to produce dynamic web pages.PHP is support the object oriented programming language (OOP)and also supports many databases (MySQL, Informix, Oracle, Sybase, Solid, PostgreSQL, Generic ODBC, etc.)
PHP code
is embedded into the html language source document and interpreted by a web
server with a PHP processor module, which generates the web page document.
example php code:
<html>
<head>
<title>My First PHP Page</title>
</head>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>
output:Hello World! or use print for variable.
and always save by .php extension for read the php code running in the web
server. the php is cross-platform were running of any operating system. the following
operating system(OS):windows, linux, mac os x, unix etc.