PHP Arrays in Dreamweaver

Hi,
First off, I hope this is the proper place to post this
question... I've been looking all over for an answer and have yet
to find one.
I'm currently working on a project where I need to submit an
array of intergers into a database. The user makes a number of
selections on a form of check boxes, the form is submitted, and an
array (should be) stored in a column within my database. I'm
currently having issue though with only the value of the final
checked box appearing in my database. I'm wondering if anyone can
help as I've checked all over and can not find an appropriate
answer. Thank you in advance.

sacomoney wrote:
> I'm sure it's not overly complicated but I
> guess I'm just not ready to grasp it yet.
It's not overly complicated, but you have come face-to-face
with a
common problem: it appears that you're relying on Dreamweaver
to
generate PHP for you without really understanding how the
code works.
Once you start doing anything not covered by the basic server
behaviors,
you need to have a good knowledge of PHP in order to adapt
the code
successfully. You have made a brave attempt, but it won't
work like that
in a million years.
The code that I gave you needs to go at the top of the page
like this:
<?php
if (isset($_POST['cb_minorcat'])) {
$_POST['cb_minorcat'] = implode(',', $_POST['cb_minorcat']);
} else {
$_POST['cb_minorcat'] = null;
?>
Then you need to change the code created by Dreamweaver from
this:
GetSQLValueString($_POST['cb_minorcat'] ? "true" : "",
"defined","'Y'","'N'")
to this:
GetSQLValueString($_POST['cb_minorcat'], "text")
Dreamweaver's GetSQLValueString() function prepares the form
values for
safe insertion into the database. What the first block of
code does is
change the array into a string. Therefore, you need to pass
$_POST['cb_minorcat'] to GetSQLValueString() as text.
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS4",
"PHP Solutions" & "PHP Object-Oriented Solutions"
http://foundationphp.com/

Similar Messages

  • Are there php differences from dreamweaver 8 to 11.5?

    I have just upgraded from dreamweaver 8 to 11.5.  I would call myself somewhat of a newbie with dreamweaver actually.
    The scripts I have been working on were existing and I have been making changes just fine with dreamweaver 8.  Now that I
    have upgraded, it seems that all the pages are pretty much broken.  The inital html page works ok, but once it tries to run the
    php code and create the dynamic page, I get what looks like my php code being displayed on the page.  Is there somewhere
    to go read about changes that might be needed when migrating from dreamweaver 8 to dreamweaver 11.5?
    Thanks!
    Patty

    Which part isn't true?
    1. I created a new php page in Dreamweaver CS5.5
    2. I created two new recordsets
         a. Here is the code:
    newFindCommand('CATEGORY'); $Section_findCriterions = array('cat_ID'=>'*',); foreach($Section_findCriterions as $key=>$value) { $Section_find->AddFindCriterion($key,$value); } $Item_find = $Rani->newFindCommand('ITEM'); $Item_findCriterions = array('cat_ID'=>'=='.fmsEscape($_REQUEST['cat_ID']),); foreach($Item_findCriterions as $key=>$value) { $Item_find->AddFindCriterion($key,$value); } fmsSetPage($found_records_find,'found_records',10); fmsSetPage($Section_find,'Section',10); fmsSetPage($Item_find,'Item',10); fmsSetPage($Sections_find,'Sections',10); $Item_result = $Item_find->execute(); $Section_result = $Section_find->execute(); if(FileMaker::isError($found_records_result)) fmsTrapError($found_records_result,"error.php"); if(FileMaker::isError($Section_result)) fmsTrapError($Section_result,"error.php"); if(FileMaker::isError($Item_result)) fmsTrapError($Item_result,"error.php"); if(FileMaker::isError($Sections_result)) fmsTrapError($Sections_result,"error.php"); fmsSetLastPage($found_records_result,'found_records',10); fmsSetLastPage($Section_result,'Section',10); fmsSetLastPage($Item_result,'Item',10); fmsSetLastPage($Sections_result,'Sections',10); $Item_row = current($Item_result->getRecords()); $Section_row = current($Section_result->getRecords()); $found_records_row = current($found_records_result->getRecords()); // FMStudio Pro - do not remove comment, needed for DreamWeaver support ?>     getRecords() as $Section_row){ ?>
    Section
    getField('name'); ?>
    3. I uploaded the file and tried to preview. a. Here is the error message: Parse error: syntax error, unexpected T_VARIABLE in /home8/thrpsdes/public_html/rani2011/Testing.php on line 1 4. I went to the remote server and downloaded the page. a. here is the code: newFindCommand('CATEGORY');$Section_findCriterions = array('cat_ID'=>'*',);foreach($Section_findCriterions as $key=>$value) { $Section_find->AddFindCriterion($key,$value);}$Item_find = $Rani->newFindCommand('ITEM');$Item_findCriterions = array('cat_ID'=>'=='.fmsEscape($_REQUEST['cat_ID']),);foreach($Item_findCriterions as $key=>$value) { $Item_find->AddFindCriterion($key,$value);}fmsSetPage($found_records_find,'found_records' ,10); fmsSetPage($Section_find,'Section',10); fmsSetPage($Item_find,'Item',10); fmsSetPage($Sections_find,'Sections',10); $Item_result = $Item_find->execute(); $Section_result = $Section_find->execute(); if(FileMaker::isError($found_records_result)) fmsTrapError($found_records_result,"error.php"); if(FileMaker::isError($Section_result)) fmsTrapError($Section_result,"error.php"); if(FileMaker::isError($Item_result)) fmsTrapError($Item_result,"error.php"); if(FileMaker::isError($Sections_result)) fmsTrapError($Sections_result,"error.php"); fmsSetLastPage($found_records_result,'found_records',10); fmsSetLastPage($Section_result,'Section',10); fmsSetLastPage($Item_result,'Item',10); fmsSetLastPage($Sections_result,'Sections',10); $Item_row = current($Item_result->getRecords()); $Section_row = current($Section_result->getRecords()); $found_records_row = current($found_records_result->getRecords()); // FMStudio Pro - do not remove comment, needed for DreamWeaver support ?>getRecords() as $Section_row){ ?>
    Section
    getField('name'); ?>
    So what isn't true?
    John Vellela
    3rd Planet Studio
    358 Chestnut Hill Ave
    Suite 204b
    Brighton, MA 02135
    617.739.2306 fax: 617.566.3141
    www.3rdplanetstudio.com

  • Using PHP files in Dreamweaver?

    When I create a new PHP file in Dreamweaver the code is the same as an HTML file, shouldn't be different? with php commands or something?
    Thanks

    When I create a new PHP file in Dreamweaver the code is the same as an HTML file, shouldn't be different? with php commands or something?
    Not unless you add them.  PHP is a server-side programming language.  PHP web pages are no different than HTML pages except that they can parse data on the server.  With the right include statements or commands, PHP or ASP pages can publish information from server-side databases to form a dynamically driven web site.
    BUILDING DYNAMIC SITES in DW
    Set up a local testing server in Adobe Dreamweaver CS4
    http://www.adobe.com/newsletters/edge/december2009/articles/article2/index.html
    Setting up a PHP development environment for Dreamweaver
    http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php_05.html
    Building your first dynamic website – Part 1: Setting up your site and database connection
    http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Php classes in dreamweaver?

    hi,
    is it possible to use php classes, includes, extends etc. in
    dreamweaver? i learned to program in php at school this way, but at
    my work (training cource) i have to use dreamwaver, including its
    behaviours, so other people can change my pages using the design
    mode of dreamweaver.
    What i would like is to make php classes with dreamweavers
    behaviors in it, and that those are showed in the design mode, and
    could be changed. (i know the live data function, but i cant edit
    in it.)
    an other thing that chould change i think is the way html is
    build up in php by dreamweaver, becouse everytime closing and
    opening php is not the way it should be in php. i hope i could get
    some advice here.
    Bart

    VolgensBartjes wrote:
    > is it possible to use php classes, includes, extends
    etc. in dreamweaver?
    You can write and use any PHP code in Dreamweaver. You can
    also edit the
    PHP code generated by Dreamweaver server behaviors. However,
    once you
    edit the server behavior code, you can no longer control the
    server
    behaviors through the Dreamweaver dialog boxes.
    David Powers
    Adobe Community Expert, Dreamweaver
    http://foundationphp.com

  • Further details on Unable to save php file in dreamweaver.

    setting up a php site in dreamweaver.
    I am taking a class in PHP. I am following instructions to set up my work environment in Dreamweaver. I am using an Imac, dual core, running snow leopard, and have loaded xampp onto my machine. Dreamweaver version CS3.
    Class instructions say to set up my local site with following path: Applications/xampp/htdocs. My DW wants me to use : instead of /, so when I set up the local site, this is what my path looks like. Macintosh HD:Applications:XAMPP:xamppfiles:htdocs:
    When I try to save my first page, as a .php, I get the following error message: Access to MacintoshHD:applications:XAMPP:xamppfiles:htdocs:hello.php was denied. I get this error message on both of my macs, so it is a problem in my path, not individual to my machine.
    There is something wrong with my path, but I don't know what it is. I cannot create path with / instead of :, DW won't allow it. I tried creating a path exactly as instructed in the lesson, but that did not help. I don't know what I am missing because I am just starting so I don't know what to look for. Any thoughts? Thanks in advance....

    You should setup the built-in php instead of xampp on Snow Leopard. Look here for more info
    http://DwFAQ.info/home.php?id=18
    Then when you setup your local site use HD_Name:Users:User_Account_Name:Sites:Website_Folder:

  • Can we design professional PHP websites in Dreamweaver CS6 ?

    Can we design professional PHP websites in Dreamweaver CS6 ?

    Dreamweaver is not a professional PHP IDE (integrated development environment). As such, it lacks PHP debugging capabilities and other features that a nice IDE has.
    But you can code PHP in Dreamweaver, and it does have pretty good PHP syntax checking. So yes, you can create a PHP website using Dreamweaver.
    A lot depends on what exactly you mean by "professional PHP website" and what your programming skill level is. The fact that you are asking this question tells me that your coding skills must not be great, because if they were, you would not need to ask this question. Dreamweaver is a much "friendlier" environment than a PHP IDE. You might find a PHP IDE like ZEND Studio to be overwhelming, in which case Dreamweaver would be your better choice.

  • Problem displaying php page in dreamweaver

    I am having problems displaying php scripting on dreamweaver.
    Need your advice.
    Installed dreamweaver 8, Coldfusion 7, mysql, php5.2 (using
    windows installer).
    Created file test.php ror testing containing
    <!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>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    </head>
    <body>
    date is:<b><?php echo Hello ?></b>
    </body>
    </html>

    ulises_arsi wrote:
    > I am having problems displaying php scripting on
    dreamweaver.
    Tell us what the problems are.
    > Installed dreamweaver 8, Coldfusion 7, mysql, php5.2
    (using windows installer).
    PHP needs to be configured with a web server, such as Apache
    or IIS.
    ColdFusion is also a webserver, but as far as I know, it
    cannot be
    configured to serve PHP pages.
    > date is:
    <?php echo Hello ?>
    The only thing that would display is an error message. Hello
    needs to be
    enclosed in quotes:
    <?php echo 'Hello'; ?>
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • Bind PL/SQL array to PHP array

    Hi all!
    I try to bind a PL/SQL array (nested tables, index by integer) returned by a PL/SQL-function to an PHP array.
    Here is the code:
    create or replace package MyPackage as
    TYPE my_type IS TABLE OF VARCHAR2(1024);
    FUNCTION MyFunction RETURN my_type;
    end MyPackage;
    create or replace PACKAGE BODY MyPackage is
    FUNCTION MyFunction RETURN my_type IS
    t_docs my_type;
    begin
    t_docs := my_type('val0','val1','val2');
    return t_docs;
    end MyFunction;
    end MyPackage;
    In the PHP-code ist looks like this
    $query = "begin :vals := MyPackage.MyFunction; end;";
    $stmt = oci_parse ($conn, $query);
    oci_bind_array_by_name($stmt, ":vals", $vals_array, 5, 512, SQLT_CHR);
    oci_execute ($stmt);
    Output:
    PLS-00382: expression is of wrong type. Error in Line....
    This error point to
    begin :vals := MyPackage.MyFunction; end;
    ^^^
    Questions:
    Is it generally possible to bind a pl/sql array to a php array? Or only the other was around?
    Could you please post a snipet of code how to do it the right way :-)
    Thanks a lot for your help! Christian

    As you noted, you can't return a PL/SQL array and map it to a PHP array when it is a record type. Likewise, you can't map an object type to a PHP array. You can return a reference cursor through PL/SQL, and then fetch the function result with oci_fetch_assoc($rc).
    Alternatively, you can return an object type collection or a pipelined table function result into PHP. It's a bit long but you'll find examples on my blog. Start here, and there's a link to a full discussion of pipelined table functions:
    http://blog.mclaughlinsoftware.com/2009/03/19/beats-a-reference-cursor/
    This is an object table example, which you may prefer over pipelined table functions:
    http://blog.mclaughlinsoftware.com/2009/03/23/object-record-collections/
    Hope this helps.

  • How to store spry data in php array

    I am trying to store spry data in php array like this:
    <? $foo= array();?>
      <div spry:region="dsCALC">
        <div spry:repeat="dsCALC">
          <?php
    $foo[]='{dsCALC::DataPrice}';
    ?>
          </div>
      </div>
    <?var_dump($foo);?>
    Outputs:
    Array (     [0] => {dsCALC::DataPrice} )
    If I tried a variable, it works ok... The array, not... Any ideas?

    Outputs:
    Array (     [0] => {dsCALC::DataPrice} )
    And so it should, because that is what you told the PHP-script to do in the following line of code.
    $foo[]='{dsCALC::DataPrice}';
    Please remember that PHP code is handled on the server, whereas JavaScript (Spry) is handeld on the client (browser) end. JavaScript cannot be handeld by PHP nor can JavaScript handel PHP.
    My question to you is, why do you want to store the data in a PHP-array and how is the Spry data obtained?
    Ben

  • Import PHP-Array into Java-Application

    Hi!
    I want to call a PHP-Script from inside my Java-Application. The PHP-Script can return an array.
    How do I use a PHP-Array in Java and how do I import it????
    Thanks! =)

    thanks! =D
    one last question:
    -how would i have to change my example to make a
    https-connection?
    Did you try
    URL theURL = new URL("https://www.mysite.com/myscript.php");It works that simply. The only complication is if your server is set up for https or not. This is an Apache (or whatever webserver you are using)problem not a PHP problem.
    I think it gets upset if you try and use certificates with problems (self-signed etc) but not having tried this (I have only used it with certificates that are otherwise trustable) I don't know that for sure.
    Once upon a time I asked a question about using https as a client in Java and I got a variety of answers including doing mystic stuff with my keystore but I tried the simple and obvious and it works like a charm. At least from an Applet but I see no reason an application won't work the same way.
    Anyway try the simple and easy and see if that works for you. You might find that it does.

  • Make Checboxes In To Array In Dreamweaver (PHP)

    Hi guys, am designing a seat reservation system. i want the check boxes to represent the seats
    I want to know how to make each check boxes into array and how to group all the check boxes in a single canvas so that it will store multiple values in one single variable in the database column. there are other texboxes that i want to insert in the same form to get the use booking details.
    If am gona store multiple value in one column how do i identify the check box group?
    Dreamweaver PHP
    <form id="Bookings" name="Bookings" method="post" action="">
      <p>
        <input type="checkbox" name="A1[]" value="1" id="A1[]" />
        <input type="checkbox" name="A2[]" value="2" id="A2[]" />
        <input type="checkbox" name="Ab[]" value="3" id="Ab[]" />
        <input type="checkbox" name="A4[]" value="4" id="A4[]" />
      </p>
      <p>
        <label for="name"></label>
        <input type="text" name="name" id="name" />
      </p>
      <p>
        <label for="Phone_Number"></label>
        <input type="text" name="Phone_Number" id="Phone_Number" />
      </p>
      <p>
        <label for="E_Mail"></label>
        <input type="text" name="E_Mail" id="E_Mail" />

    Hi,
    I would look for a existing script like this:
    http://sourceforge.net/projects/freeseat/
    and implement it in your site, because it takes years of experience to develop something like that.
    These are only a examples I don't know the scripts, but you can look at Github and do a search:
    Example Github:
    https://github.com/fnazmul/Cinema_Seats_Booking_System
    David

  • Dreamweaver CS6 does not recognize PHP array shorthand: []

    If you use the shorthand [] in PHP for arrays, dreamweaver thinks it is syntax error.
    array('hello', 'how', 'are', 'you'); works
    ['dreamweaver', 'is', 'not up-to-date']; triggers a (false) syntax error

    No. That's the difference between buying CS6 on a perpetual licence and CC on a subscription basis. You can use CS6 indefinitely without paying any more, but it will not be updated. CC gets regular updates, but is available only on a subscription basis.

  • Local net ssh failure Tiger (PHP MYSQL Apache Dreamweaver)

    I can't be sure, but I think this problem started with the latest security update. I'm 80% done with my first web application using PHP and Mysql in dreamweaver when I began getting an unknown error from dreamweaver when attempting to connect to my DB on my testing server. After 2 days of debugging and re-installing apps I finally wiped the testing server (G4 400 Cube memory topped out 120GB HD, down to the metal) reinstalled Tiger, fully patched, edited the httpd.conf file to enable php 4.4.1. Installed Mysql 4.1 (which was the last general distribution with a packaged install) and the server works fine, so I created myself as a user in mysql @localhost & @localmachinename to replicate root user. Navicat was up and running in no time, so I re-populated my server from my backup. Then I jumped over to my design workstation (G5 2Ghz Dual, 2GB Ram, 250GB HD) only to find navicat can't login to the mysql server because ssh wont connect to the G4. After much testing I discovered ALL of my macs will attach only to external addresses. My linux box, external linux boxes, even windows boxes emulating ssh will attach internally or extenally, the macs won't talk to anything in the local network 10.0.x What the ****! My project is now past due and I'm stuck because I can no longer ssh from any macs to internal machines mac or otherwise. PLEASE HELP!!! is there an SSH pakage so I can re-install? I couldn't find a mac ssh package on apple or ssh.org, Will that even make a difference? Can I uninstall the security update? Can anyone suggest a workaround?
    My network
    *10.0.1.2 Ganymede (Mandrivia 10 server and Gateway)
    *10.0.1.6 Artemis (G5 10.4.7) Web/Video
    *10.0.1.10 Miletus (G4 10.4.7) Web Testing
    *10.0.1.5 Venus (G4 10.4.7) Photo editing
    *10.0.1.4 Hero (G3 ibook 10.4.7) office work
    *10.0.1.7 Hermes (iMac 10.4.7) iLife
    *10.0.1.3 Apollo (Wintendo XP) Web Testing/The Sims
    Here are several ssh logs.
    mac to mac (FAIL)
    Artemis:~ phil$ ssh -vv 10.0.1.10
    OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
    debug1: Reading configuration data /etc/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 10.0.1.10 [10.0.1.10] port 22.
    debug1: Connection established.
    debug1: identity file /Users/phil/.ssh/identity type -1
    debug1: identity file /Users/phil/.ssh/id_rsa type -1
    debug1: identity file /Users/phil/.ssh/id_dsa type -1
    debug1: Remote protocol version 1.99, remote software version OpenSSH_4.2
    debug1: match: OpenSSH_4.2 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.2
    debug2: fd 3 setting O_NONBLOCK
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    debug1: SSH2MSGKEXINIT sent
    debug1: SSH2MSGKEXINIT received
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: mac_init: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: mac_init: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
    debug1: expecting SSH2MSG_KEX_DH_GEXGROUP
    Write failed: Broken pipe
    Artemis:~ phil$
    Mac to linux internal (FAIL)
    Artemis:~ phil$ ssh -vv 10.0.1.2
    OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
    debug1: Reading configuration data /etc/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 10.0.1.2 [10.0.1.2] port 22.
    debug1: Connection established.
    debug1: identity file /Users/phil/.ssh/identity type -1
    debug1: identity file /Users/phil/.ssh/id_rsa type -1
    debug1: identity file /Users/phil/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
    debug1: match: OpenSSH_4.3 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.2
    debug2: fd 3 setting O_NONBLOCK
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    debug1: An invalid name was supplied
    Cannot determine realm for numeric host address
    debug1: An invalid name was supplied
    A parameter was malformed
    Validation error
    debug1: SSH2MSGKEXINIT sent
    debug1: SSH2MSGKEXINIT received
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: mac_init: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: mac_init: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
    debug1: expecting SSH2MSG_KEX_DH_GEXGROUP
    Write failed: Broken pipe
    mac to linux external (Success)
    Artemis:~ phil$ ssh -vv 69.253.x.x
    OpenSSH_4.2p1, OpenSSL 0.9.7i 14 Oct 2005
    debug1: Reading configuration data /etc/ssh_config
    debug2: ssh_connect: needpriv 0
    debug1: Connecting to 69.253.x.x [69.253.x.x] port 22.
    debug1: Connection established.
    debug1: identity file /Users/phil/.ssh/identity type -1
    debug1: identity file /Users/phil/.ssh/id_rsa type -1
    debug1: identity file /Users/phil/.ssh/id_dsa type -1
    debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3
    debug1: match: OpenSSH_4.3 pat OpenSSH*
    debug1: Enabling compatibility mode for protocol 2.0
    debug1: Local version string SSH-2.0-OpenSSH_4.2
    debug2: fd 3 setting O_NONBLOCK
    debug1: Miscellaneous failure
    No credentials cache found
    debug1: Miscellaneous failure
    No credentials cache found
    debug1: SSH2MSGKEXINIT sent
    debug1: SSH2MSGKEXINIT received
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit: none,[email protected],zlib
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: kexparsekexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-g roup1-sha1
    debug2: kexparsekexinit: ssh-rsa,ssh-dss
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes1 92-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: hmac-md5,hmac-sha1,hmac-ripemd160,[email protected],hmac-sha1-96,hmac- md5-96
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit: none,[email protected]
    debug2: kexparsekexinit:
    debug2: kexparsekexinit:
    debug2: kexparsekexinit: firstkexfollows 0
    debug2: kexparsekexinit: reserved 0
    debug2: mac_init: found hmac-md5
    debug1: kex: server->client aes128-cbc hmac-md5 none
    debug2: mac_init: found hmac-md5
    debug1: kex: client->server aes128-cbc hmac-md5 none
    debug1: SSH2MSG_KEX_DH_GEXREQUEST(1024<1024<8192) sent
    debug1: expecting SSH2MSG_KEX_DH_GEXGROUP
    debug2: dhgenkey: priv key bits set: 130/256
    debug2: bits set: 514/1024
    debug1: SSH2MSG_KEX_DH_GEXINIT sent
    debug1: expecting SSH2MSG_KEX_DH_GEXREPLY
    debug1: Host '69.253.239.85' is known and matches the RSA host key.
    debug1: Found key in /Users/phil/.ssh/known_hosts:3
    debug2: bits set: 516/1024
    debug1: sshrsaverify: signature correct
    debug2: kexderivekeys
    debug2: set_newkeys: mode 1
    debug1: SSH2MSGNEWKEYS sent
    debug1: expecting SSH2MSGNEWKEYS
    debug2: set_newkeys: mode 0
    debug1: SSH2MSGNEWKEYS received
    debug1: SSH2MSG_SERVICEREQUEST sent
    debug2: service_accept: ssh-userauth
    debug1: SSH2MSG_SERVICEACCEPT received
    debug2: key: /Users/phil/.ssh/identity (0x0)
    debug2: key: /Users/phil/.ssh/id_rsa (0x0)
    debug2: key: /Users/phil/.ssh/id_dsa (0x0)
    debug1: Authentications that can continue: publickey,password,keyboard-interactive
    debug1: Next authentication method: publickey
    debug1: Trying private key: /Users/phil/.ssh/identity
    debug1: Trying private key: /Users/phil/.ssh/id_rsa
    debug1: Trying private key: /Users/phil/.ssh/id_dsa
    debug2: we did not send a packet, disable method
    debug1: Next authentication method: keyboard-interactive
    debug2: userauth_kbdint
    debug2: we sent a keyboard-interactive packet, wait for reply
    debug1: Authentications that can continue: publickey,password,keyboard-interactive
    debug2: we did not send a packet, disable method
    debug1: Next authentication method: password
    [email protected]'s password:
    debug2: we sent a password packet, wait for reply
    debug1: Authentication succeeded (password).
    debug1: channel 0: new [client-session]
    debug2: channel 0: send open
    debug1: Entering interactive session.
    debug2: callback start
    debug2: clientsession2setup: id 0
    debug2: channel 0: request pty-req confirm 0
    debug2: channel 0: request shell confirm 0
    debug2: fd 3 setting TCP_NODELAY
    debug2: callback done
    debug2: channel 0: open confirm rwindow 0 rmax 32768
    debug2: channel 0: rcvd adjust 131072
    Last login: Tue Aug 15 12:56:42 2006 from artemis.ganymedia.net
    [phil@ganymede ~]$
    G5 Dual 2G   Mac OS X (10.4.7)  

    Mac comes with a fully functioning Apache web server with all the scripting languages (except VB). You need to enable them in the configuration file.
    You need some light weight UNIX administration skills to do this. Use the system restore disk to set the password for the root account.
    Open a terminal screen from the Utilities folder in Applications. Type "su", press return, then enter the root password you set using the system restore disk.
    Make a backup copy of the Apache configuration file with the following command (type this in with no mistakes and press the return key).
    cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.copy
    Enter the following to open the Apache configuration (type this in with no mistakes and hit the return key).
    /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/httpd/httpd.conf &
    Locate and remove the # comment symbol from the following lines and save the file in /etc/httpd/httpd.conf.
    #LoadModule php4_module libexec/httpd/libphp4.so
    #AddModule mod_php4.c
    Exit the TextEdit application and quit out of the terminal application.
    Put the following web page into a file named greetings.php inside the folder Library/WebServer/Documents.
    <html>
    <head>
    <title>Experiment</title>
    </head>
    <?php
    echo "Greetings";
    ?>
    </body>
    </html>
    Once you have made these changes, you can reboot to activate the changes.
    Put the following into your browser to test the configuration.
    http://localhost/greetings.php
    You should see "Greetings" on a web page titled "Experiment".
    MySQL is a separate server that you need to download and configure to complete your web server.
    I hope this helps.
    Best regards - Greg

  • Edit PHP Webpage in Dreamweaver

    Hi All,
    I have Dreamweaver CS5 and I want to edit the design only for a website which is written in PHP.  By design I mean things like changing the page layout, change the font type, size, etc.
    But I only have one PC and I do not have internet. So what can I do to edit the website design?
    Can I use an external hard drive as an external server? Or can I set up a virtual drive on my PC?
    Or for a website in PHP do I even need to edit the design in PHP, or can I edit it in HTML?
    Thanks.

    Setting up a PHP environment on your computer.
    http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    If your site uses MySql databases, you may need to set that connection up locally as well.
    Building your first dynamic website – Part 1: Setting up your site and database connection
    http://www.adobe.com/devnet/dreamweaver/articles/first_dynamic_site_pt1.html
    Nancy O.

  • Can't view Wordpress PHP files in Dreamweaver CC.

    Mac. MAMP.
    I have downloaded my full site hosted on xxxx into MAMP htdocs.
    Download directly from root public_html on host.
    I keep getting "Dynamically-related files could not be resolved because the site definition is not correct for this server"
    Even if I go "live view" and set - Web URL to: www.indochinaexplorers.com (my site) - instead of http://localhost, it comes up with a lot of PHP boxes.
    Been through all tutorials for more than a week.
    Have been through all possible settings and configurations under "Manage Site"
    Did a Test - New PHP page. Same thing, it does not show, design or live view.
    So stuck,
    Thanks Peter

    I have the same issue and none of the alleged Guru's that answered have provided anything useful.  Solid Web Design is about workflow, which could lead to innovation if people would stop reverse innovation language...Dreamweaver could be a viable wordpress solution if it worked as it's supposed to. CC is a bust as the focus has shifted to mobile first. 
    There are no "real pages" for you to edit in DW; just code fragments.
    Wordpress is dynamically driven but this is untrue.  Every PHP file in a theme has structure and is a "real page".  Fragments have to be in a "file" to be called, they are not called out of thin air.  If I want to style page.php, it cannot be done without first adding selectors.  #mainContent for example. The only thing php does is add dynamic functionality.  Page.php can be altered and saved as Page_fullwidth.php, Page_Music.php ,Page_webDesign.php and they can all have a different layout in the same theme.  Else there would be no templates to choose from in the static page section of the WP Admin area. 
    Themes drive the appearance and functionality of your WP site.  If you need a new look, find a different Theme and install it from your WP Dashboard.
    How does this help?
    Unless you are very familiar with PHP code and more specifically the PHP code WP uses, you will not have good results working in DW.   You really must use the WP Dashboard to manage your content, Themes, and plugins.
    This has nothing to do with the issue.  The issue is Dreamweaver simply does not allow propper editing of wordpress sites in a dynamic environment.  No one ever said they didn't know anything about php, creating wordpress themes, plugins, and so on...
    Dear next genius..Since the question has already been asked, I won't ask it again, but the original inquiry is my issue as well.  If you have figured out how to make this work, please respond, if not, please don't.
    Mac

Maybe you are looking for

  • I don't want it to "Process Album Artwork"

    Every time I add audio to iTunes it says it's "Processing Album Artwork", and I don't want it to do this - there's not going to be anything in the file, and it's not going to be available on-line. So how can I configure iTunes not to do this?

  • How to clear the form after save?

    Hi, My environment is JSF1.2 and Hibernate3. Scope of my bean is request level. On JSF form where I press the save button, data is saved in the database and form is empty for new record. I do not want to call method resetMe() because I have many bean

  • Using FIFO as sql code for assigning indicator to data items

    Hi All, We are looking for a solution based on FIFO algorithm. We have a table having following data: We need to perform FIFO on this table, and assign "object" as data items to other rows based on following conditions: 1. first we have to group the

  • Breakdown of 'show sticky database' - ACE

    I need assistance to interpret the show sticky database response. What does the sticky entry value resolve to. I have set the stickiness on source and destination addresses. Is it possible to identify from show sticky database that which is the sourc

  • I don't know what I'm doing... :(

    I'm lost with this program. I just moved up from Garageband but I can't seem to figure out how to work it. I dragged a garageband song file to Logic Express to edit it further but can't seem to get any sound coming out of my speakers while the song i