Updating to 10.4.11 killed my PHP/MYSQL connections

Hi all - I use Dreamweaver CS3 for web development, and have been using some very simple PHP/MYSQL Select and Inserts. Everything was working fabulously up until this morning, when I updated to 10.4.11 (Macbook Pro, CoreDuo). As soon as I updated, I get a 'No Database Selected' message in Safari, Firefox and IE. I can see the database and work with it in DWeaver, just can't get it to go live in browsers.
I'm running PHP 5.2.4, MYSQL 5.1.8 and whatever version of Apache is bundled in OS X (I think it's 1.x - but can't find how to get that number!)
Just for record, I have stopped/restarted Personal Web Sharing, Personal File Sharing, OS X, MYSQL to just check whether something wasn't working there.
I'm about to close out, zap the PRAM and then come back in.
Any ideas?
Vince

Thanks - A couple of additional points. This is OS X 10.4.11, not OS X Server, so I had installed MYSQL and PHP as fresh installations. MYSQL has not changed since I installed and is running fine through direct client (Navicat).
For PHP I was running 4 and it had been running fine. When the update to OSX came through, PHP 4 didn't work - no change had been made to any configuration file that was working already. These are the httpd.conf instructions I had followed to set-up PHP 4:
+1 Launch Terminal from /Applications/Utilities.+
+2 Open the Apache configuration file and edit the UNIX shell prompt:+
+sudo pico /etc/httpd/httpd.conf+
+3 When prompted for a password, enter the Mac OS X administrator account password.+
+4 Uncomment the following lines:+
+LoadModule php4_module libexec/httpd/libphp4.so+
+AddModule mod_php4.c+
+5 Add the following lines (add these lines above: AddType application/x-tar .tgz):+
+AddType application/x-httpd-php .php+
+AddType application/x-httpd-php-source .phps+
+Note: All the commands for the pico editor display on the screen and you can start any commands with the Control key. Use the arrow keys to move around. Pico is a text editor, mostly for UNIX users to use at the UNIX command line. The pico text editor resides in /usr/bin/ directory.+
+6 Add a new index page for PHP (index.php) so that the web server will recognize it as the first page to load:+
+<IfModule mod_dir.c>+
+DirectoryIndex index.html index.php index.htm+
</IfModule>
+7 Save the httpd.conf file by pressing ^X (control & x keys). When the screen asks "Save Modified buffer?", press "Y". When prompted for "File Name to write : httpd.conf", press Return once to accept it. This will return you to the UNIX shell prompt.+
When PHP 4 stopped working, I took the decision to upgrade to 5 and then fix the breakdown (by now, I was convinced it was an Apache change (nothing in config had changed at all). So, upgraded to PHP 5 and, to do so, had to reverse the directions above. Since then, I've tried reenabling the above, replacing with PHP5 wherever PHP4 appears, all to no avail (in fact, it just froze the Personal Web Sharing that turns Apache on/off).
Right now, running the phpinfo check detailed above tells me the PHP 5 is successfully installed and running. The text from the test copied here:
+System Darwin Vincet-MacBook-Pro.local 8.11.1 Darwin Kernel Version 8.11.1: Wed Oct 10 18:23:28 PDT 2007; root:xnu-792.25.20~1/RELEASE_I386 i386+
+_Build Date_ Aug 31 2007 23:38:11+
+_Configure Command_ './configure' '--prefix=/usr/local/php5' '--with-apxs' '--with-config-file-scan-dir=/usr/local/php5/php.d' '--with-iconv' '--with-openssl=/usr' '--with-zlib=/usr' '--with-gd' '--with-zlib-dir=/usr' '--with-ldap' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-snmp=/usr' '--enable-exif' '--enable-wddx' '--enable-soap' '--enable-sqlite-utf8' '--enable-ftp' '--enable-sockets' '--enable-dbx' '--enable-dbase' '--enable-mbstring' '--enable-calendar' '--enable-bcmath' '--with-bz2=/usr' '--enable-fastcgi' '--enable-cgi' '--enable-memory-limit' '--enable-zip' '--enable-pcntl' '--enable-shmop' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--with-curl=shared,/usr/local/php5' '--with-mysql=shared,/usr/local/php5' '--with-mysqli=shared,/usr/local/php5/bin/mysql_config' '--with-pdo-mysql=shared,/usr/local/php5' '--with-libxml-dir=shared,/usr/local/php5' '--with-xsl=shared,/usr/local/php5' '--with-pdflib=shared,/usr/local/php5' '--with-imap=../imap-2004g' '--with-kerberos=/usr' '--with-imap-ssl=/usr' '--with-jpeg-dir=/usr/local/php5' '--with-png-dir=/usr/local/php5' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/php5' '--with-iodbc=shared,/usr' '--with-pgsql=shared,/usr/local/php5' '--with-pdo-pgsql=shared,/usr/local/php5' '--with-t1lib=/usr/local/php5' '--with-gettext=shared,/usr/local/php5' '--with-ming=shared,/usr/local/php5' '--with-mcrypt=shared,/usr/local/php5' '--with-mhash=shared,/usr/local/php5' '--with-mssql=shared,/usr/local/php5' '--with-fbsql=shared,/Users/liyanage/svn/entropy/universalbuild/src/FBDeveloper Libraries/Library/FrontBase' '--with-json=shared' '--enable-memcache' '--enable-openbase_module'+
+_Server AP_I Apache+
+_Virtual Directory Suppor_t disabled+
+_Configuration File (php.ini) Path_ /usr/local/php5/lib+
+_Loaded Configuration File_ /usr/local/php5/lib/php.ini+
+_Scan this dir for additional .ini files_ /usr/local/php5/php.d+
+_additional .ini files parsed_ /usr/local/php5/php.d/10-extension_dir.ini, /usr/local/php5/php.d/50-extension-curl.ini, /usr/local/php5/php.d/50-extension-fbsql.ini, /usr/local/php5/php.d/50-extension-gettext.ini, /usr/local/php5/php.d/50-extension-json.ini, /usr/local/php5/php.d/50-extension-mcrypt.ini, /usr/local/php5/php.d/50-extension-mhash.ini, /usr/local/php5/php.d/50-extension-ming.ini, /usr/local/php5/php.d/50-extension-mssql.ini, /usr/local/php5/php.d/50-extension-mysql.ini, /usr/local/php5/php.d/50-extension-mysqli.ini, /usr/local/php5/php.d/50-extension-odbc.ini, /usr/local/php5/php.d/50-extension-pdf.ini, /usr/local/php5/php.d/50-extension-pdo_mysql.ini, /usr/local/php5/php.d/50-extension-pdo_pgsql.ini, /usr/local/php5/php.d/50-extension-pgsql.ini, /usr/local/php5/php.d/50-extension-xsl.ini+
+_PHP API_ 20041225+
+P_HP Extension_ 20060613+
+_Zend Extension_ 220060519+
+_Debug Build_ no+
+_Thread Safety_ disabled+
+Zend Memory Manager enabled+
+_IPv6 Support_ enabled+
+_Registered PHP Streams_ zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps+
+_Registered Stream Socket Transports_ tcp, udp, unix, udg, ssl, sslv3, sslv2, tls+
+_Registered Stream Filters_ string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*+
I don't know if any of this helps, but it's what I find. From my online troubleshooting and reading, I believe all of the above looks right and that things should work. So, I'm still left with an informed gut decision that something in the set-up of Apache changed (location in file structure, configuration file, etc.) Could it be looking at a second copy of httpd.conf somewhere else? That would seem to make sense - however I haven't managed to turn up how to assess which version of Apache is loaded (I think 1.3) or where it's located.
If anyone can confirm what PHP5 code should be included in httpd.conf given the above, that would be a great next step.
Thanks for all your assistance!
Vince

Similar Messages

  • New PHP/MySQL Connection extension doesn't  show tables.  What's the next step?

    I'm creating Dreamweaver extensions to work with my CMS.
    Since it is already connecting to the MySQL database I'd like
    Dreamweaver to access the same connection without asking the
    developer for the MySQL credentials again. I have created the HTML
    form, the EDML for the connection script, and the JavaScript to
    stitch it together, and I can successfully create connections. The
    connection script looks good but when I try to expand the tables in
    the database window it doesn't post a request to the server and it
    just shows "None". I have a regular PHP MySQL connection on the
    same site which works fine.
    I feel like I'm missing a required next step which would tell
    it how to enumerate tables. It would be ideal if I could plug into
    the existing PHP MySQL code for this.
    I would really appreciate any help and/or pointers!

    "zymsys" <[email protected]> wrote in
    message
    news:fiuho4$ao8$[email protected]..
    > I'm creating Dreamweaver extensions to work with my CMS.
    Since it is
    > already
    > connecting to the MySQL database I'd like Dreamweaver to
    access the same
    > connection without asking the developer for the MySQL
    credentials again.
    > I
    > have created the HTML form, the EDML for the connection
    script, and the
    > JavaScript to stitch it together, and I can successfully
    create
    > connections.
    > The connection script looks good but when I try to
    expand the tables in
    > the
    > database window it doesn't post a request to the server
    and it just shows
    > "None". I have a regular PHP MySQL connection on the
    same site which
    > works
    > fine.
    > I feel like I'm missing a required next step which would
    tell it how to
    > enumerate tables. It would be ideal if I could plug into
    the existing PHP
    > MySQL code for this.
    >
    > I would really appreciate any help and/or pointers!
    Are you using the Database access functions?
    http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd31.htm
    MMDB.getTables()
    http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd42.htm
    MMDB.getColumns()
    http://livedocs.adobe.com/dreamweaver/8/apiref/07_mmd34.htm
    Or are your trying to create a new Connection Type for the
    PHP_MySQL_ServerModel or a whole new servermodel alltogether?

  • PHP MySql connection to GoDaddy

    I use DWCS4, PHP, MySQL. I have created a MySql database on my GoDaddy-hosted account and can FTP to it and have transferred tables and data to it. However, when I try to create a database connection in DW, I get the following error message; "Your PHP server does not have the MySQL module loaded or you can’t use the mysql_(p)connect functions."
    I searched for solutions on the web (no answers in this forum), and got several results that said to manually create the connection file such as the following
    <?php//Sample Database Connection Syntax for PHP and MySQL.
    //Connect To Database
    $hostname="your_mysqlserver.secureserver.net";
    $username="your_dbusername";
    $password="your_dbpassword";
    $dbname="your_dbusername";
    $usertable="your_tablename";
    $yourfield = "your_field";
    mysql_connect($hostname,$username, $password) OR DIE ("<html><script language='JavaScript'>
    alert('Unable to connect to database! Please try again later.');
    history.go(-1);</script></html>");
    mysql_select_db($dbname);
    ?>
    Just fill in your password etc, save it as connectdb.php (or whatever), and include it at the top of the files that need to access the database. You could use an if statement to determine whether you were working locally or on GoDaddy.
    I tried that, but it still won't connect. (My regular connection for just transferring files works fine).
    Has anyone out there solved the GoDaddy database connection problem?
    Frank

    Check php_info()to see which connector is enabled.
    It should be either mysql or mysqli.
    Since you are having problems with mysql, try to connect with mysqli connector.
    If that won't solve your problem, email GD about your problem, and ask if any mysql connectors are enabled in your hosting plan.

  • PHP/MySQL connection / testing server maybe?

    Problem - I'm unable to connect to a PHP database. I'm
    working right now with tutorials from the DW CS3 Bible by Lowery,
    but haven't been able to connect at all. And I wasted weeks trying
    the same thing with an ASP connection.
    The error message I'm getting now is '405 Method not Allowed'
    when working through the connection dialog. I thought PHP/MySQL was
    supposed to be easier & better than ASP/Access?
    In going through the site setup, instructions for setting up
    the site's testing server say 'click test to verify the connection'
    but there's no button to click. What am I missing?
    Is there some kind of easy test script I can attempt, as with
    asp? Problem there was that I could do the 'timetest' sample, but
    nothing else.
    I have gone through setting permissions and creating IUSR_my
    computer name as a user - they seemd to work fine, but I still
    can't connect.
    Thanks anyone, and everyone - my first post regarding
    connection problems was on 8/22 and I feel like I have gotten
    nowhere.

    Have you looked at this tutorial?
    http://www.adobe.com/devnet/dreamweaver/articles/setting_up_php.html
    Ken Ford
    Adobe Community Expert Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    "LReber" <[email protected]> wrote in
    message
    news:gcegd6$qmu$[email protected]..
    > Problem - I'm unable to connect to a PHP database. I'm
    working right now
    > with
    > tutorials from the DW CS3 Bible by Lowery, but haven't
    been able to
    > connect at
    > all. And I wasted weeks trying the same thing with an
    ASP connection.
    > The error message I'm getting now is '405 Method not
    Allowed' when working
    > through the connection dialog. I thought PHP/MySQL was
    supposed to be
    > easier &
    > better than ASP/Access?
    > In going through the site setup, instructions for
    setting up the site's
    > testing server say 'click test to verify the connection'
    but there's no
    > button
    > to click. What am I missing?
    > Is there some kind of easy test script I can attempt, as
    with asp? Problem
    > there was that I could do the 'timetest' sample, but
    nothing else.
    > I have gone through setting permissions and creating
    IUSR_my computer name
    > as
    > a user - they seemd to work fine, but I still can't
    connect.
    > Thanks anyone, and everyone - my first post regarding
    connection problems
    > was
    > on 8/22 and I feel like I have gotten nowhere.
    >

  • Help with php mysql connect script

    Ok guys im new to php mysql and i'm trying to insert some
    form information in my database. Im using a script from sitepoint
    in which i went through the tutorial did some experiments of my own
    and it worked....
    but now i'm getting this error which i cant figure out....
    Error placing order: You have an error in your SQL syntax;
    check the manual that corresponds to your MySQL server version for
    the right syntax to use near 'order SET product ='1',
    size='medium', color='', quantity = '1' at line 1
    here is the page
    http://vaughntucker.com/imagecon/hats.php
    and this is the script
    <?php
    //default page display
    //connect to database
    $dbcnx = @mysql_connect('p3nl41mysql7.secureserver.net',
    'imagecon', 'Dub*boss_1');
    if (!$dbcnx) {
    echo '<p> Unable to connect to the '. 'database server
    at this time.</p>';
    exit();
    //select database
    if (!@mysql_select_db('imagecon')) {
    exit('<p>Unable to locate the ' .
    'database at this time.</p>');
    //Mysql query add joke
    if (isset($_POST['submit'])) {
    $product = 1;
    $size = $_POST['size'];
    $color = $_POST['color'];
    $quan = $_POST['quantity'];
    $sql = "INSERT INTO order SET
    product ='$product',
    size='$size',
    color='$color',
    quantity = '$quan',
    date = CURDATE()";
    }else{
    echo 'No data submited';
    if (@mysql_query($sql)) {
    echo '<p>Your order has been submited.</p>';
    } else {
    echo '<p>Error placing order: ' .
    mysql_error() . '</p>';
    ?>
    thanks in advance

    $sql = "INSERT INTO order SET
    product ='" . $product . "',
    size='" . $size . "',
    color='" . $color . "',
    quantity = '" . $quan . "',
    I believe there are other more elegant ways to do this, as
    well.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "beatzMalone" <[email protected]> wrote in
    message
    news:[email protected]...
    > Ok guys im new to php mysql and i'm trying to insert
    some form information
    > in
    > my database. Im using a script from sitepoint in which i
    went through the
    > tutorial did some experiments of my own and it
    worked....
    >
    > but now i'm getting this error which i cant figure
    out....
    >
    > Error placing order: You have an error in your SQL
    syntax; check the
    > manual
    > that corresponds to your MySQL server version for the
    right syntax to use
    > near
    > 'order SET product ='1', size='medium', color='',
    quantity = '1' at line 1
    >
    > here is the page
    >
    http://vaughntucker.com/imagecon/hats.php
    >
    > and this is the script
    > <?php
    > //default page display
    > //connect to database
    > $dbcnx = @mysql_connect('p3nl41mysql7.secureserver.net',
    'imagecon',
    > 'Dub*boss_1');
    > if (!$dbcnx) {
    > echo '<p> Unable to connect to the '. 'database
    server at this
    > time.</p>';
    > exit();
    >
    > }
    >
    > //select database
    > if (!@mysql_select_db('imagecon')) {
    > exit('<p>Unable to locate the ' .
    > 'database at this time.</p>');
    > }
    >
    > //Mysql query add joke
    > if (isset($_POST['submit'])) {
    > $product = 1;
    > $size = $_POST['size'];
    > $color = $_POST['color'];
    > $quan = $_POST['quantity'];
    > $sql = "INSERT INTO order SET
    > product ='$product',
    > size='$size',
    > color='$color',
    > quantity = '$quan',
    > date = CURDATE()";
    > }else{
    > echo 'No data submited';
    >
    > }
    > if (@mysql_query($sql)) {
    > echo '<p>Your order has been submited.</p>';
    > } else {
    > echo '<p>Error placing order: ' .
    > mysql_error() . '</p>';
    > }
    >
    >
    >
    > ?>
    >
    > thanks in advance
    >

  • Php mysql connect with yahoo

    I HAVE HOST ON YAHOO AND THIS SCRIPT DOSN'T WORK WITH YAHOO
    can u help me ....
    <?php
    # FileName="Connection_php_mysql.htm"
    # Type="MYSQL"
    # HTTP="true"
    $hostname_midcommerce = "localhost";
    $database_midcommerce = "DATABASE";
    $username_midcommerce = "USER";
    $password_midcommerce = "PASSWORD";
    $midcommerce = mysql_pconnect($hostname_DATABASE,
    $username_DATABASE, $password_DATABASE) or
    trigger_error(mysql_error(),E_USER_ERROR);
    ?>

    Hung Kuen Kung Fu wrote:
    > MYSQL is not listed under the phpinfo page. MMM. Not
    sure how to enable this in the php.ini so i will have to look.
    Remove the semicolon from the beginning of these lines in the
    Windows
    extensions section:
    ;extension=php_mbstring.dll
    ;extension=php_mysql.dll
    Also add this line after them:
    extension=php_mysqli.dll
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • PHP MySQL connect error

    OK
    I get the following error when running my php pages on our
    new web server (Windows Server 2003):
    Fatal error: Call to undefined function mysql_pconnect() in
    c:\Inetpub\wwwroot\jionas_website\Connections\jonas_website.php
    on line 9
    When I open the file jonas_website.php it indicates the
    filename Connection_php_mysql.htm. It is on my local machine in the
    programs folder but not on the web server. Should it be?
    If I run a phpinfo page it runs fine...actually any php
    commands seems to work.
    I also get that "unidentified error" when I try to connect to
    MYSQL through Dreamweaver MX 2004. I have followed all the
    suggestions in the technote for this error. I still get it.
    I can connect to the MYSQL server through MYSQLadministrator
    so I am not sure what is going on.
    Please help.
    Darren

    Hung Kuen Kung Fu wrote:
    > MYSQL is not listed under the phpinfo page. MMM. Not
    sure how to enable this in the php.ini so i will have to look.
    Remove the semicolon from the beginning of these lines in the
    Windows
    extensions section:
    ;extension=php_mbstring.dll
    ;extension=php_mysql.dll
    Also add this line after them:
    extension=php_mysqli.dll
    David Powers
    Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    http://foundationphp.com/

  • PHP/MySQL issue after security update 2010-005

    Hello,
    I run Apache/PHP/MySQL on my MBP for testing Web sites.
    After the 2010-005 security update I can't connect to my databases anymore.
    I don't know how to fix this, I even don't know where to start looking.
    Ideas, anyone?

    coloma wrote:
    etresoft, thanks for sharing this ... I decided to go with the TriangleJuice suggestion instead for two reasons ... first is that I wasn't sure where to find this launchd file.
    There is nothing wrong with TriangleJuice's suggestion. My only issue with creating a php.ini file is that now I have to worry about all those other settings in the ini file. If something else in PHP breaks, I have to figure out if I am the one who broke it.
    Apple ships MySQL with MacOS X Server. They probably adjusted the PHP settings to match how they have MySQL setup in MacOS X Server.
    For MySQL's, no, Sun's - drat! no, Oracle's part, they still haven't acknowledged the fact that Apple has shipped MacOS X 10.4. MySQL still ships with a Startup Item. If you don't know where the launchd file is, it is because you don't have one. You probably have a MySQL entry in /Library/StartupItems or maybe /System/Library/StartupItems. Startup Items were deprecated in 10.4. Oracle should be creating a file named com.mysql.mysqld.plist in /Library/LaunchDaemons.
    Here is what mine looks like now:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
    <key>KeepAlive</key>
    <true/>
    <key>Label</key>
    <string>com.mysql.mysqld</string>
    <key>ProgramArguments</key>
    <array>
    <string>/usr/local/mysql/bin/mysqld</string>
    <string>--socket=/var/mysql/mysql.sock</string>
    <string>--basedir=/usr/local/mysql</string>
    <string>--datadir=/usr/local/mysql/data</string>
    <string>--user=mysql</string>
    <string>--log-error=/usr/local/mysql/data/Pele.local.err</string>
    <string>--pid-file=/usr/local/mysql/data/Pele.local.pid</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    </dict>
    </plist>
    I also don't have a /var/mysql directory and wasn't sure whether I should just create one or if this meant my configuration was different. If you feel like explaining any of this, I'd be curious to know.
    You have to create one. Such a directory probably already exists on MacOS X Server. Just make sure it is owned by mysql.
    sudo mkdir /var/mysql
    sudo chown _mysql:staff /var/mysql
    sudo chmod 0755 /var/mysql
    [jdaniel@Pele:516] /var $ ls -al /private/var | grep mysql
    drwxr-xr-x 3 _mysql staff 102 Aug 26 20:03 mysql
    Of course, /var is a symbolic link to /private/var. Long story there.

  • How to update PHP, MySQL or Apache

    The Mac OS X 10.6.2 system does not include the latest versions of PHP, MySQL or Apache.
    What is the recommended update procedure for PHP, MySQL or Apache:
    a) automatically by Mac OS X system (is this possible?) or
    b) manually by the administrator (are there any documentations?)
    Many thanks.
    Actual system versions:
    Mac OS X 10.6.2
    MySQL 5.0.82
    Apache 2.2

    Hi, Thanks for your answer.
    That sounds Apple do not seriously release updates of third party packages shipped with the system (like Apache, mySQL ...) very often.
    To use month or year old packages in a web environment is a big risk, e.g. mySQL actual official version is V5.50 / mySQL Version shipped and updated by Mac OS X 10.6.2 Server is V5.0.82).
    The same with Apache and PHP, both are packages included in Mac OS X Snow Leopard Server product by Apple and are included in a old version.
    And when manually updates by the administrator of the server system do not work well or are not supported by the OS X Server system (as I understand your posting), the administrator can not act to improve and secure the system.
    That can only lead to one conclusion: Apple's Mac OS X Snow Leopard Server should not be used in a productive, internet faced web environment.
    Is this true? I do not want to believe this!?
    Is there really no official supported or documented procedure by Apple to keep the integrated third party components updated?
    I'd like to prefer Mac OS X Server odd Linux distribution because it seems more handy to administrate and to use, e.g. tools like Server Admin. These tools are an advantage of Mac OS X Server.

  • Best way to update images using PHP / MySQL?

    HI
    I want to update images using PHP/MySQL, so users can update their images and maybe some other files but mainly images.
    thanks

    How messed up is this code?!
    <?php
    //connect to database
    $con = mysql_connect("testhost","testuser","pass");
    // file properies
    $file = $_FILES['image']['tmp_name'];
    if (!isset($file))
    echo "please select an image";
    else {
        $id = $_REQUEST['id_display'];
        $image = ($_FILES['image']['tmp_name']) ? file_get_contents ($_FILES['image']['tmp_name']) : '';
        $image_name = ($_FILES['image']['name']) ? addslashes($_FILES['image']['name']): '';
        $image_size = ($_FILES['image']['tmp_name']) ? getimagesize($_FILES['image']['tmp_name']): '';
        if ($image_size == FALSE)
        echo "You have not selected an image.";
        else {
            mysql_select_db("test_display", $con);
            mysql_query("UPDATE testtable SET image = '$image', imagename = '$image_name' WHERE id_display='$id'");
    ?>
    And the upload page....
    /*Update code */ /*End update code */                            

  • Php/mysql update

    I can not find how to get the new fix for php/mysql any body
    know how ?

    New fix?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "3DForce" <[email protected]> wrote in
    message
    news:ehd6aj$gf1$[email protected]..
    >I can not find how to get the new fix for php/mysql any
    body know how ?

  • DW 8.0.2 PHP/MySQL Replicable crash

    Running on new iMac Core 2 AND MacBookPro both with 2Gb.
    Using PHP and MySQL connection. Create a table on a PHP page with,
    say, 2 rows and 10 columns -- one row for header and one for data.
    Connect a MySQL table. In the connections window, drop down the
    table to list the columns. Start dragging MySQL columns from the
    right pane to the PJP page table. Column table.col1 to PHP table
    row 2 col 1, table.col2 to PHP table row 2 col 2, etc. IF you drag
    them SLOWLY, WAITING between each "drag" for DW to settle down, you
    MAY be able to get more than 2 or 3 of them into the table. If you
    drag the MySQL column ($row_Recordset['cal1'], etc.) QUICKLY, by
    about the 3rd or so "drag", you'll get the beach ball and, get
    this, SAFARI will get an "unexpected quit" warning -- NOT
    DreamWeaver. But all is for naught. If you move really fast, you
    MIGHT be able to get to the force quit screen in time. In all
    liklihood, you won't. Eventually -- less than a minute -- OS X
    hangs and there is nothing you can do except kill the system with
    the power button. Scenario is the same on both my Macs. Repeatable
    and predictable. Now it LOOKS LIKE (and I am NOT qualified to make
    a prefessional judgement here) DW is leaking memory and eventually
    absorbs ALL memory from the system until OSX grinds to a halt, or,
    it is causing the disk to thrash and bringing OSX to its
    knees.

    bikeman01 wrote:
    > As I said the problem was fixed up to php 5.2.5. Going
    to php 5.2.6. has
    > broken this again. I don't know what has changed in php
    5.2.6 that might cause
    > this.
    >
    > Are you able to confirm this problem in php 5.2.6?
    No. I have installed PHP 5.2.6 on a different machine, and
    tested the
    XSL Transformation server behavior. It works exactly the same
    as in 5.2.5.
    > If confirmed, what is the process for raising a bug and
    will Adobe fix it?
    I cannot confirm the problem, so there's nothing I can see
    for Adobe to
    fix. However, the correct channel for reporting bugs is
    through the form
    at the following address:
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Even if a problem can be identified, it's highly unlikely
    that Adobe
    would issue an updated version of the 8.0.2 hotfix. The
    hotfix worked
    perfectly with the version of PHP that was current at the
    time. Since
    then, CS3 has been released, and CS4 is being officially
    announced next
    Tuesday. If a fix is required (and I don't believe one is),
    the normal
    policy is to supply it for the current version of
    Dreamweaver, not one
    that is no longer on sale.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Can't connect PHP/MySQL 404 error

    Wow, the learning curve is killing me. Yet another challenge. I'm using Dreamweaver CC and this tutorial http://www.adobe.com/devnet/dreamweaver/articles/setup_php.html
    I'm at this step:
    Open comments.php. You must have a PHP page open in the Document window to create a MySQL connection.
    In the Databases panel (choose Window > Databases), click the Plus button on the panel and select MySQL Connection.The MySQL Connection dialog box appears.
    Type connTest as the connection name.
    For the MySQL Server, type localhost.If you are using the MAMP default ports on a Mac, use localhost:8889.
    For the User Name, type phptestuser.
    Type the password you chose for the phptestuser account in the Password field.
    For the Database, type php_test.Note: You don't need to precede the underscore with a backslash here. It was inserted by phpMyAdmin in the previous section (see Figure 20) only because phpMyAdmin uses a query that permits wildcard characters.
    Click Test.Dreamweaver attempts to connect to the database. If the connection fails, do the following:
    Double-check the server name, user name, and password.
    Check the settings for the folder Dreamweaver uses to process dynamic pages (see Specifying a Testing Server for Dreamweaver).
    Verify that the web and MySQL servers are both running.
    Temporarily disable any firewall or security program. If the connection works, you need to configure the security program to permit communication between Dreamweaver and MySQL.
    Click OK. The new connection appears in the Databases panel.
    Expand the connTest connection, and then expand the Tables branch. You'll see the comments table in the database, which you can expand to reveal the details of the table columns (see Figure 23).
    As far as I can tell I have followed this tutorial to the letter.
    As far as I can tell, XAMPP/php mySQL are all running fine, the files are in the correct place and everything should be working. However when I hit test I get a 404 error. (Same error when I hit the select button.)
    The suggested problems on the 404 message are:
    1. There is no testing server running on the server machine.
    Pretty sure the testing server is running. Is there any way to test this, other than to note that xampp is definitely running right now and that I can log into phpMYadmin no problem?
    2. The testing server specified for this site does not map to the http://localhost/php_test/_MMServerScripts/MMHTTPDB.php URL Verify that the URL Prefix maps to the root of the site.
    Ummm...I'm pretty sure I put things where I was told to put them in the tutorial, but I'm lost at this point where I should verify what. A clue here? The files are where they are supposed to be, but maybe I entered something wrong? Except...I'm not sure what that could be or where to find it. Whatever IT is.
    Everything in local files is looking good.
    Thanks for your help!
    PS: Extra points to anyone who figures out how to make copy/pasteable error messages! These buggers are the bane of my life!

    Bgupta, you rock!
    I hope you have copied the "mysql.php" and "MMHTTPDB.php" files from "C:\Users\username\AppData\Roaming\Adobe\Dreamweaver CC\locale\Configuration\Connections\Scripts\PHP_MySQL\_mmDBScripts" to "C:\xampp\htdocs\phptest\_mmServerScripts"
    This was EXACTLY the problem. I checked the tutorial and I couldn't even find where the tutorial said to do this. (If I missed it, let me know where in the tutorial it was, please.)
    Fixed!

  • Command in php / mysql

    Hello,
    I used to program a lot in ASP, and loved the command
    function.
    However, now that I'm programming in PHP I do not have this
    at my disposal unfortunately.
    How does everyone perform certain actions on forms right
    now?, for example I'm performing an update on a record, but want to
    update all records in the table first by setting a certain field to
    0.
    Any thoughts and ideas / samples are greatly
    appreciated!

    Jasmine2002 wrote:
    > Correct, in ASP however I had the command so I can later
    on easily call up the
    > box and change / add / update my SQL.
    >
    > Do you just write the appropriate PHP for it?, I don't
    really know how to
    > properly write this in conjuction with Dreamweaver.
    I suspect that command is probably a stored procedure.
    Unfortunately,
    stored procedures were added to MySQL only in version 5.0,
    and
    Dreamweaver doesn't support stored procedures in the PHP
    MySQL server
    model. (I've lobbied for support, but it hasn't happened
    yet.)
    Your update is rather unusual, but you should be able to get
    Dreamweaver
    to generate the code for you using the Update Record server
    behavior.
    David Powers, Adobe Community Expert
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • PHP/MySQL incommunicado since upgrading OS X Server 10.4.2 - 10.4.3

    Back when 10.4 first came out and I foolishly upgraded my server right away, I spent hours trying to reconfigure PHP because Apple had monkeyed with with the configuration (since 10.3) and shipped it such that PHP/MySQL wouldn't speak out of the box. I think the trouble had something to do with the location that PHP looks for MySQL, but low level config of these services isn't really my area of expertise. Eventually I got it fixed, but it was a nightmare trying to figure out what was wrong.
    Sooo....performed the update to 10.4.3 this morning....and now if I try to bring up a php page in a web browser:
    Warning: mysql_pconnect(): Can't connect to MySQL server on '10.0.1.250' (61)...
    And that's as far as it gets. Anyone have any ideas? I would speculate that Apple may have finally addressed the issue that was preventing PHP/MySQL from working out-of-box in 10.4, but, in doing so, my workaround for that problem has now become a problem itself.
    Any advice or help would be of greatly appreciated!

    Make sure mySQL server process is started running.
    I think on some upgrades the setting for automatic start of mySQL
    servcies gets set to NO in /etc/hostconfig file

Maybe you are looking for

  • Error while installtion of SAP NetWeaver Sneak Preview

    Hi, I get the following error while installing the Sneak Preview version of SAP NetWeaver. This error occurs while checking for the JCE. Request your help. ERROR 2007-05-21 00:34:46 FSL-00001  System call failed. Error 5 (Access is denied. ) in execu

  • Final cut won't open on lion

    Installed final cut  7 on a brand new mac pro os lion.  Opened once then won't open after that.  Now when I click on the icon, it goes thru the loading stuff then just quits.

  • HP SERVER SCSI U320 PCI-E ADAPTER [412911-B21] windows 7 x64 driver?

    Hi, the card 412911-B21, can be installed on windows 7 x64? I only found these drivers: http://goo.gl/woBrl Thank you

  • RDS server Error in Conncting to Blazeds  Data source in Flashbuilder 4

    hi all, I have a problem with my flash builder 4 with connecting to Blazeds  data source First i have installed Flash Builder 4  and Tomcat 6.0  and  create projects , fine they work.Then i installed WTP plugin for eclipse since i need to develop J2e

  • Adobe Premiere Pro CS6 permissions problem

    I've purchased membership in the Abobe Creative Cloud. All the apps work except Premiere Pro. When I'm logged into my normal account and try to start the app, I get this message: Premiere Pro has encountered an error. [/Volumes/BuildDisk/builds/might