Php preview in browser

I am trying to preview .php files. When I pick Firefox
everything is displayed fine. When I pick IE a dialogue box pops up
asking weather I want to open or save the file. Any help would be
very appreciated.

> dialogue box pops up asking weather I want to open or
> save the file.
have you installed a local testing server on your computer?
then entered that info into this site's site
definition->testing server?
If when you F12 the url in the address bar of firefox starts
with file:///
you are looking at the file directly from the hard drive.
if the url in the address bar starts with
http://localhost/ then it's using
a local web server.
Alan
Adobe Community Expert, dreamweaver
http://www.adobe.com/communities/experts/

Similar Messages

  • Preview in Browser for PHP pages

    I can't use the function preview in browser with my new
    updated php website. The feature worked on the html static website
    but does not work with the php site.
    How can I preview how the pages appear with other browsers
    sabren

    Have you defined a testing server? What is not working for
    you?
    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
    ==================
    "sabren" <[email protected]> wrote in
    message
    news:g30l90$8bd$[email protected]..
    >I can't use the function preview in browser with my new
    updated php
    >website.
    > The feature worked on the html static website but does
    not work with the
    > php
    > site.
    > How can I preview how the pages appear with other
    browsers
    > sabren
    >

  • Error message with Preview in Browser

    When I click on &quot;Preview in Browser&quot; in
    Dreamweaver 8.0 it takes me to a custom error page on our website
    that says &quot; page not found&quot;. For example here is
    the URL it creates for the temporary view page:
    http://ftp.svunet.org/htdocs/annual_conference/TMPfi1yavu5db.htm.
    Why is it trying to create a page on our server and not on my hard
    drive?

    Why is it
    > trying to create a page on our server and not on my hard
    drive?
    Did you define a testing server for this site, and enter the
    remote info?
    That's about the only way this will happen.
    do you need a testing server? is there asp/php/etc dynamic
    server side
    scripting? If not- go into the site definition, click the
    Advanced tab, and
    in the Testing server category, set access to None.
    Alan
    Adobe Community Expert, dreamweaver
    http://www.adobe.com/communities/experts/

  • Will not display images in preview in browse

    Hello:
    I am new to fireworks and am attempting to make a simple pop up menu but am having trouble viewing the image.  First, I converted a .jpeg image to a button. I then put menu pop-up functions on this button.  When I displayed it in preview with browser, the pop-up images displayed, but there was an "x'd" out image where the original should have been. 
    I was curious about why this was, figured that there was a problem with the file that I imported, and so I decided to just use one of the library's buttons.  Again - the original button was "x'd" out but the pup-up functions displayed.
    I therefore decided to go even more basic and simply painted an image gray and attempted to preview in browser.  Again, "x'd" out image.
    Can someone please tell me how to fix this??  It is driving me INSANE!!!!
    The crazy thing is that earlier this morning, everything was working just fine.  The images would display perfectly.  Now, they are gone and I am at witt's end trying to figure out what the heck is going on.
    If ANYONE could please help me, I would be in such gratitude.
    Thanks
    Ben (noob to web design)

    If you think you're insane now, try maintaining those pop up menus.
    As far as I know, these menus have not been updated since FW 8, so 
    they are at least two versions old.
    Save yourself a lot of grief by avoiding those menus. There are many 
    other products on the market which do a much better job of creating 
    and maintaining this type of navigation structure.
    Read this link before you climb any higher on this slippery slope:
    http://apptools.com/rants/jsmenu.php
    There was another blog post by the fellow who originally wrote the pop 
    up menu feature, but I can't seem to locate it. Even he says stay away 
    from them.
    Not the answer you probably want, but I hope it helps, nonetheless.
    Jim Babbage

  • XSL won't preview in browser

    So I hope this isn't something incredibly simple that I'm overlooking, but...
    I recently upgraded to CS4 fro CS3 (on a Mac). I have an XSL file to transform some XML for use in InDesign. In CS3, I could open the XSL file, specify the XML file in the bindings panel, then preview in browser to get the transformed XML. So I opened CS4 and followed the same steps, but when I ask Dreamweaver to preview in browser, nothing happens. I've specified Firefox as my primary browser and Safari as secondary, but neither does anything. What am I missing here?
    Thanks!
    Andrea Swingley
    Graphic Designer
    University of Alaska Fairbanks

    Are you using your local computer to test the XSLT document?  If so, do you have a web server running with PHP on your local server?  DW uses server side scripting to display the XSLT document so if you cannot execute PHP nothing will show up.

  • Preview in Browser

    Everytime I try to do the Preview in Browser using
    Dreamweaver, I get a message saying that 1 file or folder were not
    completed and then in the browser it says that the page cannot be
    found. I've tried moving my page around in Dreamweaver, into
    different folders, and I still get the same message. What am I
    doing wrong? How do I fix this?
    Thanks for the help!

    To preview pages with server scripting, you have to set up a
    testing server
    by installing PHP and Apache.
    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
    ==================
    "ddrennan" <[email protected]> wrote in
    message
    news:gb8um9$1a8$[email protected]..
    >I have been recasting our website using files with a php
    suffix, but they
    >won't
    > 'preview in browser'. I get a '404' message that says it
    cannot locate
    > the
    > files. However, if I use the same files, unchanged but
    with an 'htm'
    > suffix,
    > they do preview in browser. Is it impossible to preview
    php files in
    > browser,
    > or is there some simple elegant solution to,that?
    >

  • Preview in Browser - IE not working

    Whenever I click on preview in browser - IE, it doesn't work.
    I've tried pasting the link into IE, but it gives me the prompt to
    open/save/cancel. When I click open, it goes back to DW window.
    This is the only browser I am having difficulty with.
    I have only had the program loaded since Saturday and it
    worked sporadically then, but now, nothing.
    I haven't had any IE updates or window updates.
    Regards.

    Is this an HTML file? Or something else?
    Nancy Gill
    Adobe Community Expert
    Author: Dreamweaver 8 e-book for the DMX Zone
    Co-Author: Dreamweaver MX: Instant Troubleshooter (August,
    2003)
    Technical Editor: DMX 2004: The Complete Reference, DMX 2004:
    A Beginner''s
    Guide, Mastering Macromedia Contribute
    Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP
    Web Development
    "VirtualKelly" <[email protected]> wrote in
    message
    news:f2b42f$m2l$[email protected]..
    > Whenever I click on preview in browser - IE, it doesn't
    work. I've tried
    > pasting the link into IE, but it gives me the prompt to
    open/save/cancel.
    > When
    > I click open, it goes back to DW window. This is the
    only browser I am
    > having
    > difficulty with.
    >
    > I have only had the program loaded since Saturday and it
    worked
    > sporadically
    > then, but now, nothing.
    >
    > I haven't had any IE updates or window updates.
    >
    > Regards.
    >

  • Dreamweaver CC: Preview in Browser Not Working

    I am new to Dreamweaver CC, but I've used other versions of Dreamweaver extensively.
    Since I've installed CC, by Preview in Browser has not worked. When I click it, and choose my browser (this issue occurs with ANY browser I choose), it opens my chosen browser and then tells me the page cannot be found. I know the issue is where DW is pointing my browser. For example, if i'm working in my contact.php file in DW and tell it to preview in broswer, the address that shows up in my search bar is "contact.php/"
    Now obviously, that won't point my browser to any usable address. So how do I fix the issue? I've tried looking through all kinds of settings but have found nothing.
    Someone please help me!

    You realize you must have a local testing server installed and defined in your Site settings in order to preview PHP pages, right?
    Which Local Testing Server are you  using?
    Is it running?
    Do you have it pointing to your localhost?  See screenshots:
    Servers: Basic Tab
    Servers: Advanced tab
    Final Screen:
    Nancy O.

  • Background image doesn't preview in browser

    Is there something I'm not understanding about my Dreamweaver
    Site settings? I'm trying to code a site using CSS which has a
    background image in a div but it won't preview in the browser. When
    the file is linked to an external style sheet, it displays in
    Dreamweaver's design view but not Preview in browser. But when the
    styles are included in the file itself, it works. It's a dynamic
    site configured for PHP MySQL. Everything in the style sheet seems
    to be working except this. I've tried site relative and document
    relative links. I even tried posting the image to a live server and
    linking it with an absolute url.
    Here is the path structure:
    BambooJewelry/index.php
    BambooJewelry/cw3/assets/css/bamboo.css
    BambooJewelry/cw3/assets/images/home/logo.gif
    Here is the code in the css file:
    div#logo {
    background-image: url(../images/home/logo.gif);
    background-repeat: no-repeat;
    width: 700px;
    height: 73px;
    Here is the syntax for the linked style sheet in the
    index.php file:
    <link href="cw3/assets/css/bamboo.css" rel="stylesheet"
    type="text/css">
    As to the site settings, the local root folder is
    Macintosh HD:Library:WebServer:Documents:BambooJewelry:
    the http: address is set to
    http://localhost/BambooJewelry/
    Any help with this is sincerely welcomed!

    make sure you're not overriding that rule somewhere else in
    your site or farther down the style sheet or with a more specific
    rule. Rules directly in a page are given more importance than rules
    in an external sheet.

  • CS4, XSL won't preview in browser

    I'm trying to preview in browser an xsl page.  I have the xml file set in the bindings panel.  Now whenever I go to preview in browser, if I take off the bindings, it asks for it and then does nothing.  If I already have the xml set in bindings and I hit preview in browser the program still just doesn't do anything.  I know I have everything set correctly, the program just won't preview xsl in a browser, but previews HTML normally.  Any help?

    Are you using your local computer to test the XSLT document?  If so, do you have a web server running with PHP on your local server?  DW uses server side scripting to display the XSLT document so if you cannot execute PHP nothing will show up.

  • Preview in Browser - All I see is code

    Hi,
    I was wondering if anyone could help. I am running
    Dreamweaver 8.02 on a Mac. The Mac was recently upgraded to Mac OS
    X 10.4.9. I maintain a site that is predominately php pages. The
    first time i updated a page after the Mac OS upgrade, when i go to
    preview in browser all i see is code. I have searched the forums
    and the internet and can't seem to find an answer.
    I have the url setting in site manager to
    http://localhost/CPGMOTORSPORTS/
    (this is how it has been for over a year and it was fine before the
    upgrade) It happens in all my browser. When i use firefox and go to
    open file and open the file in my localhost directory it works
    fine. When i drag that file to the browse it works fine. Only when
    I go thru the Preview in Browser do i have a problem. I have tried
    the preveiw with the temp file also and all it shows is the code.
    This is the address that shows only code:
    http://localhost/CPGMOTORSPORTS/driverinfo.php
    This is the address that works when I do a 'file open' from
    the browser:
    file:///Library/WebServer/Documents/CPGMOTORSPORTS/driverinfo.php
    I am so confused!
    Can anyone help.
    Thanks
    Deb

    On 18 Jun 2007 in macromedia.dreamweaver, debecc wrote:
    > I was wondering if anyone could help. I am running
    Dreamweaver 8.02
    > on a Mac. The Mac was recently upgraded to Mac OS X
    10.4.9. I
    > maintain a site that is predominately php pages. The
    first time i
    > updated a page after the Mac OS upgrade, when i go to
    preview in
    > browser all i see is code. I have searched the forums
    and the
    > internet and can't seem to find an answer.
    > I have the url setting in site manager to
    >
    http://localhost/CPGMOTORSPORTS/
    > (this is how it has been for over a year and it was fine
    before the
    > upgrade) It happens in all my browser. When i use
    firefox and go to
    > open file and open the file in my localhost directory it
    works fine.
    > When i drag that file to the browse it works fine. Only
    when I go
    > thru the Preview in Browser do i have a problem. I have
    tried the
    > preveiw with the temp file also and all it shows is the
    code.
    >
    > This is the address that shows only code:
    >
    http://localhost/CPGMOTORSPORTS/driverinfo.php
    It may mean that Apache is not running since the upgrade.
    Check your OS
    X documentation for how to check on status and how to turn it
    back on.
    Joe Makowiec
    http://makowiec.net/
    Email:
    http://makowiec.net/contact.php

  • Preview in Browser, One Server, Multiple Domains

    I work for a company that provides both web design and hosting services. All of our clients' sites are in sub directories of our /web/ directory on the server but their web addresses are set up as subdomains (clientname.mycompany.com). How can I make "Preview in Browser" work with this setup?
    Right now, it tries to take me to the Web URL that I have set in "Servers" in DW, followed by the internal server path of the file.
    What I need, is to have "Preview in Browser" open up something like;
    clientname.mycompany.com:port
    instead of;
    dw_web_url/serverpath/file.php
    Is that possible?
    Also, is it possible to "Preview in Browser" while working on a CSS file? For example, if I am working on /root/css/style.css and I press F12, Firefox would open up clientname.mycompany.com:port/index.php instead of dw_web_url/root/css/style.css

    Also, is it possible to "Preview in Browser" while working on a CSS file? For example, if I am working on /root/css/style.css and I press F12, Firefox would open up clientname.mycompany.com:port/index.php instead of dw_web_url/root/css/style.css
    I'm puzzled by what you expect this would show?  A CSS file has no display.
    I have no sense for how to make your first issue work.  Sorry.

  • Restoring 'preview in browser' from test server

    I have recently added and am learning to build a 'form' page (dynamic PHP page) to my site.
    I have installed Apache and am using a localhost 'test server' on C/program files/xampp/htdocs
    ( I have been following tutotrials in The Missing Manuals series)
    Everthing is going ok, but my question involves the following problem:
    I used the 'preview in browser' function as always in my development. After setting up the PHP page and attempting to preview it, it established a new connection to the local server and it asked to 'put' the files to that test server which I did. Everything worked ok, but when I went back to work on regular HTML pages, and preview, it tries to use the test server.
    The test server is in a different location (above), and obviously doesn't find the location of my site development. The rest of my site doesn't reside on the test server location (above), so when I try to preview it, I just get error messages.
    I have several computers - when I go back to one that I didn't preview the PHP page in (even though I have copied the entire site with new PHP page), it previews like I want, in a regular browser.
    Question:
    Is there a way to tell the 'preview' function where to look, so it doesn't activate the test server and just loads the original HTML files like it used to?
    Or do I just need to define/relocate both the test server and my site to the same location?
    Thank you!!

    Question:
    Is there a way to tell the 'preview' function where to look, so it doesn't activate the test server and just loads the original HTML files like it used to?
    If your site has a Testing Server defined, then all previews will be directed to the Testing Server, including those that may not require a Testing Server.
    Or do I just need to define/relocate both the test server and my site to the same location?
    That's usually the best way - altough it's not required.  You just have to make sure that any files you need to make your preview work are also uploaded to the Testing Server.

  • Preview In Browser Not Working With Safari 3.0 On Mac

    When using the "Preview in Browser" command from DW CS3, the
    file address information is incorrect when previewed in Safari 3.0.
    I don't recall this being a problem before I updated my Mac to
    Tiger. Anyone else had any problems with this?
    Thanks,
    cloud9indusrties

    If the address information is incorrect you should double
    check your paths. Also, consider using the computer's IP address if
    you can as opposed to the localhost address. All you would need to
    make that work is to just turn on Web Sharing in the preferences
    (this turns on Apache web server). I have found this to be a much
    more reliable method on the Mac.
    Also, please make sure, if you have not already done so, that
    Safari is the latest version (meaning the final release and not the
    beta), because there were issues with the beta that I had.

  • When previewed in browser or on the server the path of my web site repeats folders. However the "href" in the html code does not show the repetition in the path.

    If someone could help me on this one, this would be great. I am creating a web site that has several departments. I have categorized and saved each department in a main folder called "departments" and a subfolder for each one. In the Dreamweaver code view the pop-up menu links seem to show up properly, but when I preview in browser or upload to server "page not found" comes up because for some reason the address changes. Some parts of the address seem to be appearing twice, sometimes the entire path will appear twice as shown below:
    http://www.graphicmechanic.com/DEKALBCOUNTY/departments/parks-and-recreation/departments/p arks-and-recreation/pr-arabiamtn-map.html
    that is incorrect and it takes me to "web page cannot be found".
    It is obviously repeating the folders (hence the "departments/parks-and-recreation" twice. The correct link is:
    http://www.graphicmechanic.com/DEKALBCOUNTY/departments/parks-and-recreation/pr-arabiamtn- map.html
    The link issues are happening in the pop-up menu. For example if you go to http://www.graphicmechanic.com/DEKALBCOUNTY/departments/parks-and-recreation/pr-arabiamtn. html and rollover the link called "Arabia Mountain" in the links to the left side of the page, then click the pop-up menu link entitled "Arabia Mountain Map" that's where the problem occurs.
    Can anyone tell me how I can fix this problem. I don't know what I should do with the code since it already appears correct in html view.
    Please help if you can...
    Thanks in advance for any possible help you can provide...

    XonoBoom wrote:
    It is obviously repeating the folders (hence the "departments/parks-and-recreation" twice. The correct link is:
    http://www.graphicmechanic.com/DEKALBCOUNTY/departments/parks-and-recreation/pr- arabiamtn-map.html
    The link issues are happening in the pop-up menu.
    This problem usually happens when the menu is either a server-side include or a library item using links relative to the document. When you reference a page at a different level of the folder hierarchy, the document-relative links no longer point to the correct destination.
    Change the links in the menu to be relative to the site root.
    A document-relative link usually looks like this:
    <a href="../products/index.html">Products</a>
    A link relative to the site root begins with a forward slash like this:
    <a href="/products/index.html">Products</a>

Maybe you are looking for

  • Restoring iCal from Time Machine/Older HD

    SO here's the deal. I upgraded my harddrive in my MBP over the weekend. Doubled it size to 500GB joy! What I decided to do once I got a blank copy of Lion on it was to restore just the user info, system settings and "other files" from the Time Machin

  • Is this possible in CS4? Sharing video links?

    I have used CS4 for a while but nothing very complicated so not sure if this is even possible. What I want to do is build a DVD with several episodes all using the same intro & ending + have a play all button; Like this Start - Episode 1 - Ending Sta

  • Software Center Application Uninstallation Button Greyed Out and Deploying an Application with Uninstall switch Fails

    Hi, I tried everything I could find on the internet but no luck so far. I can successfully deploy MS Visio 2013 to the clients. I also want to be able to uninstall it from the clients. On the client machine Uninstall button is greyed out. This deploy

  • HP 2509m monitor

    I own a HP 2509m monitor. Purchased in Dec 2009. Bought from Costco because they extended the warranty by 1 year. Unfortunately, still 10 months out of warranty. The monitor has failed...not receiving power. Has been great up until now. Not used to m

  • How do I disable the Firefox 3.6 updater?

    My updater cannot complete the updating because it claims that my computer is running "another version of Firefox" when it isn't. This message appears and my version of of Firefox will not start unless the update is completed. The updating process wi