我有以下HTML。请查看下面的$local_file = 'output.rar';
$server_file = '/somedir/1/bar/foo/somearchive.rar';
$ftp_user_name='some_login';
$ftp_user_pass='Password';
$ftp_server='HOST';
// set up basic connection
$conn_id = ftp_ssl_connect($ftp_server);
// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
/* uncomment if you need to change directories
if (ftp_chdir($conn_id, "<directory>")) {
echo "Current directory is now: " . ftp_pwd($conn_id) . "\n";
} else {
echo "Couldn't change directory\n";
}
*/
// try to download $server_file and save to $local_file
if (ftp_get($conn_id, $local_file, $server_file, FTP_BINARY)) {
echo "Successfully written to $local_file\n";
} else {
echo "There was a problem\n";
}
// close the connection
ftp_close($conn_id);
和input tag
(问题的真正原因)。
comment
而不是<div class="col-xs-12 GPAMainForm">
<div class="col-xs-10 col-xs-offset-1">
<div style="border: 1px double black; padding: 2px">
<div>
<table class="table">
<tr class="border">
<td class="border">
<label class="control-label">Company Name</label>
</td>
<td class="border">
<input type="text" />
<!--
If I remove input tag, pdf gets generated else it show error like:
`Invalid nested tag td found, expected closing tag input`
-->
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
我尝试使用input tag
错误
找到无效的嵌套标记td,预期结束标记输入
问题原因
但是当我看到解析的html时,我可以清楚地知道它以某种方式删除<asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
并生成/
。
与<input type="text>
相同,它会删除结束标记并生成
<asp:textbox>
请帮忙。
编辑帖子:
<input name="ctl00$MainContent$TextBox2" id="MainContent_TextBox2" type="text">