Should this be written in C or php?

Posted by user1867842 on Programmers See other posts from Programmers or by user1867842
Published on 2012-12-14T08:45:56Z Indexed on 2012/12/14 11:19 UTC
Read the original article Hit count: 198

Filed under:
|
|
|

This is my code; it speaks for itself on what I'm trying to do.

<?php
define("html","<html>");
define("htmlEnd","</html>");
etc...
etc...
?>

What I'm trying to do is make a wrapper for html's tags so they won't be needed anymore. But I can't get any of the attributes for html elements to be defined in PHP. This again speaks for itself; I don't know any other way of saying this. I guess how would I make another mark-up language like HTML without any tags but still keep everything about HTML is what I'm trying to say.


My idea is for preventing XSS. For example, creating a special framework for the website itself that way there is no way any malicious attacker can guess because they know the HTML or PHP.

I just don't want to make my website or something, and then my website gets hacked. Or if I make a website for someone and the website gets hacked. I am going to look like a unprofessional web developer. And what if I never get a job again.

© Programmers or respective owner

Related posts about php

Related posts about c