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
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?

Link to comment
Share on other sites

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.