[I am running the php file in localhost and the browser (chrome) is showing the blank page then i inspect the code and found the php code or part is commented automatically. What can I do I am novice so help me with this please我正在尝试使用代码<? echo "as"; ?>
运行单个php文件,但是xampp服务器显示空白页。 Xampp服务器仅加载index.php文件。我正在访问或尝试在本地主机服务器上运行其他php文件,但它始终显示空白页。
您应该正确编写PHP标记
<?php echo "hello "; ?>
如果不能解决问题,请与我们共享xampp日志,并确保在启动过程中没有任何错误。
您正在尝试使用该代码。这些在php中称为short_open_tags。而这些返回您的空白页,因为这些需要在php.ini文件中启用。转到命令以下的php.ini文件更改
short_open_tags =关
收件人
short_open_tags =开
重新启动您的xampp服务器。现在您的代码将运行。