no errors, they just won't be included - if I use require then the page doesn't load at all

I am using Apache 2, Win XP, PHP 4 - is there some setting in the PHP.ini file I should change?

help!

my localhost is served from

c:\sites\Root\

thanks
mike

    Did you try include()?
    You say there are no errors... did you turn Error reporting to where it doesnt report warnings? If so.. you to enable that nad then post the warnings you get
    Hop this helps
    drag0n

      I don't know if this would work, but maybe use:

      /usr/local/sites/Root/

        the code works fine on the server, the includes are fine there,

        it's locally that is the problem, definitiely locally.

        if I require() then the page refuses to load at all.

        how do I turn error reporting on?

        Also oddly enough phpMyAdmin works perfectly, and I assume that has includes in it ...

        Could the problem be in my php.ini file?

        I changed it so that it reads

        include_path = ".;c:\Blunt\Root\"
        doc_root = ".:c:\Blunt\Root"

          wait,

          changed those lines to

          include_path = "\Blunt\Root\"
          doc_root = "\Blunt\Root"

          Now I seem to be getting it sort of working, but my harddrive is going nuts and each page is taking about 10 seconds to load - help!

          ironically it is now working on some sites, but not others - this is madness ......... perhaps I should reinstall it all - can anyone tell me the correct settings for include_path and doc_root for a localhost?

            in phpinfo it has a line that reads

            include_path .;c:\php4\pear

            I have no idea where this is in the ini file (doesn't appear to be in there, search was blank) - this might help find the problem...

              ahhh fixed the problem - but it is still taking a long time to parse the files - this is a p1.7 512mb ram machine and shouldn't take that long to serve a page surely ...

                a month later
                Write a Reply...