PHP question

Out of context: Reply #26

  • Started
  • Last post
  • 26 Responses
  • vaxorcist0

    mikotondria3's right... you want to find out the filepath of your script, then you can start pointing things without errors like this.....

    you can write a one-line script in the same folder, call it info.php and make it like:
    <?php
    phpinfo();
    ?>

    you'll see a HUGE amount of stuff.... it's probably a filepath in there, I'd check the $_SERVER['PHP_SELF'] var, and/or a few others like it after scrolling through all the stuff...

    you can also find out with this info if your server is weirdly configured..... or running on Windows instead of Linux/Unix.... PHP on Windows can be quirky

View thread