close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Help! PHP errors using require_one

Thread began 6/26/2010 2:06 pm by trish408999 | Last modified 6/28/2010 7:03 pm by Jimmy Wu | 1177 views | 3 replies |

trish408999

Help! PHP errors using require_one

Created my site in Dreamweaver and I defined as a site relative to root. I changed the php virtual to require_once and got the following messages on my site:

Warning: require_once(/CSSMenuWriter/cssmw/menu.php) [function.require-once]: failed to open stream: No such file or directory in C:\vhosts\ on line 81

Fatal error: require_once() [function.require]: Failed opening required '/CSSMenuWriter/cssmw/menu.php' (include_path='.;c:\php\includes\') in C:\vhosts\ on line 81

How do I change the menu.php file include_path?

Sign in to reply to this post

Jimmy Wu

That would depend on the structure of your site. Basically the path is not pointing to the correct place for the menu.php file.

Is the CSSMenuWriter directory in the same level as the careers.php file?

What does the include look like currently?

Sign in to reply to this post

trish408999

I figured it out

Dreamweaver was calling for virtual because I defined the site to be relative to the root, when I changed it to require_once, it still didn't work. When I changed the code to include() and pointed it to be relative to the doc root, it finally found the script and ran ok.

Sign in to reply to this post

Jimmy Wu

Great to hear you were able to sort the cause of the issue out. If you run into any additional issues, feel free to open a new thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...