chmod and curl error in command

Hi,

I have a cron job to curl a url. When using my code in my application it works, but in Command it throws an error. This is my code:





    	$ch = curl_init($url);

            curl_setopt($ch, CURLOPT_HEADER, 0);

            curl_exec($ch);

            $httpCode = \curl_getinfo($ch, CURLINFO_HTTP_CODE);

            curl_close($ch);



[size="2"]I also use chmod to change one of my directories permissions, yet again i command it throws the following error:[/size]

[color="#222222"][font=“arial, sans-serif”][size=“3”]PHP Warning ‘yii\base\ErrorException’ with message ‘chmod(): Can not call chmod() for a non-standard stream’[/size][/font][/color]

[font="arial, sans-serif"][color="#222222"][size="3"]I used complete url in my command since my webhost told me to. When I used a relative url it told me that there is no such directory.[/size][/color][/font]