Skip to content

Tag: mysql

Upload longblob works in local but not in web server

I have a php file that loads an image and receives a text, then sends them to another .php that runs a query to save the data in the database … everything works fine in my local version, but in the version Web only the text is saved, the longblob does not. I tried to debug using $_FILES[‘error&#82…

How to store password securely in database

Currently I am working on php project. The project main theme is to login through ssh to some cisco switch in my local network , fetch details and populate it to user. To accomplish this I have created on database in MySQL consisting switch login credentials. And my PHP code will fetch the login credentials f…

Network response not sending ‘allow-origin’ header

I’m having this error on my web application when I try to update a database object: Access to XMLHttpRequest at ‘http://localhost:3001’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the reque…