pintobikez / wordphp Goto Github PK
View Code? Open in Web Editor NEWPHP class to read DOCX files into HTML
PHP class to read DOCX files into HTML
returning 'non zip file' when using in laravel controller
Forgive my poor English.
1、it in the 40 lines.
private $debug = false;
private $rels_xml;
private $doc_xml;
private $last = 'none';
private $encondig = 'ISO-8859-1';//here was error! It is $encoding , not $encodig.
/**
* CONSTRUCTOR
*
* @param Boolean $debug Debug mode or not
* @return void
*/
public function __construct($encoding="ISO-8859-1", $debug_=null)
{
if($debug_ != null)
$this->debug = $debug_;
}
2、it in 48 lines,in the '__construct' function.
You should add the following code:
$this->encoding = $encoding;
//-----------------------------------
I hope you can accept my advice.
excellent. but canot upload image.
require_once("./App/Lib/Vendor/WordParse.class.php");
$word = new WordPHP();
$content = $word->readDocument('./Uploaded/23/2018_06_20/2/15294832868138427.doc');
echo $content;
FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /usr/share/nginx/html/mysite.com/wordpress/wp-admin/class.wordphp.php:213
In new server with php 8.2
Using in php 7.4, no problem
any updates i need to do?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.