Apache unable to run php script.
Posted: 13. December 2015 01:52
Hello everybody.
I'm new to xampp/apache, apologies if this is a stupid question.
I have xampp 3.2.1 installed on my PC.
I'm trying to implement a php contact form trough a "php include" function.
Stand alone the scipt itself is working fine,
it is when I try to cal the script trough a "php include" function that things get weird.
This is the code I'm using:
<?php include ($_SERVER["DOCUMENT_ROOT"] . "/nb/kontakt/contact.php"); ?>
Script is showing up but is not working?
This is the error log:
'C:/xampp/htdocs/nb/contact.php' not found or unable to stat, referer: http://localhost/nb/index.php
As one can see, the script is called from "/nb/kontakt/contact.php"
but apache is trying to find the script in "/nb/contact.php"
Can some plz advise me how to fix this, I would be very gratefull.
I'm new to xampp/apache, apologies if this is a stupid question.
I have xampp 3.2.1 installed on my PC.
I'm trying to implement a php contact form trough a "php include" function.
Stand alone the scipt itself is working fine,
it is when I try to cal the script trough a "php include" function that things get weird.
This is the code I'm using:
<?php include ($_SERVER["DOCUMENT_ROOT"] . "/nb/kontakt/contact.php"); ?>
Script is showing up but is not working?
This is the error log:
'C:/xampp/htdocs/nb/contact.php' not found or unable to stat, referer: http://localhost/nb/index.php
As one can see, the script is called from "/nb/kontakt/contact.php"
but apache is trying to find the script in "/nb/contact.php"
Can some plz advise me how to fix this, I would be very gratefull.