Problem of LiveView making PHP in HTML files?

I was wondering if anyone else has seen elsewhere, or if this is a known limitation.  If I open an HTML file in liveview which links to PHP files and click on one of these links, the link does not work properly and I can view the PHP file I've sailed on, but PHP in this file is not correctly interpreted.

If I go to livecode, I see that a statement in the original PHP source file such as:

< img src = "images/son..?" PHP echo $_GET ['page']? "> .jpg" alt = "" width = "333" height = "241" class = "fltlft" / > "

translates:

< img src = "images/son & lt;? PHP echo $_GET ['page']? & gt;. "jpg" alt ="" width = "333" height = "241" class = "fltlft" >

If the PHP brackets are treated as entities of characters rather than the media.  If I open the PHP directly and who discovers in liveview, fine.

With the help of DW CS5 with XAMPP for PHP 5.31.

Is there a setting I can change to circumvent this?

PS: Ironically, I note that the spell checker for this page makes the same substitutions on the PHP command media if I run it on the post...

What does the URI say in the field address of the Live View toolbar? If the URI looks like 'file://.../page.php' or 'file://.../page.html' by the word 'file' to the front, and then the live source view is read directly from the disk instead of going to your Web server and the php processor. Go to the on-line display Options menu and choose 'Test use for Document Source Server'. This should force Live View to get the page by the test server and the URI must begin with "http" as "http://localhost/.../page.php". By default in Live view static html pages are read from disk as 'file', while dynamic pages as php use the test server and begin with "http". The first page that opens this determines for any links you click on, so if you open an html first page it will use the local 'file' for all related links. You could also solve my opening a first php page and by following this link.

Here is a picture of this setting that controls this:

Hope this helps,

Chris

Adobe Dreamweaver engineering

Tags: Dreamweaver

Similar Questions

  • Use the coloring in the PHP code HTML files

    In Dreamweaver CS3, should what changes I make the code PHP coloring see the place in the .html files?

    robot88888888,

    First, copy this file into the app config file:

    C:\Program Files\Adobe\Adobe Dreamweaver
    CS3\configuration\CodeColoring\PHP.XML

    In the user configuration folder:

    C:\Documents and Settings\ [username] \Application Data\Adobe\Dreamweaver
    9\Configuration\CodeColoring\

    Then open PHP.xml in your favorite editor. You add HTML to all
    replace every occurrence of this lists doctype:

    doctypes = "PHP_MySQL.

    to:

    doctypes = "PHP_MySQL, HTML.

    Save and close. If DW is running, close it. Now restart DW.

    HTH,
    Randy

    > In Dreamweaver CS3, what changes should I make the code PHP coloring see the place in the .html files?

  • Syntax coloring for PHP in HTML files

    I would like to than consistent syntax throughout my documents, which may be some CSS, HTML or PHP. However, when I write the PHP code in something else that a PHP document, it comes out in a format single or double-color, making it much less 'pretty' and not nearly as easy to read. The HTML contains color CFM and ASP options, but not PHP (and I don't want to format the color twice in preferences anyway). I tried to group files .html with color PHP/MySQL grouping under DocumentTypes (Dreamweaver 8/Configuration/DocumentTypes), that works, but results in a crash whenever I look at anything, but a document.

    No matter who encounter this behavior, or better yet, a solution so that syntax highlighting of Dreamwever constant inside itself?
    BWT, it comes to Dreamweaver 8.0.2, Mac OS X 10.4.7. And the rest of the Studio is installed as well.

    While Randy solution wasn't what I was looking for because I found something similar that works for me.
    See http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_16410
    When I * moved * .html .htm AND doctype HTML (first statement) section, DW would break. So, since I don't use a .htm, I just moved .html and renamed the doctype first from "html" to "htm". Works with no crash.

    Just wish it was... global CSS should look like CSS, PHP, PHP, etc. Well, works fine now.

  • Cannot find my index.html file after uploading via FTP to my Web host. Where is this?

    Hi, I am trying to locate the index.html file that muse creates after downloading from my webhost via FTP, but I can't seem to locate it. No one knows where that might be, or is Muse for something different then index.html?

    Thank you!

    Brad, I came across this thread, trying to find my index.html file: https://forums.adobe.com/message/7047367#7047367

    The suggestion to disable editing in the browser and re - download my site again, the file index.html returned (and replace the index.php file that was there).

    I always find it strange that the php file was created (not knowing code, I'm sure there's a good explanation for this). However, the only reason why I even noticed there was a problem of not having an index.html file, is that I'm currently testing a new Web host (Media Temple Grid) - and the index.html file was needed. It doesn't seem to work properly with the .php file. Which brings me to wonder... If, for example, I would need to have access to this feature of change in the browser in the future, is there a way to ensure that the index.php file is compatible with my new host?

    Thank you!

  • Why muse converts my navigation pages in the .php instead of .html files?

    When I download my site via ftp muse files of pages seem to download in the form of files .php instead of .html files, causing the bar of navigation not working and none of the pages link. Is there a way to solve this problem. Here's what it should like to watch in filezilla. The second image is how it currently looks.filezillaimage1.jpgfilezillaimage.jpg

    Hi David,

    I realized what was wrong to the whole of the site. I used one of the models of muse to create this site and he was wearing a tag on the footer of the site. I took the tag off the coast, downloaded vua muse ftp and it now works as it should. Sorry for all the headache and thank you for helping me to understand this

  • cannot open HTML file firefox opens new tab and continues to set open or save the file ran malware bytes no problem found

    Trying to open an html file firefox guard opens the dialog box open the file in a new tab. I ran malware byte without success.
    The file never opens.

    Finally refreshed Firefox problem resolved...
    

    I am happy to hear that you solved it will lock the thread.

  • Hello, I have a problem with Mozilla Firefox 14 and now also Firefox 15. When I click on .html files on my desktop, firefox will open a new window twice. Where is the th

    Hello, I have a problem with Mozilla Firefox 14 and now also Firefox 15. When I click on .html files on my desktop, firefox will open a new window twice. Where is the problem? Thank you

    That may be a problem with the DDE.

    Try to undo and redo Firefox as default browser.

    Make a different browser like IE browser by default and then let Firefox do it again.

    See:

  • Problems with the published html file

    Hi, I am a beginner using Adobe animate. I managed to do design an interactive infographic to incorporate into a Web site. But I have a problem with the published html file. The html file is generated, but when I click it, only a blank page opens on my internet browser. As far as I understand it, computer graphics itself should open in the browser. Can someone please advise what I could do wrong?

    Thanks a lot for your help!

    Perhaps a blank screen when the animation is published.

  • View scrolling problem to live with php files

    While I am in Live View mode I can scroll in html documents in Dreamweaver, but when I work with a php document, it does not allow me to scroll.  Can someone tell me why this is?

    Screenshot of preview in Dreamweaver with html file (you can see the scroll bar to the right of the display window):

    Dreamweaver html.PNG

    Screenshot of preview in Dreamweaver with a php file (you don't see the scroll bar to the right of the display window):

    Dreamweaver php.PNG

    You have overflow: hidden together on yourtag by accident?

  • I have a html file and in it, I have a PHP contact form. However, the html code does not run php. pls help... Thank you

    I wrote a simple html Web page with menus and pull-down (using Dreamweaver) which also includes a contact form. The contact form is in PHP. However, when I run the html file, all right and that the contact form appears, however, she does not run PHP code. Do I have to make any changes of setting or download all the files? Thank you very much

    If you run your own apache server, then you need also a mail server, but if you use a hosted service then your host should have the scripts and HTML on their Web site.  Otherwise, you can use Wufoo free version and you can create your own form and code (JavaScript) that can be integrated into your HTML page. I used Wufoo in Joomla sites and it works very well.

  • Hello, I just reinstalled Firefox 8.0 and imported my backup bookmarks.html file, but the bookmarks toolbar has not changed with my old favorites. Is this a problem or I have to manually add each bookmark again?

    don't know what details to tell you, that all important data are written in the question. Thank you.

    You have now two folders of Bookmarks Toolbar. One of the installation of Firefox (the main one) and a 2nd file to import a bookmarks.html file.

    Find the Bookmarks Toolbar folder that is under the bookmarks Menu folder and copy or drag ' drop these bookmarks in the Bookmarks Toolbar folder that is above the bookmarks Menu folder.

  • PhoneGap BlackBerry, problem in loading the remote html files

    Hello

    In my application I start with index.html that is present in the archive application. In the debug console I see ' no number of plugins found (including arepresent in plugin.xml). And I get deviceready recall also.

    (1) I copyall javascript files in archive of the application (javascript plugin files)

    file:///store/home/user/sample/

    (2) I download html files and keep the file:///store/home/user/sample/.  (say pag1.html)

    Page1.html includes all js plugin files

    (3) I set window.location to file:///store/home/user/sample/page1.html

    This time I can't see no plugins found messages in the debug console or the "deviceready" cal-back is called (the listener is added in the onload of the body page1.html).

    Now,.

    (1) I copy the downloaded html (page1.html) 'taste' directory resources aplication and index.html I put window.location to local:///sample/page1.html

    (2) build the app run it

    It works quite well.

    What happens if we point out the html elements in the system of fle (file:///SDCard or file:///store)?

    What we must do in this case to use any plugns Cordoba?

    Thanks in advance...

    It was a simple thing

    Add the features required for each access area will do.

    for example: -.

    file:///store/home">
     
     
     
     
     

    etc...

    Tags to automatically close access to default config.xml while creating a new project phonegap was really misleading, iI never thought she may have any child node for tag .

  • published HTML file will not play in the browser. WHY!

    I built a basic banner of HTML5 in Adobe animate CC 2015.1 Release.

    NO EDGE TO ANIMATE.

    I click on the command + entry to export files and automatically Preview in Chrome and it works perfectly.

    Then I drag the EXACT SAME HTML FILE just exported in the EXACT SAME CHROME BROWSER and it won't play.

    Why? How am I suppose to send banners to the client to preview if nothing works outside the CC environment animate.

    It's incredibly frustrating.

    You will find that this question has come here a lot. It's to do with browser security problems, if you use JSON files, they must be on a server somewhere. When you do a simulation test, he implemented a temporary server while it will work even if you used JSON.

    You don't know what JSON is or think that you used, but something that uses it is spritesheets. If you want your test to work by double-clicking the HTML file, go to the publishing settings and deselect the option to make a spritesheet. Then she will work on-site as well as on a server.

    Don't forget to send your client the file .js, .html file and all records of the sounds or images that have been created. It should be delete these records before making a publication after the deselection of the spritesheet option, because always, the folder contains the files of JSON mapping and texture, that won't be necessary.

  • Why DW CC 20141 fluid grid load HTML file that contains a Google Analytics script Tracking Code so slow?

    I work exclusively in liquid grid because my site is a Responsive Web Design.  I can't with into DW CC 20141 slow load times, when my file, as they all do of course, the Google Analytics tracking Code script.

    I'm on a Windows 8.1 using a Dell Precision laptop M3800 with 16 GB (2x8GB) 1600 MHz DDR3 memory . Each of the 180 or so our site web pages, of course, has its tracking Code Google Analytics script. It is placed, following the instructions of Google, as the last entry in the head of <>.  Google Analytics does not give the order to place the script in the JS folder with a CRS for her, but rather in the head of <>.  It takes up to a year and a half or two minutes for DW CC 20141 loading the Google Analytics tracking Code script.  In other words, the grid does not show Live View mode until finally analytics.js appears in the toolbar of the Document. A minute or two can add up when every page you load it takes long.  And making new pages fluid grid, as this is done through the command save as; each new page did you face the minute or two waiting time since all these pages have the Google Analytics tracking Code script.  As a result, this component "time" alone, assuming that I am accessing and/or make 20 pages per week (and in our business, it's easily the case) the calculation is that I lose between 17 and 35 hours a year just with DW CC 20141 load script Tracking Code Google Analytics essential.

    I loaded the HTML files that do not have the Google Analytics tracking Code script as a test and the files load at a normal speed.

    Therefore, the new framework built-in Chrome browser engine has a serious workload problem when he faces a HTML5 file with a script Google Analytics tracking Code.  Oddly enough, the previous version of DW CC 2014, with the old browser engine did not have this problem of slow charge since I was loading these same files in this version of DW CC until 8 October or so.

    I think this new browser engine is a platform for Google who apparently has a problem rendering or loading a Google Analytics tracking Code script.  That makes no sense at all.

    Anyone else had this problem with DW CC 20141 slow load?

    Thank you.

    Thank you for providing the Ray files. We could reproduce this problem with your files.

    We have recorded a bug & track internally. I'll keep you posted.

    Thank you

    Delphine

  • With the help of the socket object to retrieve data from web application without the html files

    I tried to use the socket object to retrieve data from a web application (I just control script version vs version online). So all I want to do is access http://hyle.io/version that returns me the current version of the application (such as a simple string) in order to compare it in my script and then notifies the user accordingly. I have just a few problems using the socket object. I used this code from the Adobe Javascript Tools Guide:


    reply = "";
    conn = new Socket;
    // access Adobe’s home page
    if (conn.open ("www.adobe.com:80")) {
    // send a HTTP GET request
    conn.write ("GET /index.html HTTP/1.0\n\n");
    // and read the server’s reply
    reply = conn.read(999999);
    conn.close();
    }
    

    ... that I then adapted as:

    reply = "";
    conn = new Socket;
    if (conn.open ("hyle.io:80")) {
      conn.write ("GET /version HTTP/1.0\n\n");
      reply = conn.read(999999); 
      conn.close();
    }
    

    And here is what I get:

    HTTP/1.1 400 Bad Request
    Content-Length: 225
    Content-Type: text/html
    Server: Pagodabox-Routing-Mesh
    
    

    Bad Request

    Your browser sent a request that this server could not understand.

    Résultat : true

    I don't know a lot about HTTP requests, but I wondered if it was related to the fact that I am not pointing to a specific HTML file and the type of request was wrong or if I should rather check if there is something wrong with my host?

    The site/app is PHP and is hosted on PagodaBox if it helps.

    Thanks in advance!

    Hi Sebastien Lavoie,

    It should work

    var HTTPFile = function (url, port) {}

    If (arguments.length == 1) {}

    URL = arguments [0];

    port = 80;

    };

    This.url = url;

    This.port = port;

    this.httpPrefix = this.url.match(/http:\/\//);

    This.Domain = this.httpPrefix is nothing? This.URL.Split("/") [0] + ":" + this.port: this .url .split ("/") [2] +":" + this.port;

    This.Call = ' GET ' + (this.httpPrefix == null? ' "). " http://" (+ this.url: this.url) + "HTTP/1.0\r\nHost: ' + (this.httpPrefix is nothing? "This.URL.Split("/ ") [0]: this .url .split (" / ") [2]) +" \r\nConnection: close\r\n\r\n ";

    This.Reply = new String();

    This.Conn = new Socket();

    This.Conn.Encoding = "binary";

    HTTPFile.prototype.getFile = {function (f)}

    var typeMatch = this.url.match(/(\.) (\w{3,4}\b)/g);

    If (this.conn.open (this.domain, "binary")) {}

    This.Conn.Write (this.) Call);

    This.Reply = this.conn.read (9999999999);

    This.Conn.Close ();

    } else {}

    This.Reply = "";

    }

    (Return this.reply.substr(this.reply.indexOf("\r\n\r\n")+4);

    };

    }

    Hyle var = new HTTPFile ("http://hyle.io/version");

    Alert (hyle. GetFile());

    And by the way, I like the idea of 'http://hyle.io'. Can you give me your email address, I want to learn more about this Web site.

    Please send me an email to [email protected]

Maybe you are looking for