View previous topic :: View next topic |
Author |
Message |
lestat -
Joined: 15 Sep 2003 Posts: 130 Location: GREEN BAY
|
Posted: Wed Nov 02, 2005 10:26 pm Post subject: Need help installing php classes with Abyss please ;-) |
|
|
OK I wasn't sure where to post this. I'm thinking this was the right place.
I'm trying to install the phpMailer class.
The instructions say to add 'include_path" in the php.ini file
1) I added a folder to make the dir c:\Php\includes *done*
2) So i uncommented and changed include_path = "C:\Php\includes" *done*
3) Then the instructions say to add a couple files to the c:\Php\includes folder*done*
4) The instructions give some test code to call. I did this but get warnings...
Warning: main(class.phpmailer.php): failed to open stream: No such file or directory in C:\Program Files\Abyss Web Server\htdocs\html\path\callMailerTest.php on line 9 Fatal error: main():
Failed opening required 'class.phpmailer.php' include_path='.;c:\php4\pear') in C:\Program Files\Abyss Web Server\htdocs\html\path\test\callMailerTest.php on line 9
whereas line 9 is what calls the class Code: | require("class.phpmailer.php"); |
I know this is beceause of the how/what I'm doing or not doing installing this class. Is there anything special I need to do in Abyss? Otherwise, can I just put these classes in my /html/someFolderforClasses ?
thanks! _________________ XP Pro sp2
Abyss Web Server X2 (v 2.9.3.5)
PHP 5.3.8 |
|
Back to top |
|
|
MonkeyNation -
Joined: 05 Feb 2005 Posts: 921 Location: Cardiff
|
Posted: Thu Nov 03, 2005 6:41 am Post subject: |
|
|
I imagine you altered the wrong php.ini or something, use the one in C:\WINDOWS, as it's the first one it looks for.
On a second note, you may could just put the class in the working directory, or in C:\Php\pear, to try and keep things simple. _________________
|
|
Back to top |
|
|
lestat -
Joined: 15 Sep 2003 Posts: 130 Location: GREEN BAY
|
Posted: Thu Nov 03, 2005 4:32 pm Post subject: |
|
|
I just put it in a working dir and it worked just fine. I haven't played with pear yet. I'm pretty new to php. THanks for the help! _________________ XP Pro sp2
Abyss Web Server X2 (v 2.9.3.5)
PHP 5.3.8 |
|
Back to top |
|
|
|