Dreamweaver CS5 using PHP to connect to Postgres

Started learning Dreamweaver using PHP to connect to mySql and dynamically load data into a table on my web page.  Dreamweaver worked great as I didn't have to enter any PHP.  Now trying to use PHP to connect to a Postgres DB.   Does Dreamweaver CS5 support PHP connection to Postgres like it did mySql?   Or do I need to enter the PHP commands  to connect and access the Postgres myself rather than rely on Dreamweaver (which I did for mySql)?

PHP/Postgres is not a supported server model in DW. You'll need to code by hand, or try to find an extension. Try posting over at the Postgressql forums.

Similar Messages

  • ANN: Dreamweaver CS5 with PHP: Training from the Source - Rough Cuts

    If you would like to get early access to my next book "Adobe Dreamweaver CS5 with PHP:  Training from the Source", the first six chapters (of 12) are now  available as Rough Cuts in Safari  Books Online.
    If you have a Safari Library subscription, you can  view the chapters free of charge, and see new ones as they're added.  Without a subscription, you can get access to the book in PDF format for  $34.99, including the finished ebook version when the book is complete.  You can also opt for the Rough Cuts PDF and Print bundle for $67.48.  The print version is expected to be released in early August.

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • Dreamweaver CS5, MySQL, PHP: Why are views listed under tables in the connection

    Using Dreamweaver C5 against a remote server with MySQL and PHP, I notifce the views I defined in the database, are list under tables in the connection window, not under views. Probably doesn't really matter, but I was wondering if there is a way to influence this - keeping views listed separately from tables.

    Hi
    This has to do with the way MySQL stores the views in the database, (a similar problem occurs with procedures) in that they are stored as part of the entire database.
    View on there own are not natively supported in dreamweaver.
    PZ

  • Check in check out in Dreamweaver CS5 with php site

    I created a new site for a client that has about 160 pages, three user login levels, site security, php, forms, . . . The client has a staff member who will make updates to pages with changing content but now wants access to the entire site so she can change wording on other pages as well - she's their new communications coordinator and it certainly makes sense to me. But I'm worry about giving her access to the entire site - I've since learned about check in and check out in Dreamweaver. Since I can't just throw pages in a directory for her to access via ftp (have set that up for one staff member creating gis maps), I'm wondering if this check in check out option is the better way to go for us.
    She will use Dreamweaver, like me. Although we do not share the same office or have access to the same network. The only sharing we can do is on our hosting services server. Can I "check out" files I need her to leave alone and leave them that way? That way she'll have access to all of the primary content pages, not the scripts, css, includes, admin, js, bin, etc files. It should make life easier for her, too, I think.
    What's common practice for this? And how does synchronization fit in?

    Digital Ink LLC wrote:
    What's common practice for this?
    This situation really needs a proper Content Management System (CMS): Wordpress, Joomla, Drupal, Expression Engine all come to mind.
    She's a content contributor, you're the system admin. She needs a bulletproof browser-based editing environment to do her thing without worrying about anything else.
    Down the track, she'll probably want repeat content that she can control on different pages, content expiry, scheduled content, categories, tags, sidebars, headlines: all standard CMS features.
    Using Dreamweaver and Check In/Check Out is just going to create one issue after another.
    The current solution was probably adequate in the past but it's reaching the limits of its scalability. It's really time for a new solution.
    Have you considered a CMS?

  • Errata for "Adobe Dreamweaver CS5 with PHP: Training from the Source"

    There doesn't appear to be an errata page on the Peachpit/Adobe Press website for my book, so I have created one on my own website at http://foundationphp.com/phpcs5/errata.php. Many thanks to conmolbry for pointing out the problems.

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • David Powers Dreamweaver CS5 with PHP training from the source mail connector problem

    Hello,
    first I will say great work david this is great book, and i found everything i neede in it.
    I have one problem.
    I have managed to get to lesson 8 and i couldnt wait so i started live project and incororated everything in it learned from this book.
    But this is the problem.
    I have hosting on bluehost which makes mail conector from lessons 7-8 with gmail not to send email in example when i try to recover forgoten password.
    The scripts changes the token in database in users table, token is created, and i get message that the mail was sent but nothing comes to my mail.
    Same password login and everything works local but on bluehost server  wont send mail.
    I contacted them and they said that i have to create mail on server from which mail will be sent.
    I did that too.
    But for what ever i put in mailconector array cant get that mail, and i really dont know what to do and who to ask.
    Until this point i could get every problem solved put this bugs me because this is the last stage of what i was tryong to do and that is to incorporate login system from the book to live page.
    this is the code i have:
    <?php
    $mailhost='ssl://mail.majapanic-tarot.com';
    $mailconfig=array(    'auth'         =>     'true',
                        'username'     =>     '[email protected]',
                        'password'     =>     'password',
                        'ssl'        =>    'ssl',
                        'port'        =>     '465');
    $transport=new Zend_Mail_Transport_Smtp($mailhost,$mailconfig);
    Zend_Mail::setDefaultTransport($transport);
    and this is what they stated in info about the mail:
    Mail Server Username: majapanic+majapanic-tarot.com  >>>>>>>> this plus i think is (at)
    Incoming Mail Server: mail.majapanic-tarot.com
    Incoming Mail Server: (SSL) box344.bluehost.com
    Outgoing Mail Server: mail.majapanic-tarot.com (server requires authentication) port 26
    Outgoing Mail Server: (SSL) mail.majapanic-tarot.com (server requires authentication) port 465
    Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS)
    Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)
    Please HELP!

    FIXED!!
    1)
    i finally did get the message problem was with:
    $mailhost='ssl://mail.domain.com';
    ssl:// was just nonsense and been removed
    2)
    'auth' => 'true' was changed to 'auth' => 'login'
    3)
    for bluehost i got information that it was tls secure connection protocol not ssl
    'ssl' => 'tls'
    4)
    port used '25' not 465.
    Didnt still tried 26 and 465 maybe they would work too.

  • Using php to connect to Oracle Database 11g Release 2 Enterprise Edition

    Greetings everyone!
    Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...
    define('ORA_CON_UN', 'hr'); // User name
    define('ORA_CON_PW', 'Adlibs14$'); // Password
    define('ORA_CON_DB', '//localhost/XE'); // Connection identifier
    // use constants defined in anyco_cn.inc
    $conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    if (!$conn) {
    db_error(null, __FILE__, __LINE__);
    Edited by: user11273096 on Jul 14, 2011 3:41 PM

    Note that this forum is for XE Beta, not EE.
    Can you connect from some other client tool, such as sqlplus?
    There's a {forum:id=178} forum that may be more suitable, if basic connectivity outside php works (i.e. issue is only php specific).

  • Using php to connect to Oracle Database 11g Release 2 Enterprise Edition EE

    Greetings everyone!
    Please i dont know how to connect to Oracle Database 11g Release 2 Enterprise Edition with php even though i connected with php successfully with Oracle Database 11g Express Edition with the php code below. can someone help please...Note im referring to oracle EE not XE.
    define('ORA_CON_UN', 'hr'); // User name
    define('ORA_CON_PW', 'Adlibs14$'); // Password
    define('ORA_CON_DB', '//localhost/EE'); // Connection identifier
    // use constants defined in anyco_cn.inc
    $conn = oci_pconnect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
    if (!$conn) {
    db_error(null, __FILE__, __LINE__);
    Edited by: user11273096 on Jul 15, 2011 12:03 AM

    Find the hostname and service name of the database and use those values in the ORA_CON_DB constant.
    Use 'lsnrctl status' on the database host to find the service name.
    If you use a "tns" alias, you may need to create a tnsnames.ora file where PHP can access it.
    Set the environment variable TNS_ADMIN (on Linux) to the directory containing the file.
    See the section "Oracle Database Name Connection Identifiers" p 102 of the free book
    http://www.oracle.com/technetwork/topics/php/underground-php-oracle-manual-098250.html

  • Dreamweaver CS5 with PHP, not getting it to work with virtual Host

    I have not got far with the book so far.  I am still on the second chapter where you set the Virtual Host but after setting up the Dreamweaver site definition and doing the test.  I get the error that page cannot be found.
    I ask if I can mail the text file of the http.conf and the httpd-vhosts.conf to anyone to see if I screwed up somewhere .  I am running on Windows 7 with the WAMP setup.

    Mr. Powers,
    I used your included file httpd-vhosts.conf.  And it did something since now I get a new set of errors.
    ( ! ) Warning: Unknown: failed to open stream: Permission denied in Unknown on line 0
    ( ! ) Fatal error: Unknown: Failed opening required  'C:/vhosts/phpcs5/lesson02/site_check.php'  (include_path='.;C:\php\pear') in Unknown on line 0
    But I checked the properties of the folders and unchecked the 'read only' permission but still gets checked again.  I am using Windows 7 64-bit.
    I checked on the web nobody says any solutions about it, they only imply that is a permissions issue.
    I apologize, I found out the chapter files were encrypted... thanks

  • Question about reset password in lesson08 of David Powers (Dreamweaver CS5 with PHP)

    I'm at the page 299 that found a problem in reset password. I managed to received email of link to reset password. In the reset password form, why no checking of password length entered or password unmatch with confirmed password input ? Instead it displays error message of 'Sorry, there was an error. Make sure you used the complete URL in the email you received. The URL can be used to change your password only once. If necessary...' The error message of 'Passwords don't match' or 'Use 8-15 letters or numbers only' not processed.
    Please help !
    Thank You

    I can see the 32 characters attached to URL and also I can see the 32 characters stored in database. It actually can reset the the password if entered within the requirement of 8-15. But when I entered less than 8, it does not show the error message of 'Use 8-15 letters or numbers only'.
    I noticed that $_SESSION['nomatch'] was assigned to True after the validation of 8-15 length. Below is the code for reference.
    <?php
    session_start();
    $errors = array();
    $success = FALSE;
    $_SESSION['nomatch'] = TRUE;
    require_once('library.php');
    try {
      if (isset($_GET['id']) && isset($_GET['token'])) {
              $id = $dbRead->quote($_GET['id']);
              $token = $dbRead->quote($_GET['token']);
              $sql = "SELECT user_id FROM users WHERE user_id = $id AND token = $token";
              $result = $dbRead->fetchRow($sql);
              if ($result) {
          $_SESSION['user_id'] = $_GET['id'];
                $_SESSION['token'] = $_GET['token'];
                $_SESSION['nomatch'] = FALSE;
      if (isset($_POST['reset'])) {
              // password reset code goes here
              $val = new Zend_Validate();
              $val->addValidator(new Zend_Validate_StringLength(8,15));
              $val->addValidator(new Zend_Validate_Alnum());
              if (!$val->isValid($_POST['password'])) {
                $errors['password'] = 'Use 8-15 letters or numbers only';
              $val = new Zend_Validate_Identical($_POST['password']);
              if (!$val->isValid($_POST['conf_password'])) {
                $errors['conf_password'] = "Passwords don't match";
              if (!$errors) {
                // update the password
                $data = array('password' => sha1($_POST['password']),
                              'token'    => NULL);
                $where['user_id = ?'] = $_SESSION['user_id'];
                $where['token = ?'] = $_SESSION['token'];
                $success = $dbWrite->update('users', $data, $where);
                unset($_SESSION['user_id']);
                unset($_SESSION['token']);
                unset($_SESSION['nomatch']);
    } catch (Exception $e) {
      echo $e->getMessage();

  • IE does not run "refreshing the list of places" Lesson 12 Adobe Dreamweaver CS5 with PHP

    Hi anyone else experience this.  In lesson 12 everything works as it should until I add the code for refreshing the list of places as well as the list of photos.  Live view works fine, Chrome, Dreamweaver and safari works as well.  However IE 9 does not.  If anyone can explain the cause of this I will be very grateful

    I am sorry to see that you did not receive a reply. I'm having the same problem ... apparently the Adobe Extension Manager only sees the earlier versions of Dreamweaver, and so exits out of the installation.
    If would be great to have the courtesy of a reply from Adobe regarding their extension manager.

  • CS5 with PHP - Lesson 7, Zend_Auth

    Hi there.
    Wondering if anyone can help shed some light on an issue I'm having that is based around the Login Script/Authentication in Lesson 7 of David Powers Dreamweaver CS5 with PHP book.
    I've created a few simple CMS's with the help of the book and everything works fine.
    For my next CMS however I would like to add different levels of access.
    Currently I have 2 database tables - Admin and Client. I then created login scripts that go to different areas - Front end Client login, for example www.website.com/login.php when authenticated Client is taken to www.website.com/index.php. I then did the same thing but for an Admin - www.website.com/admin/login.php when authenticated Admin is taken to www.website.com/admin/index.php
    This all works really well - I've used $identity to show welcome messages and the currently logged in user e.t.c.
    The issue is that because both logins use very similar code there is no difference between an Admin and a Client. If a Client logs in to their account, they could then type in the admin URL and access all of the admin features.
    To rectify this, is it a simple case of changing the storage variable? Currently I have the code identical to the book - if authentication is passed then $storage is used with getResultRowObject.
    Is it a simple case of changing this (say for the admin script) to - $adminstorage = $auth->getStorage(); $adminstorage->write...........
    Or will this just result in the same?
    If anyone could point me in the right direction for setting up different levels of access using the Zend_Auth_Adapter_DbTable or whether I need to use something else it would be greatly appreciated.
    Thanks.

    Hi Osgood
    Thanks for taking the time to reply.
    I already have separate tables for Admin and Clients.
    I think the problem is they are both calling the same Authentication adapter. Zend_Auth_Adapter_DbTable.
    Ideally I need a kind of 'realm' which some of the other Auth Adapters have but I'm not sure how to use them.

  • MySql v.6 and Dreamweaver CS5

    The Development Area DREAMWEAVER not take into
    account the radical changes from version 6
    MySql.
    Have nullified various functions and connection profiles
    The user has no access -in Dreamweaver- to rewrite the
    syntax and void get_magic_quotes_gpc () no longer
    forms part of MySql 6

    Dear
    David Power
    Thansk for your time to attend the consultation
    1.- I'm using Dreamweaver has always
         Currently I have version CS3.
         This in my immediate plans to migrate-urgent-CS5, and report one incident in connectivity between Dremweaver CS5 and 6 of MySql version
    2.- We can generate a properly Mysql Connection:
         - Name conexion
         - MySql Server
         - Name user
         - Password
         - Select Data Base
         and Test SQL Stament is OK, pagination 25 list
    3.- It creates a new Recordset, declare
         - Name
         - Connection
         - Table
         - Columns
         but ... when selectioned TEST, displays a message:
         An undentifed error has ocurred...
    4.- in brief
          The Dreamweaver can successfully connect to MySql v.6, but ... NOT List any information
    5.- Before reporting the incident:
         1 .- Buy a new PC
         2 .- Install a TRIAL version of Dreamweaver CS5
         3 .- try to connect to a MySql Server v.6
    I reiterate my thanks for your kind attention to this incident.

  • DW CS5 with PHP - book question

    Hello,
    I'm working my way through the book "Dreamweaver CS5 with PHP" by David Powers and I've enountered something odd when it comes to code hints. On page 225, on step 3 I typed:
    $dbWrite = new Zend
    ...And code hints pop up, but neither Zend_Db_Adapter_Mysqli nor Zend_Db_Adapter_Pdo_Mysql are among the choices offered. The closest I get is "Zend_Db".
    I also tried typing "pdomy" like it says in the book, but still no cigar.
    I finished writing the code and tested the script in step 5 and it works fine. I just don't understand why those classes are not included in the code hints.

    Also, the same thing happened in step 5 when I tried to type $dbWrite->getConnection().
    no code hints popped up at all.

  • Template build in Dreamweaver CS5

    Have a client using Dreamweaver MX2004.  If I build site in Dreamweaver CS5 using editable templates will they be able to update content using Dreamweaver MX2004?

    Yes - template markup and syntax is the same.

Maybe you are looking for

  • WRT54G v6 - Can Connect to wireless network but can't access internet

    Ok, this is my last resort for help. I spent two hours yesterday with linksys "chat" support to no avail. First the techincal details: OS for all machines = Windows XP Laptop w/two adapters - one wired, one wireless WRT54G v6 upgraded with 1.00.9 fir

  • VPN trouble on total Apple network

    I downloaded OS X server (clean install, nothing imported or migrated) for the first time yesterday on my home iMac w/ Yosemite 10.10.1. I thought VPN setup and access would be fairly straightforward, but i have had nothing but trouble. I obviously c

  • Image creation from Swing Frame

    Hello friends, I have created a Swing application which depicts a Invoice form in any normal business. The issue is that when I click save button, the screen details captured in components such as textfields,combos etc..should get saved in DB (which

  • Why can I not use random in my CS3 JS

    I'm working on my Thesis and building a graphic design engine in InDesign. I've done something similar in VB on Windows, but as I use a Mac now, I'm trying to work in Javascript. Still getting my footing though. A big thing in my engine will be using

  • "Internet Explorer Has Stopped Working" error message

    I have Windows Vista and have uninstalled all of itunes and all applications including Quick Time. I have gone to itunes.com to re-install itunes but it will not allow me to do that. Each time that I do I get the error message, "Internet Explorer has