我一直在网上寻找,但我找不到一个解决我的问题的方法。
让我们在下一页假设我有一个iframe。
http://www.mysite.com/cakes.php - this is the url of the page the iframe is on
这是该页面上的iframe代码
<iframe src = "http://www.mysite.com/secret_frame.php"></iframe>
在iframe (文件URL )中,我如何获取iframe所在页面的secret.php,所以在本例中应该是。
谢谢
弗兰克
我有两个页面,product.php和viewcart.php。当用户单击product.php上的按钮时,它会将产品添加到后端(以及它的属性)并转到viewcart.php。数据通过下面的代码提交给viewcart.php。除了product.php上的文本框中的值之外,还有一些php变量需要传递(下面的变量是“val”)。
<script language="javascript">
function test()
{
var val=document.getElementById("textarea").value;
我的PHP引擎保留了网站搜索的关键字,系统通过以下方式忽略了一些无用的关键字:
if (strpos($system_search, 'useless keyword') === FALSE AND
strpos($system_search, 'waste time') === FALSE AND
strpos($system_search, 'viagra') === FALSE AND
net_match_ban($bad_ip, $remote_ip))
{
此外,系统通过以下方式忽略某些用户代理:
if (!stripos($_S
cPanel Version 11.28.87
Theme x3
Apache version 1.3.42
PHP version 5.2.13
MySQL version 5.0.92-community
Architecture i686
Operating system linux
我在错误日志中注意到,我反复收到相同的错误。一个被请求的简单的丢失的.gif。
[Tue Apr 12 12:12:23 2011] [error] [client --.---.---.---] File does not exist: /public_html/theme
我们目前使用Nginx作为服务器,使用memcached作为缓存机制。我检查了PHP错误日志,许多关于memcached的PHP警告引起了我的注意。
PHP Warning: Memcache::get(): Invalid Memcache->connection member variable in {directory}/library/Zend/Cache/Backend/Memcached.php on line 180
在它所指向的行上,有一段代码:
$tmp = $this->_memcache->get($id);
我还看到了许多其他PHP警告,它们具有相同的