phantommagick icon indicating copy to clipboard operation
phantommagick copied to clipboard

complete noob needs help

Open alexblattner opened this issue 6 years ago • 4 comments

How do I literally get the files to work? when I run any of the test files, none of them work. I literally open the url of the test file and open it (the result is an error). I put the phantommagick folder into my website and try to use the namespaces in the folder at the same level. site> >myfile.php (trying to use the namespace for converting html to png or any type of image) >phantommagick

alexblattner avatar Aug 01 '18 22:08 alexblattner

@alexblattner Can you share your code?

anam-hossain avatar Aug 01 '18 23:08 anam-hossain

<?php namespace Anam\PhantomMagick\Converter; include $_SERVER['DOCUMENT_ROOT'].'/ShareOn/phantommagick-master/src/Converter.php'; $conv = new Converter(); $conv->addPage('<h1>Welcome to PhantomMagick</h1>') ->save('/files/lol.png'); echo "<img src='http://localhost/ShareOn/files/lol.png' />"; ?>

alexblattner avatar Aug 02 '18 00:08 alexblattner

@anam-hossain can you help out? I really wish to use your api. Thanks in adavance.

alexblattner avatar Aug 03 '18 21:08 alexblattner

Look at the logs of your php to know the error. Paste error here

marcorossijr avatar Dec 27 '18 17:12 marcorossijr