PHP question

Out of context: Reply #25

  • Started
  • Last post
  • 26 Responses
  • mikotondria30

    I would probably:
    Go into the includes/mail.inc.php file and put, at the top,
    echo $_SERVER['PHP_SELF'];
    then just go straight to it, like domain.com/includes/mail.inc.php
    and see 'where' it really thinks it is...
    If the contact.php is in the root, then just have the require as
    require(includes/mail... etc..
    If it's simple, you shouldn't need anything like $_SERVER[...
    just point the contact script to where the includes/mail.inc.php script is.
    Hope that makes some sense..

View thread