Re: help with require/includes pathing frustration [SOLVED]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



OMFG! I'm an idiot. This is what happens when you work long hours and
refactor code without eating/sleeping properly..

so... it's "gui_setup.inc.php" I'm trying to include, yet the file is
named "gui_setup.php". 

What a newb mistake!!! UGH. Sorry for wasting everyone's bandwidth.
Is there a way to have this email deleted from the archives -- I am
embarrassed by it! HAHAH!

On Wed, 2009-01-28 at 19:15 -0800, Daevid Vincent wrote:

> At the very top of my login.php page I have this:
> 
> <?php
> require_once('./includes/gui/gui_setup.inc.php');
> ...
> ?>
> 
> (I've tried with and without the "./" prefix as if that might make a
> difference)
> 
> When I try to load the URL:
> https://example.com/vincentd/mydart/login.php
> 
> I get this error:
> 
> Warning: require_once(./includes/gui/gui_setup.inc.php) 
> [function.require-once]: failed to open stream: 
> No such file or directory in /home/www/vincentd/mydart/login.php on line
> 2
> 
> Fatal error: require_once() 
> [function.require]: Failed opening required
> './includes/gui/gui_setup.inc.php' 
> (include_path='.:/usr/share/php:/usr/share/pear') 
> 	in /home/www/vincentd/mydart/login.php on line 2
> 
> If I try to access it from the web:
> https://example.com/vincentd/mydart/includes/gui/gui_setup.inc.php
> 
> I get a 404:
> 
> Not Found
> The requested URL /vincentd/mydart/includes/gui/gui_setup.inc.php was
> not found on this server.
> 
> Yet, the file exists.
> 
> vincentd@pse02 /home/www/vincentd/mydart/includes/gui $ ll
> -rw-rw-rw- 1 vincentd vincentd 11046 2009-01-29 01:17 gui_menu.inc.php
> -rw-r--r-- 1 vincentd vincentd  1589 2009-01-29 02:44 gui_setup.php
> 
> vincentd@pse02 /home/www/vincentd/mydart/includes/gui $ ll ../../
> drwxrwxrwx 2 vincentd vincentd    4096 2009-01-28 23:50 css
> -rw-rw-rw- 1 vincentd vincentd    3542 2008-12-29 22:45 favicon.ico
> drwxrwxrwx 5 vincentd vincentd    4096 2009-01-27 00:19 images
> drwxrwxrwx 8 vincentd vincentd    4096 2009-01-08 01:55 includes
> -rw-rw-rw- 1 vincentd vincentd    7556 2009-01-29 02:49 login.php
> -rw-rw-rw- 1 vincentd vincentd   15748 2009-01-14 01:00 my_account.php
> -rw-rw-rw- 1 vincentd vincentd     121 2008-12-31 00:07 phpinfo.php
> -rw-rw-rw- 1 vincentd vincentd   20678 2009-01-29 01:14 template.html
> 
> or put another way (using the same path from the root www dir):
> 
> vincentd@pse02 /home/www/vincentd/mydart $ ll
> includes/gui/gui_setup.php 
> -rw-r--r-- 1 vincentd vincentd 1589 2009-01-29 02:44
> includes/gui/gui_setup.php
> 
> Doesn't the ".:" in include_path='.:/usr/share/php:/usr/share/pear' mean
> that PHP should look in the current directory (which I assume would be
> "/home/www/vincentd/mydart") as that is where login.php is located?
> And then relative to there it should look in "includes/gui/..." as per
> my require_once command.
> 
> What am I not understanding about this?



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux