Jump to content

morfin91

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

morfin91's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. im traing to get my code to work but it don't work to 100% the code create a folder and sall create a .html file with in it. the problem is that the file are not created in the folder. i need help to fix it. one other problem is that the file dont get right name it shood get the name from $pass but it get's acc_namn$pass? my code is. <?php print_r ($_POST); $acc_namn = $_POST['accNamn']; $pass = $_POST['pass']; $at = "C:/www/Poj/acc/"; $var = "C:/www/Poj/acc/"."acc_namn"; $folder = $acc_namn; if ( !file_exists($folder)){ mkdir($folder, 770); } $file = $var.$pass.'.html'; // Open the file to get existing content $current = file_get_contents($file); // Append a new person to the file $current .= "John Smith\n"; // Write the contents back to the file file_put_contents($file, $current); ?>
  2. now i'm happy ^^ relly thanks
  3. thanks. but code i get it in a exampel? yes i not so good a php
  4. hi. im looking for a code that create a folder with a name thet come from $acc in to C:\www\acc\ and create a .html file with some code after it copy all files from C:\www\acc\majs to the created file. thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.