roaasolh Posted January 22, 2018 Posted January 22, 2018 So I'm trying to access my database in order to display it in a mobile app,I created a php file that works fine when calling it on the browser, although i don't know why it is not taking the arabic language and formatting it like (?????) and i chosen remote mysql (%) and specify the host Johnney.... but data was not retrieved where i need it,giving me XMLHttpRequest cannot load http://roaasolh.heliohost.org/hadith.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.Any help please .Best Regards
wolstech Posted January 22, 2018 Posted January 22, 2018 The arabic language is likely not supported because of the wrong character set. Our server defaults to UTF-8 (or perhaps Latin1) I believe. Krydos is the one who would know about why the remote access isn't working. Moving.
roaasolh Posted January 22, 2018 Author Posted January 22, 2018 so what i should do know regarding remote access,, (who is Krydos)Also any suggestions regarding the arabic language
Krydos Posted January 22, 2018 Posted January 22, 2018 i chosen remote mysql (%) and specify the host Johnney.... but data was not retrieved where i need it,giving me ... Origin 'localhost:8100' is therefore not allowed access.For remote mysql use the host johnny.heliohost.org not localhost. Mysql is also on port 3306 not 8100. As far as the arabic letters showing up as ? marks, make sure your collation is set to utf8_general_ci with phpmyadmin
Recommended Posts