by David Lhoumaud
http/www/index.cgi
make
make test
make color
make uncolor
make install
make uninstall
make clean
$my_variable=hello world !!
s$my_variable=hello world !!
$[my_variable]
$namevar=my_variable
$\$[namevar]=hello world !!
$[my_variable]
<?ls?>
$my_variable=<?ls?>
$python_example= <?python -c "print(\"$[my_variable], it is a python script !\")
a=1
b=2
if a==2:
print(\"OK\")
else:
print(\"NO\")"
?>
$php_example=<?php -r "phpinfo();"?>
$echo_example= <?echo -n "‹strong›‹strong›LS : ‹/strong›liste des fichiers et répertoires :‹/strong›‹br›"
ls | while read line; do
echo -n "-$line<br>"
done?>
Operator | Description |
---|---|
== | equal |
!= | not equal |
< | less than |
<= | less than or equal |
> | bigger than |
>= | greater or equal |
if ($[my_variable]==) {
variable empty
}
if ($[my_variable]!=) {
variable not empty
} else {
variable empty
}
Operator | Description |
---|---|
== | equal |
!= | not equal |
< | less than |
<= | less than or equal |
> | bigger than |
>= | greater or equal |
$num=0
while ($[num]<101) {
$[num]<br>
$num=<?echo -n "$(($[num]+1))" ?>
}
##add a marker
:marker_name
->marker_name
include(filename.cgi)
function _test1() {
<h3>->Lecture de la fonction N°1</h3>
_test2()
_test3()
}
function _test2() {
<h3>->Lecture de la fonction N°2</h3>
include(scripting.cgi)
}
function _test3() {
<h3>->Lecture de la fonction N°3</h3>
include(if.cgi)
}
#read function _test1
_test1()