I made a dynamic php file to show different text using java script. People uses this to show texts in their website.
They use this code
<script type="text/javascript" src="http://alquranbd.com/source/q1.php"></script>
And the http://alquranbd.com/source/q1.php this file generates a code like this:
document.write("এরাই পরকালের বিনিময়ে পার্থিব জীবন ক্রয় করেছে। অতএব এদের শাস্তি লঘু হবে না এবং এরা সাহায্যও পাবে না। (Al-Baqarah-86)");
When people using this php file as src in their website this is not showing text. But it was showing text a few weeks ago. Why this is not working now?
在任何输出之前添加此文件(在文件开头)
header('Content-Type: text/javascript; charset=utf-8');
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.