noztaljya
11-30-2010, 12:46 PM
Ok, so back when I was into the anime web community, a whole array of simple but effective sites were in place. They mainly used the PHP Include variables that would run by inputting the page to be included into the URL bar..
For example:
<?php include("$id.html"); ?> //This would be written where the included content was required.
Any links would be <a href="index.php?id=about">About</a>
(URL would show http://what ever.com/index.php?id=about)
Now, I'm using that very same method i used a few years ago. Please see here: http://hiatus-wigan.co.uk/spy/index.php?id=test
See the error?
Warning: main(.html) [function.main]: failed to open stream: No such file or directory in C:\inetpub\vhosts\hiatus-wigan.co.uk\httpdocs\spy\index.php on line 125
Warning: main() [function.include]: Failed opening '.html' for inclusion (include_path='.;./includes;./pear') in C:\inetpub\vhosts\hiatus-wigan.co.uk\httpdocs\spy\index.php on line 12
I've never ripped my hair out before and don't intend to. This is such a simple task usually! Has PHP settings changed since I used this last in terms of config? ARRRGH HELP!
Thanks in advance
For example:
<?php include("$id.html"); ?> //This would be written where the included content was required.
Any links would be <a href="index.php?id=about">About</a>
(URL would show http://what ever.com/index.php?id=about)
Now, I'm using that very same method i used a few years ago. Please see here: http://hiatus-wigan.co.uk/spy/index.php?id=test
See the error?
Warning: main(.html) [function.main]: failed to open stream: No such file or directory in C:\inetpub\vhosts\hiatus-wigan.co.uk\httpdocs\spy\index.php on line 125
Warning: main() [function.include]: Failed opening '.html' for inclusion (include_path='.;./includes;./pear') in C:\inetpub\vhosts\hiatus-wigan.co.uk\httpdocs\spy\index.php on line 12
I've never ripped my hair out before and don't intend to. This is such a simple task usually! Has PHP settings changed since I used this last in terms of config? ARRRGH HELP!
Thanks in advance