|
Posted by Mohawk Mawk on 05/05/07 13:17
On May 5, 8:10 pm, Iván Sánchez Ortega <ivansanchez-...@rroba-
escomposlinux.-.punto.-.org> wrote:
> Mohawk Mawk wrote:
>
> >> Try file_put_contents($string,'temp.jpg') instead of
> >> imagecreatejpeg(imagecreatefromstring()).
>
> > I tried this but what happens is it creates a 8 byte file named ÿØÿà
> > (witch are the first charachters of my string)
>
> Sorry, I can't remember the syntax of every function... Try
> file_put_contents('temp.jpg',$string)
>
> --
> ----------------------------------
> Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-
>
> Now listening to: Plaid - Spokes (2003) - [8] Get What You Gave (5:16) (95%)
haha sorry my bad, thank you very much it worked, i also found that i
could do fwrite(fopen("temp.jpg", 'a'),$string); but that would not
create the file so i cant unlink it. i will take your advice and
generate random names, thank you again
Navigation:
[Reply to this message]
|