I am trying to write a php script that will take find the path of a webpage or a url, and convert the css from the server or local folder to inline code. I've looked pretty much all over the internet and looked for many solutions that could help me do this and done helped so far.
I have several <div>'s in my page all linking to a css code called general.css
For e.g.
<div class="sys_main_logo" style="">
<div class="sys_ml">
<div class="sys_ml_wrapper">
I want it to be able to convert to the properties of the css it's linked to to inline code
for e.g.
<div style="position: relative; z-index: 56; background-color: #f4f4f4;>
Is this possible to write, can somebody assist me with this please? Thanks