Hi All
I have been trying to set up a web form using PHPFMG from http://phpfmg.sourceforge.net .
All is working well until i add a <?php file_get_contents ("../../../text.txt"); ?> line.
instead of one address I am trying to get the form to send to several addresses contained in a text file which is edited in an admin panel elsewhere on the website.
I cant get the script to accept the file get contents line, poss due to quotes but I have tried several different ways of doing it and have mixed results but none work.
this is the line causing me problems - define( 'PHPFMG_CC' , '<?php file_get_contents ("../../../text.txt"); ?> ');
the text file simply has the addresses separated by a semicolon like this -
[email protected]; [email protected]; [email protected]
Like I said, many different way of doing this have failed.
Could anyone recommend a different way of doing this and/or find a way to make it work?
Best regards
I have been trying to set up a web form using PHPFMG from http://phpfmg.sourceforge.net .
All is working well until i add a <?php file_get_contents ("../../../text.txt"); ?> line.
instead of one address I am trying to get the form to send to several addresses contained in a text file which is edited in an admin panel elsewhere on the website.
I cant get the script to accept the file get contents line, poss due to quotes but I have tried several different ways of doing it and have mixed results but none work.
this is the line causing me problems - define( 'PHPFMG_CC' , '<?php file_get_contents ("../../../text.txt"); ?> ');
the text file simply has the addresses separated by a semicolon like this -
[email protected]; [email protected]; [email protected]
Like I said, many different way of doing this have failed.
Could anyone recommend a different way of doing this and/or find a way to make it work?
Best regards