473,699 Members | 2,838 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

clueless about pear

red
I have PHP Version 5.0.1 installed on my computer, and according to the
pear manual pear is already installed. But how do I tell if it is
installed ?

for example, how do I get this line, which I found in the pear manual to
work:
require_once "HTML/Table.php";
Warning: main(HTML/Table.php) [function.main]: failed to open stream: No
such file or directory in C:\Program Files\Apache
Group\Apache2\h tdocs\public\re enie\test.php on line 9

I would simply change the path, but I don't see any table.php anywhere.
red
Jul 17 '05 #1
8 2553
JV
"red" <gr****@reenie. org> wrote in message
news:90******** ************@ne ws.easynews.com ...
for example, how do I get this line, which I found in the pear manual to
work:
require_once "HTML/Table.php";
this line indicates that the file table.php will be loaded as indicated here
http://us4.php.net/require_once
if table.php is not in your html/ directory then it cant be loaded
which is why you are getting this message
Warning: main(HTML/Table.php) [function.main]: failed to open stream: No
such file or directory in C:\Program Files\Apache
Group\Apache2\h tdocs\public\re enie\test.php on line 9

I would simply change the path, but I don't see any table.php anywhere.
red


try reading back through your book and see if table.php is a php file it
asks you to write to contain some functions.

JV
Jul 17 '05 #2
red
JV wrote:
"red" <gr****@reenie. org> wrote in message
news:90******** ************@ne ws.easynews.com ...
for example, how do I get this line, which I found in the pear manual to
work:
require_onc e "HTML/Table.php";

this line indicates that the file table.php will be loaded as indicated here
http://us4.php.net/require_once
if table.php is not in your html/ directory then it cant be loaded
which is why you are getting this message

yes I know
Warning: main(HTML/Table.php) [function.main]: failed to open stream: No
such file or directory in C:\Program Files\Apache
Group\Apache2 \htdocs\public\ reenie\test.php on line 9

I would simply change the path, but I don't see any table.php anywhere.
red

try reading back through your book and see if table.php is a php file it
asks you to write to contain some functions.

JV


The code is take from the pear manual on how to write table with pear. .
HTML/Table.php is supposed to be in pear, already installed. But I
don't
see any HTML directory anywhere.

Jul 17 '05 #3
red
red (I)wrote:

The code is take from the pear manual on how to write tables with pear. .
HTML/Table.php is supposed to be in pear, already installed. But I don't
see any HTML directory anywhere.


I have gotten the examples in the Core Components section of the PEAR
manual to work, so apparently I do have PEAR installed. Apparently the
HTML_table package is not installed along with PEAR on PHP. I have
loaded the package using the command line, but still get the no can find
message: "main(HTML/Table.php) [function.main]: failed to open stream:
No such file or directory "

When I loaded the package, nothng everindicated WHERE it was being
loaded . I sill can't find a HTML directory or Table.php file anywhere.
Any ideas ? I have been pouring over the manual and googling, to no
avail. My goal right now is to use get ANY PEAR package to work. Why is
this so hard ?

red

Jul 17 '05 #4
*** red escribió/wrote (Fri, 03 Sep 2004 05:09:25 GMT):
I have PHP Version 5.0.1 installed on my computer, and according to the
pear manual pear is already installed. But how do I tell if it is
installed ?
Try <? php_info() ?> and check the "Configure Command" cell: you may find
something like --with-pear=/usr/share/pear.

In any case, PEAR is just a collection of regular *.php files. I believe
than installing them consists in having them somewhere in your hard disk.
So check your disk (especially the PHP installation folder) for a "pear"
folder full of *.php files.
require_once "HTML/Table.php";


Check again phpinfo() output. There's a setting called "include_pa th". If
you don't provide the full path of the file your script will search for it
in the directories specified in include_path.
--
--
-+ Álvaro G. Vicario - Burgos, Spain - ICQ 46788716
+- http://www.demogracia.com (la web de humor para mayores de 100 años)
++ «Sonríe, que te vamos a hacer una foto para la esquela»
--
Jul 17 '05 #5
red wrote:
When I loaded the package, nothng everindicated WHERE it was being
loaded . I sill can't find a HTML directory or Table.php file anywhere.
Did you just load it or did you install it? Use
pear list
on the command line to find all installed packages.

If it's not installed, use
pear install HTML_Table
to install the package.
My goal right now is to use get ANY PEAR package to work. Why is
this so hard ?


Well, trying to solve a task without reading the documentation is not
easy.

Regards,
Matthias
Jul 17 '05 #6
red
Matthias Esken wrote:
red wrote:

When I loaded the package, nothng everindicated WHERE it was being
loaded . I sill can't find a HTML directory or Table.php file anywhere.

Did you just load it or did you install it? Use
pear list
on the command line to find all installed packages.


Thanks, that tip really helped. If it's not installed, use
pear install HTML_Table
to install the package.

My goal right now is to use get ANY PEAR package to work. Why is
this so hard ?

Well, trying to solve a task without reading the documentation is not
easy.

Regards,
Matthias


That's not fair at all. I read the php documentation about PHP
installation and also the PEAR documentation, but I had trouble
understanding it. So I came here to ask questions. I thought that's what
these newsgroups were for. There's no need to get nasty about it.

Yes, the PEAR documentation says you have to install packeges, but it
seemed like it was aimed at people who were doing a complete
installation from scratch. Nowhere as far as I can tell, does it say
simply something like: "PEAR is included in PHP, but for most purposes,
you'll also need to install packeges which are not automatically
included in PHP."

I've read the part about the PFC at least three times and I still can't
figure out if the PFC is in the packages or the base installation.

red
Jul 17 '05 #7
red wrote:
Matthias Esken wrote:
Well, trying to solve a task without reading the documentation is not
easy.


That's not fair at all.


OK. Take this Smiley

;-)

and add it to my former posting.

Regards,
Matthias *g*
Jul 17 '05 #8
Go to the PEAR website - there is documentation on this html table Class.

But, it may take some reading in a good PHP book if you don't understand
classes, objects and that sort of thing. I knew a little JAVA which is
very object oriented so I could understand PEAR.

IMHO, read for a few weeks, then at least even if you still can't do it
you will be able to ask the right questions.
Jul 17 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3547
by: Sandro Dentella | last post by:
I need to use a class to handle mbox files that uses PEAR. Since I'm using Debian (both woody and, I simply apt-get(ed) php4-pear but I can't use it becouse I get the error: Warning: dl(): Unable to load dynamic library '/usr/lib/php4/20020429/PEAR.so'- /usr/lib/php4/20020429/PEAR.so: cannot open shared object file: No such file or directory in /home/sandro/src/php/mbox/PEAR.php on line 11 in fact PEAR.so is not there, nor it seems...
3
7242
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts it tells mea it can not run pear/soap, because it can not be found.the book im learning form does not tell me how to install or configure this extension. so now im looking for help.
1
2046
by: DJ Majestik | last post by:
OK, I am new to the whole PEAR/Smarty templating thing. I am trying to setup my directory structure correctly. If someone could weigh in and see if I have this setup "right", I would appreciate it. Directory structure: pear/ db/ db/ DB/ doc/
2
5779
by: Alan Prescott | last post by:
I'm running SuSE Linux 9.3, fully up to date running # pear install db responds with ... downloading DB-1.7.6.tgz ... Starting to download DB-1.7.6.tgz (124,807 bytes) .............................done: 124,807 bytes requires package `PEAR' >= 1.0b1 DB: Dependencies failed Googling around this ng I found someone with a similar problem who solved it
5
14232
by: Jim Michaels | last post by:
I downloaded a PEAR module, but it came with this XML file and a PHP file. I figure I just include the PHP file somehow, but what do I do with the XML file?
0
2042
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We build our applications under three different environments (Linux i686, Linux x86_64, Solaris 8 Sparc). This is the first of the three on a RHEL 3 system using the current stable versions of the GNU toolchain in a segregated environment. Basically...
1
2224
by: IchBin | last post by:
I am new to PHP and I am running on Windoze XP SP 2. Just noticed that the PEAR installed dir structure I have (to DB subdir) is : C:\php5.2\PEAR\pear\DB My registry vars are: "PHP_PEAR_SYSCONF_DIR"="C:\\php5.2\\PEAR" "PHP_PEAR_INSTALL_DIR"="C:\\php5.2\\PEAR\\pear" "PHP_PEAR_DOC_DIR"="C:\\php5.2\\PEAR\\pear\\docs" "PHP_PEAR_BIN_DIR"="C:\\php5.2\\PEAR" "PHP_PEAR_DATA_DIR"="C:\\php5.2\\PEAR\\pear\\data"
1
7840
by: CSTechie | last post by:
I've been battling to install PEAR on Windows XP now for too long. I am not sure what I need to do. When I run go-pear.php from the command line, I get the error message as shown at the end. I included everything in case there is something there that's helpful. I'm trying to install PEAR so that I can use PHPUnit. Thanks for the help!!!!
1
13665
by: IchBin | last post by:
I remember having problems with pear when I first installed it but got it running some time ago. This is on a windoze XP SP OS. I did not think it was correct because it pointed to "C\php\pear\PEAR". I writing a pear front-end GUI and I want to have it installed correctly. It seemed to have some duplication of directories between the lower and upper cased pear dir names. Should there be a "php\pear\PEAR" subdirectory? I thought it should...
0
9171
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9032
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8905
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8880
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7743
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5869
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4373
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4625
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.