Coldfusion 9 CFFTP Tag

Hi, hope somebody can help!
I'm running an evaluation on the new Coldfusion 9 and  trying to use the <CFFTP> tag to connect to a remote SFTP server. The server version is:-
SSH-2.0-OpenSSH_4.7p1 Debian-8ubuntu1.2
My Code is:-
<cfftp action = "open"
username = "myusername"
connection = "MyConnection"
password = "mypassword"
server = "myserver.com"
secure = "yes">
<p>Successful: <cfoutput>#cfftp.succeeded#</cfoutput>
<cfdump var ="#MyConnection#" label="connection">
This is what is returned:-
An error occurred while establishing an sFTP connection.
Verify your connection attributes: username, password, server, fingerprint, port, key, connection, proxyServer, and secure (as applicable). Error: Session.connect: java.io.IOException: invalid data.
The error occurred in /Applications/ColdFusion9/wwwroot/test/sftp.cfm: line 12
10 :
11 : server = "10.1.3.43"
12 : secure = "yes">
13 :
14 : <p>Successful: <cfoutput>#cfftp.succeeded#</cfoutput>
Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser 
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_1; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Safari/412.0
Remote Address 
0:0:0:0:0:0:0:1%0
Referrer 
Date/Time 
13-Oct-09 11:32 PM
Stack Trace
at cfsftp2ecfm1948882534.runPage(/Applications/ColdFusion9/wwwroot/test/sftp.cfm:12) at cfsftp2ecfm1948882534.runPage(/Applications/ColdFusion9/wwwroot/test/sftp.cfm:12)
com.jcraft.jsch.JSchException: Session.connect: java.io.IOException: invalid data
     at com.jcraft.jsch.Session.connect(Unknown Source)
     at com.jcraft.jsch.Session.connect(Unknown Source)
     at coldfusion.tagext.net.SftpHandler.getConnection(SftpHandler.java:265)
     at coldfusion.tagext.net.SftpHandler.createConnection(SftpHandler.java:76)
     at coldfusion.tagext.net.FtpTag.doStartTag(FtpTag.java:675)
     at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722)
     at cfsftp2ecfm1948882534.runPage(/Applications/ColdFusion9/wwwroot/test/sftp.cfm:12)
     at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:231)
     at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:416)
     at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
     at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:363)
     at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
     at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
     at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
     at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
     at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
     at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
     at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46)
     at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
     at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
     at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:53)
     at coldfusion.CfmServlet.service(CfmServlet.java:200)
     at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)
     at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42)
     at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46)
     at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)
     at jrun.servlet.FilterChain.service(FilterChain.java:101)
     at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106)
     at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
     at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:286)
     at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543)
     at jrun.servlet.http.WebService.invokeRunnable(WebService.java:172)
     at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320)
     at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
     at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266)
     at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)
I've tried running this from both a Mac and Windows platform.
Incidentally, I also took the example from the Adobe Coldfusion 9 live docs and got the same error.
If I can't get this to work then it's a show stopper for the use of CF within our environment.
Best Regards,
Carl Bourne
Message was edited by: CarlB  Just tried using the above to connect to a SSH (SSH-2.0-OpenSSH_5.2) server running on MAC OSX. I got the same error.

That did not fix my problem specifically, but it is related, and it gave me enough insight to find a work-around without changing jar files.
It seems that ColdFusion loads "com.rsa.jsafe.provider.JsafeJCE" as the default security provider at startup. Perhaps there is something wrong with this provider like the “BC” provider mentioned in your link. Working with that, I was able to dump my providers into an array where the first array position represents the default provider and shows JsafeJCE as the default:
<cfset providerMethods = CreateObject('java','java.security.Security')>
You can dump the providers:
<cfdump var="#providerMethods.getProviders()#">
I then made a copy of the provider like:
<cfset jSafeProvider = providerMethods.getProvider('JsafeJCE')>
I then removed it from the provider array:
<cfset providerMethods.removeProvider('JsafeJCE')>
I then made my sFTP call and this time it was successful.
<cfftp action="open"
            secure="true”…
I then put the provider back into the array in position 1 – the default:
<cfset providerMethods.insertProviderAt(jSafeProvider,1)>
I can’t say I know exactly what’s wrong and I certainly don’t want to remove the JsafeJCE provider from the default position for forever. I’ll let Adobe come up with a true fix, but for now, this provides me with a work-around so I can use sFTP. I’m sure JsageJCE is used/required for some other encryption, so you’ll have to watch for other issues while it’s not part of the provider array. The quicker you can get it out/in, probably the better. My sFTP only runs a few times, so I feel OK with the possible side effects. Maybe someone can take it from here and find a better solution and not a simple work-around.

Similar Messages

  • Coldfusion webservice wsdl tag order

    Hi
    I've created a web service that interogates a database and
    spits out an xml document. It has a number of input parameters and
    just one output value (the xml document).
    When I test this using coldfusion everything works fine.
    However when my client tries to invoke the web service it says that
    the return value doesn't exist.
    I've looked at the wsdl files generated by coldfusion and
    there does seem to be a difference in the order of the message tags
    produced that I think must be causing the error.
    In one webservice he can view the order is: request,
    exception, response
    In the one that he can't access properly the order is:
    response, exception, request.
    Does anyone else know how to resolve this issue? Or am I
    looking in the wrong place?

    To change the order is necesary use PI module

  • CFFTP Usage

    I am trying to utlitize cfftp in the following scenario:
    1. user logs into our website.
    2. user clicks link to .cfm template which uses cfftp to
    display contents of their personal directory (located on our ftp
    server, which is a different physical machine.)
    <cfftp connection = "#session.customerid#session"
    server = "ftpserver.mydomain.com"
    username = "#session.customerid#"
    password = "#session.password#"
    action = "LISTDIR"
    stopOnError = "Yes"
    name = "PDFDirectory"
    directory = "/pdfdir">
    3. I'd like to create an ftp link for each pdf filename which
    will open the specific file from the ftp server
    Steps 1 and 2 are working fine. I can log into our website
    and see the list of files in the directory. Step 3 is the one that
    isn't working the way I thought it would. The only way I can get it
    to work is to include the username/password in the ftp link:
    ftp://username
    [email protected]/pdfdir/file1.pdf
    For security reasons, I don't want to do that. (I've tried
    both hard-coding the ftp link and I've tried using the URL Query
    Column from my "listdir" query object. )
    I thought that once the connection to the FTP server was
    open, I wouldn't need to specify the username/password again within
    that cfm page. However, it seems that each of these URL's (ftp
    links) is a new connection to the FTP server.
    Is there another way to do what I'm trying to do - open the
    file via ftp link without having to include the username/password
    within the URL?
    Many thanks.

    The CFFTP tag has its own connection between ColdFusion and
    the FTP server, one connection per set of credentials.
    The FTP hyperlink is a distinct connection between the user's
    browser and the FTP server, completely excluding ColdFusion server.
    I don't know of a way to provide a direct link to the file as
    it is located on the FTP server without providing the credentials
    in the URL. However, the obvious answer is to copy the file local
    to the ColdFusion server and send a redirect to the client
    (cflocation) to point their browser at the local file. Then
    (assuming CFMX 7) using Application.cfc's onSessionEnd event,
    discard the previously copied file off the server.

  • Coldfusion secure FTP & digital certificates

    Hello !
    I am currently in the process of developing a corporate CF intranet site that is behind a corporate firewall and part of the application will need to send a data file (FTP put) to a remote FTP server using secured FTP (FTPS). I have never used Coldfusion before for either secured or unsecured FTP.  I am planning on using the CFFTP tag to open the connection and send the data file but I have a number of other questions regarding the use & installation of the digital certificates.:
    Current development environment setup:
    CF version 9 standard edition running on Windows Server 2008 R2
    Microsoft IIS 7
    Current production environment setup:
    CF version 9  enterprise edition running on Windows Server 2008 R2
    Microsoft IIS 7
    1.  The data file that is being created must be sent to a finanacial institution and they will be providing a digital certificate (p12 format) to me.  What do I do with that certificate once I get it ?  I have installed SSL certificates before on http web sites with IIS without any issues but I am not sure what to do with the certificate for secured FTP.  Do I import the certificate into IIS using the MMC snap on or does the certificate need to be integrated into Coldfusion in some other way and if so, what needs to be done ?
    2.  What other steps need to be prior to being able to use the CFFTP tag for a secured FTP send ?
    I would appreciate as much help as possible as I haven't used CF for FTP before.
    Thank you.

    Dave,
    Thank you for answering.
    1.  I have imported the certificate into the cacerts file by using the following command:
         keytool -import -keystore ../lib/security/cacerts -alias x  -file c:\downloads\y
         where x was the alias name I assigned and y was the certificate name (extension of 'der').
    I tried importing a p12 and p7b certificate but neither of those worked.  I received the message 'Not a valid X.509 Certificate' from the command.  I then successfully imported a Base64 certificate (der).  I believe the certificate has been successfully imported because I ran the following and it shows the MD5 fingerprint:
         keytool -list -alias x -keystore ../lib/security/cacerts
         where x is my alias name I assigned in the original import
    2.  I then ran the following CFM command replacing the '*'s with the appropriate server name, user name, and password
         <cfftp action="open" connection="conn1" secure="yes" server="********" username="******" password="*****" port="21"
         </cfftp>
         I am getting the CF error
    An error occurred while establishing an sFTP connection.
    Verify your connection attributes: username, password, server, fingerprint, port, key, connection, proxyServer, and secure (as applicable). Error: User Authentication failed.
    Any suggestions or help would be appreciated.
    Thank you.

  • CFFTP

    I'm trying to connect to an ftp server with this tag and I
    can't get it to work. It's frustrating because I can connect
    through standard ftp or even in the browser. Even anon ftp sites
    wont work.
    I'm sure my proxy is the issue. I'm behind a proxy with a
    password. I have read it is possible but pass a proxy password
    through the cfftp tag but haven't seen it done anywhere.
    Can anyone tell me how to do this?
    Currently I'm using:
    quote:
    <cfftp
    connection="Test"
    action="open"
    server="ftp.site.com"
    username="anonymous"
    password="ftp_pass"
    proxyserver="proxyserverIPhere"
    passive="yes"
    stoponerror="no"
    transfermode="binary"
    />
    I can see I can pass in a proxy server ip by the proxyserver
    attribute but how do I pass in my password?
    Through standard ftp I would do the following:
    quote:
    > open ip
    > username: [email protected] proxyuser
    > password: ftppassword
    > proxypassword: proxy password
    I can't see any way to replicate that kind of behaviour using
    cfftp. Any ideas?

    After looking into this further as far as I can see
    Coldfusion doesn't support this mode of authentication with the
    CFFTP tag.
    Anybody have any ideas, or any 3rd party code etc. which
    would allow me to FTP through an authenticated proxy?

  • Coldfusion to serial port

    Hi
    I have a flash application that uses coldfusion to interact
    with a database.
    Im trying to get the same application to either commniicate
    with the serial port via Actionscript or Coldfusion.
    Is either possible?

    For ColdFusion running on Windows, to talk to the
    server
    serial port, maybe something like <CFEXECUTE
    NAME="mySerialTalker.bat"> would work. Check out
    http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt126.htm.

  • Where's the old coldfusion bug tracker?

    I am looking for the details of the bugs 51067 and 45138 which were mentioned in http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt23.htm but I can't seem to find them.
    http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html does not seem to have those bugs as well.
    Where can I find them?
    Thanks

    I am looking for the details of the bugs 51067 and 45138 which were mentioned in http://livedocs.adobe.com/coldfusion/6/CFML_Reference/Tags-pt23.htm but I can't seem to find them.
    http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html does not seem to have those bugs as well.
    Where can I find them?
    Thanks

  • Which tags do i use for these functions...

    Hi guys,
    Im creating an online newspaper/fanzine website. It will
    contain content management system at the backend, all in
    coldfusion.
    Im aiming for it to do the following, and was wondering if
    you guys could tell me which CF tags i need to use for each one
    (it's been a while since i've touched CF!).
    - Front end will display news articles. Back end will need
    to submit articles for front end output. Apart from a text input
    form, i will need the client to be able to add images, of a certain
    size, to each article for display underneath the text. In short -
    an area to upload article + associated image for front end output.
    -A page containing links to download .rar files of the back
    issues of the paper, each file is approx 20mb, there will be around
    10 files available. (are these files going to have to be stored in
    a folder, within the website, and the links will go to the folder,
    and allow the client to download?) The website must be able to
    allow clients to download .rar's of the back issues.
    - Back end page to upload adverts, that will need to be
    trimmed/scaled to fit a specific DIV size at the front end.
    Thats it for now, although i may come up with others.
    Hope someone out there can give me some pointers.
    Cheers in advance guys,
    Dave

    Your question is quite broad, so it's difficult to provide an
    answer that's
    more use than "read the CFWACK".
    However you seem to have a requirement for form processing,
    so read this
    lot:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/dynamicForms_01.html
    And maybe image processing:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Images_01.html
    And, in general, reviewing the capabilities of CF:
    Tags:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/Tags-pt0_01.html
    Functions:
    http://livedocs.adobe.com/coldfusion/8/htmldocs/functions-pt0_01.html
    I recommend at least glancing over all the tag and function
    summaries, so
    you know what CF can do.
    You might also want to think about not reinventing the wheel,
    and look at a
    CMS like FarCry:
    http://www.farcrycore.org/
    Or if you want to be more in a "roll your own" situation,
    then at least
    look at Model-Glue and ColdSpring:
    http://www.model-glue.com/
    http://www.coldspringframework.org/
    And use either Reactor or Transfer for handling your DB tier:
    http://www.reactorframework.com/
    http://www.transfer-orm.com/
    Tranfer seems to be the flavour-of-the-month of these two,
    but it always
    seemed a bit jerry-built to me: I prefer Reactor. Reactor is
    in a bit of a
    developmental hiatus @ present, but it has an active and
    helpful community.
    I strongly, strongly recommend resisting the thought that
    using a framework
    seems like a lot of effort, and you'll probably be all right
    just winging
    it. You'll be wrong. Model-Glue & ColdSpring seem a bit
    daunting at
    first, but really they are not. There's a few decent
    tutorials out there
    to get you up to speed quickly.
    I am purely a maintenance coder at present, so I don't have
    much choice in
    what I'm doing (goddammit! ;-), but I would not undertake any
    project - of
    any size - without using a framework.
    Adam

  • Issue with CFFTP - Putfile

    I took on a new position where I have the task of going through the previous developers code and making changes/fixes. I am currently looking over a page that is grabbing a file and putting it somewhere. My issue is, that I can't seem to figure out if the variables the previous developer has in place are being called from somewhere, or if they are just placeholders. There is reference to a function that is called "TransferFile", but as I don't have alot of experience with the CFFTP tag, I just cant tell what is going on. I have underlined the variables in question. Also I am wondering if anything special has to be done since I am putting the file through a SFTP connection. The server in which I am putting the file is a linux server. I will post the code below.
    <!--- Here is the function Tag --->
    <cffunction name="transferFile" access="public" returnType="void" output="true" hint="Transfers the voice file to the Asterisk server via FTP.">
    <cfset var ftpServer = "">
    <!--- Here is the first CFFTP tag that I am assuming is connecting to the server in which I want the file to go --->
                <cfftp action="open"
                    connection="sftpServer"
                    server="#"
                    username = "manyoh"
                    password = "many"
                    fingerprint = "#"
                    timeout="60"
                    port="22"
                    secure = "yes" />
    <!--- Here is the CFFTP code that is putting the file with the variables I can't make out --->
                <cfftp action="putFile"
                    connection="ftpServer"
                    localFile="#this.getDefaultPath() & this.getFileName()#"
                    remoteFile="#this.getFileName()#" />

    cfdumping the this scope will show you the file names.

  • CFFTP issue

    I am trying to use cfftp to put a .txt file on a remote
    server.
    I have successfully used cfftp action="open" to open an ftp
    connection however, when it comes to doing the cfftp
    action="putfile".... I get the following error message:
    An exception occurred when performing the FTP putfile
    operation.
    The cause of this exception was that: Connection closed
    without indication..
    I have tried coding in two different ways:
    The first way was to Use cfftp to open the connection, then
    use cfftp to putfile (using connection name from first cfftp) Code
    Below (sans sensitive information)
    <cfftp action="open"
    server="[ftp server here]"
    username=""
    password=""
    connection="FTPName"
    stoponerror="yes">
    <cfftp action="putfile"
    connection="FTPName"
    stoponerror="yes"
    localfile="#FilesDirectory#File.txt"
    remotefile="/dir/File.txt">
    The Second Way I did it was to Open the connection and Put
    File all in one cfftp tag, like this:
    <cfftp action="putfile"
    server="[FTP Server]"
    username=""
    password=""
    connection="FTPName"
    localfile="#FilesDirectory#File.txt"
    remotefile="/Dir/File.txt"
    stoponerror="yes">
    Points to note, I leave the Password and Username fields
    blank as it is an anonymous FTP server.
    In the first coding example, The cfftp OPEN does work, so it
    is not a comms issue with the ftp server, but something going wrong
    with the putfile request.
    Any Ideas?

    I honestly couldn't tell you.
    the remote server is not under my control. I am attempting to
    ftp to a web service basically, I ftp the file to them and they do
    with it what they will.
    I know the ftp server accepts the file because I opened up
    the ftp server through file browsing and drag and dropped the file
    to the server which worked.

  • Trying to connect to a ftp server

    I am able to connect to Cerberus (5.0.0.5) using the web browser or using a CoreFTP client, but I can't connect programatically using org.apache.commons.net.ftp.FTPClient. 
    Below is my code (this is actually using the java ftpclient through Coldfusion) :
    ftpsClient = CreateObject("java","org.apache.commons.net.ftp.FTPClient").init();
    ftpsClient.connect(JavaCast("string","xxx.xxx.xxx.xxx"),21);
    connected = ftpsClient.isConnected();
    login = ftpsClient.login(JavaCast("string","username"),JavaCast("string","password"));
    This is what I see in the ftp server log file:
    2011/12/13 13:47:54  [0]  Client connected to Cerberus FTP Server 5.0.0.5 on 'machine'
    2011/12/13 13:48:41  [1]  Incoming connection request on FTP interface 0 at xxx.xxx.xxx.xxx
    2011/12/13 13:48:41  [1]  FTP connection request accepted from xxx.xxx.xxx.xxx
    2011/12/13 13:48:45  [1]  USER svc.script
    2011/12/13 13:48:45  [1]  331 User svc.script, password please 
    At this point the Coldfusion/Java client returns "Truncated server reply".  I also tried not using the login, and instead sending the user command and pass command separately like this:
    userCmd = ftpsClient.sendCommand(JavaCast("string","USER" ),JavaCast("string","username" ));
    But as soon as I send the "USER" command I see the above in the log file and the same reply, "Truncated server reply".
    When I use the cfftp tag like this:
    <cfsetting requesttimeout="1000">
    <cfftp action="open" connection="ftptest" secure="false"
        server="xxx.xxx.xxx.xxx" port="21"
        username="username" password-"password" timeout="1000" stoponerror="true">
    I receive a "java.net.ConnectException: Connection timed out: connect"
    Does anyone have any ideas?  Thanks much.

    This has been resolved.
    There is a bug in the apache commons ftpclient that misinterprets /r in the welcome message.  The ftp server people made a change that fixes this.
    With cfftp, when I changed the server attribute on the cfftp open to the server name instead of the ip address, it started working.  To me this is a bug in ColdFusion, you should be able to use the ip address.
    The other thing I noticed is when you use getfile, you have to set the the failifexists attribute to "false".  If you don't, it fails every time and the file has a "0" size, whether the file actually does exist.  To me, another bug.

  • Vocabulary for web design and beyond

    Anyone tackling web design will encounter dozens of unfamiliar terms. I have compiled together this glossary to help them. I may update and expand in the future. Until then, feel free to use or pass along.
    Some of these terms don’t relate strictly to web design, but also to computer graphics and computer programming generally, as I’ve found that such terms are also important to reading and understanding any tutorials or other materials on web design.
    Asynchronous (1) General use. Not synchronous; not occurring or existing at the same time or having the same period or phase. (2) Digital communication. Pertaining to a transmission technique that does not require a common clock between the communicating devices; timing signals are instead derived from special characters in the data stream.
    Bitmap image Image that uses geometrical primitives such as points, lines, curves, and shapes, which are all based on mathematical equations. In a bitmap image, each pixel on a display screen is assigned at least one bit to indicate whether the pixel should reflect the background color, the foreground color, or some other color. each pixel in the bitmap might have 16, 24, or 48 bits of information associated with it. The more bits, the greater the resolution of the bitmap – and the larger the file. Compare Vector image.
    C (programming language) General-purpose computer programming language developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system. It was designed for implementing system software and is also widely used for developing portable application software. C has greatly influenced many other popular programming languages, most notably C++, which began as an extension to C.
    C++ Statically typed, free-form, multi-paradigm, compiled, general-purpose programming language. It was developed by Bjarne Stroustrup starting in 1979 at Bell Labs as an enhancement to the C language and originally named C with Classes. It was renamed C++ in 1983.
    Cache Component that transparently stores data so that future requests for that data can be served faster. The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that are stored elsewhere. If requested data is contained in the cache (cache hit), this request can be served by simply reading the cache, which is comparatively faster. Otherwise (cache miss), the data has to be recomputed or fetched from its original storage location, which is comparatively slower.
    Cascading Style Sheet (CSS) Style sheet language used to describe the presentation semantics (the look and formatting) of a document written in a markup language. Its most common application is to style web pages written in HTML and XHTML, but the language can also be applied to any kind of XML document, including SVG and XUL.
    ColdFusion Programming language based on standard HTML that is used to write dynamic webpages. It allows for the creation of pages that differ depending on user input, database lookups, time of day, or other criteria. ColdFusion pages consist of standard HTML tags together with CFML (ColdFusion Markup Language) tags such as <CFQUERY>, <CFIF> and <CFLOOP>. ColdFusion was introduced by Allaire in 1996, acquired by Macromedia in a merger in April 2001, and acquired by Adobe in December 2005.
    Compound selector Can be used to combine two or more style rules to create a style definition that displays only when one style is contained within another. Compound styles are useful when you want to do something like use the Heading 1 tag multiple times to format headlines in different ways on the same web page. For example, you could create one style for headlines that appear in the main story area of a page and then create another style for headlines that appear in the sidebar on the page and still use the Heading 1 tag to format both. Compound styles are created by combining ID, class, or tag styles and look like this: #sidebar h1.
    Contextual selector A type of Style Sheet Selector that
    CRE Loaded Open source online store management and shopping cart system for e-commerce from Chain Reaction eCommerce. It is based on osCommerce, runs on any LAMP (Linux, Apache, MySQL, PHP) web server, and is supported by an active international community of users and developers. For a monthly subscription ($10/mo. as of 2011), CRE Loaded allows small and medium-sized merchants to accept credit card payments in a web site that mirrors their own online stores.
    CSS See Cascading Style Sheet.
    Dynamic HTML (DHTML) Umbrella term for a collection of technologies used together to create interactive and animated web sites by using a combination of a static markup language (such as HTML), a client-side scripting language (such as JavaScript), a presentation definition language (such as CSS), and the Document Object Model. DHTML allows scripting languages to change variables in a web page's definition language, which in turn affects the look and function of otherwise “static” HTML page content, after the page has been fully loaded and during the viewing process.
    ECMA International International membership-based non-profit standards organization for information and communication systems.
    ECMAScript Scripting language standardized by Ecma International in the ECMA-262 specification and ISO/IEC 16262. The language is widely used for client-side scripting on the web, in the form of several well-known dialects such as JavaScript, JScript, and ActionScript.
    Extensible HyperText Markup Language (XHTML) Family of XML markup languages that mirror or extend versions of the widely used HTML, the language in which web pages are written. While HTML (prior to HTML5) was defined as an application of Standard Generalized Markup Language (SGML), a very flexible markup language framework, XHTML is an application of XML, a more restrictive subset of SGML. Because XHTML documents need to be well-formed, they can be parsed using standard XML parsers—unlike HTML, which requires a lenient HTML-specific parser.
    Extensible Markup Language Set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards. Its design goals emphasize simplicity, generality, and usability over the Internet. It is a textual data format with strong support via Unicode for the languages of the world. Known by its acronym XML.
    HTML See HyperText Markup Language.
    Hypermedia Graphics, audio, video, plain text and hyperlinks that intertwine to create a generally non-linear medium of information. This contrasts with the broader term multimedia, which may be used to describe non-interactive linear presentations as well as hypermedia. The World Wide Web is a classic example of hypermedia, whereas a non-interactive cinema presentation is an example of standard multimedia due to the absence of hyperlinks.
    Hypertext Text displayed on a computer or other electronic device with references (hyperlinks) to other text that the reader can immediately access, usually by a mouse click or keypress sequence.
    Hypertext Markup Language (HTML) Predominant markup language and basic building-block of webpages. It is written in the form of HTML elements consisting of tags, enclosed in angle brackets (like <html>), within the web page content. HTML tags normally come in pairs like <h1> and </h1>. The first tag in a pair is the start tag, the second tag is the end tag (they are also called opening tags and closing tags). Known by its acronym HTML.
    Hypertext preprocessor (PHP) Widely used, general-purpose scripting language that was originally designed for web development to produce dynamic web pages. It brings life to websites by communicating with external data sources, such as databases, news feeds, and XML documents. PHP code is embedded into the HTML source document and interpreted by a web server with a PHP processor module, which generates the web page document. PHP 3 was launched in 1998; PHP 4 was released in 2000; and PHP 5 was released in 2005.
    Java Programming language released in 1995 as a core component of Sun Microsystems' Java platform. The language derives much of its syntax from C and C++ but has a simpler object model and fewer low-level facilities. Java applications are typically compiled to bytecode (class file) that can run on any Java Virtual Machine (JVM) regardless of computer architecture. Java is a general-purpose, concurrent, class-based, object-oriented language that is specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere". Java is currently one of the most popular programming languages in use, and is widely used from application software to web applications.[
    JavaScript Implementation of the ECMAScript language standard and is typically used to enable programmatic access to computational objects within a host environment. It can be characterized as a prototype-based object-oriented scripting language that is dynamic, weakly typed and has first-class functions.
    JPEG Commonly used method of Lossy compression for digital photography that was named after the Joint Photographic Experts Group, which created the standard. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality. JPEG typically achieves 10:1 compression with little perceptible loss in image quality.
    Linux Family of Unix-like computer operating systems using the Linux kernel (central OS component). Linux can be installed on a wide variety of computer hardware, ranging from mobile phones, tablet computers and video game consoles, to mainframes and supercomputers. The development of Linux is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed, both commercially and non-commercially, by anyone under licenses such as the GNU General Public License.
    Lossy compression Data encoding method which discards (loses) some of the data, in order to achieve its goal, with the result that decompressing the data yields content that is different from the original, though similar enough to be useful in some way. Lossy compression is most commonly used to compress multimedia data (audio, video, still images), especially in applications such as streaming media and internet telephony. By contrast, lossless compression is required for text and data files, such as bank records, text articles, etc.
    MySQL Relational database management system that runs as a server providing multi-user access to a number of databases. The MySQL development project has made its source code available under the terms of the GNU General Public License, as well as under a variety of proprietary agreements. Acronym for “My Structured Query Language.”
    Open source Describes practices in production and development that promote access to the end product's source materials. Before the term open source became widely adopted, developers and producers used a variety of phrases to describe the concept; open source gained hold with the rise of the Internet, and the attendant need for massive retooling of the computing source code.
    osCommerce Open source Commerce. It allows store owners to setup, run, and maintain their online stores with minimum effort and with no costs involved. Combines open source solutions to provide a free and open development platform, which includes the PHP web scripting language, the Apache web server, and the MySQL database server. With no restrictions or special requirements, osCommerce can be installed on any PHP3 or PHP4 enabled web server, on any environment that PHP and MySQL supports, which includes Linux, Solaris, BSD, and Microsoft Windows environments.
    PHP See Hypertext preprocessor.
    Rasterization The process of converting a Vector image into a Bitmap image.
    Rasterize See Rasterization.
    Shopping cart software Software used in e-commerce to assist people making purchases online. The software allows online shopping customers to accumulate a list of items for purchase. Upon checkout, the software typically calculates a total for the order, including shipping and handling (i.e. postage and packing) charges and the associated taxes.
    Style sheet selector One of the two parts of a CSS rule (the other being the properties, or declaration block) that declares which of the markup elements a style applies to. Selectors may apply to all elements of a specific type, or only those elements that match a certain attribute (e.g., how they are placed relative to each other in the markup code, or on how they are nested within the document object model). There are many types of style sheet selectors: element selectors, which select by element name; class selectors, which select by class name; contextual selectors, which select by context based on parent elements (what the element is nested within or what precedes it in the document), etc..
    Supercomputer Computer that is at the frontline of current processing capacity, particularly speed of calculation. Supercomputers are typically one-of-a-kind custom designs produced by companies such as Cray, IBM and Hewlett-Packard, who had purchased many of the 1980s companies to gain their experience. Since October 2010, the Tianhe-1A supercomputer, located in China, has been the fastest in the world.
    Tag Non-hierarchical keyword or term assigned to a piece of information (such as an Internet bookmark, digital image, or computer file). This kind of metadata helps describe an item and allows it to be found again by browsing or searching. Tags are generally chosen informally and personally by the item's creator or by its viewer, depending on the system. HTML tags include paragraph, heading 1, heading 2, etc.
    Unix Computer operating system originally developed in 1969 by a group of AT&T employees at Bell Labs. The Unix operating system was first developed in assembly, which is machine-dependent and a low-level programming language. Ken Thompson created the B language in 1969 and Unix was written in the B language, a high-level programming language. The first Unix system written in C was released in November 1973.
    Vector image Image made up of numerous individual, scalable objects. These objects are defined by mathematical equations rather than pixels, so they always render at the highest quality. Objects may consist of lines, curves, and shapes with editable attributes such as color, fill, and outline. Changing the attributes of a vector object does not effect the object itself. Compare Bitmap image.
    Vector processor Central processing unit (CPU) that implements an instruction set containing instructions that operate on one-dimensional arrays of data called vectors. This is in contrast to a scalar processor, whose instructions operate on single data items. Also known as array processor.
    Web analytics Measurement, collection, analysis and reporting of internet data, including the number of visitors and page views, for understanding and optimizing web usage. It can be used as a tool for measuring website traffic and for business and market research. Web analytics applications can also help companies measure the results of traditional print advertising campaigns. It helps one to estimate how the traffic to the website changed after the launch of a new advertising campaign.
    Web design Design of the way that content is delivered to an end-user through the World Wide Web, using a web browser or other web-enabled software.
    Web development Refers to the work involved in developing a web site for the Internet (World Wide Web) or an intranet (a private network). This can include Web design, web content development, client liaison, client-side/server-side scripting, web server and network security configuration, and e-commerce development. However, among web professionals, "web development" usually refers to the main non-design aspects of building web sites: writing markup and coding. Web development can range from developing the simplest static single page of plain text to the most complex web-based internet applications, electronic businesses, or social network services.
    World Wide Web Consortium Main international standards organization for the World Wide Web. It is made up of member organizations which maintain full-time staff for the purpose of working together in the development of standards for the World Wide Web. Known by its acronym W3C.
    XHTML See Extensible HyperText Markup Language.
    XML See Extensible Markup Language.
    Zend Engine Open source scripting engine (a Virtual Machine) commonly known for the important role it plays in the web automation language PHP.

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • How can I upload an .jpg file to server from browser?

    Hi!
    I am trying to create a webpage whereby myself or any one of my managers can easily create an e-mail & send to our client database. I would like to be able to upload an image to be included with the email, which I have been trying to do using <cffile>, but I get an error message:
    Security: The requested template has been denied access to http:\***MY WEB ADDRESS****.
    I'm assuming that this is an issue with my hosting server, but I fail to see a way round it as I cannot add ftp login data to a <cffile> tag.
    I have also tried to do the same thing with <cfftp> tag including the ftp login data, but this returns an error whereby the website cannot access the file from my hard drive.
    Does anyone have a solution?

    What does your code look like? Something like this?
    <cfif isDefined("form.image") >
        <cffile action = "upload"
            fileField = "image"
            destination = "c:\uploads\images"
            accept = "image/jpg,image/pjpeg,image/jpeg"
            nameConflict = "MakeUnique">
            Done uploading image!
    <!--- Put the code to send email here including, for example, c:\uploads\images\#cffile.serverfile# as attachment --->
    <cfelse>
        <cfform method="post" action="#cgi.script_name#"
            name="uploadForm" enctype="multipart/form-data">
            <cfinput name="image" type="file">
            <br><br>
            <cfinput name="submit" type="submit" value="Upload image">
        </cfform>
    </cfif>

  • How to Password Protect a Directory so all Files are Protected?

    Hello CFers and Happy Holidays,
    I am moving a web site over from a Linux server over to a
    Windows 2000 server. The site was currently password protected via
    the oh so familiar .htaccess method on the Linux server. Now that
    the site is on IIS on Windows, the .htaccess files don't work.
    I have created a MSSQL database with a users table that
    contains all of the username and passwords that are allowed to
    access the site.
    Normally I would just log users in by querying the database,
    setting a session variable, and then using application.cfm to check
    to make sure the users is logged in. However, in this particualr
    site, most of the files are made up of .htm files which do not get
    processed by the ColdFusion application.cfm tag.
    Several posts indicated that I would need to disable
    anonymous access within IIS and then create the individual user
    accounts within Administrative Tools > Computer Management >
    Users and Groups. However, in this case, I don't want to create
    thousands of new users within windows.
    Is there a way for me to password protect all files within a
    directory while still using the accounts set up in my MSSQL
    database for authentication?
    Thanks,
    David Levin

    > Several posts indicated that I would need to disable
    anonymous access within
    > IIS and then create the individual user accounts within
    Administrative Tools >
    > Computer Management > Users and Groups. However, in
    this case, I don't want to
    > create thousands of new users within windows.
    How many users did you have in your .htaccess config? That's
    how many
    you'd need to set up in IIS. With IIS & file system
    permissions you're
    effecting the same thing you would with Apache's .htaccess
    authorisation.
    Except using GUI tools rather than text files; it's the same
    principle,
    though.
    Or... you could just install Apache and use that instead,
    sticking with the
    approach you're used to.
    Adam

  • Dreamweaver templates and relative file paths

    It seems on occasion - especially with the embed tag - a
    relative file path in the dwt file becomes an absolute file path in
    the file it makes. The worst thing is that it doesnt happen
    consistently, Ive created 4 files from a template and now all of a
    sudden when i make a new one the path doesnt update. I'm also using
    coldfusion with these tags which could be the problem. Either way I
    dont want to have to reedit every page with notepad. Heres my code
    template code:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="730" height="295" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <cfoutput>#IEcat#</cfoutput>
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <cfoutput><embed
    src="../new/flash/navigation6a.swf#cat#" quality="high"
    bgcolor="##ffffff" width="730" height="295" align="middle"
    allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /> </cfoutput>
    </object>
    code rendered from template:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="730" height="295" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <cfoutput>#IEcat#</cfoutput>
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <cfoutput><embed
    src="file:///D|/KMI%20websites/centerplate.ca/site/new/flash/navigation6a.swf#cat#"
    quality="high" bgcolor="##ffffff" width="730" height="295"
    align="middle" allowscriptaccess="sameDomain"
    type="application/x-shockwave-flash" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /> </cfoutput>
    </object>
    on a side note, in the object param tag when using the output
    tags inside the quotation marks of the value it turns all non
    alphanumeric characters into ascii
    any help on either problem will be much appreciated

    Whe you spawn the child page from the template, you will see
    ALL of the
    links look like that until you save the page. Once you save
    it, DW knows
    how to adjust the links so that they remain relative to the
    saved document.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ogre11" <[email protected]> wrote in
    message
    news:[email protected]...
    > It seems on occasion - especially with the embed tag - a
    relative file
    > path in
    > the dwt file becomes an absolute file path in the file
    it makes. The
    > worst
    > thing is that it doesnt happen consistently, Ive created
    4 files from a
    > template and now all of a sudden when i make a new one
    the path doesnt
    > update.
    > I'm also using coldfusion with these tags which could be
    the problem.
    > Either
    > way I dont want to have to reedit every page with
    notepad. Heres my code
    >
    > template code:
    >
    > <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    > codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    > version=7,0,0,0" width="730" height="295"
    align="middle">
    > <param name="allowScriptAccess" value="sameDomain"
    />
    > <cfoutput>#IEcat#</cfoutput>
    > <param name="quality" value="high" />
    > <param name="bgcolor" value="#ffffff" />
    > <cfoutput><embed
    src="../new/flash/navigation6a.swf#cat#"
    > quality="high"
    > bgcolor="##ffffff" width="730" height="295"
    align="middle"
    > allowscriptaccess="sameDomain"
    type="application/x-shockwave-flash"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /> </cfoutput>
    > </object>
    >
    > code rendered from template:
    >
    > <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    > codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    > version=7,0,0,0" width="730" height="295"
    align="middle">
    > <param name="allowScriptAccess" value="sameDomain"
    />
    > <cfoutput>#IEcat#</cfoutput>
    > <param name="quality" value="high" />
    > <param name="bgcolor" value="#ffffff" />
    > <cfoutput><embed
    >
    src="file:///D|/KMI%20websites/centerplate.ca/site/new/flash/navigation6a.swf#ca
    > t#" quality="high" bgcolor="##ffffff" width="730"
    height="295"
    > align="middle"
    > allowscriptaccess="sameDomain"
    type="application/x-shockwave-flash"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /> </cfoutput>
    > </object>
    >
    > on a side note, in the object param tag when using the
    output tags inside
    > the
    > quotation marks of the value it turns all non
    alphanumeric characters into
    > ascii
    >
    > any help on either problem will be much appreciated
    >

Maybe you are looking for

  • Unable to get the report query logs in OBIEE 11g.

    While trying to view the report queries in 11g(Administration >Manage Sessions >Log(of a particular request)) , I'm getting the following error : State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [

  • Dreamweaver CC Widget Browser is it gone?

    I don't see the Widget Browser as available with Adobe CC. Can we use it? or download it? through extensions or something.

  • Mail consumes 100% of my CPU power

    Thats at least my theory. Activity viewer shows that something called osascript takes 48% of the CPU and kernel_tasks takes the rest. system together ends up between 90-100% of the CPU. When I look for parent processes for osascript I end up in kerne

  • Rows processed?

    Hi, May I know, how to capture the statistics of a running query in terms of rows/sec? If a procedure is running, which is actually selecting some set of data from a table and inserting into another. Is there a way to find out, how frequently its fet

  • AQ in Real Application Clusters

    Hello All! Help me please! How can I manage Nonpersistant Queues in Real Application Clusters environment, i.e. to bind np queue table to the specified instance? Thanks!