Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/293.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
嵌入html5的php在aptana中不起作用_Php_Html_Embed_Aptana3 - Fatal编程技术网

嵌入html5的php在aptana中不起作用

嵌入html5的php在aptana中不起作用,php,html,embed,aptana3,Php,Html,Embed,Aptana3,我正在使用aptana创建一个移动web应用程序。它在html5中,我试图在其中嵌入一些PHP,以便进行一些服务器调用。首先,我只是想在我的html5中做一个简单的echo语句。这个嵌入的echo语句有什么问题导致它无法工作 <!DOCTYPE html> <html> <head> <title>My Page</title> <meta name="viewport" content="width=devic

我正在使用aptana创建一个移动web应用程序。它在html5中,我试图在其中嵌入一些PHP,以便进行一些服务器调用。首先,我只是想在我的html5中做一个简单的echo语句。这个嵌入的echo语句有什么问题导致它无法工作

<!DOCTYPE html>
<html>
<head> 
    <title>My Page</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" />
    <script src="http://code.jquery.com/jquery-1.8.2.min.js"></script>
    <script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"></script>
</head>
    <body>
    <div data-role="page" class="type-home">
        <div data-role="header"> 
        <h1>JQM : Customize ListView</h1> 
            </div>
            <div data-role="content">
                <?php echo 'While this is going to be parsed.'; ?>
            <ul data-role="listview" data-inset="true" data-theme="c" data-dividertheme="a">
                <li data-role="list-divider">Overview</li>
        <li><a href="#"> <h1>Country Name : Thailand </h1></a></li>
        <li><a href="#"> <h1>Country Name : China </h1></a></li>
        <li><a href="#"> <h1>Country Name : Malaysia </h1></a></li>
        <li><a href="#"> <h1>Country Name : India </h1></a></li>
        <li><a href="#"> <h1>Country Name : Indonesia </h1></a></li>
        </ul>
            </div>
        </div>
    </body>
</html>

我的页面
JQM:自定义ListView
  • 概述

Php语句在服务器端工作。因此,如果您的服务器有php并运行它,就可以对其进行处理

要使一个文件由php处理,在从服务器输出的过程中,它必须有一个文件扩展名

afile.php
不是


因此,服务器将调用php,php将运行与其相关的命令

您是如何将此文件保存为
.html
.php
?它应该是
.php
。我创建了文件.php,现在它在调试时终止。aptana确实有指向我的php.exe文件的正确路径。我将.html etension更改为.php,现在它在调试时终止。Aptana确实有到我的php.exe文件的正确路径。这与答案有什么关系?Aptana是一个ide,如果你想使用它,你必须学习它。谷歌,阅读文档并修复它。
afile.html