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

relative links to php file

Thread began 2/03/2010 1:50 pm by sandy259886 | Last modified 2/04/2010 7:56 pm by Eric Mittman | 3553 views | 6 replies |

sandy259886

relative links to php file

When I upload my php files to the file directory...I try setting a relative link to them. The php files do not show up when I browse the server to link to them. the Html files do. I added 'php' to the php/config.php file list, but they still aren't showing up to link to them.

Sign in to reply to this post

Jason ByrnesWebAssist

In the HTMLEditor/fckconfig.js file, you need to add php to the FCKConfig.LinkUploadAllowedExtensions:

FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip|php)$" ;



You will need to clear your browsers cache, then close and restart the browser for the change to take effect.

Sign in to reply to this post

sandy259886

didn't work

Did that ... didn't work. I also tried to upload a .php page using the file browser, but it said the filename wasn't valid. Hmmm...

Sign in to reply to this post

sandy259886

I really need this resolved!

I added 'php' to the allowed extensions in the filemanager/connectorss/pphp/config.php file on line: 113.

I added 'php to the list of extensions in the HTMLEditor/fckconfig.js as follows:
FCKConfig.LinkUploadAllowedExtensions = ".(7z|aiff|asf|avi|bmp|csv|doc|fla|flv|gif|gz|gzip|jpeg|jpg|mid|mov|mp3|mp4|mpc|mpeg|mpg|ods|odt|pdf|png|ppt|pxd|qt|ram|rar|rm|rmi|rmvb|rtf|sdc|sitd|swf|sxc|sxw|tar|tgz|tif|tiff|txt|vsd|wav|wma|wmv|xls|xml|zip|php)$" ; // empty for all

I've cleaned out my cache 10 times.

I am still not seeing any .php pages in the relative links window. When I try to upload a .php file, the error message says that the filename is not allowed.

What next? I really need to get this resolved today. This should already have been an allowed option in the first place.

Sign in to reply to this post

Eric Mittman

Along with adding it to the allowed types you will also need to remove it from the banned types. This is in the KFM configuration.php file that is located at HTMLEditor > editor > plugins > kfm > configuration.php.

In here you need to find the variable name $kfm_banned_extensions around line 128. In here you need to remove the php entry so that it looks like this:

php:
$kfm_banned_extensions = array('asp','cfm','cgi','php3','php4','php5','phtm','pl','sh','shtm','shtml');



Keep in mind though that this can present a major security issue if anyone gains unauthorized access to your editor pages. If someone uploads a php file it can then be executed by going to the URL for it.

Sign in to reply to this post

sandy259886

Yeah!!!!

That did it. I'm going to save all of these notes incase I have to do this again. Thank you so much! All of my website are php sites and this solves a huge problem.

Sign in to reply to this post

Eric Mittman

I was not aware of the banned files list myself until investigating this issue further. I'm glad that worked out for you.

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