I am coming in this way because Nobody can't help me;
Hi there,

I need a routine to do the following, because I don't want to let a directory in a 777 mod:

The goal is to able a file.php to write a file2.pdf inside a specific folder.

What I would like is the code to do the following:

  • send the admin Id and passsword to my server,
  • change the 755 mod the directory to 777 with chmod
    do the command:
    $pdf->Output(/files/file2.pdf); (writing the file)
    -rechange back the mod 777 to 755
    and exit.

How can I do that?
Is it possible to have my login+password in another file?

Sincerely yours,
Marc-André

    chmod

    chmod ("/somedir/somefile", 0777);
    $pdf->Output(/files/file2.pdf)
    chmod ("/somedir/somefile", 0755);
    

    -=Lazzerous=-

      Yes, but no !

      Thanks for the command line, but how to transmit to my server the id + password?

      Marc

        Nobody?

        how to secure the process mentioned above?

        MArc

          Write a Reply...