Jump to content

Unable to edit HTML after PHP


drmota

Recommended Posts

Hey guys,

 

After my php script a HTML code follows. But i can't edit the HTML code because it isn't recognised. It does show up, however i can't edit it.

 

Problem: Unable to edit HTML code below php scripts

 

Code:

<?php
function createNewFile($name,$mail,$subject,$comments,$count,$date,$other="",$up="0") {
global $settings;
$header=implode('',file('header.txt'));
$footer=implode('',file('footer.txt'));
$content='
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>'.$subject.'</title>
<meta content="text/html; charset=windows-1250">

 

Thanks in advance  8)

Link to comment
https://forums.phpfreaks.com/topic/226046-unable-to-edit-html-after-php/
Share on other sites

Could you provide a little more info. For example what are you using to edit the file? (Dreamweaver, Notepad, online solution like WordPress, etc.)

 

It sounds like you can edit the PHP code, so it's probably not a problem with a read-only file.

 

What happens when you try to edit the HTML? Do characters appear when you type them?

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.