PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Numbers_Roman package doesn't work

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Numbers
View previous topic :: View next topic  
Author Message
InGale



Joined: 02 Nov 2010
Posts: 2

PostPosted: Tue Nov 02, 2010 1:01 pm    Post subject: Numbers_Roman package doesn't work Reply with quote

Hello!

I'm new to php and to PEAR in particular. I just installed PEAR (installation directory: C:/inetpub/wwwroot/go-pear) and several packages. In php.ini I added the following include_path line:
Code:
;PEAR include path
include_path = "C:/inetpub/wwwroot/go-pear"


I have a test file in my root directory, test.php. It runs other codes, but then I tried to imply the PEAR code as follows:
Code:
require_once 'go-pear/PEAR/Numbers/Roman.php';
echo Numbers_Roman::toNumeral(23), "<br><br>";

and it doesn't work, I get no result. I tried to change it to
Code:
require_once ("go-pear/PEAR/Numbers/Roman.php");
echo Numbers_Roman::toNumeral(23), "<br><br>";

but it also didn't work.
I looked in the Roman.php file and there's this line:
Code:
require_once 'PEAR.php';

I tried to change it to
Code:
require_once '../PEAR.php';
and also with brackets and double quotes, but it also didn't help.
I tried to state the full path (i.e. localhost/go-pear/PEAR/Numbers/Roman.php or 127.0.0.1/go-pear/PEAR/Numbers/Roman.php etc, for both required files), but still nothing helped, it still doesn't work.

So what am I doing wrong? How can I make it work?

Thank you!!
Back to top
View user's profile Send private message
InGale



Joined: 02 Nov 2010
Posts: 2

PostPosted: Wed Nov 03, 2010 1:17 pm    Post subject: Reply with quote

Never mind, I solved the problem.
Back to top
View user's profile Send private message
sailormooney



Joined: 04 Sep 2011
Posts: 5

PostPosted: Sun Sep 04, 2011 8:01 am    Post subject: Reply with quote

XML means a sitemap correct? I'm new to PHP and would like to add have a sitemap created. I always thought that XML was the extension for a sitemap.
_________________
SEO Chicago
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Numbers All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement