[SOLVED] Include function
Moderator: General Moderators
Include function
I followed enygma's tutorial exactly on how to do the include.
I even looked at coding from another site to make sure I had the formatting right.
I'm certain I did but it will not should the page I put in...
I tried using
<?include("left.php");?>
That didn't work, and I tried using
<?php
include ("NewMenu.php");
?>
and that didn't work either. Can anybody help me shed some light on my problem?
Thanks
I even looked at coding from another site to make sure I had the formatting right.
I'm certain I did but it will not should the page I put in...
I tried using
<?include("left.php");?>
That didn't work, and I tried using
<?php
include ("NewMenu.php");
?>
and that didn't work either. Can anybody help me shed some light on my problem?
Thanks
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
<?php
phpinfo();
?>Nopers, just tried and the same problem as before. Nothing appears.
If I put letters in where I would put the include or that phpinfo one you suggested, the letters appear when I open the page in IE...
When I put the include or phpinfo, the page I tried to include doesn't show up. Athe other page is is "Testing" in bold red letters...
The "Testing" page works when I open it up in IE...
If I put letters in where I would put the include or that phpinfo one you suggested, the letters appear when I open the page in IE...
When I put the include or phpinfo, the page I tried to include doesn't show up. Athe other page is is "Testing" in bold red letters...
The "Testing" page works when I open it up in IE...
Just wondering, you arn't doing File->Open are you, you are accessing it via http://localhost/foo.php (or whatever it's called) ?view it from the harddrive
-
Yonderknight
- Forum Commoner
- Posts: 31
- Joined: Sun Jun 13, 2004 6:51 pm
You need to install a PHP server on your compute, you can't just try to test them by opening them.
Use http://www.easyPHP.org
Use http://www.easyPHP.org
Try viewing the source of your php pages. If your php script shows up in the html, that means that php isnt installed on your computer. You have to install apache and configure it with php. that way you'll be able to test your scripts on your local machine. If you need help doing that go to the apache section of devnetwork.
-
d3ad1ysp0rk
- Forum Donator
- Posts: 1661
- Joined: Mon Oct 20, 2003 8:31 pm
- Location: Maine, USA
Not really, but I have an easy to follow guide on how to turn your machine into your own free webhost..
http://lps.no-ip.org/install.php
tell me if it helps
http://lps.no-ip.org/install.php
tell me if it helps