drmota Posted January 29, 2011 Share Posted January 29, 2011 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 Link to comment https://forums.phpfreaks.com/topic/226046-unable-to-edit-html-after-php/ Share on other sites More sharing options...
l4nc3r Posted January 29, 2011 Share Posted January 29, 2011 You put all of your HTML inside of a variable. $content=''; Link to comment https://forums.phpfreaks.com/topic/226046-unable-to-edit-html-after-php/#findComment-1166978 Share on other sites More sharing options...
cyberRobot Posted January 29, 2011 Share Posted January 29, 2011 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 https://forums.phpfreaks.com/topic/226046-unable-to-edit-html-after-php/#findComment-1167015 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.