我可以让回波开始工作,当我将php刺放到iframe中时,它就会显示为空白。结果是<iframe src="//galleryPage.php>回波结果是"2021DeepFreeze"
<?php $file = pathinfo(basename(__FILE__), PATHINFO_FILENAME); ?>
<iframe src="/<?php $file ?>/galleryPage.php" style="width:100%; height:1000px;"
</iframe>发布于 2022-03-03 19:39:17
首先,您忘记在iframe标记中添加">“。现在标签是<?php $file ?>不同的是,<?php echo $file; ?>或<?= $file ?>是回显值的缩写。
https://stackoverflow.com/questions/71342450
复制相似问题