Posts Tagged PHP

Install php scripts as cron in Windows






Linux has it’s very unique and beautiful feature “cron” that allows us to execute a program at a predefined schedule. For LAMP developers cron is a very common feature that we use very frequently. But many time lots of developers who recently have hosted their php code in Windows servers, face difficulty setting up their […]

, , ,

6 Comments

Access files in password protected directory using curl






I had to get a page that is in a password protected directory. First I used php file_get_contents() which is always my first solution for accessing remote pages. But many web servers disable allow_url_fopen in php config. So curl is the ultimate solution. Curl has an option called CURLOPT_USERPWD that allows to add the user […]

, , ,

2 Comments