Strange include related Error which makes NO sense

Hi,

I am trying to load a file into a file via the include feature and I am getting the Error message listed below!!!
Note:
1- Both of these files are in the same directory.
2- I have many other includes and they are loading Ok, but some how this one keeps generating Error message below:

Warning: include(inc_new_ppc_body.php) [function.include]: failed to open stream: No such file or directory in /var/www/html/anoox.com/uc/advman_keyword_new.php on line 280

Warning: include() [function.include]: Failed opening 'inc_new_ppc_body.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/html/anoox.com/uc/advman_keyword_new.php on line 280

WHAT in GODs name going on?

ThanX.

Are you 100% sure that file is there and that it’s named exactly like that and that it doesn’t have uppercase letters in its name? PHP and OS are very straightforward, mistake is at your end.

Might depend on which God is involved but it’s probably a typo or maybe a permission issue.

Post line 280. And post the results of: “ls -l uc”.

Hi,

Yes, I am sure.

The name of the file, as copied from the directory it is in is:

inc_new_ppc_body.php

The include is:

include ‘inc_new_ppc_body.php’;

And again there other includes in that same page to files in the same dir and other dirs. And they are opening just fine as they should.

Ooooooh :frowning:

OMG :frowning:

I figured out what the problem was. It was that I had just not uploaded the included file onto the server yet and only had it on my PC!

I think I am loooosing my mind :frowning:
That is what you get from working 20 Hours per day 7 days a week trying to meet a Key dead line.

Cheers :slight_smile:

Classic mistake :slight_smile:

Wait until you edit something and then you realize you’re doing it at the wrong project :smiley: