网站推广的作用是,更新网站的方法,wordpress超链接无下划线,没有icp许可证 举报一个准吗我正在尝试创建一个可以上传播客的页面。我想拥有“发布”或“取消发布”的能力。我让每个播客添加到一个数据库中,包含它的信息和发布列,可以是真是假。目前我使用以下代码PHP:if(isPublished()){header(Cache-Control: max-age100000);header(Content-Transfer-Encoding: bin…我正在尝试创建一个可以上传播客的页面。我想拥有“发布”或“取消发布”的能力。我让每个播客添加到一个数据库中,包含它的信息和发布列,可以是真是假。目前我使用以下代码PHP:if(isPublished()){header(Cache-Control: max-age100000);header(Content-Transfer-Encoding: binary);header(Content-Type: audio/.$fileExt.); // sets the output content type to wavheader(Content-Length: . filesize($podL)); // sets the legth of the file (in order to the HTML5 player to access the audio duration)header(Accept-Ranges: bytes);header(Content-Disposition: inline; filename.$podID...$fileExt.); // set an output file namereadfile($podL); // reads the file}HTML音频控件链接到php play audio页面: typeaudio/?php echo $podE; ?播客存储在一个podcast文件夹中,我使用了htaccess Deny All,这样文件就不能直接访问了。如果内容发布了,我不在乎是否有人可以下载。我只想给作者一个暂停发布或取消发布的能力,而不必删除整个内容。这是我为文章所做的,但是它们完全存在于数据库中。我怀疑我可以做一些类似的事情,但是在网上找不到任何解决方法。使用readfile()我不必担心内存问题。$.post(read.inc.php, {aid: aid}, function(data, status){if (data.includes(error: not published)) {$(#title).append(Article is Unavailable/Not Published);} else {const explData data.split(|);const title explData[0];const author explData[1];const datetime explData[2];const postTime new Date(datetime*1000);const stringStuff explData[3];$(#title).append(title);$(#author).append(Author: author);$(#postTime).append(Published: postTime);const deltaStuff JSON.parse(stringStuff);quill.setContents(deltaStuff);}});