Menu

can't create file

Help
wolfordb
2008-09-06
2013-06-03
  • wolfordb

    wolfordb - 2008-09-06

    Everything looks good on my Linux / Apache ... form, response, but no file is generated.  Here is a head of the processor file.  It's an internal system so I did a 777 on the sub directories ... but no luck.

    <?php

    $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

    $fileLine = "Enter Amount: " . $_POST['field_1'] . "
    Enter Operator: " . $_POST['field_2'] . "

    ";
    $filename = './IBemailamt.txt';
    if (is_writable($filename)) {

     
    • TNTEverett

      TNTEverett - 2008-09-06

      I'm not sure what your problem is or how it was created.  The form generator does not create a form and processor file that is capable of creating files.  If you have modified the code to create files you have cutsomized it and only you can be responsible for supporting your custom code. 
      When the form is created and you have specified a file based database then the file should already exist and the processor file just writes to the file already present. 
      If you still need more help you will need to provide more information.

       
    • wolfordb

      wolfordb - 2008-09-07

      Thanks.  I mistakenly thought it was similar to using the > character in UNIX.  I didn't see any mention of the need to create the file first. 

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.