Jump to content

Community Centre Website needs php help!!


davemcc

Recommended Posts

Hi Can anyone help?

 

I need to make a website easily updateable via .txt files. I want to be able to control where the text is diplayed on a webpage inside a div tag. I also need to be able to control the contents with CSS.

 

This is what i have got so far:

 

http://mickleovercommunitycentre.co.uk/Oakwood/nnn/

 

However i cannot get rid of the border! I basically want to display the text as if i had typed it directly into html.

 

Please can someone with far better knowlage than me help?!

 

I am doing this for a community centre so its all in a good cause!

 

Many thanks

Link to comment
https://forums.phpfreaks.com/topic/74584-community-centre-website-needs-php-help/
Share on other sites

i am also a new guy to php. You cant remove the border as its a set function of the iframe. I have a simple page working, the code is below. All you need to do is add the php for opening up the file in the section where the div tag are. So edit the code below with your file info and insert it between the DIV tags
[code}
<html>
<head>
</head>
<body>
<?php

// Get a file into an array.  
$lines = file_get_contents('adam.txt');	
if ($lines
{	 
echo $lines;
}
else 		
{
echo "No File Found";
}
?>
</body>
</html>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.