phpbar.de logo

Mailinglisten-Archive

Re: phpmyAdmin
Archiv Mailingliste mysql-de

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: phpmyAdmin



Mist, beim ersten Mail hab ich die ersten Zeilen des
Scripts vergessen!

Martin Ramsch schrieb am 30.06.1999:

>Sollte Dein Provider PHP3 nutzen und sich die zugeordnete Dateiendung
>nicht ändern lassen, mußt Du halt die Dateien von phpMyAdmin selbst
>verändern und überall ".php3" durch ".phtml" ersetzen ...

In der phpMyAdmin-Distribution gibt ein Shell-Script php3tophtml.sh
daß das automatisch erledigt:

-----------snip php3tophtml.sh ------------------------------------
#!/bin/sh

#"Pavel Piankov" <pashah_(at)_spb.sitek.net>
#this sh script converts php3<=>phtml, thas the script converts from
php3 to
#phtml and vice versa, don`t try to convert php3 to php3 (%
#have fun.
#Oh!the script doesn`t do heavy checking - bakup your data.

usage()
{
echo "usage: php3tophtml [tophp3|tophtml]"
}

if test ! -s *.{php3|phtml}
then
        echo 'nothing to convert, try to copy the script to the
directory werere you have files to convert'
        exit
fi


if  test ! -d bak
then
        mkdir bak
else
        echo 'directory bak is already there - will try to use it to
bakup your files'
fi

case "$1" in
tophtml) for i in *.php3
         do
         /bin/sed -e 's/php3/phtml/g' $i > `ls $i|sed -e
's/php3/phtml/g'`
         mv $i bak/$i
        done;;
tophp3) for i in *.phtml
         do
         /bin/sed -e 's/phtml/php3/g' $i > `ls $i|sed -e
's/phtml/php3/g'`
         mv $i bak/$i
        done;;
*) usage ;;
esac

----------snip--------------------------------------------------------

______________________________________________________________________
Peter Muessig-Trapp, HIS GmbH,  Goseriede 9,  30159 Hannover,  Germany
e-mail: muessig_(at)_his.de   phone: +49-511-1220193   fax: +49-511-1220250
Soziale Lage Studierender, 15. Sozialerhebung: http://www.his.de/soz15
______________________________________________________________________


Home | Main Index | Thread Index

php::bar PHP Wiki   -   Listenarchive