Live view test server won't execute php scripts

Hello everyone!
I've had a web developer design a site for me based on php.
Rather than bother them for simple image changes and content
updates, I'm trying to learn to do those things myself. I'm very
new to Dreamweaver and I'm having difficulties getting php script
to execute through my test server. I have the latest versions of
Dreamweaver, MySQL, php, and Apache installed on my machine. I've
downloaded the source files off of my hosting server. The problem
is when I try to "Live View" the "index.php" off of the root file
on the test server, Dreamweaver gives me an error that says:
"The testing server did not execute any of the scripts in
your document. Possible explanations include:
1.> The test server is not running
2.> The test server ignores files with .php. in the
extension
3.> The documents did not contain any scripts."
I know my system is working properly because I created a page
"timetest.php" with the following code:
<p>This page was created at <b><?php echo
date("h:i:s a", time()); ?></b> on the computer running
PHP.</p>
...and it works fine in "Live View".
Any ideas what the problem might be? I've been reading books
and searching online and I haven't been able to figure it out.
Here's what the code on "index.php" looks like:

What happens when you view your page on your test server in a
browser?
Are the php scripts executed?
Also, the macromedia.dreamweaver.appdev forum is a more
appropriate
place for this question, so you might get a better response.
Randy
> "The testing server did not execute any of the scripts
in your document.

Similar Messages

  • How does execute PHP Script from SAP?

    I've already installed SAPRFC and run SAP Function from PHP successfully. But failed when tried execute PHP script from SAP (SM59). Anyone can help me for a clear instruction for this problem?
    Thanks

    Hi Max,
    here is the Source:
    [code]
    #!/usr/bin/php -q
    <?php
    // SAPRFC - Server example
    // PHP server function RFC_READ_REPORT
    // Require: CGI version PHP, RFC destination defined in SAP R/3 (SM59)
    // http://saprfc.sourceforge.net
    // Interface definiton for RFC_READ_REPORT
    // (generated by saprfc.php - option Generate PHP)
       $DEF_RFC_READ_REPORT = array (
                             array (
                                     "name"=>"SYSTEM",
                                     "type"=>"EXPORT",
                                     "optional"=>"0",
                                     "def"=> array (
                                             array ("name"=>"","abap"=>"C","len"=>8,"dec"=>0)
                             array (
                                     "name"=>"TRDIR",
                                     "type"=>"EXPORT",
                                     "optional"=>"0",
                                     "def"=> array (
                                             array ("name"=>"NAME","abap"=>"C","len"=>40,"dec"=>0),
                                             array ("name"=>"SQLX","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"EDTX","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"VARCL","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"DBAPL","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"DBNA","abap"=>"C","len"=>2,"dec"=>0),
                                             array ("name"=>"CLAS","abap"=>"C","len"=>4,"dec"=>0),
                                             array ("name"=>"TYPE","abap"=>"C","len"=>3,"dec"=>0),
                                             array ("name"=>"OCCURS","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"SUBC","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"APPL","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"SECU","abap"=>"C","len"=>8,"dec"=>0),
                                             array ("name"=>"CNAM","abap"=>"C","len"=>12,"dec"=>0),
                                             array ("name"=>"CDAT","abap"=>"D","len"=>8,"dec"=>0),
                                             array ("name"=>"UNAM","abap"=>"C","len"=>12,"dec"=>0),
                                             array ("name"=>"UDAT","abap"=>"D","len"=>8,"dec"=>0),
                                             array ("name"=>"VERN","abap"=>"C","len"=>6,"dec"=>0),
                                             array ("name"=>"LEVL","abap"=>"C","len"=>4,"dec"=>0),
                                             array ("name"=>"RSTAT","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"RMAND","abap"=>"C","len"=>3,"dec"=>0),
                                             array ("name"=>"RLOAD","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"FIXPT","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"SSET","abap"=>"C","len"=>1,"dec"=>0),
                                             array ("name"=>"SDATE","abap"=>"D","len"=>8,"dec"=>0),
                                             array ("name"=>"STIME","abap"=>"C","len"=>6,"dec"=>0),
                                             array ("name"=>"IDATE","abap"=>"D","len"=>8,"dec"=>0),
                                             array ("name"=>"ITIME","abap"=>"C","len"=>6,"dec"=>0),
                                             array ("name"=>"LDBNAME","abap"=>"C","len"=>20,"dec"=>0)
                             array (
                                     "name"=>"PROGRAM",
                                     "type"=>"IMPORT",
                                     "optional"=>"0",
                                     "def"=> array (
                                             array ("name"=>"","abap"=>"C","len"=>40,"dec"=>0)
                             array (
                                     "name"=>"QTAB",
                                     "type"=>"TABLE",
                                     "optional"=>"0",
                                     "def"=> array (
                                             array ("name"=>"LINE","abap"=>"C","len"=>72,"dec"=>0)
    // Create list of PHP server functions
       $GLOBAL_FCE_LIST[RFC_READ_REPORT] = saprfc_function_define(0,"RFC_READ_REPORT",$DEF_RFC_READ_REPORT);
    // PHP server function
       function RFC_READ_REPORT ($fce)
           $REPORT = saprfc_server_import ($fce,"PROGRAM");
           saprfc_table_init ($fce,"QTAB");
           $fd = fopen ($REPORT,"r");
           if (!$fd)
               return ("NOTFOUND");     // raise exception "NOTFOUND"
           while (!feof($fd))
               $LINE = fgets ($fd,73);
               saprfc_table_append ($fce,"QTAB",array("LINE"=>$LINE));
           fclose ($fd);
           saprfc_server_export ($fce,"SYSTEM","PHP");
           return (true);
    // Call script with: ./server.php -a phpgw -g hostname -x sapgw00
       $rfc = saprfc_server_accept ($argv);
    // Dispatch one function call
       $rc = saprfc_server_dispatch ($rfc,$GLOBAL_FCE_LIST);
       saprfc_close ($rfc);
    ?>
    [/code]
    Regards
    Gregor
    Message was edited by: Gregor Wolf

  • Problems setting up testing server CS5 with existing PhP site copied to hard drive

    A couple of years ago I dabbled in CS3 & PhP, but haven't touched it since 2009.  I still have WAMP loaded on my machines.  I'm now in a work situation where I was asked to see if I could make some simple copy updates to sites written in PhP.  I copied the entire sites over to my hard drive, and placed them in the WAMP www root folder, and followed instructions to setting up the site in CS5 (which is pretty close to the CS3 setup).  I made sure WAMP was running, and I'm still unable to connect. I am using "localhost" as part of the URL for the web server designation. I continue to get an "internal server error" message on these pages.  I am able to, from my browser, type in "http:localhost" and it appears that WAMP is running properly. And I do remember to start WAMP before I start a DW session.
    So, I kept experimenting.  If I define a new PhP site and create a test document with simple PhP code, the connection to the testing server works and renders the code.  It's just the existing PhP site I've copied over generates the Internal server message.
    Is there something basic I'm not understanding about viewing and manipulating a PhP site created by someone else using DW CS5?

    The first question: on what platform? Windows - Mac?
    I only succeeded in setting up a testing server on my Mac
    with PHP and MySQL after reading a book of David Powers. On Leopard
    I belief there still are problems connecting PHP to MySQL.

  • DW CS5 - PHP in HTML file - no display in DW live view

    Have DW CS5, Local IIS 7 (Win 7 64x) testing server (Server Model: PHP MySQL) set up and working. External browsers render .html files with PHP fine (URL=http://localhost/testphp.html), DW Live View will not parse/display the PHP with ".html" extension. No ".htaccess" file, DW PHP Tag Library has all PHP "Used In:" boxes checked. Example:
    Example 1
    File name: testphp.php
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    DW Live View and external browser URL: http://localhost/testphp.php:
    Hello There
    Hello World
    Example 2
    File name: testphp.html (same content as above, just filename extension changed)
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    DW Live View:
    Hello There
    external browser URL: http://localhost/testphp.html:
    Hello There
    Hello World
    How to configure DW CS5 to display PHP in DW Live View with file extension= ".html"?
    Thanks in advance, have spent 2 days trying to accomplish!
    Steve

    File name: testphp.php 
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    This is not PHP code
    The red code part should read as to be classified as PHP script
    <?php echo "Hello World"; ?>
    File name: testphp.html (same content as above, just filename extension changed) 
    <html>
    <body>
    <h1>Hello There</h1>
    <script language="php">
    echo "Hello World";
    </script>
    </body>
    </html>
    Apart from the same mistake as above, this file will not be recognised as containing PHP without the PHP extension. You can setup the server to accept HTML and to interpret same as PHP, but I would not recommend this.
    DW Live View:
    Hello There
    external browser URL: http://localhost/testphp.html:
    Hello There
    This is amazing! With the code above? If you hadn't told me I would not have believed it. I tried it on my humble setup and you are correct. It works using the PHP file but not the HTML file. It doesn't matter, it is still not correct.
    How to configure DW CS5 to display PHP in DW Live View with file extension= ".html"?
    It is not up to DW to determine, it is the PHP server that determines whether PHP in an HTML file will be shown. Have a look here http://php.about.com/od/advancedphp/p/html_php.htm .Once again, I do not recommend this
    I hope this helps.
    Ben

  • Trouble viewing php in live view or split screen

    I have installed a testing server to render the php in my dreamweaver site. I have php5.3 on mac os x 10.6. The split view only shows a simple "php" logo or icon. Any idea what is going on? Or how to resolve the php rendering so that it provides a "live view" of the page?

    Thank you for your reply. Apache is running and php is operational in that  a query of http:// localhost  replies with a "2" in response to a simple php script to echo 2.

  • My Live view doesn't work, it can't 'find my server'. But my server is connected and working. Why?

    Hi,
    I am confused as to why my live view can't connect to my server. However I have successfully connected to my server outside of the live view and uploaded my website.
    I am new to dreamweaver, and I trying to learn to build a wordpress site from sractch. This is the error message I get:
    The page "http://ftp.stoneinyrshoe.co.uk/index.php" was not loaded because Dreamweaver could not find the server "ftp.stoneinyrshoe.co.uk". Please make sure you are connected to the internet and the server name is correct.
    When I direct Live view (testing) to use the same site details as my main connection, it still doesn;t work.
    Any advice would be much appreciated.
    Thanks

    That's an FTP address you are trying to connect do.  That's different from the regular HTTP protocol.  From the address you posted I'm wondering if you have installed MAMP/WAMP for a local server on your machine or if this testing server is separate from the actual domain serving the pages.  Can you explain your setup a little more?

  • Need Help Setting Up Testing Server

    Hi. I have been using Dreamweaver for a while, but am
    extremely new at the whole testing server thing, as I have been
    building only simple pure-html pages.
    I am want to password protect a part of my site using the
    Insert > Data Objects > User Authentication > Log In User.
    I have already converted my whole site from .html pages to
    .php pages, because I thought that .html pages wouldn't work.
    Everytime I try to use that Log In User menu command,
    Dreamweaver gives me a dialog box that says, "Before inserting this
    object, please do the following: 1. Create a site for this file 2.
    Choose a document type 3. Set up the site's testing server".
    Numbers 1 and 2 have a checkbox which I am assuming means they are
    done correctly. But number 3 (set up teh site's testing server) has
    no checkbox and the dialog box will not allow me to click OK, which
    leads me to assume that I need to accomplish the aforementioned
    step number 3.
    So I go to the Site Definition for my site and under the
    Advanced Tab go to Testing Server. I want PHP MySQL as the server
    model, so I chose that. And I am guessing I need to choose
    Local/Network for the Access option because
    the computer I am building this site on is not connected to the
    internet. (I have no intention of hooking this machine up to
    the internet becauase all of my work I have ever done is on it!)
    Now, here lies my main question: What should the Testing
    server folder be? And what should the URL prefix be? And do I need
    to change anything else?
    If I am not being clear about anything regarding my
    questions, please make a point of it, and I will try to be more
    clear.
    Thank you so much for helping!

    > Host Directory:/root folder/ (if no root folder
    directory use "/"
    Or leave it blank.
    > FTP Host:yoursite.com
    I see that this is a *real* domain, with a real registration.
    It's best to
    just use 'example.com' for dummy domain names.
    > URL Prefix:
    http://your-site.com/
    Ditto. And by the way, there was no hyphen when you first
    used this!
    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
    ==================
    "DWFAQ.info" <[email protected]> wrote in
    message
    news:gkeu60$hjl$[email protected]..
    > You need to be connected to the internet to test dynamic
    attributes.
    >
    > For advanced/testing server enter the following
    formatted exactly as it is
    > displayed:
    >
    > Access:FTP
    > FTP Host:yoursite.com
    > Host Directory:/root folder/ (if no root folder
    directory use "/" no
    > quotations)
    > Login:Host login Username
    > Password: Host Login Password
    > Check Save checkbox
    > No other checkboxes
    > URL Prefix:
    http://your-site.com/
    >
    > Click the test button and see what happens.
    >
    > Best,
    >

  • Help downgrade a php script generated by FB back to the old Mysql way

    hey all
    i am a Flex developer who has written server side stuff with php scripts that were auto-generated by Flash Builder. These scripts use the Mysqli extention, which is not avilable on my shared hosting server. These scripts implement simple CRUD functions to a MySql database. Anyone who has used the data wizard will recognize these scripts.
    Just before i pay more bucks and move to a VPS server in order to enable Mysqli, is there anyone out there who can help me translate this script BACK to the old mysql way?
    much appriciated, Saar
    <?php
    class ClientService {
        var $username = "******";
        var $password = "******";
        var $server = "localhost";
        var $port = "3306";
        var $databasename = "rtdbcbx_saar";
        var $tablename = "clients";
        var $connection;
         * The constructor initializes the connection to database. Everytime a request is
         * received by Zend AMF, an instance of the service class is created and then the
         * requested method is invoked.
        public function __construct() {
            $this->connection = mysqli_connect(
                                    $this->server, 
                                    $this->username, 
                                    $this->password,
                                    $this->databasename,
                                    $this->port
            $this->throwExceptionOnError($this->connection);
         * Returns all the rows from the table.
         * Add authroization or any logical checks for secure access to your data
         * @return array
        public function getAllClient() {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename");       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            $rows = array();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            while (mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            mysqli_stmt_free_result($stmt);
            mysqli_close($this->connection);
            return $rows;
         * Returns the item corresponding to the value specified for the primary key.
         * Add authorization or any logical checks for secure access to your data
         * @return stdClass
        public function getClientByID($itemID) {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename where ClientID=?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'i', $itemID);       
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            if(mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              return $row;
            } else {
              return null;
         * Returns the item corresponding to the value specified for the primary key.
         * Add authorization or any logical checks for secure access to your data
         * @return stdClass
        public function createClient($item) {
            $stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename (First, Last, Phone, Email, Chain, Branch, Kiosk, SubmitDate) VALUES (?, ?, ?, ?, ?, ?, ?, ?)");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ssssssss', $item->First, $item->Last, $item->Phone, $item->Email, $item->Chain, $item->Branch, $item->Kiosk, $item->SubmitDate->toString('YYYY-MM-dd HH:mm:ss'));
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);    
            $this->throwExceptionOnError();
            $autoid = mysqli_stmt_insert_id($stmt);
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
            return $autoid;
         * Updates the passed item in the table.
         * Add authorization or any logical checks for secure access to your data
         * @param stdClass $item
         * @return void
        public function updateClient($item) {
            $stmt = mysqli_prepare($this->connection, "UPDATE $this->tablename SET First=?, Last=?, Phone=?, Email=?, Chain=?, Branch=?, Kiosk=?, SubmitDate=? WHERE ClientID=?");     
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ssssssssi', $item->First, $item->Last, $item->Phone, $item->Email, $item->Chain, $item->Branch, $item->Kiosk, $item->SubmitDate->toString('YYYY-MM-dd HH:mm:ss'), $item->ClientID);     
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);    
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
         * Deletes the item corresponding to the passed primary key value from
         * the table.
         * Add authorization or any logical checks for secure access to your data
         * @return void
        public function deleteClient($itemID) {
            $stmt = mysqli_prepare($this->connection, "DELETE FROM $this->tablename WHERE ClientID = ?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'i', $itemID);
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
         * Returns the number of rows in the table.
         * Add authorization or any logical checks for secure access to your data
        public function count() {
            $stmt = mysqli_prepare($this->connection, "SELECT COUNT(*) AS COUNT FROM $this->tablename");
            $this->throwExceptionOnError();
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_bind_result($stmt, $rec_count);
            $this->throwExceptionOnError();
            mysqli_stmt_fetch($stmt);
            $this->throwExceptionOnError();
            mysqli_stmt_free_result($stmt);
            mysqli_close($this->connection);
            return $rec_count;
         * Returns $numItems rows starting from the $startIndex row from the
         * table.
         * Add authorization or any logical checks for secure access to your data
         * @return array
        public function getClient_paged($startIndex, $numItems) {
            $stmt = mysqli_prepare($this->connection, "SELECT * FROM $this->tablename LIMIT ?, ?");
            $this->throwExceptionOnError();
            mysqli_stmt_bind_param($stmt, 'ii', $startIndex, $numItems);
            mysqli_stmt_execute($stmt);
            $this->throwExceptionOnError();
            $rows = array();
            mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            while (mysqli_stmt_fetch($stmt)) {
              $row->SubmitDate = new DateTime($row->SubmitDate);
              $rows[] = $row;
              $row = new stdClass();
              mysqli_stmt_bind_result($stmt, $row->ClientID, $row->First, $row->Last, $row->Phone, $row->Email, $row->Chain, $row->Branch, $row->Kiosk, $row->SubmitDate);
            mysqli_stmt_free_result($stmt);    
            mysqli_close($this->connection);
            return $rows;
         * Utility function to throw an exception if an error occurs
         * while running a mysql command.
        private function throwExceptionOnError($link = null) {
            if($link == null) {
                $link = $this->connection;
            if(mysqli_error($link)) {
                $msg = mysqli_errno($link) . ": " . mysqli_error($link);
                throw new Exception('MySQL Error - '. $msg);
    ?>

    hello derekmosdell, in case this question isn't related to volume of media content in firefox in particular, we probably won't be able to answer that. please refer to apple's support resources or discussion fora instead.
    thank you for your understanding!

  • Running PHP Script

    I've enabled the Apache server on my mac, and when I access my local IP address I can see the web page I've created. However, it appears that the server doesn't process PHP scripts, and just returns the source code of the PHP script when I try to open the script in Safari 4. How do I get the built-in Apache server to process PHP scripts and return the desired result?

    PHP is disabled by default. To enable it, you must edit Apache's configuration file. To do this, open up /private/etc/apache2/httpd.conf with a text editor. The file is owned by root, so you'll need appropriate access to modify the file. Text editors like BBEdit or TextWrangler can make this step much easier.
    Fairly early on in the configuration file is the section for the Dynamic Shared Object support - these are the modules that Apache loads to enable it to perform various tasks. In this section are a whole bunch of "LoadModule" statements - one for each module that Apache is loading. One of these is for PHP support. In the httpd.conf file on my machine, the built-in PHP module's statement is on line 114, the next to last item in this section. It reads: "#LoadModule php5_module libexec/apache2/libphp5.so" Remove the "#" from the beginning of the line, save the file, and restart Apache.
    If you plan on using PHP files as the default page for a directory (index.php, for example), you'll need to add index.php to the Directory Index section (line 225 in my file). Apache looks for them in the order listed, so if you list index.php after the index.html that's already there, Apache will look for index.html when asked for the directory before looking for index.php. If you're going to have index.php for most of your directories, you may want to list it first, before index.html.
    With regard to PHP itself, Apple's included PHP isn't any more official that the one I mentioned from Marc Liyanage. They're both compiled from the same source code. And, as far as updating goes, I'd argue that it's easier to update Marc's version, as you simply download an updated version and the installer will overwrite the old version. And, you don't have to wait for Apple to release a new version of OS X or a security update to see if you get a more current version. His versions will almost always be more current than the one Apple provides.
    In any event, Marc's version does not remove Apple's version from your system. His installs in /usr/local/ and leaves Apple's version intact. So, you can always go back to Apple's version by changing a few lines in a configuration file.

  • Setting up Dreamweaver CS4 with PHP testing server... Live View doesnt work

    Hello,
    Im trying to setup Dreamweaver CS4 with a php website im
    making. Ive setup the site information, and provided a testing site
    (XAMPP), and i can see the fully rendered .php pages in the Live
    View tab. However, say i change some of the text in the .php file
    (say from <p>Hello</p> to <p>Hi</p>) and
    then click in the Live View tab - the page does not update. It
    seems to do something, bit just returns the same.
    How do i set it up so, like with plain .html pages, you can
    make a change to the source code and instantly see the change in
    Live View?
    (At the moment i have to make the change to the source code,
    save it, click Live View to cancel it, and then click Live View
    again).
    Background:
    Ive setup XAMPP (G:\XAMPP\)
    Ive setup vhosts in apache.
    Ive stored my websites in G:\Websites
    Ive set the testing server to G:\Websites\site, where "site"
    is setup as a vhost and correctly displays when entered into a
    browser.
    Ive set the url prefix to
    http://site/
    Ive set local root to G:\Websites\site
    Any help would be greatly appreciated.
    Cheers.

    > How do i set it up so, like with plain .html pages, you
    can make a change
    > to
    > the source code and instantly see the change in Live
    View?
    Did you try using F5 to refresh the page? If that doesn't
    work for you,
    then you'll have to drop and restart Live view. No need to
    save and reload
    the page.
    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
    ==================
    "Major_Disaster" <[email protected]> wrote
    in message
    news:gibqir$lgu$[email protected]..
    > Hello,
    >
    > Im trying to setup Dreamweaver CS4 with a php website im
    making. Ive setup
    > the
    > site information, and provided a testing site (XAMPP),
    and i can see the
    > fully
    > rendered .php pages in the Live View tab. However, say i
    change some of
    > the
    > text in the .php file (say from <p>Hello</p>
    to <p>Hi</p>) and then click
    > in
    > the Live View tab - the page does not update. It seems
    to do something,
    > bit
    > just returns the same.
    >
    > How do i set it up so, like with plain .html pages, you
    can make a change
    > to
    > the source code and instantly see the change in Live
    View?
    >
    > (At the moment i have to make the change to the source
    code, save it,
    > click
    > Live View to cancel it, and then click Live View again).
    >
    > Background:
    > Ive setup XAMPP (G:\XAMPP\)
    > Ive setup vhosts in apache.
    > Ive stored my websites in G:\Websites
    > Ive set the testing server to G:\Websites\site, where
    "site" is setup as a
    > vhost and correctly displays when entered into a
    browser.
    > Ive set the url prefix to
    http://site/
    > Ive set local root to G:\Websites\site
    >
    > Any help would be greatly appreciated.
    >
    > Cheers.
    >

  • PHP won't execute on Dream Weaver testing server

    I have successfully installed an Apache server and MySQL using Xampp.  Using Dream Weaver (CS5.5) I've created .php pages which (after setting up the site and testing server) successfully connect to a database.  However, php code on those pages won't execute.  The pages only display the text code when IE or Firefox links to http://localhost/filename.php.  Following is the Apache log file entries for those failed attempts. [Tue Jul 17 08:20:03 2012] [notice] Child 2656: Starting thread to listen on port 443. [Tue Jul 17 08:20:03 2012] [notice] Child 2656: Starting thread to listen on port 443. [Tue Jul 17 08:20:03 2012] [notice] Child 2656: Starting thread to listen on port 80. [Tue Jul 17 08:20:03 2012] [notice] Child 2656: Starting thread to listen on port 80. [Tue Jul 17 10:38:28 2012] [error] [client ::1] script 'C:/Program Files/xampp/htdocs/phpinfo.php' not found or unable to stat [Tue Jul 17 10:51:25 2012] [error] [client ::1] script 'C:/Program Files/xampp/htdocs/phpinfo.php' not found or unable to stat I've run out of ideas about how to solve this.  Anyone?

    If PHP is running in other locations, then it's a configuration issue with the server whereby PHP is not allowed to run in the folder you have specified.  I can tell you filenames and areas to look for, but I'm personally have never found the XAMPP installation to be the most intuitive when it comes to editing which is why I pointed you in their direction.
    If you look in the httpd.conf file, you should see a DocumentRoot defined.  Make sure that the site definition is within that document root.  There should also be a Directory declaration ( <Directory "/path/to"> ) that should match the path of your DocumentRoot.  It is possible to serve documents from different areas of your computer.  Ususally this is done when you have things like phpMyAdmin above the root, so if you see multiple entries in there, some of which XAMPP installs itself, you should leave them alone and ask their support forum for help because they will know which entries the application puts in that you will not want to remove.

  • How do you configure Dreamweaver to accept PHP in live view when set up with a local testing server (ie., localhost:8888) via MAMP (not MAMP Pro)? My site shows up in the browser, but not in DM live view. Thanks.

    I am using a Macbook Pro with Yosemite and cannot get live view to work in conjunction with my local server or with my php files.
    What could be wrong? I have set up/synced everything with my root folder in htdocs.
    Thanks:-)

    See screenshots:
    Nancy O.

  • Testing Server / 'Live View' not working

    Hey guys, I'm trying to create my first e-Commerce site in Business Catalyst and having a bit of an issue with setting up testing. I've downloaded multiple basic templates from 'BC' and they all seem to be giving me the same issue.
    Issue:
    When using Dreamweaver CC's 'Live View' (which seems to be a one stop shop for testing changes without them pusing to the live site) the encompassing template in a page is displayed correctly, but the content area always displays 'Page not Found'. Take a look at the attached image to see exactly what I mean.
    I've contacted support and browsed the form, but it seems I am the only one with this issue. Again I've tried it with multiple templates on multiple computers. Am I missing something simple? What does everyone else use for testing? Please help.

    Hi,
    When you press the "Live" button in Dw, it asks you if you want to save the file before putting. If you select No, and there's also NO such file on the server, then you'll have the "Page not found" message displayed.
    Hope this helps.
    Kind Regards,
    Alex

  • Browsers won't open some php testing server files

    Running DW 8, OS 10.4.10, Apache virtual testing server with
    php local site.
    I've Firefox and Safari as primary and secondary browsers.
    When working on a
    page, if I select 'preview in primary browser', Firefox opens
    the page with
    my virtual url...no problem. Lately, some php files will not
    open. Firefos
    give a dialog to open the file in default (DW) or save to
    disk. This is very
    frustrating since one file it does this to is a login page.
    Safari does the
    same thing!
    I have select the file in question in the finder (extension:
    ,php) and
    through the Get Info and told Mac OS to open this file with
    Firefox and all
    .php extensions. Rebuilt prebinding so all php files in the
    Finder show a
    Firefox icon, but still neither Firefox nor Safari will open
    them. They
    don't recognize the
    <meta http-equiv="Content-Type" content="text/html;
    charset=ISO-8859-1" />
    Metatag. The really frustrating thing is that only some files
    behave this
    way. Most of the others work fine and I can't see anything in
    the headers
    that would cause one to open and not another. Has anyone ever
    run across the
    behavior before and if so, what was the cause?
    Thanks,
    Charles Newbury

    On 10/14/07 10:18 AM, in article
    [email protected], "Joe
    Makowiec"
    <[email protected]> wrote:
    > On 14 Oct 2007 in macromedia.dreamweaver, Charles
    Newbury wrote:
    >
    >> Running DW 8, OS 10.4.10, Apache virtual testing
    server with php
    >> local site.
    >>
    >> I've Firefox and Safari as primary and secondary
    browsers. When
    >> working on a page, if I select 'preview in primary
    browser', Firefox
    >> opens the page with my virtual url...no problem.
    Lately, some php
    >> files will not open. Firefos give a dialog to open
    the file in
    >> default (DW) or save to disk. This is very
    frustrating since one
    >> file it does this to is a login page. Safari does
    the same thing!
    >
    > What happens on the actual server?
    >
    >> I have select the file in question in the finder
    (extension: ,php)
    >> and through the Get Info and told Mac OS to open
    this file with
    >> Firefox and all .php extensions. Rebuilt prebinding
    so all php files
    >> in the Finder show a Firefox icon, but still neither
    Firefox nor
    >> Safari will open them. They don't recognize the
    >>
    >
    > Are you sure that your local server is running? Also,
    I'm no Mac
    > maven, but I'm given to understand that the version of
    Apache which
    > comes installed on Macs is on the underpowered side, and
    should be
    > replaced with a version downloaded from somewhere?
    True, I'm running Apache 1.3, but I'm leery of trying to
    upgrade to a newer
    version for fear of messing up everything that already works.
    Had a real
    headache getting MySQL 5, PHP 5 and phpMyAdmin all up and
    running with DW 8.
    Fortunately I had David Powers book that gave pretty much
    idiot proof
    instructions on how to install all this stuff. I'd never been
    able to do it
    left to my own devices. Another caveat is that my webhost,
    like most, is
    behind the upgrade curve: they run MySQL 4.1 and phpMyAdmin
    2,8 so if I
    upgrade too much there may be compatibility issues.
    Another oddity, renaming that file from .php to .html
    extension causes it
    to open fine in Firefox and Safari. I don't think it's kosher
    to keep it
    that way since it does contain DW8's login php scripts.
    Again, there's no
    problem with other .php files.

  • I need help getting my local testing server to work - PHP/MySQL

    Hello,
    I am using DW CS5 and have installed XAMPP for my Server/PHP/DB package (which is the same as my live site).
    I have gone thru every tuitorial and all information on this subject, and unfortunately I can't get the server set up correct. Other than my page not showing in a browser (or live view) when I try to view it, DW just says: "Dynamically-related files could not be resolved because the site definition is not correct for this server" when I have index.php open and try to find the files.
    One major question is I am unsure of what folder to have as the root folder of the site, which has a public_htlm directory and www directory - or do I just use the main folder they are both located in as the root folder?
    (Not to get too deep with this first question, but I also looked at the error log file in Apache c:\xampp\apache\logs\error.log and it is not finding the following:
    [Tue Oct 09 14:26:38.573504 2012] [:error] [pid 3100:tid 1488] [client ::1:56261] script 'C:/xampp/htdocs/BusinessTube/index_e5pebna8e.php' not found or unable to stat]
    I'm guessing that the file "index_e5pebna8e.php" is a cached version of the file generated by index.php - but I'm unsure why it is not being 'found'.)
    Second question is about having to set the php.ini file to listen to port 88 as this computer also has IIS installed. I have done this, and it works with a local project directly from NetBeans (which I have to use for a PHP development class). How will this change my DW site definitions? I'm assuming that anywhere I would have localhost I will now need to have localhost:88 but once again I'm not sure.
    I am eager to get this site working locally so I can start using the new PHP skills I'm learning - any help will be GREATLY appreciated.
    Kirk

    You're getting mixed up over the meaning of public_html.
    Most hosting companies that offer PHP use the Apache web server, which has a single server root folder called htdocs. XAMPP also uses Apache, so c:/xampp/htdocs is the XAMPP server root, and its URL is http://localhost/.
    Although Apache has only one server root, virtual hosts make it possible to run multiple websites on the same server. Each virtual host is located in a separate folder that acts as the site root. It's common for this folder to be called public_html. What bregent was describing was the location of the site root on your remote server. The name of the site root in your local testing setup can be whatever you decide to call it.
    When learning to use PHP, most people use a subfolder of the Apache server root because it doesn't require further configuration. However, once you're working with real sites, it's normal to set up a virtual host for each one. I create all my virtual hosts in a folder called C:/vhosts. So for example, I might have one in C:/vhosts/site1. In the virtual hosts configuration file, I designate C:/vhosts/site1 as the root folder for a virtual host called site1, which can then be accessed as http://site1/.
    The only reason I might have a folder called public_html is if I designated C:/vhosts/site1/public_html as the site root.
    I hope that's clear. Once you understand the principle of virtual hosts, the concept of the site (or server) root becomes obvious, but it can be difficult to explain. I remember it took me a while before the concept sank in.

Maybe you are looking for