UK Webmaster Talk - Online Marketing - SEO


 

<? include?> not working

This is a discussion on <? include?> not working within the Php and MySQL forums, part of the Programming / Scripting / Coding category; I've put this tag in my site <? include("links.html") ?> and i have a file links.html with the links for ...


Go Back   UK Webmaster Talk - Online Marketing - SEO > Website Design & Development > Programming / Scripting / Coding > Php and MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Notices

Reply

 

LinkBack Thread Tools Display Modes
Old 19-08-2005, 13:25   #1 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 350
iTrader: 0 / 0%
rustypaulin has a spectacular aura about
Send a message via AIM to rustypaulin Send a message via MSN to rustypaulin
Default <? include?> not working

I've put this tag in my site <? include("links.html") ?> and i have a file links.html with the links for the navigation bar but when i go to the index.html page i can't see the links. Is there something wrong with the php?
__________________
Webmaster
Postal Service Access
Hosting Advice
PSP Cheats
rustypaulin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-08-2005, 13:33   #2 (permalink)
KF1
Guest
 
Posts: n/a
iTrader: / %
Default

try this
<? include('links.html' ?>

OK theres no smiley ill put spaces there
<? include('links.html' ; ) ?>

edit dont i just lernt what ; means

Last edited by KF1; 19-08-2005 at 15:00.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-08-2005, 16:53   #3 (permalink)
Moderator
 
Join Date: Jan 2005
Location: post is there >>
Posts: 1,586
iTrader: 0 / 0%
robertall is just really nice
Send a message via AIM to robertall Send a message via MSN to robertall
Default

Everyone has it wrong here.

Change

Code:
<? include("links.html") ?>
to

Code:
<?php include("links.html") ?>
It should work because only some servers are designed for <? ?>, but most use <?php ?>.

Robert
__________________
Free .org domain - Click for details!
Do not pm asking for things. My inbox is full. Add me to MSN!
robertall is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-08-2005, 18:40   #4 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 350
iTrader: 0 / 0%
rustypaulin has a spectacular aura about
Send a message via AIM to rustypaulin Send a message via MSN to rustypaulin
Default

no that's not working either, do i need php elsewhere in the code for that to work? as the rest of the page has been coded with HTML
__________________
Webmaster
Postal Service Access
Hosting Advice
PSP Cheats
rustypaulin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-08-2005, 18:43   #5 (permalink)
Super Moderator
 
Join Date: Mar 2005
Location: Herts, UK
Posts: 1,030
iTrader: 1 / 100%
monaghan is a jewel in the rough
Default

You are calling the page something.php aren't you ? If not, then you need to modify your web server to pass the extension you're using through PHP (not usually a goot idea for performance reasons)
monaghan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 19-08-2005, 18:45   #6 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 350
iTrader: 0 / 0%
rustypaulin has a spectacular aura about
Send a message via AIM to rustypaulin Send a message via MSN to rustypaulin
Default

no the page was saved as .html but i've changed that now to php and it seems to work now. thanks
__________________
Webmaster
Postal Service Access
Hosting Advice
PSP Cheats
rustypaulin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 21-08-2005, 00:11   #7 (permalink)
KF1
Guest
 
Posts: n/a
iTrader: / %
Default

ah ur using " u need to use the ' its on the @ key

I THINK

Last edited by KF1; 21-08-2005 at 00:25.
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-10-2005, 14:52   #8 (permalink)
Cool Newbie
 
Join Date: Oct 2005
Location: oxford
Posts: 43
iTrader: 0 / 0%
talby101 is an unknown quantity at this point
Default

you can try :

<? include ("/full/path/to/links.html"); ?>

hope that helps....
talby101 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03-10-2005, 18:40   #9 (permalink)
Senior Member
 
Join Date: Apr 2005
Posts: 350
iTrader: 0 / 0%
rustypaulin has a spectacular aura about
Send a message via AIM to rustypaulin Send a message via MSN to rustypaulin
Default

i got it working before but thanks for the help anyway
__________________
Webmaster
Postal Service Access
Hosting Advice
PSP Cheats
rustypaulin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
<, include>, working

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 20:17.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
UK Webmaster Forum © WebmasterTalk.co.uk | Design by Forbairt

Ad Management by RedTyger

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41