Log in

View Full Version : Includes isn't working



jan24
10-08-2010, 08:10 PM
Hello,

I have a very little problem.
Although i don't know how to solve it.

I want to use include although it isn't working!
There is a video on youtube i have been following: http://www.youtube.com/watch?v=XmoF-6vshSI

I did exact the same as he did either though it isn't working at me.
Well lets get to the code i got.
I got 2 files:
- testerpage.php
- welcome.php

In the file testerpage.php i got the the following code:

<html>
<body>
<?php include_once("welcome.php"); ?>

<h1> Welcome People </h1>

<p> Hey now all star </a>
</body>
</html>
In the file welcome.php i got the the following code:

<?php
echo "easy hoss";
?>

Everybody seems to be alright.
I have both files in the same folder.
Either i have tried to open it in a few browsers: Google Chrome, Internet Explorer and Opera at none they are working.

I hope somebody is able to help me out :)
Thanks for advance.
Greetz,

Jan24

azoomer
10-08-2010, 10:21 PM
Hi Jan24, you probably know already, but you need to upload the files to a server that has php installed. It will not work with the files on a local computer, unless you use wamp, xamp or similar software.

jan24
10-08-2010, 10:52 PM
Arg i feel dumb now XD
Its solved i thought why isn't it working?? XD
Oh well thanks for ur time :) and srry for this XD