How do i open and create a file like this? [closed]

Haball

New Member
Well,my current situation is like this.When i search something on my site for ex. \[code\]http://example.org/web-search.phtml?search=SEARCHED+TEXT\[/code\] the respective content is shown.As you can see I'm using a \[code\]GET\[/code\] form to get the data from the previous form.So the first thing i want to do is open a file with the same as \[code\]SEARCHED+TEXT\[/code\].So now i want to open and save file in\[code\]http://example.org/web-search/SEARCHED+TEXT.html\[/code\]So each time a person searches a page like \[code\]http://example.org/web-search.phtml?search=SEARCHED+TEXT\[/code\] a respective \[code\].html\[/code\] file should be created in the respective folderAnd no.2Now i want the whole source of http://example.org/web-search.phtml?search=SEARCHED+TEXT to be copied into \[code\]http://example.org/web-search/SEARCHED+TEXT.html\[/code\]So how do i do this ?NOTE: If i copy the whole source including the code for copying and creating file then each time the person creates \[code\]http://example.org/web-search/SEARCHED+TEXT.html\[/code\] a new HTML file will be Opened..So i hope you got my BIG BIG question !!I'm not saving the results.I'm just saving the iframe source.So technically its not static
 
Back
Top