2 Replies - 197 Views - Last Post: 17 February 2018 - 02:24 PM Rate Topic: -----

#1 sayhello   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 54
  • Joined: 12-November 17

simple_html_dom: where to put it if i run a testsript?

Posted 17 February 2018 - 11:51 AM

hello dear experts,


i just run some scripts that need the inclusion of simple_html_dom.
i need to put this into the same folder, in which my testscript resides:

btw-, the projectpage looks like down : see http://simplehtmldom....net/manual.htm
include('simple_html_dom');

Project web is currently offline pending the final migration of its data to our new datacenter.
https://sourceforge.net/projects/simplehtmldom/



funny: i download it form Sourceforge:

But: what is pretty important: The php-extension (simple_html_dom) should be found by my testscript.

conditions:

It should probably include(simple_html_dom.php);

in other words: it's should be in the same folder as my testscript:

if not - then i would need to use the relative path to it.


So i have two options.

This post has been edited by sayhello: 17 February 2018 - 11:52 AM


Is This A Good Question/Topic? 0
  • +

Replies To: simple_html_dom: where to put it if i run a testsript?

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14239
  • View blog
  • Posts: 57,130
  • Joined: 12-June 08

Re: simple_html_dom: where to put it if i run a testsript?

Posted 17 February 2018 - 12:20 PM

I am not following - what's the question?
Was This Post Helpful? 0
  • +
  • -

#3 sayhello   User is offline

  • D.I.C Head

Reputation: 0
  • View blog
  • Posts: 54
  • Joined: 12-November 17

Re: simple_html_dom: where to put it if i run a testsript?

Posted 17 February 2018 - 02:24 PM

Dear Modi123

many thanks for the quick reply.


View Postmodi123_1, on 17 February 2018 - 12:20 PM, said:

I am not following - what's the question?



The question is - i have forgotten to put the extension in the folder.
So i got the following errors;


[email protected]:~/dev/php> php p100.php
PHP Warning:  include(simple_html_dom): failed to open stream: No such file or directory in /home/martin/dev/php/p100.php on line 4
PHP Warning:  include(): Failed opening 'simple_html_dom' for inclusion (include_path='.:/usr/share/php5:/usr/share/php5/PEAR') in /home/martin/dev/php/p100.php on line 4
PHP Fatal error:  Call to undefined function file_get_html() in /home/martin/dev/php/p100.php on line 6
[email protected]:~/dev/php>




what is pretty important: The php-extension (simple_html_dom) should be found by my testscript.
conditions:It should probably include(simple_html_dom.php);

in other words: it's should be in the same folder as my testscript:

again dear Modi123

many thanks for the reply. I will add the extension to the folder - and retry.

i come back and report all the findings.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1