当我运行以下代码时:
<html><head>
<title>Code</title>
<script type="text/javascript">
var height = "<?= $height ?>";
var width = "<?= $width ?>";
if (self.parent.frames.length && self.parent.frames.length != 0)
self.parent.location = document.location;
window.resizeTo(width,height);
window.moveTo(0,0);
</script>
</head>
<body>
<?php
$url_path = $_GET['url'];
echo "<img src={$url_path} />";
list($width,$height) = getimagesize({$url_path})
?>
</body>
</html>
什么都没发生。(显然页面上有一个表格要求输入图像网址..)
我需要一些帮助,我是 javascript 和 php 的绝对初学者,有帮助吗?