Menu

config.inc.php not found!?

Help
2009-01-31
2013-06-03
  • Comer Duncan

    Comer Duncan - 2009-01-31

    I have created a form using v 3.0 online and have downloaded it to my local server.  When I run form.html  and fill in the data and hit submit I get a complaint that in processor.php line 5 it can not find config.inc.php. Alas this file is not visible in the formxxxx directory. So, what am I missing?  Is this file not the file which supplies the needed info for mysql access? Other things?

    Maybe I don't have straight the order in which the built script is to be run locally?  The only files sans directories I see are confirm.html, form.html, install.php, monofont.ttf, processor.php, and style.css.  Noconfig.inc.php.

    Please advise.

    Thanks.

    Comer

     
    • TNTEverett

      TNTEverett - 2009-01-31

      I don't know enough about the new 3.0 generator to tell you how or why this file was not created. 
      You have two choices to start figuring out what is missing. 
      1.) comment out the include statement in the processor.php file
      2.) create a blank version of this file in the same folder as the processor.php file

      Otherwise if you send me a copy of your processor.php file I can create a template for you to fill in that will satisfy the config file requirements. 

       
    • Comer Duncan

      Comer Duncan - 2009-02-01

      TNT,

      Thanks for the suggestions.  Taking the bull by its horns I went ahead and created a config.inc.php file containing just the three variable values which are used in the next line of processor.php.  Namely, the $db_host, $db_user, and $db_pass were populated with the values relevant to my system.  The name of the db and a table therein were not populated. The current version of the script seemed to go though without complaint. 

      Would you let me know what other variables and values should be included in the config.inc.php file?  If these stripped down versions of the scripts work, then I will get serious about making a flavor which does what I want:  a form to take in client family name, client first name, and client phone number and then use those data to select  the contents of the table client_data in my database. The purpose is to be able to look at the current data for a given client [there are 18 fields per client] and fill in new data in one of the relevant boxes and submit the new data to update the client_data table.

      The purpose of what I am trying to do is to write scripts to help manage a food pantry database, a totally volunteer effort at a local Episcopal Church.  I am in the process of automating what has been laboriously done by hand. The numbers of people needing food these days is increasing and our group could benefit from a php script which does the above mentioned things.  There will be other things I want it to do but first things first.  I have taken a crack at writing the php myself but the process is slow. I now know how to do some things and was hoping that phpFormGenerator would help me streamline this effort.

      Thanks.

      Comer

       
      • TNTEverett

        TNTEverett - 2009-02-01

        The config file is built during form generation and only includes the variables necessary to support your form. 
        If your form works then there is no reason to name other variables which would not be used. 
        Let me know if you need additional help. 

         
    • Essam

      Essam - 2009-03-23

      TNTEverett sayes: The config file is built during form generation !

      Where i can find this file plz?!
      i did not see it any where
      thanks

       
      • TNTEverett

        TNTEverett - 2009-03-23

        The older version 2.09 wrote the file during generation.  The new version 3.0 creates the file as part of the install.php as shown by this confirmation in the install.php file.
        echo "Configuration file written (config.inc.php). ";
        According to this code the file open and file write occur in the same directory as the install.php file. 

         

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.