Menu

file based database gets no data

Help
2004-09-21
2013-06-03
  • HenkSpermatank

    HenkSpermatank - 2004-09-21

    I created a form, replaced the dir "forms" to another place in my website,  changed some lay-out etc....

    until here everything was working,and the datafile was created too.

    But suddenly the datafile isn't updating anymore when I fill in my form. I created a second form but that one is still in the directory "phpforms/forms"

    Has anybody an idea what the problem might be?

    Thanks in advance

     
    • HenkSpermatank

      HenkSpermatank - 2004-09-21

      mmm now I replaced my new "forms" dir (from my second form) and again the database file doesn't receive any data, so obviously something goes wrong when I replace the dir.
      Should I correct some redirections?  (now I left it "admin/data.dat" )

       
    • Stephen Hale

      Stephen Hale - 2004-09-25

      I am presumming you are using version 2.0.9b

      The forms you create are placed in the 'use' folder. The 'forms' folder is used as a buffer, or 'temp' folder, for reading and writing by the engine. Try using the files located in the 'use' directory, there should be a folder with your forms name.

      If this does not work, please let me know and I will try to help you further.

      Best Regards,
      Steve
      ----------------------
      Microterra Technical Staff

       
    • HenkSpermatank

      HenkSpermatank - 2004-09-30

      Thanks for your reply Steve.

      I'm sorry I didn't mention it, but i'm using version 2.0.7b included in fantastico...
      So there is no "use" folder....

      Is there a solution other than installing the newer version? (I have to ask my provider and that will take years before they do that...)

      Thanks in advance for your reply

      Best regards
      Jordi

       
    • Stephen Hale

      Stephen Hale - 2004-09-30

      A few questions to try and end your headaches:

      Are you recieving any errors at all?
      Using your moved forms, does the form function like it is supposed to (sends you to process.php then forwards you to 'thank you' page) besides updating the data.dat file?
      Can you provide a link to your moved forms? I will take a look at them to see what could be happening
      What are the permissions on the data.dat file?

      My best guess right now would be, your host has PHP error reporting off, and the permissions on data.dat aren't set correctly to allow the script to write to the file.

      Steve
      ---------------------
      Microterra Technical Staff

       
    • HenkSpermatank

      HenkSpermatank - 2004-10-05

      I have 2 forms, one (http://www.quintadaovelha.nl/forms/form1.html) seems to work perfect (except for the data): the thank you page is displayed and the mail is sent.
      I receive no errors but in the server stats the following errors occur:
      "[Tue Oct  5 09:04:26 2004] [error] PHP Warning:  fwrite(): supplied argument is not a valid stream resource in /home/a726/public_html/forms/process.php on line 51
      [Tue Oct  5 09:04:26 2004] [error] PHP Warning:  fopen(./admin/data.dat): failed to open stream: Permission denied in /home/a726/public_html/forms/process.php on line 47"

      When filling in/sending the second form (http://www.quintadaovelha.nl/forms1/form1.html) no thank you page is displayd and no mail is being sent. With this from the serverstats show this error:

      "[Tue Oct  5 09:15:13 2004] [error] PHP Parse error:  parse error, unexpected T_STRING in /home/a726/public_html/forms1/process.php on line 29"

      as far as I can see all the permissions are correctly set, but as far as i can understand form the error messages the problem is the permission?
      If so I will have to contact my provider so I hope you can help me further with this.

      Many thanks in advance!

      Jordi

       
    • HenkSpermatank

      HenkSpermatank - 2004-10-27

      silence...

       

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.