DW8 with ASP,ColdFusion,PHP

Just wondering if anyone else has had this problem with
Bardzell's fine book. In Chapter 10, Building the Tour
Descriptions, I can't build the first recordset where you SELECT *
FROM tbl_tours because I get an unidentified error. I managed to
isolate the error to the "exerciseReqd" column - when I browse the
table in phpMyadmin that row looks very odd with incomplete lines
and empty spaces in some fields. I simply deleted that column and
the recordset worked. Then I just continued on since its not
imperative for the lesson to have that column. Just wondering what
might have caused the problem.

What's the author's title and edition published with which
publisher? I am curious about that one and do bit of research.
Curious. Have you ever heard of David Powers' books called
"PHP Solutions" or PHP for Dreamweaver 8" which were published with
Apress (friends of ED). The book "PHP Solutions" recently published
and released to the booksellers only few weeks ago.
I highly recommend this world-class author David Powers. His
books are well-written, documented in a clear, concise with more
thorough, detailed steps in those two books.
I think you find his books are very useful tool/resource.
quote:
Originally posted by:
tbilly
Just wondering if anyone else has had this problem with
Bardzell's fine book. In Chapter 10, Building the Tour
Descriptions, I can't build the first recordset where you SELECT *
FROM tbl_tours because I get an unidentified error. I managed to
isolate the error to the "exerciseReqd" column - when I browse the
table in phpMyadmin that row looks very odd with incomplete lines
and empty spaces in some fields. I simply deleted that column and
the recordset worked. Then I just continued on since its not
imperative for the lesson to have that column. Just wondering what
might have caused the problem.

Similar Messages

  • Dreamweaver 8 with ASP, Coldfusion, & PHP

    I am new to php and I am trying to work thru Dreamweaver 8
    with ASP, Coldfusion and PHP Training from the Source. I have a
    real simple form. A user enters their first and last name then
    clicks the submit button. The form is then processed with a script
    using $_GET[first_name]; $_GET[last_name]; and it should display
    "Thank you, first_name last_name, for using my form." But the page
    show the html with a Notice: Undefined index: first_name in
    C:\htdocs\newland\test_form_processor.php on line 9. Line nine is -
    <p>Thank you, <?php echo $_GET['first_name']; ?>
    <?php echo $_GET['last_name']; ?>, for filling out my
    form.</p>. This was accomplished using the binding panel in
    DW. There is not any kind of trouble shooting in the book. Can
    someone tell me what this means? It worked like it is supposed to
    work when I had just the first name.

    Charles67 wrote:
    > I am new to php and I am trying to work thru Dreamweaver
    8 with ASP,
    > Coldfusion and PHP Training from the Source.
    I don't have a copy of that book. I wrote my own instead. ;-)
    > Notice: Undefined index: first_name in
    > C:\htdocs\newland\test_form_processor.php on line 9.
    Line nine is - <p>Thank
    > you, <?php echo $_GET['first_name']; ?> <?php
    echo $_GET['last_name']; ?>, for
    > filling out my form.</p>.
    It means that the first_name variable isn't being passed from
    the form.
    PHP is case-sensitive. Your form needs to look something like
    this:
    <form name="form1" id="form1" method="get"
    action="test_form_processor.php">
    <p>First name: <input type="text" name="first_name"
    id="first_name" /></p>
    <p>Last name: <input type="text" name="last_name"
    id="last_name" /></p>
    <input type="submit" name="submit1" id="submit1"
    value="Send" />
    </form>
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • DW8 with ASP, CF, & PHP (not so) "Live Data"

    I have been working through this book and it's great.
    However, the first time Mr. Bardzell didn't anticipate a potential
    problem and its probable cause --of which I'd had none up to this
    point-- was the first time I
    did. Whenever I try to turn on Live Data, DW returns and
    alert that reads:
    Dreamweaver could not properly convert the live page from the
    web server.
    The pages have been fine in the browser. So, I kept on going.
    now I'm in lesson 10 and he recommends checking dynamic input
    frequently. I've checked, rechecked, redone, reinstalled, and then
    did it all again--and a third time--NOTHING. And no mention of this
    problem in any of the forums, articles, books, help files, etc.
    Help please?!

    I have been working through this book and it's great.
    However, the first time Mr. Bardzell didn't anticipate a potential
    problem and its probable cause --of which I'd had none up to this
    point-- was the first time I
    did. Whenever I try to turn on Live Data, DW returns and
    alert that reads:
    Dreamweaver could not properly convert the live page from the
    web server.
    The pages have been fine in the browser. So, I kept on going.
    now I'm in lesson 10 and he recommends checking dynamic input
    frequently. I've checked, rechecked, redone, reinstalled, and then
    did it all again--and a third time--NOTHING. And no mention of this
    problem in any of the forums, articles, books, help files, etc.
    Help please?!

  • Slight roadblock in "DW 8 with ASP, ColdFusion, and PHP: Training from the Source"

    I'm working my way through Dreamweaver 8 with ASP,
    ColdFusion, and PHP:
    Training from the Source. I've come to the middle of Lesson 6
    and have hit
    my first obstacle in learning PHP. I'm following the
    instructions to format
    the output of the tour price calculator, but my issue is with
    where to place
    the following PHP code: <?php setlocale(LC_MONETARY,
    'en_US'); echo
    money_format('%i', $tourPrice); ?>
    I placed it before the DOCTYPE and when that didn't work, I
    tried inserting
    right before the code that retrieves the tour price (in the
    body of the
    page). That didn't work either.
    I also tried changing money_format to number_format and
    manually inserting
    the $, but when I tested everything, the output printed as
    follows:
    The estimated cost of your tour is
    $0.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000500.
    I'm not quite sure where I've gone wrong.
    Thanks for any help,
    Heather

    Coach Bob wrote:
    > David,
    >
    > I would like to understand better your comment about the
    money_format. The
    > ability to use it is dependent on the host system's
    support of the C library
    > function strfmon(), correct? So if a user were
    developing on a windows box with
    > a local WAMP install it would not work while it may work
    on their *nix-based
    > Web host?
    Check the PHP documentation - it tells you all you need to
    know:
    http://www.php.net/manual/en/function.money-format.php
    > I will see to it that it gets corrected in the next
    version of the book!
    I've no idea what relationship you have with "Training from
    the Source",
    but I find it interesting - to say the least - that you need
    to the ask
    the author of a rival book.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Missing File - Adobe Dreamweaver CS3 with ASP, Coldfusion, and PHP

    On page 263 of Adobe Dreamweaver CS3 with ASP, Coldfusion,
    and PHP by:Jeffrey Bardzel and Bob Flynn the file called
    countryDetailXML.asp is missing. How can I find that file? Any
    idea?
    Thanks for your help.

    @citaiz,
    That file is created earlier in the lesson in an exercise
    starting on page 257. For the sake of the lesson, you can use
    countryDetail.xml that is included in the lesson 09 start folder.
    It is not important for this lesson that the XML is a static file
    or one generated in real time from the database. The version of
    Spry (1.4) that shipped with DW CS3 used XML data only. The current
    version (1.6.1) can use JSON and HTML tables for the data source as
    well. You can get the latest version of Spry for free at
    http://labs.adobe.com/technologies/spry/,
    including an extension to update your copy of DW to the latest
    version.
    Bob Flynn

  • Adobe Dreamweaver CS3 with ASP coldfusion and PHP search?

    I am working through Adobe Dreamweaver CS3 with ASP
    coldfusion and PHP with the intent of creating a data base site
    that primarily requires a search engine on the index page. The
    search page in the book uses specific search criteria ensuring that
    there will always be a match to the data base but I need to create
    an input text field search engine. My Q, if there is no data within
    the data base that match the variable, will it return with an error
    requiring an argument in the code to respond to no matching data.
    Hopefully there are comprehensive online recourses for these search
    engines as they are so common. I am a complete newby to all aspects
    of web development and code so it will need to be a thorough
    explanation, an idiots guide. ANY HELP GREATLY APPRECIATED

    Rob,
    Let me try to answer your questions, understanding that my
    answers are laced with my experience and therefore my bias.
    1. For the most part the SQL that you write for Access, MS
    SQL or MySQL is going to be the same. I won't make that claim about
    Oracle or PostgreSQL because I have limited or no experience in
    those areas. To be sure when you head down the road with any DBMS
    there are finer points on 'value added' features (to over simplify
    things like MS SQL's Transact SQL), but for the most part when you
    are pulling out, inserting or deleting records the SQL that you
    write will be the same. In fact, I don't think I had to make any of
    the SQL in the book different to deal with the back end db.
    2. As for your host steering you away from MySQL, I don't
    know why that would be. It is MUCH more stable and robust than
    Access for web development. My research showed that you can use
    MySQL just fine with ASP though that clearly wouldn't be
    Microsoft's first choice.
    3. A quick aside, the fact that you are building ASP on a Mac
    would seem to indicate that you are developing on your production
    server. That's never a good idea. Go local if you can. If you have
    a newer Intel Mac you can use VM Fusion, Parallels or even Boot
    Camp to run Windows in a virtual environment and develop there,
    only moving your code to production when you are happy with it.
    There is of course the fact that they two environments would not be
    identical and you may need to change a few references, but it is
    still a better practice than developing on your live site. Some web
    hosts give you the ability to set up a subdomain. If yours does,
    you could set one up with a duplicate of your site and develop
    there.
    4. Let me try to pull your 'rant-let' apart into two issue. I
    begin with a question. I'm not sure what the Mac part has to do
    with it. The primary language I work in at my day job is
    ColdFusion. The majority of the most serious developers I know in
    the CF world work on Macs. I am forced into the PC world because of
    a cultural bias at the business school where I work. Having said
    that, the only time I have felt there was ANY difference in the
    tools, resources, choices I had was in any way affected by platform
    was when Adobe still had not released Flex Builder 2 for the Mac.
    Now that is behind us as well. This reaction of mine may be based
    on the fact that Access never comes into play in the work that I
    do. I regularly work with MS SQL and MySQL. (OK, so SQL Enterprise
    Manager, the MS tool of choice to talk to MS SQL is Windows only,
    but I only use that at the day job. But even there you can find
    cross-platform, free tools like Aqua Data Studio to talk from a Mac
    to MS SQL.) If I'm missing your point on the Mac, please let me
    know. Since the advent of the Intel Mac I think it is hands-down
    the best choice for a web developer. You can have Mac, Windows and
    Unix all on one machine. It doesn't get any better (providing you
    have the RAM :-)).
    As for the security question, it is somewhat analogous to the
    war on viruses and spyware. As the defenses get better, so do the
    attacks. Most languages have developed functions for vetting user
    input variables and best practices for building these things. It is
    mainly a user education issue. When I took over the book you are
    working out of, the one thing Jeffrey told me it needed was more
    security. I did my best to put more in under the constraints of the
    publisher. They didn't want the book to be any longer than the
    previous version. I did my best to modify the code used to include
    "string safe" functions and to add verbiage about the importance of
    security. It was clear that I could not add as much as was needed
    and I said so in the book. Much more is needed for a serious
    treatment of the subject and not acknowledging that would have been
    a disservice to the readers. I've been working as a developer for
    over a decade and I don't know all there is to know about it. It's
    a constantly changing field, just like all of web development. In
    fact next week I'm going through a 2-day SANS Web Application
    Security workshop in hopes of learning more. So at the risk of
    sounding like an industry apologist, I don't think it's a
    shortcoming of the development community. It is, as they say, "a
    developing situation".
    HTH,
    Bob
    http://bobflynn.info/

  • Need help on integrating htmldb with asp/jsp/php

    Hello there, we have a few existing htmldb applications running at the moment, and now we would like to develop some asp/jsp/php applications. However there is one issue we still haven't solved yet, which is the SESSION(Login) problem. We don't know how the session is being generated, how to pull out session values manually from db etc etc.
    If you have done this before or any ideas, will be much appreciated.
    Thanks very much
    James

    James,
    sometimes it makes sense to look at these things from a different (and broader) perspective.
    Especially in a context of a corporation it makes sense to use a Single Sign On (SSO) server for authentication (usually against LDAP) . Something like Netegrity Siteminder, Oracle SSO Server (as part of Oracle Internet Application Server) or something similar.
    Then you could have all your applications use the authentication method of the SSO server which will keep track of the valid session and the applications that participate in the SSO context.
    On the Apex side you would have to write a custom authentication scheme to leverage that functionality, the session handling will no longer be of any concern to you.
    Just a different way to look at it.
    ~Dietmar.

  • Adobe DW CS3 with ASP, Coldfusion, and PHP Training book - problem.

    Hi
    I have been creating a site and using the DW CS3 'Training
    from the Source' book by Jeffrey Bardzell and Bob Flynn as the
    tutorial text.
    Basically - I have an .asp form that collects data into
    fields, which are validated using the DW validate form funstions,
    then passes the data to another .asp page that emails the data to
    me.
    All works well for me and for a lot of people I have used to
    test the site....
    BUT
    I am getting some people whose data is obviously NOT being
    captured or passed - as teh Emails are blank. I can't ask them what
    browsers they are using - as their Email address should be in the
    Data !!
    I did try the form with the Javascript Disabled in my browser
    - and the validation then failed to work - but the data still did
    get sent.
    1. If Javascript is disabled - how can I get the validation
    to work?
    2. Is there any other reason that my data may be getting lost
    Thanks in Advance
    Phil

    PhilAJ,
    quote:
    Surely if DW is creating this then it should aways work ?
    It would be nice, wouldn't it? ;-)
    There are two basic types of validation - client-side and
    server-side.
    Client-side validation uses JavaScript, in this case the code
    that DW generates, but you are dependent on the user's browser
    settings. It happens on the user's machine before anything is sent
    back across the Internet to your web server. If they want to turn
    off JS, they can.
    Server-side validation takes place on the server with the
    data sent from the user. webpro2k has provided you with a nice bit
    of code to test whether those fields come in blank. If they do, you
    can decide what to do with the user's interaction. Instead of the
    Thank You page, or wherever you may have sent them after a
    successful submission, you could send them back to the form
    indicating the fields they neglected to fill out and pre-populating
    those they already filled out with the data from the first
    submission.
    Best practice is to do both client-side (in theory it reduces
    user frustration if done right.) and server side (to ensure clean
    data). It takes a little extra work. You know your audience and
    your needs, so you can do the cost/benefit analysis.
    Regards,
    Bob

  • Dreamweaver 8 with ASP, ColdFusion and PHP Downloads

    Hi,
    I wondered if anyone new if there is anywhere to download the accompanying files (off the CDROM)? I can't find anywhere on the Adobe site where you can.
    I purchased the book from Oxfam Bookstore and the CD is snapped in two pieces but I'd obviously like to follow the tutorials.
    Thanks

    That's quite an old book, so I don't know if there's still any support for it. I wrote the most recent version: "Adobe Dreamweaver CS5 with PHP: Training from the Source". The files for my book are not freely available for download, so I suspect the same is true of the Dreamweaver 8 version.
    According to the publisher's website, you can request a replacement CD from [email protected] However, I wouldn't hold out much hope of getting a replacement for an old book that was bought from a charity shop. Sorry.

  • Dreamweaver 8 with ASP, ColdFusion, and PHP

    I'm having trouble with diplaying multiple recordsets. I did
    everything that the book told me to do, but it doesn't work. I just
    got done with the tours.asp and it works fine. Now I'm working on
    the index.asp. rs_journal comes up fine, but when I add the
    rs_worldregions, the page won't come up. I even uploaded the
    finished sample of index.asp that came with the book and that
    didn't work.
    Has anyone read this book and have the same troubles?

    This is what the code looks like.
    <%@LANGUAGE="VBSCRIPT"%>
    <!--#include file="Connections/conn_newland.asp" -->
    <%
    Dim rs_journal
    Dim rs_journal_numRows
    Set rs_journal = Server.CreateObject("ADODB.Recordset")
    rs_journal.ActiveConnection = MM_conn_newland_STRING
    rs_journal.Source = "SELECT journalID, journal_entry FROM
    tbl_journal ORDER BY journalID DESC"
    rs_journal.CursorType = 0
    rs_journal.CursorLocation = 2
    rs_journal.LockType = 1
    rs_journal.Open()
    rs_journal_numRows = 0
    %>
    <%
    Dim rs_worldregions
    Dim rs_worldregions_numRows
    Set rs_worldregions = Server.CreateObject("ADODB.Recordset")
    rs_worldregions.ActiveConnection = MM_conn_newland_STRING
    rs_worldregions.Source = "SELECT * FROM tbl_region ORDER BY
    regionName ASC"
    rs_worldregions.CursorType = 0
    rs_worldregions.CursorLocation = 2
    rs_worldregions.LockType = 1
    rs_worldregions.Open()
    rs_worldregions_numRows = 0
    %>
    <%
    Dim Repeat1__numRows
    Dim Repeat1__index
    Repeat1__numRows = -1
    Repeat1__index = 0
    rs_worldregions_numRows = rs_worldregions_numRows +
    Repeat1__numRows
    %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <title>Newland Tours</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <link href="css/newland.css" rel="stylesheet"
    type="text/css" /></head>
    <body>
    <table width="750" border="0" cellpadding="3"
    cellspacing="0">
    <tr>
    <td colspan="2" width="470"><img
    src="images/banner_left.gif" width="451" height="68" alt="Newland
    Tours Banner, Left." /></td>
    <td width="280"><img src="images/banner_right.jpg"
    width="276" height="68" alt="Newland Tour Banner, Right."
    /></td>
    </tr>
    <tr valign="top">
    <td width="180"> </td>
    <td width="290"> </td>
    <td width="280"> </td>
    </tr>
    <tr valign="top">
    <td width="180" bgcolor="#DCDFD9">
    <p class="navhead">Explore the Site</p>
    <p>
    <a href="about.asp">About Newland
    Tours</a><br />
    <a href="tours.asp">Find Tours</a><br />
    <%
    While ((Repeat1__numRows <> 0) AND (NOT
    rs_worldregions.EOF))
    %>
      <a
    href="tours_detail.asp?regionID=<%=(rs_worldregions.Fields.Item("regionID").Value)%>"><%= (rs_worldregions.Fields.Item("regionName").Value)%></a><br
    />
    <%
    Repeat1__index=Repeat1__index+1
    Repeat1__numRows=Repeat1__numRows-1
    rs_worldregions.MoveNext()
    Wend
    %>
    <a href="profiles.asp">Country
    Profiles</a><br />
    <a href="contact.asp">Contact an
    Agent</a></p>
    <p><br />
    &copy; 2003 Newland Tours</p>
    </td>
    <td width="290">
    <p>Operating since 1968, Newland Tours offers an array
    of travel tours. Whether you love hiking in exotic locations or
    want to get the most out of your retirement, Newland Tours has a
    package for you.</p>
    <p><img src="images/title_featured_vacation.gif"
    width="276" height="25" alt="Featured Vacation." /></p>
    <p><img src="images/temple_small.jpg" width="72"
    height="90" align="left" alt="Heian Jingu Shrine, Kyoto
    Prefecture." /><strong>Highlights of
    Japan</strong></p>
    <p class="caption"> Image: Heian Jingu Shrine, Kyoto
    Prefecture</p>
    <p>Get a taste for Japan's diversity, from the
    serenity of its shrines to the chaos of urban life. Meet
    &quot;Fuji-san,&quot; Japan's highest mountain at 12,387
    feet, visit temples, walk through gardens, and browse in Japan's
    most elegant shopping districts.</p>
    <p>
    Only $1,199/adult and $899/child USD.
    </p>
    </td>
    <td width="280"><p><img
    src="images/title_travelers_journal.gif" width="276" height="25"
    alt="Traveler's Journal." /></p>
    <img src="images/icon_tj.gif" width="81" height="81"
    align="right" "Traveler's Journal logo."
    /><%=(rs_journal.Fields.Item("journal_entry").Value)%></td>
    </tr>
    </table>
    <br />
    <br />
    </body>
    </html>
    <%
    rs_journal.Close()
    Set rs_journal = Nothing
    %>
    <%
    rs_worldregions.Close()
    Set rs_worldregions = Nothing
    %>

  • DW MX 2004 with asp, coldfusion, and php lesson 1

    Started Jeffrey Bardzell's book, and sorry, I think I can
    struggle through it even though I know little about html. In the
    very first lesson I am already stumped. I am hoping there is a
    simple setting that needs to be changed. In pasting text from the
    contact document into the contact page, DW is supposed to
    automatically enter the paragraph and line breaks, according to the
    book. Mine doesnt. I have tried numerous times and the
    pre-formatted text pastes in and becomes one big running paragraph.
    What am I doing wrong?

    PhilAJ,
    quote:
    Surely if DW is creating this then it should aways work ?
    It would be nice, wouldn't it? ;-)
    There are two basic types of validation - client-side and
    server-side.
    Client-side validation uses JavaScript, in this case the code
    that DW generates, but you are dependent on the user's browser
    settings. It happens on the user's machine before anything is sent
    back across the Internet to your web server. If they want to turn
    off JS, they can.
    Server-side validation takes place on the server with the
    data sent from the user. webpro2k has provided you with a nice bit
    of code to test whether those fields come in blank. If they do, you
    can decide what to do with the user's interaction. Instead of the
    Thank You page, or wherever you may have sent them after a
    successful submission, you could send them back to the form
    indicating the fields they neglected to fill out and pre-populating
    those they already filled out with the data from the first
    submission.
    Best practice is to do both client-side (in theory it reduces
    user frustration if done right.) and server side (to ensure clean
    data). It takes a little extra work. You know your audience and
    your needs, so you can do the cost/benefit analysis.
    Regards,
    Bob

  • File upload with 'asp vb' backend

    Hello,
    I am trying to get file uploading with flex (flash buider) working. There are plenty of examples with a php backend, but i need the script for a 'asp vb' backend.
    I' ve tried lots of different approaches but can't get it right. Someone out there with a solution?
    Thanx!!

    Believe it or not I have to do this also.
    I have legacy ASP code that uses ASPUpload that I'd like to get working with my Flash CS5 and FlashBuilder Burrito front-ends.
    it's just multipart encoded.
    So, if you first test it with ASPUpload and a simple form, trying just FILE1 first, and it works with ASP backend then tackle the FlashBuilder side with some debugging.
    ASPUpload is still an extremely embedded component on tens of thousands if not more sites, and it was just updated, but I think the previous version just before this update, the one that's out there in code on so many sites, that is what Flash needs to work with.
    ASPUpload is doing its part, as it follows all the multipart encoded RFC rules and has worked for years.
    I'd love to join you in finding out what's going on here.
    This is a long-standing issue.
    I've done PHP also.  But again, enhancing an interface with FlashBuilder4 or Burrito, to integrate with working legacy code makes it hard when something is not working on the Flash side (it appears anyway) as ASPUpload form posts are extremely easy.

  • Help needed with .asp files

    I am not sure what I am asking or what I need to do, so please bear with me, thanks.
    I am helping out with a site that has one dynamic page utilizing a database with an .mdb extension.
    Previously hosted on a site with ASP (not sure which version).
    New host has MySQL with PHP (?)
    I would like to be able to rework the one dynamic page in DW, using .php. I am not able to upload the .mdb file to my localhost MySql area.
    It all comes down to the database.....
    Is there a way to convert the .mdb file to one with an .sql extension?
    Or am I taking the wrong approach?
    Thanks,
    Melissa

    >Previously hosted on a site with ASP (not sure which version).
    >New host has MySQL with PHP (?)
    Are you sure the host doesn't also support .asp?
    >I  would like to be able to rework the one dynamic
    >page in DW, using .php.  I am not able to upload the
    >.mdb file to my localhost MySql area.
    An mdb file is MS Access. There are conversion utilities that will convert between the two dbms's, but if the schema is not complex you can simply build the new database in MySQL, export the data from access and then import it.

  • How to send some text to an ASP or PHP page?

    How to send some text to an ASP or PHP page with HTTPService?
    I'll store the submitted text to database through the page.
    Thanks!

    Set up an HTTPService. the xml inside the mx:request area
    will be passed using the method you define in the httpservice tag.
    <mx:HTTPService id="serviceName"
    url="
    http://www.site.com/page.php"
    useProxy="false" method="POST" showBusyCursor="true" >
    <mx:request>
    <val1>value 1</val1>
    <val2>value 2</val2>
    <val3>value 3</val3>
    </mx:request>
    </mx:HTTPService>

  • Is it possible to execute a ASP/CGI/PHP script thru sockets?

    hi,
    i was wondering whether it is possible in Java to pass data and execute ASP/CGI/PHP script on demand thru sockets (suppose a port has been specified by both sides) and how? i know this is possible thru the urlConnection, but how about sockets? these scripts could be stored in specific directories on the server.
    thanks!!!

    hi,
    i was wondering whether it is possible in Java to pass
    data and execute ASP/CGI/PHP script on demand Yes, completely it's possible!
    If you need to access ASP/CGI/PHP/Servlet/JSP thru' Java program, you can refer:
    http://developer.java.sun.com/developer/qow/index.jsp
    [after a week: http://developer.java.sun.com/developer/qow/archive/index.html
    and look for 'Can I send an HTTP request to a servlet from a normal class without having to use a browser to send the HTTP requests?']
    -and that's the QOW [Question Of the Week]!
    thru sockets (suppose a port has been specified by both
    sides) and how? When you say, a port has been specified on both sides,
    then it becomes, a NET/Socket programming and you
    need to use the 'net' package for the same.
    i know this is possible thru the urlConnection, 'possible' means, it's assumed that u're invoking the 'script' thru' a web-server!
    And u still use 'http://...' protocol to achieve the same; and u're NOT
    directly accessing the script file as "file:\\network-host\root\files\abc.jsp"
    but how about sockets? these scripts
    could be stored in specific directories on the
    server.It's not at all possible to 'invoke' those 'scripts' directly, by
    using sockets; If you know that they're existing in one
    particular directory of a network system, all you can do is
    you can read the file content thru' socket, but you can't
    make it become 'alive' and it would not dance for u!
    Because, if there is a 'script' [PHP/ASP/CGI/JSP] that is
    meant for dancing, then the stage for dancing is provided
    by the web-server environment which starts the appropriate
    server-side process that can understand and interpret the
    given script! And all we can do is asking the web-server
    to pull the 'script' to the stage and dance for you! But,
    the 'asking' the webserver can be done thru' browser or
    a URLConnection! If what you want to do would have been
    possible, then, just with FTP we could have achieved the same!
    Easy Go Jolly Java!
    -RK

Maybe you are looking for

  • IMac won't open certain web sites

    I am running OS X 10.10.2 on a mid 2011 iMac. I cannot open netflix, google, you tube, or (some?) .gov websites. I'm sure there are others. I am getting the "Failed to Open Page" "...unexpectedly dropped the connection". I had been trying to fix some

  • How does this support **** works?

    Who can help? thx

  • If changing the hostname of the Audit Vault Server version 12.1.2 please wait until the system reboots automatically.

    Hi everyone when changing the hostname of an AV Server in the newly released version 12.1.2, it can take up to 10 minutes from the time a user click ok on the pop-up message "Are you sure you want to reboot the Audit Vault Server for the changes to t

  • Gathering histogram manually in oracle

    Hi, I need to create the histrogram manually in oracle 10g DB. When i execute the following pl/ sql block i was getting the "PLS-00306: wrong number or types of arguments in call to 'PREPARE_COLUMN_VALUES'". I want to pass the V_arr value from test2

  • New issue with Safari

    Looking at the console I just noticed a high number of messages that look like this: Does anyone have any idea of what can be happening? I disabled as many personal settings as I could and stopped using multiple desktops and kept activity to the bare