So I have been making a website for my school on my computer. But when I used DARCS to put the site on my school's server. But now nothing works, only blank pages come up. I am pretty sure that there is nothing wrong with the code, mainly because all the code works on my computer.

Can anyone help me figure out why? Thanks.

    two things, one are your sure the school's server is set up with php, and if so have you tried to specify the exact page directory/index.php?

    Second thing, you should display errors on your own computer so that you can debug (in php ini set display errors on). Your school's computer might find an error and stop processing the script.

    Acually last thing, if you are using includes then make sure the path on your computer isn't being used, your school's server will have different paths.

      Does a .html file work?

      Does a .php file without any php work?

      Does a .php file with only an echo in php work?

      Do you and the school server use the same php version?

        Also, by a "blank page", do you mean that no data is returned? You can't simply look at your browser window to ascertain that you're getting a "blank page" - you have to view the source.

        If you view the source, do you see the PHP source code, or anything at all? Also, doing a simple script like:

        <?php phpinfo(); ?>

        should show you information about PHP. Make sure yoru files have a .php file extension as well.

          @: [FONT="Comic Sans MS"]Well I used NO absolute paths in my code so it should not be a problem.

          As for error reporting my php.ini file says

          error_reporting  =  E_ALL & ~E_NOTICE

          is that what it should say? Or what shoul dI set it too.

          But I am 100% sure that the schools server is set up with PHP because it runs phpMyAdmin.[/FONT]

          @: [FONT="Comic Sans MS"]Anything that is between ----> <?php ?> does not display. Anything that is regular HTML does display.
          [/FONT]

            Php may not be setup to run in your directory/part of the server.

            Check with your schools network admin people.

              Write a Reply...