Everyone I need a simple PHP Script ( 1 files script ) . I don't need any GUI or anything.
The Script should do the following:
1. I set a string in a variable.
2. It should encode the string ( Preferably in CP1251 or any other encoding if you believe it will work )
3. The output after encoding should be echo to the screen.
Both the echo of Input and Output should be 100% same in the web browser however when I look into the source code of the page it should show the encoded characters in the source code.
Output on browser: are
Output page source code: & # 1 0 7 2 ; r e
Output on browser: the
Output page source code: t h & # 1 0 7 7 ;
( I have added spaces between each character the browser would make it look like the original text )