English 中文(简体)
PHP: include file with dirname (__FILE__), but still receive php Code assist in Eclipse
原标题:PHP: include file with dirname(__FILE__) but still get php code assist in Eclipse

缩略语

include_once dirname(__FILE__) . "/lib.php";

This way I don t get code assist for the functions in this library in Eclipse. But if I use :

include_once "lib.php";

守则协助does的工作。

但是,我想使用<代码>dirname(__FILE__),以确保I m 查询适当的校准目录。 (这一文字可列入anotherphp-script,然后使用dirname (__FILE__)

在使用<代码>代号(__FILE__)时,采用密码协助工作。

问题回答

如果贵国项目有档案(项目为<代码>)。 Aptana PHP项目,如果你包括或要求档案,你将获得该守则对项目所有档案的协助。

In case your files are located outside of your current project (a different project, or somewhere on your disk), you can attach them as an external library.

您可遵循以下指示:https://wiki.appcelerator.org/display/tis/PHP+Development#PHPDevelopment-AttachingPHPResources,并学习如何根据你的需要这样做。

希望会有所帮助。





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

热门标签