PHP script is not running and leave a blank page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • raknin
    New Member
    • Oct 2007
    • 82

    PHP script is not running and leave a blank page

    For some reason when I try to run any login PHP script that comes with the roscript login package (http://www.roscripts.com/PHP_login_script-143.html ) in any browser I got a blank page with nothing inside it. . When I run in the same directory any simple script like one that contians PHPINFO every thing goes great. I can access and see the login directory and all sub-directories, Can someone advice.

    I belive I configured both php.ini and apache htppd.conf files. it seems to me like a permission problem, I fighting with it in the couple last days.

    My working root directory is:"F:\Internet \RCExperts\Deve lopment\" and the login package is sit under F:\Internet\RCE xperts\Developm ent\src\login\"

    Changes I done to the httpd.conf file:
    -------------------------------------------------------
    Code:
    DocumentRoot "F:/Internet/RCExperts/Development"
    # This should be changed to whatever you set DocumentRoot to.
    #
    #<Directory "E:/Program Files/Apache2.2/htdocs">
    <Directory "F:/Internet/RCExperts/Development">
    ************************************************** *****************
    # This should be changed to whatever you set DocumentRoot to.
    #
    #<Directory "E:/Program Files/Apache2.2/htdocs">
    <Directory "F:/Internet/RCExperts/Development">
    #
    # Possible values for the Options directive are "None", "All",
    # or any combination of:
    # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
    #
    # Note that "MultiViews" must be named *explicitly* --- "Options All"
    # doesn't give it to you.
    #
    # The Options directive is both complicated and important. Please see
    # http://httpd.apache.org/docs/2.2/mod/core.html#options
    # for more information.
    #
    Options Indexes FollowSymLinks
    
    #
    # AllowOverride controls what directives may be placed in .htaccess files.
    # It can be "All", "None", or any combination of the keywords:
    # Options FileInfo AuthConfig Limit
    #
    AllowOverride None
    #
    # Controls who can get stuff from this server.
    #
    Order deny,Allow
    Allow from all
    
    </Directory>
    **********************************
    ScriptAlias /php/ "E:/Program Files/PHP"
    AddType application/x-httpd-php .php .php5
    Action application/x-httpd-php "/php/php-cgi.exe"
    SetEnv PHPRC "E:/Program Files/PHP"
    ************************************************** ***********
    
    Changes I done to the php.ini file:
    --------------------------------------------------
    
    include_path = ".;E:\Program files\PHP\includes;F:\Internet\RCExperts\Developme nt\php\login\lib;F:\Internet\RCExperts\Development \php\login\lib\date_class;F:\Internet\RCExperts\De velopment\php\login\lib\phpmailer;F:\Internet\RCEx perts\Development\php\login\css;F:\Internet\RCExpe rts\Development\php\login\images"
    
    ********************
    
    doc_root =".;F:\Internet\RCExperts\Development"
    
    *******************
    
    user_dir =".;F:\Internet\RCExperts\Development"
    *************** *****

    ------------------------------
    My environment setting is:

    Microsoft windows server 2003
    1) PHP 5.2.5
    2) Apache server 2.2

    Can someone please help

    Please adhere to the Posting Guidelines and show any code or statements wihin the appropriate code tags!! - moderator
    Last edited by ronverdonk; Feb 18 '08, 11:22 AM. Reason: statements within code tags
  • ronverdonk
    Recognized Expert Specialist
    • Jul 2006
    • 4259

    #2
    If you are able to run a simple phpinfo script, there is nothing wrong with the installation of php on your server.
    But do you run your downloaded login script from a directory that is within your server's root folder's reach? If so, there must be an error in the script itself.

    Best thing would be to put some trace/debug info in the script an see if you can pinpoint the problem.

    Ronald

    Comment

    • raknin
      New Member
      • Oct 2007
      • 82

      #3
      ronverdonk,

      Thanks, but when I run each of the scripts within my phped it is just run fine.
      Can you look at the configuration changes that I made in the php.ini and in the httpd.cong file and tell me if something is missing/wrong or you can take a look at the linked that I attached with the source code.I want tofinish with the development environment settings.

      Thanks
      Ronen

      Comment

      • raknin
        New Member
        • Oct 2007
        • 82

        #4
        Ok,Thanks all after debugging I found and fixed the problem.

        Comment

        • ronverdonk
          Recognized Expert Specialist
          • Jul 2006
          • 4259

          #5
          Glad you found it! Do you want to share your solution with our members, so they could also benefit from it? Thanks and until next time.

          Ronald

          Comment

          Working...