Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Very Simple Problem in include
- one man army
December 20, 2005, 7:04 am
rate this thread
(complete beginner in PHP, using example code written by Rasmus from
Cool Toys blog)
I have copied a script into a working directory (unix), it includes
another script (verbatum from Rasmus).
Q. Why is the included script called xxx.phps instead of xxx.php?
In the original, Rasmus placed his included script in the PHP lib
directory. I placed it in my working directory instead, changing the
The included script IS FOUND. But when the included script is called
in, the first line is a call to apc_fetch(), and PHP complains 'Call to
undefined function apc_fetch()'. Something is obviously broken.
I don't know enough basics to spot the construct error. Anyone?
included file - unchanged, but a local copy in my working dir
script under construction
$url = 'http://aSite.com/map_testQ/myTest.xml ';
$feed = rss_request($url, $timeout=3600);
<p><font size="+2">Name<br />
Re: Very Simple Problem in include
I guess that "Call to undefined function apc_fetch()" its due to the
APC is a PECL Extension
Rasmus has used in the simple_rss.php
Try Getting the package and install
for more info on apc Extension
and surf thru this site , u will know more info on how to install and
Prince of Code
- » Website Registration - URL Confirmation - Give me indepth details
- — Previous thread in » PHP Scripting Forum