Jump to content

[SOLVED] PHP Path


hoopplaya4

Recommended Posts

Hey all:

 

I need some help with my path in my PHP.

 

I keep getting the error:

Warning: require(/phpmailer/class.phpmailer.php) [function.require]: failed to open stream: No such file or directory in /home/content/r/w/i/rwigvh/html/dev/reservation.php on line 33

 

Fatal error: require() [function.require]: Failed opening required '/phpmailer/class.phpmailer.php' (include_path='.:/usr/local/php5/lib/php') in /home/content/r/w/i/rwigvh/html/dev/reservation.php on line 33

 

At the beginning of the php doc I'm putting in:

 

require('/tcpdf/phpmailer/class.phpmailer.php');
require_once('/tcpdf/config/lang/eng.php');
require_once('/tcpdf/tcpdf.php');

 

This PHP document is located in:  www.website.com/dev/

 

And I am try to have the require functions point to:

 

www.website.com/dev/tcpdf/phpmailer/class.phpmailer.php

www.website.com/dev/tcpdf/config/lang/eng.php

www.website.com/dev/tcpdf/tcpdf.php

 

What am I doing wrong?  Thanks!

 

Link to comment
https://forums.phpfreaks.com/topic/109986-solved-php-path/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.