HighDots Forums  

Publishing PHP Sites

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Publishing PHP Sites in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
KeepersCastle
 
Posts: n/a

Default Publishing PHP Sites - 05-25-2004 , 07:49 AM






Getting an error message saying "Fatal error: Failed opening required
'Connections/CascoIntranet.php' (include_path='.:/usr/share/pear') in
/var/www/html/test.cascoproducts.com/index.php on line 1"

As near as I can tell I need to configure something to open the MySQL database
but I am a little out of my realm. Any help/direction would be appreciated.

Additional Info: Web Server: Red Hat 9, Apache 2.0.4, PHP 4.2.2, MySQL 3.23

Thanks for taking a look.



Reply With Quote
  #2  
Old   
Gabe
 
Posts: n/a

Default Re: Publishing PHP Sites - 05-25-2004 , 02:22 PM






Looks to me like the page index.php is probably using the "require_once"
function on the first line of the page. It's failing because it can't
find the file "Connections/CascoIntranet.php". I'm not sure about the
configurations on an Linux/Apache environment ( I'm Windows 2000 ), but
in my case I would need to check the php.ini configuration file and put
in the include_path directive the location to
"Connections/CascoIntranet.php". Then reinitialize PHP with the new
configurations and I think that should do it for you. Either that or in
the "require_once" function, put the full path to the file. For example:

require_once("d:\database\Connections\CascoIntrane t.php");

If that works, then you can probably do as I mentioned and just update
the PHP config to defaultly look in that location.

I have a similar situation where I put in the include_path the location
of a bunch of DB connection files. That way in my code all I have to do
is reference the file name in the "require_once" function and it's all set.

HTH,

Gabe






KeepersCastle wrote:

Quote:
Getting an error message saying "Fatal error: Failed opening required
'Connections/CascoIntranet.php' (include_path='.:/usr/share/pear') in
/var/www/html/test.cascoproducts.com/index.php on line 1"

As near as I can tell I need to configure something to open the MySQL database
but I am a little out of my realm. Any help/direction would be appreciated.

Additional Info: Web Server: Red Hat 9, Apache 2.0.4, PHP 4.2.2, MySQL 3.23

Thanks for taking a look.



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.