I am a little new at web design so if someone could help with this it would be great.
I am creating a form where my boss can enter news that he would like to post to our site.
fields include
- id
- data
- title
- summary
- news article
The problem is we have two servers a web machine and a database. Only the web machine can write the the database so on submit I need to save the data that is entered on the form as a sql file on the web machine and then use a cron job to insert the data to the database machine.
My problem is I don't know how to save the data to the file. Could someone help?
My development environment is linux/apache/php/postgres
Thanks
I am creating a form where my boss can enter news that he would like to post to our site.
fields include
- id
- data
- title
- summary
- news article
The problem is we have two servers a web machine and a database. Only the web machine can write the the database so on submit I need to save the data that is entered on the form as a sql file on the web machine and then use a cron job to insert the data to the database machine.
My problem is I don't know how to save the data to the file. Could someone help?
My development environment is linux/apache/php/postgres
Thanks
Comment