Include the content from other webpages: Difference between revisions

Jump to navigation Jump to search
Line 23: Line 23:
== PHP require / include function ==
== PHP require / include function ==
{{Acronym | acronym=PHP | def=Hypertext Preprocessor}} [http://tw.php.net/require_once require_once()], [http://php.net/manual/en/function.include.php include function] ...
{{Acronym | acronym=PHP | def=Hypertext Preprocessor}} [http://tw.php.net/require_once require_once()], [http://php.net/manual/en/function.include.php include function] ...
'''troubleshooting:'''
* (When I browsed some_file.php which include )Warning: include_once(lib.php) [function.include-once]: failed to open stream: No such file or directory in ...common/view.php
<pre>
common/lib.php
common/view.php  //the file included common/lib.php
some_file.php    //the file included common/view.php
</pre>
* solution: Using CONSTANT parameter (such as absolute file path in common configuration file) in the included path NOT using relative path


== wiki softwares ==
== wiki softwares ==

Navigation menu