To prevent the credential exposure in here, you should follow standard security practices. Never write credentials in any file on disk. Instead, use an environment variable or something like Hashicorp Vault as your secrets manager. The application should make a request to the vault to grab the credentials it needs.
Great job, I'd be curious if you have anything similar for python, with either django, flask, or fastapi. In php its common to include entire php files, whereas with python you usually go the other direction, modifying html files on the fly.
You can't actually do this natively in Python. Python web applications load the entire application in memory. File inclusion requires application code the be imported into the application and executed that way. You can do it with scripts like ASP, JSP, and PHP files. You can also perform a variation of it using CGI scripts, but that gets into something else entirely.
Thanks for watching! What topic would you like to see us cover next?
Wonder why I haven’t come across this channel since!!! It took me 5 mins into the video for me to be a subscriber. I absolutely love this ❤️❤️❤️
That means the world, thank you!
Not enough PHP devs fully appreciate how powerful file wrappers are ...
Man I watched only this video and it was enough for me to subscribe, your contente is awesome
Excellent Video!!
ty for the new video 🙏
Awesome! Thanks for the content!
Love this channel
I’d love to see a video on how to prevent the exposure of the credentials. What methods are used to prevent this issue?
To prevent the credential exposure in here, you should follow standard security practices. Never write credentials in any file on disk. Instead, use an environment variable or something like Hashicorp Vault as your secrets manager. The application should make a request to the vault to grab the credentials it needs.
Thank you very much
Great job, I'd be curious if you have anything similar for python, with either django, flask, or fastapi.
In php its common to include entire php files, whereas with python you usually go the other direction, modifying html files on the fly.
You can't actually do this natively in Python. Python web applications load the entire application in memory. File inclusion requires application code the be imported into the application and executed that way. You can do it with scripts like ASP, JSP, and PHP files. You can also perform a variation of it using CGI scripts, but that gets into something else entirely.