From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1GQZCZ-0007tX-Cj for garchives@archives.gentoo.org; Fri, 22 Sep 2006 00:47:35 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k8M0ipUa016953; Fri, 22 Sep 2006 00:44:51 GMT Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k8M0csbO029213 for ; Fri, 22 Sep 2006 00:38:55 GMT Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 6C5EF6486D for ; Fri, 22 Sep 2006 00:38:54 +0000 (UTC) Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04950-01 for ; Fri, 22 Sep 2006 00:38:48 +0000 (UTC) Received: from bullet.espersunited.com (adsl-70-234-122-254.dsl.tul2ok.sbcglobal.net [70.234.122.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTP id C9C35644B5 for ; Fri, 22 Sep 2006 00:38:47 +0000 (UTC) Received: from camille.espersunited.com ([192.168.1.1]) by bullet.espersunited.com (8.13.7/8.13.4) with ESMTP id k8M0cjXD009550 for ; Thu, 21 Sep 2006 19:38:46 -0500 Subject: [gentoo-user] OT - Need help with PHP! From: Michael Sullivan To: gentoo-user Content-Type: text/plain Date: Thu, 21 Sep 2006 19:38:44 -0500 Message-Id: <1158885524.5997.43.camel@bullet.espersunited.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.6.2 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at gentoo.org X-Spam-Status: No, score=-0.554 required=5.5 tests=[AWL=-1.312, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SARE_OBFUGIRLS=3.222] X-Spam-Score: -0.554 X-Spam-Level: X-Archives-Salt: ed3464a5-c975-48ce-91c2-dfe7ef70aac6 X-Archives-Hash: 9751d6fdcc46ad3f2ab4cf429170f95d Today I installed mod_suphp-0.6.1-r1 on my server box. I made the changes suggested by http://www.gentoo.org/proj/en/php/php4-php5-configuration.xml I then restarted apache2. I'm getting weird errors from a script that worked fine yesterday. Here is the info: URL: http://www.espersunited.com/~festival/login.php ((I have UserDir in /etc/apache2/httpd.conf set to /home/*/webspace/html)) Here's the error: Warning: include(misfunc.php) [function.include]: failed to open stream: No such file or directory in /home/festival/webspace/html/login.php on line 4 Warning: include() [function.include]: Failed opening 'misfunc.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /home/festival/webspace/html/login.php on line 4 Fatal error: Call to undefined function get_var() in /home/festival/webspace/html/dbconnect.php on line 3 Here's an ls of /home/festival/webspace/html: festival@bullet ~/webspace/html $ ls accompanist.php findschoolinfo.php specreq.php buttonbar.php index.php standard.css commitdirector.php login.php submitspecreq.php commitschool.php mainpage.php validateaccompanist.php dbconnect.php miscfunc.php validatedirector.php deleteaccompanist.php registerdirector.php validateentry.php email-validation.php registerschool.php validateschool.php entry.php resetschoolid.php viewlogs.php festival@bullet ~/webspace/html $ As you can see, miscfunc.php does exist. Just in case there's any doubt, here's login.php, line 4: include("misfunc.php"); Here are the contents of miscfunc.php: festival@bullet ~/webspace/html $ cat miscfunc.php
\n"; } function get_var($varname, $esc = 0) { global $HTTP_GET_VARS; if (isset($HTTP_SESSION_VARS["$varname"])) return $esc ? mysql_escape_string( $HTTP_SESSION_VARS["$varname"]) : $HTTP_SESSION_VARS["$varname"]; if (isset($_SESSION["$varname"])) return $esc ? mysql_escape_string( $_SESSION["$varname"]) : $_SESSION["$varname"]; } function set_var($varname, $value) { $HTTP_SESSION_VARS["$varname"] = $value; $_SESSION["$varname"] = $value; } ?> Why is this happening? I had hoped to give a demonstration of this script two nights from now, but if I can't get this figured out, I won't be able to... -Michael Sullivan- login.php -- gentoo-user@gentoo.org mailing list