php warning can't resolve
Moderator: General Moderators
php warning can't resolve
Warning: main(carp_gpl/carp/carp.php) [function.main]: failed to open stream: No such file or directory in /home/offshore/public_html/newsfeeds/news.php on line 3
Fatal error: main() [function.require]: Failed opening required 'carp_gpl/carp/carp.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/offshore/public_html/newsfeeds/news.php on line 3
Don't understand why there's no file or directory in that location even though it exist.
Fatal error: main() [function.require]: Failed opening required 'carp_gpl/carp/carp.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/offshore/public_html/newsfeeds/news.php on line 3
Don't understand why there's no file or directory in that location even though it exist.
Jcart | Please use
news.php code:[/syntax]
it works in index.html but when included in smarty error occurs.
Jcart | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I'm using smarty and i call the php file sing this in category_index.tmpl:
[syntax="html"]<div id="rssblue" class="rssblue-location">
{php} include '../newsfeeds/news.php'; {/php}
</div>Code: Select all
<?php
require_once "carp_gpl/carp/carp.php";
CarpConf('cborder','');
CarpConf('bcb','<strong>');
CarpConf('acb','</strong>');
CarpConf('iorder','link, desc');
CarpConf('poweredby','');
CarpConf('maxitems',1);
CarpConf('maxidesc',30);
CarpCacheShow('http://www.forrester.com/rss/feed/0,,0,00.xml');
echo "<br />";
CarpConf('cborder','');
CarpConf('bcb','<strong>');
CarpConf('acb','</strong>');
CarpConf('iorder','link, desc');
CarpConf('poweredby','');
CarpConf('maxitems',1);
CarpConf('maxidesc',30);
CarpCacheShow('http://finance.yahoo.com/rss/MarketingServices');
echo "<br />";
CarpConf('cborder','');
CarpConf('bcb','<strong>');
CarpConf('acb','</strong>');
CarpConf('iorder','link, desc');
CarpConf('poweredby','');
CarpConf('maxitems',1);
CarpConf('maxidesc',30);
CarpCacheShow('http://news.google.com/news?ned=us&topic=h&output=rss');
echo "<br />";
CarpConf('cborder','');
CarpConf('bcb','<strong>');
CarpConf('acb','</strong>');
CarpConf('iorder','link, desc');
CarpConf('poweredby','');
CarpConf('maxitems',1);
CarpConf('maxidesc',30);
CarpCacheShow('http://www.dabcc.com/rss.aspx?channelid=14');
?>Jcart | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]are these the tags your using to open php?
Wayne
Code: Select all
{php} include '../newsfeeds/news.php'; {/php}yes.
using html this is the location and how i call the php code and it works:
public_html/index.html
<?php include 'newsfeeds/news.php'; ?>
in smarty this the location but won't work it gives a warning:
public_html/consolidate/templates/category_index.tmpl
{php} include '../newsfeeds/news.php'; {/php}
using html this is the location and how i call the php code and it works:
public_html/index.html
<?php include 'newsfeeds/news.php'; ?>
in smarty this the location but won't work it gives a warning:
public_html/consolidate/templates/category_index.tmpl
{php} include '../newsfeeds/news.php'; {/php}
do you have a file:
/home/offshore/public_html/newsfeeds/carp_gpl/carp/carp.php ?
maybe you have to modify news.php
to
or something like that depends on file location
/home/offshore/public_html/newsfeeds/carp_gpl/carp/carp.php ?
maybe you have to modify news.php
Code: Select all
require_once "carp_gpl/carp/carp.php";Code: Select all
require_once "../carp_gpl/carp/carp.php";- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA