## General developer forum

Hello people i hope you are having a wonderful day.

All this time I've been using the script below which was working fine for moodle version 3.0.9

#!/bin/sh
curl -s -v -L -c "/tmp/cookiejar.txt"       \
-X POST                                \

-X GET                                \
-G                                    \
--data-urlencode "rev=1"              \
--url "http://mysite.url/pluginfile.php/[userid]/user/icon/[theme]/f1" > folder/userPic.jpg

Unfortunately though for moodle version 3.3.2+ the script does not work and i couldn't figure out why.

Another thing that i want to ask is if there is any php function that could do the job instead of using shell scripts.

Marios

Average of ratings: -

Sorry people, In the end it was a mistake from my part. I switched platforms and i forgot to change the password for the new platform

Marios

Average of ratings: -

Is there a php alternative though?

Average of ratings: Useful (1)