Download files from server php

To read directory contents you can use readdir() and use a script, in my example download.php, to download files In download.php you can force browser to send download data, and use basename() to make sure client does not pass other file name like ../config.php

How to open a URL using PHP?

I want something similar like JavSacript’s window.open() method, which I can use to open a particular URL, for example, https://www.google.com/. Is there a way in pure PHP where I can do the same thing? I know we can do that using selenium in python. I think guzzle might be of some help but I can … Read more

Laravel – Model Class not found

Laravel 5 promotes the use of namespaces for things like Models and Controllers. Your Model is under the App namespace, so your code needs to call it like this: As mentioned in the comments you can also use or import a namespace in to a file so you don’t need to quote the full path, like this: While I’m doing a … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)