acessing PHP library in functions.php
-
Hey guys,
I have downloaded https://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('https://hokejbal.cz/1-liga/tabulky/'); $ret = $html->find('table.standings', 1); print $ret;
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘acessing PHP library in functions.php’ is closed to new replies.