1 |
On Thu, 2006-09-21 at 19:38 -0500, Michael Sullivan wrote: |
2 |
> Today I installed mod_suphp-0.6.1-r1 on my server box. I made the |
3 |
> changes suggested by |
4 |
> http://www.gentoo.org/proj/en/php/php4-php5-configuration.xml I then |
5 |
> restarted apache2. I'm getting weird errors from a script that worked |
6 |
> fine yesterday. Here is the info: |
7 |
> |
8 |
> URL: http://www.espersunited.com/~festival/login.php |
9 |
> |
10 |
> ((I have UserDir in /etc/apache2/httpd.conf set |
11 |
> to /home/*/webspace/html)) |
12 |
> |
13 |
> Here's the error: |
14 |
> |
15 |
> Warning: include(misfunc.php) [function.include]: failed to open stream: |
16 |
> No such file or directory in /home/festival/webspace/html/login.php on |
17 |
> line 4 |
18 |
> |
19 |
> Warning: include() [function.include]: Failed opening 'misfunc.php' for |
20 |
> inclusion (include_path='.:/usr/share/php5:/usr/share/php') |
21 |
> in /home/festival/webspace/html/login.php on line 4 |
22 |
> |
23 |
> Fatal error: Call to undefined function get_var() |
24 |
> in /home/festival/webspace/html/dbconnect.php on line 3 |
25 |
> |
26 |
> |
27 |
> Here's an ls of /home/festival/webspace/html: |
28 |
> |
29 |
> festival@bullet ~/webspace/html $ ls |
30 |
> accompanist.php findschoolinfo.php specreq.php |
31 |
> buttonbar.php index.php standard.css |
32 |
> commitdirector.php login.php submitspecreq.php |
33 |
> commitschool.php mainpage.php validateaccompanist.php |
34 |
> dbconnect.php miscfunc.php validatedirector.php |
35 |
> deleteaccompanist.php registerdirector.php validateentry.php |
36 |
> email-validation.php registerschool.php validateschool.php |
37 |
> entry.php resetschoolid.php viewlogs.php |
38 |
> festival@bullet ~/webspace/html $ |
39 |
> |
40 |
> As you can see, miscfunc.php does exist. Just in case there's any |
41 |
> doubt, here's login.php, line 4: |
42 |
> |
43 |
> include("misfunc.php"); |
44 |
> |
45 |
> Here are the contents of miscfunc.php: |
46 |
> |
47 |
> festival@bullet ~/webspace/html $ cat miscfunc.php |
48 |
> <? |
49 |
> |
50 |
> function debug($string) |
51 |
> { |
52 |
> print "***DEBUG*** $string ***DEBUG***<br><br>\n"; |
53 |
> } |
54 |
> |
55 |
> function get_var($varname, $esc = 0) |
56 |
> { |
57 |
> global $HTTP_GET_VARS; |
58 |
> if (isset($HTTP_SESSION_VARS["$varname"])) |
59 |
> return $esc ? |
60 |
> mysql_escape_string( $HTTP_SESSION_VARS["$varname"]) : |
61 |
> $HTTP_SESSION_VARS["$varname"]; |
62 |
> |
63 |
> if (isset($_SESSION["$varname"])) |
64 |
> return $esc ? mysql_escape_string( $_SESSION["$varname"]) : |
65 |
> $_SESSION["$varname"]; |
66 |
> } |
67 |
> |
68 |
> function set_var($varname, $value) |
69 |
> { |
70 |
> $HTTP_SESSION_VARS["$varname"] = $value; |
71 |
> $_SESSION["$varname"] = $value; |
72 |
> } |
73 |
> |
74 |
> ?> |
75 |
> |
76 |
> Why is this happening? I had hoped to give a demonstration of this |
77 |
> script two nights from now, but if I can't get this figured out, I won't |
78 |
> be able to... |
79 |
> -Michael Sullivan- |
80 |
|
81 |
Nevermind. I feel stupid. I misspelled the name of the file I was |
82 |
including on login.php:4. |
83 |
|
84 |
|
85 |
-- |
86 |
gentoo-user@g.o mailing list |