Pages

Wednesday, February 25, 2015

ERROR : Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at the url. This can be fixed by moving the resource to the same domain or enabling CORS.

Solution :

If you are working on web project and want to get data from different site , Sometime you get such type of error

" Cross-Origin
Request Blocked: The Same Origin Policy disallows reading the remote
resource at the url. This can be fixed by moving the resource to the
same domain or enabling CORS. "

then you have to use .htaccessfile update code

<FilesMatch "\.(php)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule></FilesMatch> if you havn't .htaccess file then create a file in root folder and update following code Following code for wordpress project please change according to your Project

Tuesday, February 10, 2015

phpMyAdmin is an open source tool used for the administration of MySQL. In addition to offering the capability to perform administration tasks such as creating, editing, or deleting databases, and managing users and permissions

Step 1: Install phpMyAdmin

apt-get -y update apt-get -y install phpmyadmin

Step 2: Basic Configuration

selectapache2by using the space bar, then hitenterto continue.At the second screen, which asks “configure the database for phpmyadmin with dbconfig-common?”, selectYes, then hitenterto continue.At the third screen enter your MySQL password, then hitenterto continue.And finally at the fourth screen set the password you’ll use to log into phpmyadmin, hitenterto continue, and confirm your password.

BUY ME A COFFEE

Follow by Email

Hi! Thank you

Hi! Thank you everyone who reading my article. My major is algorithms & programming. Right now I am working in India. I will like sharing to everyone with my works and if you do interesting with my works, please leave you comment on my blog. Any comments is welcoming.