This is my first attempt at using a localhost while editing PHP website files (I'm a HTML girl, but have been asked to make some aesthetic changes to a PHP site).
I've installed XAMPP on my Mac already and configured it (as far as I know). MySQL Database, ProFTPD, and Apache Web Server are running. I've succeeded at viewing a simple index.php
file from the htdocs files using localhost/index.php
. I've placed the entire website directory (named newsite) inside the htdocs folder. When I attempt to view the website in Firefox or Safari via localhost/newsite/index.php
I get this message in the browser:
Warning: include_once(/Applications/XAMPP/xamppfiles/htdocs/inc/simplepie.inc): failed to open stream: No such file or directory in /Applications/XAMPP/xamppfiles/htdocs/newsite/index.php on line 2
This is referring to a block of PHP at the beginning of the index.php
document. I've checked, the simplepie.inc
file is in file inc under file newsite
. If I try go around it by commenting out that section of code and any related calls, the browser goes blank. Can anyone please tell me what else I need to do to just view these files via localhost?
htdocs/inc/simplepie.inc
wouldn't behtdocs/inc/newsite/simplepie.inc
!?PHP
Does what you tell it to do .. it never makes mistakes unless you do it – Adam Azadinclude_once
code? you are looking thesimplepie.inc
in wrong place. – Ariyan