Warning: require() [function.require]: open_basedir restriction in effect. File(/usr/local/php-spez-5.2.17/lib/php/geshi/geshi.php) is not within the allowed path(s): (/usr/local/php/lib/php/:/home/www/:/usr/bin/:/tmp:/usr/local/php52/lib/php/) in /home/www/web25/html/syswiki/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php on line 376
Create testing PHP file – HS Syswiki

Create testing PHP file

Aus HS Syswiki
Wechseln zu: Navigation, Suche
bkp001.hr19:~ # cat phptest.sh
#!/bin/bash
 
WEBPATH=/home/www/web0/html
PHPFILES=( "test.php" "test.php5" "test.php52" "test.php52gd" "test.php52-spez" "test.php53" "test.php53gd" "test.php53-spez" "test.php54" "test.php54gd" "test.php54-spez" "test.php55" "test.php55gd" )
 
for f in "${PHPFILES[@]}"
do
        if [ ! -f $WEBPATH/$f ]
        then
                printf "File $WEBPATH/%s NOT exist - to create it\n" "${f[@]}"
cat >> $WEBPATH/$f << EOF
<?
phpinfo();
?>
EOF
fi
chown web0:web0 $WEBPATH/test.php*
done
Meine Werkzeuge
Namensräume

Varianten
Aktionen
Navigation
Werkzeuge