using php in posts (trying to include a file)
-
Here’s the deal, I’m using Exec-PHP to be able to run php in some posts. So far, I haven’t put too much code in, but it seems to be working fine. Then in one of my scripts I try to use an include, here is the code:
include 'http://www.mysite.com/path/to/file.php';
Anyway, then I get this error:
Warning: Unknown(): stream does not support seeking in /usr/local/psa/home/vhosts/mydomain.com/wp-content/plugins/exec-php.php(39) : eval()’d code on line 2
So you’ve seen the code on line 2. What could be the problem?
I would like to use a relative path to include that file, but I don’t know how to use a relative path in my post. How do I do that?
thanks.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘using php in posts (trying to include a file)’ is closed to new replies.