PHP script showing up blank or displaying actual PHP source

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hdf
    New Member
    • Jan 2007
    • 24

    PHP script showing up blank or displaying actual PHP source

    hi
    i install php 5 on windows xp using iis 5 every thing is is set up but wen i try openinhg a php file it shows nothing but the info.php display the php settings does anyone now wat is rong with this ???

    PS. i also used wamp5 and it also gave me the same result...php script display black

    I need help asap
    Thanx
  • Motoma
    Recognized Expert Specialist
    • Jan 2007
    • 3236

    #2
    Originally posted by hdf
    hi
    i install php 5 on windows xp using iis 5 every thing is is set up but wen i try openinhg a php file it shows nothing but the info.php display the php settings does anyone now wat is rong with this ???

    PS. i also used wamp5 and it also gave me the same result...php script display black

    I need help asap
    Thanx
    It sounds like there is an error in your php script. Perhaps you should post it in the forum with PHP tags.

    Comment

    • hdf
      New Member
      • Jan 2007
      • 24

      #3
      Originally posted by Motoma
      It sounds like there is an error in your php script. Perhaps you should post it in the forum with PHP tags.
      the scripts is copied from our live site and havent maid any changes to it directly and all the pages containing php code disply blank

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Originally posted by hdf
        the scripts is copied from our live site and havent maid any changes to it directly and all the pages containing php code disply blank
        Check your PHP error log. This may be your web server error log, but I am not very familiar with IIS 5.

        Comment

        • hdf
          New Member
          • Jan 2007
          • 24

          #5
          Originally posted by Motoma
          Check your PHP error log. This may be your web server error log, but I am not very familiar with IIS 5.
          hi
          i have notice that wen i add it code data connect to the nysql sever it shows a blank screen abd web i remove the code it shows the echo i inserted.....th is is on wamp5. culd it be the dll....and is dar a solution to it

          Comment

          • Motoma
            Recognized Expert Specialist
            • Jan 2007
            • 3236

            #6
            Originally posted by hdf
            hi
            i have notice that wen i add it code data connect to the nysql sever it shows a blank screen abd web i remove the code it shows the echo i inserted.....th is is on wamp5. culd it be the dll....and is dar a solution to it
            On WAMP5, you should have an error log in the wamp\logs folder. Check out the Apache and PHP error logs, and see if anything there can point you to the problem.

            Comment

            • hdf
              New Member
              • Jan 2007
              • 24

              #7
              Originally posted by Motoma
              On WAMP5, you should have an error log in the wamp\logs folder. Check out the Apache and PHP error logs, and see if anything there can point you to the problem.
              hi
              this is wat the php error log gave me:
              [29-Jan-2007 16:27:41] PHP Warning: ksort() expects parameter 1 to be array, null given in C:\wamp\scripts \refresh_apache _mod.php on line 37

              but i also notice dat wen i remove the data base conection sting from the script dan it echo but as soon as i add it in then nothing display.could the mysql.dll b the problem ?

              Comment

              • Atli
                Recognized Expert Expert
                • Nov 2006
                • 5062

                #8
                This also happened to me when I updated to 5.2.0

                For me it was cuz I normally opened php scripts like this

                <? .. ?>

                In php 5.2.0 they changed it so you alwasy have to open like this

                <?php ... ?>

                Might be the problem

                Btw. You can change this in your php.ini
                short_open_tag = On

                Comment

                Working...