I have a cgi script. When i run it in browser i have to create html files on the fly with the data that is populated. I also need to have links to those files where i can display those html files. I am using the below code but i dont know why html files are not created. Is this a permission issue.
Update: I tried adding die to the open but that didnt help. Also i have removed the Content-Type header.open HTML, ">tmp/$filename"; print HTML "Content-Type: text/html\n\n"; print HTML "<HTML>\n"; print HTML "<head>\n"; print HTML "<title> Second page </title>"; print HTML "<br>"; print HTML "$t->{title}"; print HTML "<br>"; print HTML "$t->{phone}"; print HTML "<br>"; print HTML "</head>"; print HTML "</HTML>"; close HTML;
In reply to Create a html page on fly by mailmeakhila
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |