i have an url="http://some url";
Is it possible to create an image of the url using php?
I tried using imagecreatefromjpeg but it accepts only image file as the input and not the url like "http://"
i have an url="http://some url";
Is it possible to create an image of the url using php?
I tried using imagecreatefromjpeg but it accepts only image file as the input and not the url like "http://"
I'm not sure what you mean - do you mean create an image of the page itself? Then yes, it's possible. All you need to do is parse the html, fetch any css and parse it, add in images and process any javascript in the page.
Of course, it might take you a few years to build such an application, but it can be done. And at the end you'll have a browser written in php, which will be quite slow.
If you want to create an image with your url text in it then use something like, imagefttext
, for more visit php.net/imagefttext, in case you want to take a screenshot of the webpage at given url, go to this SO link: Command line program to create website screenshots (on Linux)