Jump to content

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>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.