Mailinglisten-Archive | 
Hi Rene,
On Thu, Apr 13, 2000 at 11:17:49AM +0200, Rene Paschold wrote:
> kann mir jemand sagen wie ich den include path Befehl richtig schreibe?
... unvollstaendige Frage:
    a) welche Plattform: 
            Unix oder Win32?
            CGI oder Modul?
    b) welcher Ort?     
            apache-Konfiguration / .htaccess
            php3.ini
> include_path = .: /www/normal/kundenpage/haendlerlogos;
                  ^^^
Das Leerzeichen ist auf jeden Fall zuviel.
In einer php3.ini auf einem Unix-System waere z.B.
    include_path    = ".:/www/normal/kundenpage/haendlerlogos"
richtig.
> funktioniert nicht :(( !
klar. Aber warum machst Du es auch nicht einfach genau so,
wie es in der mitgelieferten Beispiel-Datei php3.ini-dist steht?
Ich zitiere:
include_path = ; UNIX: "/path1:/path2"  Windows: "\path1;\path2"
> Noch eine andere Frage: Ich möchte ein Bild prüfen ob es im
> Verzeichnis haendlerlogos vorhanden ist:
 
> Dewsegen der include_path Befehl:
nope. Der Include-Pfad ist einzig und allein fuer "include" 
und "require" relevant. Fuer die Dateisystemfunktionen
ist er ohne belang.
> if (!file($bildname, 1) {
> 	print "nix";
> }
 
> oder macht man das anderst?
Ja. Vor allen Dingen wirft man einen Blick in die recht
ausfuehrliche Dokumentation.
z.B. hier:
    http://www.php.net/manual/ref.filesystem.php
von besonderem Interesse:
    file_exists - Check whether a file exists
    is_dir      - Tells whether the file is a directory
    is_file     - Tells whether the file is a regular file
    is_readable - Tells whether the file is readable
    is_writable - Tells whether the file is writable
Gruss,
    Andreas
-- 
The billg attacks you with a blue screen of death.  He misses.
    php::bar PHP Wiki - Listenarchive