English 中文(简体)
Weird bug , PHP代码在浏览器屏幕上打印,而不是执行[封闭]
原标题:Weird bug , PHP code get prints in browser screen instead execution [closed]
  • 时间:2010-06-18 12:30:50
  •  标签:
  • php

Closed 6 years ago.

我正在制定一些法典,但很奇怪的是,守则只是在屏幕上打印,我无法找到任何原因。

因此,请帮助我,该法的其他部分正在做罚款。

增 编

最佳回答

这是一个非常令人痛心的问题。 确实存在错误。 检查你的网络服务器记录,但我怀疑这样做将是有益的。 我通过使用 die(死亡)来解决这个问题;在文字中,用var和(或)打印机在屏幕上印刷一些变量。 试图在和平中打破文字,孤立并找到问题。

问题回答

服务器的配置不正确,无法运行php;

或者,你的档案没有延期。

缺失的<条码>和;?php 第一次检查显然是可能的。

由于你根本不提供细节,只能说:

Is the file extension correct? Is there a .htaccess or server configuration that makes apache not interpret the file as php?





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签