小编Sur*_*Cat的帖子

JavaScript PopUp - 从Popup链接目标=其他浏览器窗口

我打开一个带有js弹出窗口的html页面

<script language="javascript" type="text/javascript">
<!--
function popitup(url) {
    newwindow=window.open(url,'foobar','height=575,width=950');
    if (window.focus) {newwindow.focus()}
    return false;
}

// -->
</script>

<a href="index.php" onclick="return popitup('foobar.html')">Link to popup</a>
Run Code Online (Sandbox Code Playgroud)

现在我在弹出窗口中获得了一些链接,我想关闭弹出窗口,点击我的链接并在旧窗口中打开链接.旧窗口是指调用弹出窗口的浏览器窗口.这可能吗?

javascript popup

5
推荐指数
1
解决办法
1万
查看次数

禁用error_log.Error_log泛滥

我有一个运行的webserver和旧版本的gambio(xt:commerce fork).在public_html上的目录中的error_log充满了错误.在15分钟内约30mb.如何禁用此日志?我无法解决所有错误.以下是一些错误示例:

[warn] mod_fcgid: stderr: PHP Notice:  Undefined variable:  key in /usr/www/users/foo//includes/classes/class.inputfilter.php on line 98
[warn] mod_fcgid: stderr: PHP Notice:  Undefined index:   in /usr/www/users/foo/templ
[warn] mod_fcgid: stderr: in /usr/www/users/foo/templates/gambio/source/inc/xtc_show_category_sectionc.inc.php on line 47
Run Code Online (Sandbox Code Playgroud)

它们都是错误:"mod_fcgid:stderr".我试图在公共html目录中grep"error_log"和"error_report",但我没有找到任何东西.

这是phpinfo()的一部分:

PHP Version 4.4.9

System  Linux foobar.com 2.6.26-2-686-bigmem #1 SMP Sat Dec 26 09:26:36 UTC 2009 i686
Build Date  Feb 11 2010 13:00:33
Configure Command  './configure' '--prefix=/usr/local/php4' '--with-config-file-path=/etc/php4/cgi' '--with-gd' '--with-jpeg-dir' '--with-png-dir' '--with-tiff-dir' '--with-ttf' '--enable-force-cgi-redirect' '--enable-safe-mode' '--with-zlib' '--enable-ftp' '--enable-url-includes' '--enable-gd-native-ttf' '--enable-trans-sid' '--enable-dbase' '--with-db4' '--with-ldap' '--enable-bcmath' '--enable-calendar' '--enable-memory-limit' '--with-mcal=/usr' …
Run Code Online (Sandbox Code Playgroud)

php

3
推荐指数
2
解决办法
1万
查看次数

标签 统计

javascript ×1

php ×1

popup ×1