Search
Syndication
Sponsors

How To Display Data Programmed In Php Codes And Same Be Displayed In Html Codes?

The displaying data was programmed in a file with an extension of .php. How can we get that data and be displayed using html. Or how to display data from php display program and insert that php inside html. How to call php displaying programs using html.

Related posts:

  1. How Can I Secure Data Sent From Flash To Php? I need to secure data being sent from my Flash...
  2. Operating System displayed in an excel tableOperating System displayed in an excel table Learn more about Operating System displayed in an excel tableOperating...
  3. A daily MySQL row displayed Learn more about A daily MySQL row displayed by visiting...
  4. Whats The Correct Way To Get Php To “remember” Your Choice In A Select Box Using Html Entities? I have a drop down selector box in a form....
  5. display all programs installed in program Files Learn more about display all programs installed in program Files...

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , , , ,

3 Responses to “How To Display Data Programmed In Php Codes And Same Be Displayed In Html Codes?”

  1. Brian K Says:

    The short answer is that you need to install and configure PHP. See links.
    PHP works with *many* different web servers on several operating systems. If you don’t already have a web server, Apache is a popular server. You can search for “lamp stack”, “wamp stack”, or “mamp stack” to find bundled Apache, MySQL, and PHP solutions for Linux/UNIX, Windows, or Mac, respectively.
    The long answer is that it is possible, but less common, to use PHP from scripts or a command line.
    If your script generates HTML (most PHP scripts do, but it isn’t a requirement), you can save the output thus:
    php some_script.php > some_page.html
    However, you will not have access to any form parameters, etc. that might be passed by a web browser, and the result will be a static (unchanging) page. This generally defeats the point of having a server-side scripting language.
    You could also arrange to run the script on a machine that already has PHP installed from your browser, and then do a File > Save from the browser to save in an HTML file. Again, the result would be a static page.
    You can call a PHP script from HTML just as you would with any other page source [white space added for readability]:
    1)
    2)

    3) XMLHttpRequest (”AJAX”) with a URL referencing the PHP script
    The key is that you must PHP installed and configured on the server to execute the script.

  2. Sean C Says:

    Hello,
    Unfortunately, you cannot view a php file. It is a server side technology. It can only be viewed on the server side or through http://ftp. You must own an ftp login to be able to view the file.
    good luck,
    Sean Colicchio Server Engineer Host My Site http://www.hostmysite.com/?utm_source=bb

  3. javanx3d Says:

    Hi,
    You need to run your PHP from a server like Apache. You can download Apache for free and run it locally on your computer to view the code. Included the link and a site I run driven by PHP for samples.

Leave a Reply

Translate
Links

Tags