PHP - Moved: How To Convert A Word Document Into Pdf???
This topic has been moved to Miscellaneous.
http://www.phpfreaks.com/forums/index.php?topic=316747.0 Similar TutorialsHello, I had created a form for users to upload their resumes (only word documents & 1 MB allowed as size), then email it after its been successfully uploaded. Any help? Thanks in advance I am running PHP 5 on a linux server. I want to be able to open a .doc or .docx file with PHP (or any way possible, for that matter) in order to grab the contents from it. How can i do this? I know COM classes work with windows for this, but i have linux. Any ideas are greatly appreciated. Thanks. Hi I have a SQL database that stores uploaded documents broken into the format of FileName, FileType, FileSize, FileContent with the content being stored in a BLOB field. When I need the file, it is downloaded by setting the headers accordingly and echoing the content which works great. What I would like to do in certain instances is to rebuild the original file and save it into a temp folder on the server - is this possible and if so how would I achieve it? I can see a number of articles on converting images back from BLOB using imagecreatefromstring() but nothing for .doc, .pdf etc. Many thanks Chris create table mimi (mimiId int(11) not null, mimiBody varchar(255) ); <?php //connecting to database include_once ('conn.php'); $sql ="SELECT mimiId, mimiBody FROM mimi"; $result = mysqli_query($conn, $sql ); $mimi = mysqli_fetch_assoc($result); $mimiId ='<span>No: '.$mimi['mimiId'].'</span>'; $mimiBody ='<p class="leading text-justify">'.$mimi['mimiBody'].'</p>'; ?> //what is next? i want to download pdf or text document after clicking button or link how to do that This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=314681.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=353253.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=333306.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=326314.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=345438.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=330095.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=306489.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=315924.0 This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=320413.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=306863.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=354333.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=334078.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=334042.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=358604.0 This topic has been moved to JavaScript Help. http://www.phpfreaks.com/forums/index.php?topic=320005.0 I have this code below the browser shows correct data but when i export to word I see $proc output not the switch data like on the the browser page
How should code be written to show the same on word doc .
I'm new to this learning by trial and error Please go easy on me .
Thanks
<td> <? |