Re: [PHP] Include fails when ./ is in front of file name

2008-04-08 Thread Noah Spitzer-Williams
I appreciate the help guys. I don't understand what's going on. Here's what I've tried since posting: Copied over the PHP binaries and php.ini from my old server to my new one. No luck. Copied over the phpMyAdmin from my old server to my new one. No luck. I've double-checked all

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Daniel Brown
On Sun, Apr 6, 2008 at 5:17 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote: This works: include(file.inc.php); This doesn't: include(./file.inc.php); That's pretty vague, Noah. Is it unable to locate the file? What's the error message you're receiving? Also, what happens

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Philip Thompson
On Apr 7, 2008, at 9:36 AM, Daniel Brown wrote: On Sun, Apr 6, 2008 at 5:17 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote: This works: include(file.inc.php); This doesn't: include(./file.inc.php); That's pretty vague, Noah. Is it unable to locate the file? What's the error

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Stut
Philip Thompson wrote: On Apr 7, 2008, at 9:36 AM, Daniel Brown wrote: On Sun, Apr 6, 2008 at 5:17 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote: This works: include(file.inc.php); This doesn't: include(./file.inc.php); That's pretty vague, Noah. Is it unable to locate the file?

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 11:20 AM, Philip Thompson [EMAIL PROTECTED] wrote: It's Windows. From experience, I know that it provides little to no error reporting in some instances. For example, if you're missing a semi-colon and you have error reporting turned on, all you get is a blank page - no

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Dan Joseph
On Mon, Apr 7, 2008 at 11:52 AM, Wolf [EMAIL PROTECTED] wrote: Noah, Looks like you need to be deciding on whether or not you are on windoze or *Nix. If on Windoze, your include path is \ If on *Nix, your include path is / Notice the direction of the slashes and code appropriately in all

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: On Sun, Apr 6, 2008 at 5:17 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote: This works: include(file.inc.php); This doesn't: include(./file.inc.php); That's pretty vague, Noah. Is it unable to locate the file? What's the

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 11:24 AM, Stut [EMAIL PROTECTED] wrote: To the OP: Check that your include_path contains '.', if it doesn't add it and see if that fixes your problem. He has . in the include path On Sun, Apr 6, 2008 at 2:17 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote:

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Wolf
Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 11:52 AM, Wolf [EMAIL PROTECTED] wrote: Noah, Looks like you need to be deciding on whether or not you are on windoze or *Nix. If on Windoze, your include path is \ If on *Nix, your include path is /

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Stut
Wolf wrote: Daniel Brown [EMAIL PROTECTED] wrote: On Mon, Apr 7, 2008 at 11:52 AM, Wolf [EMAIL PROTECTED] wrote: Noah, Looks like you need to be deciding on whether or not you are on windoze or *Nix. If on Windoze, your include path is \ If on *Nix, your include path is / Notice

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Noah Spitzer-Williams
Here's the error I get: *Warning*: include(.\file.inc.php) [function.includehttp://www.emsplannertest.com/function.include]: failed to open stream: No such file or directory in * C:\Inetpub\httpdocs\test.php* on line *3* *Warning*: include()

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 11:52 AM, Wolf [EMAIL PROTECTED] wrote: Noah, Looks like you need to be deciding on whether or not you are on windoze or *Nix. If on Windoze, your include path is \ If on *Nix, your include path is / Notice the direction of the slashes and code appropriately

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 12:24 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote: Here's the error I get: Warning: include(.\file.inc.php) [function.include]: failed to open stream: No such file or directory in C:\Inetpub\httpdocs\test.php on line 3 Warning: include() [function.include]:

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Lester Caine
Daniel Brown wrote: On Mon, Apr 7, 2008 at 12:24 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote: Here's the error I get: Warning: include(.\file.inc.php) [function.include]: failed to open stream: No such file or directory in C:\Inetpub\httpdocs\test.php on line 3 Warning: include()

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Daniel Brown
On Mon, Apr 7, 2008 at 1:05 PM, Lester Caine [EMAIL PROTECTED] wrote: People seem to be missing the point here. These are PUBLIC applications that are failing to work for Noah. He should not need to re-write PHPMyAdmin in order to get it to work? Next people will be saying that we should

Re: [PHP] Include fails when ./ is in front of file name

2008-04-07 Thread Wolf
Lester Caine [EMAIL PROTECTED] wrote: Daniel Brown wrote: On Mon, Apr 7, 2008 at 12:24 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote: Here's the error I get: Warning: include(.\file.inc.php) [function.include]: failed to open stream: No such file or directory in

[PHP] Include fails when ./ is in front of file name

2008-04-06 Thread Noah Spitzer-Williams
This works: include(file.inc.php); This doesn't: include(./file.inc.php); I can't figure it out! PHPMyAdmin uses ./ so it's obviously not working. Here's my environment: Win2003 Server w/ IIS 6 PHP 5.2.5 setup as ISAPI All PHP and httpdoc directories have read, write, and

Re: [PHP] Include fails when ./ is in front of file name

2008-04-06 Thread Casey
On Sun, Apr 6, 2008 at 2:17 PM, Noah Spitzer-Williams [EMAIL PROTECTED] wrote: This works: include(file.inc.php); This doesn't: include(./file.inc.php); I can't figure it out! PHPMyAdmin uses ./ so it's obviously not working. Here's my environment: Win2003 Server w/ IIS 6

Re: [PHP] Include fails when ./ is in front of file name

2008-04-06 Thread Noah Spitzer-Williams
Casey -- nope. the include statement is being issues from the parent page. both files are in the same directory. Nitsan -- the problem is apps like phpMyAdmin are littered with include(./file.inc.php); i'd have to replace all those to use full paths. it's not a good idea from a servicability