Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2007
    Location
    Dubai
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy require not working!!

    i'm new to php. i installed it on xp, iis and installed mysql.
    everything is working fine except for the require and require_once statements. the weird thing is that include and include_once work fine.

    it seems that the php engine stops processing the page whenever it encounters a require or require_once statement. for instance, the following php code:
    <html>
    <head>
    <title><? require("./includes/pagetitle.php");?></title>
    </head>
    ....
    </html>

    would generate the following output:
    <html>
    <head>
    <title>

    plz advise!!

  • #2
    Senior Coder rafiki's Avatar
    Join Date
    Aug 2006
    Location
    Floating around somewhere...
    Posts
    2,046
    Thanks
    19
    Thanked 42 Times in 42 Posts
    turn on full error_reporting()

  • #3
    New to the CF scene
    Join Date
    Aug 2007
    Location
    Dubai
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thx a lot for this tip - but i now feel like an idiot cuz no developer turns error reporting off!

    anyway somehow they are both working now, i modified the php.ini file but i'm not really sure what i did.

    any recomendations on a php configuration tutorial?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •