On Thu, 2006-09-21 at 19:38 -0500, Michael Sullivan wrote: > 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: > > [EMAIL PROTECTED] ~/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 > [EMAIL PROTECTED] ~/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: > > [EMAIL PROTECTED] ~/webspace/html $ cat miscfunc.php > <? > > function debug($string) > { > print "***DEBUG*** $string ***DEBUG***<br><br>\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-
Nevermind. I feel stupid. I misspelled the name of the file I was including on login.php:4. -- gentoo-user@gentoo.org mailing list