include_once fails!

Posted by user220201 on Stack Overflow See other posts from Stack Overflow or by user220201
Published on 2010-04-10T23:59:55Z Indexed on 2010/04/11 0:03 UTC
Read the original article Hit count: 307

Filed under:
|
|

Hi,

I am new to php. I thought I knew enough but apparently do not. I am trying to use the OAuth.php from code.google.com. So I include OAuth.php in my code.

Here is my php file - index.php

<?php

print 'Hello1';
include 'test.php';
print 'Hello2';
include 'OAuth.php';
print 'Hello3';


?>

Here test.php, OAuth.php and index.php are all in the same directory.

Amazingly enough, I see Hello1 and Hello2 but not Hello3. What am I missing. Its driving me crazy. Any help is greatly greatly appreciated. I am using php5 with apache 2.2 and also have the oauth.so module installed and loaded from php.net.

  • SV

© Stack Overflow or respective owner

Related posts about php

Related posts about oauth