Jump to content


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


  • This topic is locked This topic is locked
3 replies to this topic

#1 Danny

Danny

    Advanced Member

  • 1st Year Student
  • 269 posts
  • Location:Same as Rich
  • Interests:Web-design, Rock, metal and pob music. I like playing Football playing PC games, Skiing and anoying Teachers.<br />I like bands like Busted, Son Of Dork, Mcfly, Matt Willis, Greenday, Feeder, U2, Metalica, The Flaming Monkeys, Motorhead, Arctic Monkeys, AC/DC, Dragon Force, Pigeon Detectives, The Kaiser Chiefs and The presidents of the USA
  • Country:
  • Wizards Age:15

Posted 24 June 2007 - 05:15 AM

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?

#2 Kevin

Kevin

    Member

  • Retired Staff
  • 100 posts
  • Location:Canada
  • Country:
  • Wizards Age:14

Posted 24 June 2007 - 07:56 AM

The first site doesn't support the shorthand PHP Tags. So your includes should look like this:
<?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 Danny

Danny

    Advanced Member

  • 1st Year Student
  • 269 posts
  • Location:Same as Rich
  • Interests:Web-design, Rock, metal and pob music. I like playing Football playing PC games, Skiing and anoying Teachers.<br />I like bands like Busted, Son Of Dork, Mcfly, Matt Willis, Greenday, Feeder, U2, Metalica, The Flaming Monkeys, Motorhead, Arctic Monkeys, AC/DC, Dragon Force, Pigeon Detectives, The Kaiser Chiefs and The presidents of the USA
  • Country:
  • Wizards Age:15

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.

#4 AlbusDumbledore

AlbusDumbledore

    All Seeing- All Knowing

  • Headmasters
  • 5,427 posts
  • Gender:Male
  • Country:
  • Wizards Age:53

Posted 19 October 2007 - 04:09 PM

Topic Closed.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users