PHP library in WP 4.8
-
Hey guys,
I have downloaded http://simplehtmldom.sourceforge.net/ library into my wp-content. Now I want to include this file into my function in functions.php.
But I dont know what kind of URL I should use here. Please, can you give me an advice? The code:
function foobar_func( $atts ){
require_once(‘URL path?/simple_html_dom.php’);
$html = file_get_html(‘http://hokejbal.cz/1-liga/tabulky/’);
$ret = $html->find(‘table.standings’, 1);
print $ret; -
Hey there,
The site you’re talking about runs the self-hosted version of WordPress (Also known as WordPress.org), while this is WordPress.com (the service). You’re better off asking questions about self-hosted WordPress over here: https://wordpress.org/support/
Also, if you want to read more about the differences between WordPress.com and WordPress.org, you can do so here: https://en.support.wordpress.com/com-vs-org
They have an amazing community full of developers, users and everyone who uses WordPress. I am sure someone will be able to answer it there.
All the best!
- The topic ‘PHP library in WP 4.8’ is closed to new replies.