Coder Social home page Coder Social logo

wordphp's Issues

This class is flawed

qq 20180628143959
Here I have changed two places to use it normally. And this class is currently not supported by the table.Thank you for sharing.

non zip file

require_once("./App/Lib/Vendor/WordParse.class.php");
$word = new WordPHP();
$content = $word->readDocument('./Uploaded/23/2018_06_20/2/15294832868138427.doc');
echo $content;

Uncaught TypeError: Cannot access offset of type string on string

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

There are two mistakes

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.