HTML to PHP

Is it possible with iweb to save a file as php instead of html?

Here's an explanation :
[Execute PHP from a .html File|http://php.about.com/od/advancedphp/p/html_php.htm]
I used this :
AddType application/x-httpd-php .html
Here's a widget_markup file. You won't see anything php in the source :
http://dailynews.webege.com/phpdemo/widget1_markup.html
This is what I pasted in the HTML Snippet :
<?php
echo("hello world
?>
How to create a .htaccess file on the server, read this :
http://iweb.dailynews.webege.com/PHPparseerror.html

Similar Messages

  • Loading HTML or PHP page in flash

    Hi,
    I would like someone to tell me if there is a way to load html or php page in flash just like a movieclip without actually navigating from the flash player(by using getURL code). Basically, I am wondering if there is a way to load a html file just like we load movieclips and perform all the functions of html page.
    Thanks,
    Abinash

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

  • How we can load external html or php file in flash?

    Hi there,
    I want to show my php's file desing in flash..
    i m getting data through database in php file and it has
    table... so I want to show that data in my flash movie...
    Please help me ..
    How can I load external html or php file in flash?
    If any other way is there then plz tell me.....
    thanx

    No.  Flash can only display html content in textfields and only supports a very limited number of html tags (look up the htmlText property of TextFields).  So to display an html/php file is not possible.

  • HTML or PHP visibility div tag problem in IE

    Hi,
    I have a PHP search function on a travel site a programmer
    did for me. When you look at it in FF and Safari, it looks fine.
    But in IE, there is a big blank space where the calendar function
    goes. He has the div tag set to visibility:hidden. Any ideas how to
    make it look right in IE as well?? Any help would be appreciated!
    The PHP code is below:
    He thinks the problem is here in this part of the code:
    <div id="kalendar" style="visibility:hidden; width:0px;
    height:0px; border:0;">
    //then goes some tables
    </div>
    Any help would be much appreciated...we are stumped!
    Thanks

    >
    http://www.bluehippotravel.com/surfingvacations
    404 on that link.
    > Does this tell you anything?
    Unfortunately, yes. The person who coded this has no sense of
    best practice
    in HTML authoring....
    I'd like to see the page in the wild if I could - can you
    investigate the
    404, please?
    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
    ==================
    "Lvanhoff" <[email protected]> wrote in
    message
    news:[email protected]...
    > Murray,
    > As always you are a genius :-)
    >
    > The only problem I still have, and only in IE, not FF,
    is that the drop
    > down
    > menus are cutting part of themselves off...any idea why?
    >
    http://www.bluehippotravel.com/surfingvacations
    > Top left...see how the arrows are cut off on the drop
    downs?
    >
    > Not sure if its ok to post to page??
    >
    > I didn't do this part of the page...so not sure how it
    was done...
    > Does this tell you anything?
    >
    > <table bgcolor="#f7ebb3" class="search"
    style="table-layout: fixed;
    > padding:0px" border="0">
    > <tr><td colspan="4" width="auto">
    > <select size="1" class="search" id="country"
    > onchange="javascript:listajzemlje(this.value)">
    > <?php
    > drzave();
    > ?>
    > </select>
    > </td></tr>
    > <tr><td colspan="4" width="auto">
    > <div id="state1">
    > <input type="hidden" id="state" value="" >
    > <input type="hidden" id="city" value="" >
    >
    > </div></td></tr>
    > <tr>
    >
    >
    > <td colspan="4" width="auto">
    > <input class="search" id="hotel" name="hotel" value="
    Hotel name
    > (optional)" />
    >
    >
    >
    > <tr><td colspan="4" style="cursor:pointer;"
    onClick="showKalendar()"
    > class="search" >
    >
    > <img class="search"
    src="images/btn-hotelmenu-searchbydate.jpg"
    > alt="Search by
    > date (optional) ">
    > </td></tr>
    > <tr><td colspan="4">
    > <div id="kalendar" style="display:none; width:0px;
    height:0px;
    > border:0;layout:fixed">
    >
    > <table border="0" class="submenucolor" align="center"
    width="auto">
    >
    > <tr>
    > <td></td><td></td>
    > <td class="HotelSearchMenu" colspan="2"
    align="right">In:<?
    > $aCalendarParams=array(
    > "sIconPath" => "./img/calendar.png",
    > "iAction" => 1, //0=>reloadCurrentPage with get
    param sDate,
    > 1=>fill
    > field sFieldName
    > "sFieldName" => "DPC_date1",
    > "iStyle" => 1, //0=>display calendar,
    1=>display div on icon
    > click
    > "aMonthNames" => $aMonthNames["EN"],
    > "aDaysNames" => $aDaysNames["EN"],
    > "sDateFormat" => $sDateFormat["EN"]
    >
    > );
    > new oCalendarPicker("calFixe1",$sDate,$aCalendarParams);
    > ?></td>
    >
    >
    >
    >
    >
    > </tr>
    >
    >
    > Thanks!
    >

  • Java and HTML or PHP question

    I am not sure of my best course of action and would appreciate some input. My problem is this. I have written an application in java that communicates with a
    micro controller and passes information back and forth.I read info from sensors and relays and make changes to them. My current GUI is set up with tables to
    display this info. I am in the process of creating a graphics based interface to display the information in a web page but I am having trouble getting my
    java program to update the HTML page. I have considered using java to update a database with values and then reading the database with PHP and updating the
    HTML but I do not know how to get the java to run the PHP. I can use the java.awt.desktop API to display the html but I cant get it to display the .php files
    due to the server issues with PHP. I am not sure what I am looking for here. Javascript? AJAX? What I want is for the user to push a button that loads a
    web page and have java read that html file to determine which specific values to update, then update specific text boxes with those values from the
    micro controller. I already have the communication with my current java program. I know this is all a little confusing and convoluted and I apologize for
    that. I am just having a tough time formulating a plan of attack. Any ideas?
    Thanks in advance,
    Ray
    Any ideas are welcome and greatly appreciated.

    I am not sure of my best course of action and would appreciate some input. My problem is this. I have written an application in java that communicates with a microcontroller and passes information back and forth.I read info from sensors and relays and make changes to them. My current GUI is set up with tables to display this info. I am in the process of creating a graphics based interface to display the information in a web page but I am having trouble getting my java program to update the HTML page. I have considered using java to update a database with values and then reading the database with PHP and updating the HTML but I do not know how to get the java to run the PHP. I can use the java.awt.desktop API to display the html but I cant get it to display the .php files due to the server issues with PHP. I am not sure what I am looking for here. Javascript? AJAX? What I want is for the user to push a button that loads a webpage and have java read that html file to determine which specific values to update, then update specific text boxes with those values from the microcontroller. I already have the communication with my current java program. I know this is all a little confusing and convoluted and I apologize for that. I am just having a tough time formulating a plan of attack. Any ideas?
    Thanks in advance,
    Ray
    Any ideas are welcome and greatly appreciated.

  • Which site should I create, html or php

    I am a beginner to web design and need to create a political website.  The most complicated features I want to create on my website would be:  polls, forms to collect visitor information, and discussion groups.
    Can I do this with a simple html site or do I need to set up a dynamic site.  If a dynamic site, should I pick php or cold fusion?  I understand the concept of the website working with a database, what is overwhelming to me is setting up the testing process and how my site will work with my hosting server.
    Thank you!

    Deb,
    Before you dive into particular programming language, I suggest you consider how far you want to take it.  There are simple tricks you can do with both and then there's complex programming that requires preferably a computer science or similar degree to properly implement.  Of course it helps to be initially exposed to a number of technologies, but at some point you have to focus your energies on a finite set and become an expert in it, constantly following updates and new releases.  It sounds like you're going toward front end development, in which case JS is more preferable to PHP; once you say you're a PHP programmer, that implies understanding MySQL databases, LAMP server configurations and server side scripting.  As someone running a web development shop since late 90's, I advise you go with JavaScript.
    In any case, best of luck!

  • Converting from HTML to php

    Generally Dreamweaver provides good support for changes to
    templates, and
    automatically updates all the files using a particular
    template when you change
    that template. However this breaks down if you change a
    template, or a file, to
    .php. Dreamweaver regards this as creating a new file, and
    does not offer to
    update links.
    My master template was basicpage.dwt. I created a new dynamic
    page, copied the
    guts of basicpage.dwt into it, and then saved it as basic
    page.dwt.php.
    I didn't really expect Dreamweaver to recognise that this was
    replacing
    basicpage.dwt, but when I opened the template directory I was
    surprised to find
    that it did not show the extensions, just two files
    basicpage. So I renamed
    basicpage.dwt.php to basicphpage.dwt.php so I could tell them
    apart. Then I
    opened index.htm, attached it to basicphpage.dwt.php,
    inserted some php to
    verify that it worked and resaved it as index.php. I uploaded
    to my file server
    and verified that the php worked. I also found that my host
    system loaded
    index.php by default.
    Next I opened one of the existing subsidiary templates,
    attached it to
    basicphpage.dwt.php, and resaved it. Dreamweaver saved it
    with the correct
    extension, but again did not recognise that I had changed the
    template.
    Next I opened one of the dependent files, attached it to the
    new template, and
    resaved it. Again Dreamweaver regarded this as creating a new
    file, and did not
    offer to update links. So when I convert each template I will
    then have to open
    every existing page using it, manually attach the new version
    of the template to
    it, and manually update all the links in it, or referring to
    it. Drat!
    It looks as if I should only convert those pages which I want
    to be dynamic, and
    only do so when I am ready to add the new functionality.
    Clancy

    Yeah. Clancy only wants to hear his truth....
    No offense, Clancy, but my dogma beats your dogma.
    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
    ==================
    "(_seb_)" <[email protected]> wrote in message
    news:[email protected]...
    > sorry for the dogma. I'll stop
    >
    > (_seb_) wrote:
    >> I sure do get your point. learning all that stuff is
    rather boring in
    >> itself. That's what I've told myself for years,
    until I dived into PHP
    >> (with a book at first, but now I just go to
    >>
    http://us3.php.net/manual/en/)
    whenever I need to learn something new.
    >>
    >> Once I did, and once I managed to setup a local
    testing server on my
    >> machine, I was surprised at how easy it was to learn
    the basic stuff that
    >> allows content architecture management. It took me
    about two weeks to
    >> learn the most useful techniques (how to generate
    html code with php, how
    >> to include remote files, how to use arrays, how to
    use conditionals).
    >>
    >> Now that I know that, I enjoy building websites much
    more, and I can do
    >> it much faster. For one thing, you say you have 'a
    total of 300 to 400
    >> pages'. That's a problem with static sites. Pages
    number has become an
    >> irrelevant concept since I use PHP. My sites rarely
    have more than 10
    >> 'pages', even if the visitor can navigate through
    vast ammounts of
    >> content. Because PHP templates allow me to generate
    pages on the fly,
    >> depending on what content needs to be displayed, so
    I can add content
    >> without having to build new pages... That's a lot of
    fun to build sites
    >> that way. I also can offer much more to my clients
    in terms of
    >> flexibility and content management, which allows me
    to charge them
    >> more... Website maintenance is a breeze. If I had
    known what
    >> possibilities it would open and how it would
    optimize my workflow, I
    >> wouldn't have waited so long to dive into it.
    >>
    >> But of course there is a time for everything. I just
    couldn't recommend
    >> anything more than learning a server-side language,
    to anybody who wants
    >> to make a living of webdesign (and have fun doing
    it).
    >>
    >> Clancy wrote:
    >>
    >>> "(_seb_)" <[email protected]> wrote:
    >>>
    >>>
    >>>> if you use PHP I don't see why you would use
    Dreamweaver templates.
    >>>> You can do with PHP more, better, and fatser
    in terms of content
    >>>> architecture (i.e. really functional
    templates) than what DM templates
    >>>> can do. AND, your dynamic PHP templates
    won't be dependent on
    >>>> Dreamweaver's UI.
    >>>
    >>>
    >>>
    >>> I have been working on my several web sites for
    about four years now,
    >>> and
    >>> probably have a total of 300 to 400 pages. These
    work, I think they
    >>> look
    >>> attractive, and user feedback has been
    favorable. If I had nothing
    >>> better to do, I could probably spend a year or
    so working out
    >>> how to do the same job without using templates.
    The resulting new
    >>> design MIGHT
    >>> be significantly easier to modify, and perhaps
    even to maintain, but the
    >>> new
    >>> pages would probably look much the same (I like
    the way they look now!),
    >>> and I
    >>> very much doubt if the visitor would notice the
    difference.
    >>> I can see that there are a number of minor
    improvements I will be able
    >>> to make
    >>> to my sites, once I have mastered php and mysql,
    but the one major
    >>> incentive I
    >>> have for learning them is that I have a number
    of photo albums, and it
    >>> will be
    >>> much easier to add new photos once I have set up
    a database. I have
    >>> already passed my biblical 'use by' date, and I
    don't feel that I have a
    >>> year to throw away just to make my web sites
    comply with someone else's
    >>> dogma.
    >>> I have a lot more material I would like to add
    to my various web sites,
    >>> and I
    >>> feel that this would be a much more profitable
    use of my remaining time,
    >>> to say
    >>> nothing of it being much more fun.
    >>>
    >>>
    >>> Clancy
    >>
    >>
    >>
    >
    >
    > --
    > seb ( [email protected])
    >
    http://webtrans1.com | high-end web
    design
    > Downloads: Slide Show, Directory Browser, Mailing List

  • Have DW CS5 treat HTML as PHP

    With a little editing of the Extensions.txt file and MMDocumentTypes.xml file as explained here, it was possible to have previous version of Dreamweaver treat HTML files as if they were PHP. That is, PHP code within these files was color coded and PHP includes were processed and shown in Design view.
    This does not seem to be working any more in Dreamweaver CS5. Does anyone know how to get this working? Adobe's docs on editing file extension behaviors have not been updated since CS3, so if there's a new twist for CS5, I don't know what it is.
    Thank you.

    Look here: https://discussions.apple.com/message/11563580?messageID=11563580&tstart=0#11563 580?messageID=11563580&tstart=0

  • Parse .html as .php?

    I need to setup a server running OS 10.8.6, apache 2, php 5 (standard OS X install) to process all .html files through the .php parser.
    I have a 10.4 system that I was able to get this to work easily through the GUI.  10.8 seems to have eliminated that capability.  I tried adding ...
    AddType application/x-httpd-php .html .htm
    as well as...
    AddHandler application/x-httpd-php .html .htm
    to either...
    /private/etc/apache2/other/php5.conf
    or
    /private/etc/apache2/httpd.conf
    and restarting the server.  .php files are processed properly, but .html files with php scripts are not.
    any help would be greatly appreciated.
    Thanks,
    Tom

    Look here: https://discussions.apple.com/message/11563580?messageID=11563580&tstart=0#11563 580?messageID=11563580&tstart=0

  • How to display image in database using html or php

    i've try already to work this thing but i can't do it. anyone that can help me or give me any example or reference to resolve my problem to retrieve or display image(blob) from database. hope that all of you help me

    Using JHeadstart, you can display a BLOB column from the database in HTML, by way of ADF. Check out the JHeadstart Tutorial at http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html to get started, then do the same for your own database tables that include the BLOB column. JHeadstart will take care of rendering it as a file upload or image, depending on the display type you set at the attribute level.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Call JavaApplet from HTML/Javascript/Php on the button click

    Hello guys!
    I have a JAR file, to establish telnet sessions. Everything is working with this simple piece of HTML code:
    <html>
    <body>
    <applet CODEBASE="."
    ARCHIVE="Telnet.jar"
    CODE="Telnet.Applet"
    WIDTH=500 HEIGHT=300>
    </applet>
    </body>
    </html>
    But there is something more. :)
    I wan't to make a network topology with MS Visio , click on the Router, Switch or on the Firewall icon , and just then run that Java applet.
    I can't find any good example how to achieve this. Maybe this is possible by running Java Applet from Javascript ? Etc. "onClickButton" ?
    Thank you for your time and your answers.
    Any help is highly appreciated!

    Dear programmers,
    could you take a look there, this is a real world example.
    login there with username: test12345 and password: test12345
    http://e-learning.nil.com/
    Then go there, and press "start lab"
    http://e-learning.nil.com/C1257448003E0C9B/ep?readform&pid=lab&code=PA8VVMC3MNT
    Click on the router icon, telnet application will show up.
    If not , go to profile-> devices access, choose " use java applet".
    How this is done without JNLP? Without downloading JNLP file? Java applet shows up like an application, and not in the new browser window?
    Thank you very much for your time!

  • Flash on html or php?

    On which of the 2 works better? someone told me that Flash
    goes better on Php...is that correct?

    That's a good question. Unfortunetly I couldn't tell you which
    one is better as I am not an expert, but I had a similar question
    relating to FL and PHP.

  • Editing a XML file with PHP and HTML or AS2

    Hi webmates...
    I have been looking for a good tutorial on managing an XML
    file through Flash (AS2) or HTML and PHP... but all of what I have
    found at the moment are very confusing and incomplete... the
    examples actually do not work ok...
    Would anyone mind on addressing me any good place where I can
    find nice tutorials for this ? perhaps any example ? I wil really
    appreciate it, My web is already reading the XML file to load
    data... but I also need to create an application for editing this
    XML... thanx in advance...

    I have no experience with any decompilers beyond possibly attempting to trial one once.  The only one I have seen recommended is made by Sothink.
    Here is a link to a page with a tool that has an interface you can use to determine various properties of an swf file, including the Actionscript version.
    http://blog.sitedaniel.com/2009/11/swf-info-width-height-swf-version-actionscript-version- framerate/

  • Html files with included php: related files, code color?

    Hi there,
    Wow, what an active forum!
    I have two questions about html files that include php.
    Almost all my html files have this structure:
    <?php
    (php stuff)
    require_once 'somefile.php';
    ?>
    (html stuff)
    My first question is, is there any way for DW CS4 to display the files included this way? At the moment, they don't show up in related file view.
    My second question is, is there any way for DW CS4 to display the html and php code in the file in a pleasant way? The php is not red as it is in pure php files.
    Definitely not wanting to change the way I code or to change the file extensions...
    Instead, wanting to change the SW settings to make my work easier.
    With gratitude,
    Smiles
    Andy

    Hi Brad,
    Thanks for your reply!
    > The PHP coding in a regular HTML page likely won't even work in a  browser
    That's a standard coding technique...LOL... Maybe I didn't explain correctly...
    My hundreds of pages validate XHTML transitional...
    You are quite right that browsers do not interpret php code, but the  browser never sees php code.
    I will try to explain again
    The html file starts with <? php (code> ?>
    When the browser calls the html file, the server knows to process the file as php.
    It processes the php, then returns some html headers, and follows up with all the html that is after the <? php (code> ?> section.
    Thousands of php coders work like this.It's a very efficient way of building a modular website while keeping html extensions.
    By the way, related files already show in CS4 if they are in the html code.
    Are you 100% sure you are correct about the CS5 inclusion situation? You won't know unless you have built an html file that looks like this.
    <?php
    require_once 'myfile.php'>
    ?>
    <body>
    hello html
    </body>
    Your myfile.php might look like this:
    <?php
    echo 'hello php <br />';
    ?>
    If you have never used php in an html file, you will probably need to add something like this to your .htaccess file:
    AddHandler application/x-httpd-php5 .php .htm .html
    It tells your server that php processes not only php files but also html files.
    Warmest wishes to all,
    Andy

  • Syntax Coloring for PHP in HTML Files

    I'd like consistent syntax color throughout my documents,
    which can be CSS, HTML or PHP. However, when I write PHP code into
    anything but a PHP document, it comes out in a single, or
    dual-color format making it much less "pretty", and not nearly as
    easy to read. HTML has CFM and ASP color options, but not PHP (and
    I don't want to have to format the color twice in preferences
    anyhow). I've tried grouping .html files in with the PHP/MySQL
    color grouping in the DocumentTypes setting (Dreamweaver
    8/Configuration/DocumentTypes), which works, but results in a crash
    each time I do anything but look at a document.
    Anyone experience this behavior, or better yet, have a
    solution to make Dreamwever's syntax color consistent within
    itself?
    BWT, this refers to Dreamweaver 8.0.2, Mac OS X 10.4.7. And
    the rest of the Studio is installed as well.

    jasonkenison wrote:
    > I'd like consistent syntax color throughout my
    documents, which can be CSS,
    > HTML or PHP. However, when I write PHP code into
    anything but a PHP document,
    > it comes out in a single, or dual-color format making it
    much less "pretty",
    > and not nearly as easy to read.
    Follow this link (watch the wrap), and scroll down to Randy
    Edmunds' answer:
    http://groups.google.com/group/macromedia.dreamweaver/browse_thread/thread/a60b556f59869a8 6/666ff112459275ec?lnk=gst&q=php+html+color&rnum=2#666ff112459275ec
    He gives the details for Windows, but you should be able to
    find the
    correct file easily enough on a Mac.
    David Powers
    Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
    Author, "Foundation PHP 5 for Flash" (friends of ED)
    http://foundationphp.com/

Maybe you are looking for