Contentverwaltung online

  • Hi,

    habe ein nettes und nützliches PHP Prog geschreiben, leider funst es aber nicht, und ich habe keine Ahnung warum...

    Hoffentlicht könnt ihr mir weiterhelfen!

    Hier der Code:

    Erst wird der Breich ausgewählt:

    ...dann wird die datei ausgelesen und überschrieben oder eben etwas angehängt

    ...und schlussendlich auch in die Datei eingetragen...

    PS: Schreibrechte hat die Datei;-)

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  • Warum nur die filenamen im select? ich verstehe da den Sinn nicht ganz!?

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  • Ich versuchs mal!

    Jetzt aber erstmal Deutschland gucken!!! :D :wink:

    Edit: die while Schleife wird benötigt um den kompletten Inhalt der Datei zu lesen!

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  • Geht leider immernoch nicht!

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  • Der schreibt nicht in die Datei!

    Er gibt auch keine Fehlermeldung aus.

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  • Bei beidem!

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  • Hat niemand eine Idee woran das liegen könnte?

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  • Ich habe dieses Script aufgeben und ein neues gecoded, eines das weniger "anfällig" ist.
    Jetzt habe ich leider nur ein Prob. Und zwar bei folgender Funktion:

    PHP
    <?php
    	$text = $_POST["text"];
    	$p = $_POST["path"];
    	$size = filesize("$p");
    
    
    	$datei = fopen("$p","w");
    	fputs($datei,"$text",$size);
    	fclose($datei);
    ?>

    Ich bekomme folgenden error beim Aufruf:

    Warning: fputs(): supplied argument is not a valid stream resource in datei.php on line 32

    Warning: fclose(): supplied argument is not a valid stream resource in datei.php on line 33

    Kann mir da jemand weiterhelfen?

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.

  • Weiß jemand worans liegen könnte?

    Win·dows
    Noun.
    A thirty-two bit extension and graphical shell to a sixteen-bit patch to an eight-bit operating system originally coded for a four-bit microprocessor which was written by a two-bit company that can't stand one bit of competition.