website - Including sample site into php and making it interactive -
I am working on a small project to learn PHP better This project has a primary file, which is Fopen
+ fread
to open another website (like YouTube). (Or file_get_contents
?)
The site will be saved in a variable and then a function will parse the contents of the file and some items will be replaced with advanced content, for example For:
& lt; Div onclick = "play (id = 12432);" & Gt; Play video & lt; / Div & gt; & Lt; Div onclick = "play (id = 12432);" & Gt; Play video & lt; Div & gt; & Lt; Div onclick = "add2fav (id = 12432);" & Gt; Add to favorites & lt; / Div & gt;
How can any big performance without leak and clean code?
This is about "loading the website", "its content", "echo it"
Just embed YouTube videos, and do not parse the whole page It is very easy Be able to be impressed by your special buttons under video then! Do not trust your users' input if you embed them based on an input, then you probably embed a dirty site, and it's dangerous. About / Lear / P>
Comments
Post a Comment