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

Path to Connection folder generated incorrectly

Thread began 8/04/2010 9:14 pm by Jim376112 | Last modified 8/09/2010 4:15 pm by Jason Byrnes | 522 views | 3 replies |

Jim376112

Path to Connection folder generated incorrectly

Hello,

I am trying to use SecurityAssist and have had a problem with the generated code. I apply the extension (Dreamweaver CS4) to a form on a page that is in this sample location:
/MainSite/registration/registration_page.php.

SA php files are generated in the same folder (/MainSite/registration/). For example, userRegistration.php is generated here and the 1st line of this file is:

<?php virtual('Connections/connuser_registration.php'); ?>

The problem is that the Connection folder is at /MainSite/Connections/ so the path is wrong and I get errors when I try to run. (I don't know if it matters, but this Connections folder was originally created at this location when I installed and configured Universal Email. That extension had no problem finding the Connections folder.)

If I manually alter all of the generated code as follows, the extension runs so I can manually patch it up but it seems that it should not have generated this wrong path to begin with.

<?php virtual('../Connections/connuser_registration.php'); ?>

Can you tell me why the wrong path was generated?

Thanks.

Sign in to reply to this post

Jason ByrnesWebAssist

In your site definition, on the Local Info tab, there is an Option for "Create Links relative to:"

the choices are "Site" and "Document"

Choosing "Site" causes Dreamweaver to use the virtual() function when including files such as the connection.

The php virtual() function acts differently on different servers, some servers don't support it altogether.


If you chose the "Document" option, it will use the require_once() function for including support files like the connection. this setting is more widely supported and will create document paths that are interpreted the same on all servers.

Set the "Create Links relative to:" option to "Document" for consistent paths.

Sign in to reply to this post

Jim376112

Thanks Jason!

Sign in to reply to this post

Jason ByrnesWebAssist

you're welcome.

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...