pfad angabe

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • pfad angabe

    Hi
    also in allen scripten oder halt in den meisten muss man in einer config einen pfad eingeben.

    dieser wird dann doch in alle anderen datein übernommen.

    könnte mir bitte jemand erklären wie man so etwas macht?
    oder weiß jemand wo man ein tutorial für sowas finden

    bin nämlich php newbie und würde so etwas dringen brauchen

    danke!!!

  • #2
    PHP Code:
    <?
    // config.inc.php
    // GNU Public License by hand
    $PFAD  = "/hand";
    $DATEI = "gummi.txt";
    // ...
    ?>
    PHP Code:
    <?
    // hand.php
    // GNU Public License by hand
    include("config.inc.php");
    // ...


    $HAND = $PFAD . "/" . $DATEI;
    $fp = fopen($HAND, "a");
    // ...
    ?>

    Comment


    • #3
      also zuerstmal danke für die schnelle antwort

      geht das eigentlich auch wenn ich ne Url angebe?

      Comment


      • #4
        Si, naturalmente
        guarda:
        http://www.php.net/manual/it/function.fopen.php
        o
        http://www.php.net/manual/de/function.fopen.php

        Comment

        Working...
        X