skip to Main Content

Asp.net – Can not open the zip file that zipped by C#

I'm writing a web app ,it can upload/download files, here is my code about download files(just for test): static void Main(string[] args) { var zipName = $"archive-{DateTime.Now:yyyy_MM_dd-HH_mm_ss}.zip"; var folder = "D:\xxdd"; using var memoryStream = new MemoryStream(); using var zipArchive…

VIEW QUESTION

file_get_contents() returning empty even though allow_url_fopen = On – Apache

Problem file_get_contents() is returning an empty string for some reason. Code index.php <?php $value = file_get_contents("http://foo.com/somefile.txt"); echo $value; ?> php.ini allow_url_fopen = On allow_url_include = On http://foo.com/somefile.txt 69.00000000 My Research Generally when file_get_contents("http://foo.com/somefile.txt") returns an empty string, it is due…

VIEW QUESTION
Back To Top
Search