skip to Main Content

Php versions – Downloading files via PHP problem on webserver

Could someone help me with a little PHP problem? This is my code: $mr = mysqli_fetch_assoc($ms); header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename="" . basename($mr['flink']) . """); readfile($mr['flink']); header("Location: ref.php?action=viewdeti&id=".$_GET['id']); Where $mysqli is my mysql connection and $id is $_GET['id'].…

VIEW QUESTION

Apache POI exception

I need to convert a docx to a PDF and I am going with Apache POI. This is my POM: <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi</artifactId> <version>4.0.0</version> </dependency> <dependency> <groupId>fr.opensagres.xdocreport</groupId> <artifactId>org.apache.poi.xwpf.converter.pdf</artifactId> <version>1.0.6</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml --> <dependency> <groupId>org.apache.poi</groupId> <artifactId>poi-ooxml</artifactId> <version>4.0.0</version> </dependency> <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml-schemas…

VIEW QUESTION
Back To Top
Search