tau9
03-23-2009, 01:07 PM
Hi,
I am trying to create a submit box that will allow users to enter a url and press submit. By pressing the submit button this will save the contents of the address in to a txt file. I can save the contents using curl but I have to specify the address in the same file. How do I write to the file so users can enter their own address and then the file should run and save the contents in a txt file.
Here is some code I found at www.example.com
$ch = curl_init("http://www.example.com/")
$fp = fopen("example.txt", "w");
thanks in advance
I am trying to create a submit box that will allow users to enter a url and press submit. By pressing the submit button this will save the contents of the address in to a txt file. I can save the contents using curl but I have to specify the address in the same file. How do I write to the file so users can enter their own address and then the file should run and save the contents in a txt file.
Here is some code I found at www.example.com
$ch = curl_init("http://www.example.com/")
$fp = fopen("example.txt", "w");
thanks in advance