I found a solution: executing from cron but loading the environment of the user who got the right profile in the same instruction.
*/5 * * * * su - myusr -c '/usr/bin/php /home/myusr/script.php'
The .profile of "myusr" must set all the necessary environment variables.
I don't know exactly why it doesn't load the environment variables executing the sentences from the script (I even tried calling the ".profile" from script, and it didn't work either), would be nice if someone could give us some light :)
Thank you