Have just started playing about with PHP includes but they don't seem to work online.
have tryed it with 2 hosts but 1 goes on about errors and failors and the other just doesn't show them
http://www.snaithpri...g.net/index.php
http://www.totalinfe...place/index.php
what i do?
Welcome to Accio-Potters World
![]() |
Welcome to Accio-Potters World, like most online communities you must register to view or post in our community, but don't worry this is a simple free process that requires minimal information. Take advantage of it immediately, Register Now or Sign In. Start new topics and reply to others Subscribe to topics and forums to get automatic updates Add events to our community calendar Get your own profile and make new friends Customize your experience here The Potter Police, Magikal-Fantasy, and Accio-PottersWorld have all merged into one site. We still provide help to Potter World, but we will also strive to help websites in the Magical Fantasy world. We will also provide a site for Dumbledore (Terry) to provide support for his Invision skins. |
Guest Message by DevFuse
Php Help-Topic Closed
Started by
Danny
, Jun 24 2007 05:15 AM
3 replies to this topic
#1
Posted 24 June 2007 - 05:15 AM
#2
Posted 24 June 2007 - 07:56 AM
The first site doesn't support the shorthand PHP Tags. So your includes should look like this:
For the second site, I believe the error shows that the file you're including doesn't exist. In the first site, you didn't change http://your.server.name/header.txt to suit your own site. You're going to need to change that link to the direct file path for the files you're trying to include.
For example, if Mugglenet wanted to include a file in their main directory called hello.txt, their code would look something like this:
That should work for you.
<?php include('http://your.server.name/header.txt'); ?>
It needs to be . Some servers support the shorthand ones, but others don't.For the second site, I believe the error shows that the file you're including doesn't exist. In the first site, you didn't change http://your.server.name/header.txt to suit your own site. You're going to need to change that link to the direct file path for the files you're trying to include.
For example, if Mugglenet wanted to include a file in their main directory called hello.txt, their code would look something like this:
<?php
include ('http://mugglenet.com/hello.txt'); ?>
You actually don't need the full URL, so this would work also:<?php
include('hello.txt');
?>
That should work for you.
#3
Posted 24 June 2007 - 02:21 PM
will try l8ter i am as of 1 hour ago between hosts so can't upload anything untill my move over to Hertz is compleated.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users




This topic is locked












