English 中文(简体)
经常使用要求
原标题:Using a constant in require_once

• 在发展过程中利用以下方法确定根基:

define( LOCAL_URL ,  http://localhost/~xampp/Mysite );
define( REMOTE_URL ,  http://example.com );
define( DEV_VERSION , true);
if(DEV_VERSION)
    define( URL , LOCAL_URL);
else
    define( URL , REMOTE_URL);

这一概念对我来说是新概念,而I m是PHP开端的线,因此,请说。

试图使用URL的Im 要求参加,我看不出工作(如所需档案中不包括)。 我尝试如下:

require_once URL. /phpincludes/coming-events.php ;
require_once(URL. /phpincludes/coming-events.php );
require_once URL .  /phpincludes/coming-events.php ;
require_once (URL .  /phpincludes/coming-events.php );
require_once(URL. phpincludes/coming-events.php );

I veecked http://www.php.net/manual/en/Function.require-once.php,并在Stackoverflow和I m根本没有真正做任何工作。

我确信,这确实是一纸空文,而且基本错误是我在这里说的,但我是一纸空文,真的会感谢一些帮助!

最佳回答

问题很可能是因为URL有一个程序,而且正在试图将档案放在吉大港山区。

包括远处残疾的档案(allow_url_include)和出于良好原因。

你们应当走相对或绝对的道路,把档案系统列入。

问题回答

暂无回答




相关问题
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 ...

热门标签