Mister Black
Mister Black

Reputation: 31

Generate picture and save it on server php

How to generate a picture of graph of the results of voting and how to save the image in my server host, to continue to use it. How can I do this?

Upvotes: -2

Views: 43

Answers (1)

zyrag
zyrag

Reputation: 353

Generating Grapsh etc.
You can use link PHPExcel and there is a possibility to save all generated files eg: $objWriter->save('namee.xls'); check detail from the documentation

Saving without using PHPexcel etc.
if you have a graph or smth else and you want to save it on your server side to save something you can use

            $fp = fopen($name, "w");
            fwrite($fp, $content); // this line saves 
            fclose($fp);

Upvotes: 0

Related Questions