close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Let's start a discussion about PHP versions

Thread began 10/12/2023 3:44 pm by Patrice | Last modified 12/18/2024 2:23 am by Patrice | 9248 views | 92 replies

Mags

It does sound like it's the paths to your Connections and webassist folders that are incorrect. Sorry if I'm being too simplistic, but if your page is in the root of your site i.e. mysite.com/mypage.php and your Connections and webassist folders are also in the root, your links don't need any dots or slashed i.e.

<?php require_once('Connections/jodenonline_i.php'); ?>
<?php require_once("webassist/form_validations/wavt_scripts_php.php"); ?>

You would only need to include dots or slashes if the page was in a subfolder i.e. mysite.com/subfolder/mypage.php in which case the links would be:

<?php require_once('../Connections/jodenonline_i.php'); ?>
<?php require_once("../webassist/form_validations/wavt_scripts_php.php"); ?>

You can use an absolute link but this needs to include the full path to the page which depends on your hosting platform. To find this path, make a PHP file which contains only the following:

<?php
echo dirname(__FILE__);
?>



Name the file whereami.php and upload to your site, then open yoursite.com/whereami.php in a browser and it will give you the full path, which will be something like:

/var/www/vhosts/mysite.com/httpdocs

You can then use that path in your PHP code like this:

<?php require_once('/var/www/vhosts/mysite.com/httpdocs/Connections/jodenonline_i.php'); ?>
<?php require_once("/var/www/vhosts/mysite.com/httpdocs/webassist/form_validations/wavt_scripts_php.php"); ?>

You should remove the whereami.php file from your remote site once you've taken a note of the path, for security purposes.

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