我搜索了很多次,检查了多次必要的步骤,但它仍然无法正常工作.
我的环境是:
PHP开发人员包的最新eclipse
项目是新的,不直接从SVN退房
.project有一条线
Run Code Online (Sandbox Code Playgroud)<nature>org.eclipse.php.core.PHPNature</nature>
.buildpath有一行
Run Code Online (Sandbox Code Playgroud)<buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/>
.settings/org.eclipse.core.resources.prefs有一行
Run Code Online (Sandbox Code Playgroud)include_path=0;/projectname
确保在PHP编辑器中打开文件
有些东西有效:
我的查询字符串如下:
SELECT ... FROM maintable
LEFT JOIN table1 on (maintable.id = table1.idx)
LEFT JOIN table2 on (table1.idy = table2.idy)
LEFT JOIN table3 on (table2.idz = table3.idz)
WHERE (condition1 OR condition2 OR condition3)
AND maintable.status = static
//condition1 & condition2 & condition3 are kind of
table3.idz = 101, table3.idz = 3, maintable.id IN (1,2,3,4), and so on
Run Code Online (Sandbox Code Playgroud)
对于结果,我希望condition1
首先返回满足的条目,然后是满足的condition2
条目,最后是满足的条目condition3
.有任何想法吗?
给定一个数组:
$a = array(
'abc',
123,
'k1'=>'v1',
'k2'=>'v2',
78,
'tt',
'k3'=>'v3'
);
Run Code Online (Sandbox Code Playgroud)
由于其内部指针位于其中一个元素上,如何在当前元素之后插入元素?如何在一个知名元素之后插入一个元素,比如'k1'?
表现护理〜
鉴于剩余边距未知的元素,如何增加其边距 - 数量为100px?
例如:
假设原始margin-left是100px
预期的结果是100px + 100px,最后是200px.
我目前正在我的主机上测试脚本.此脚本用于接受PayPal IPN数据,执行一些操作(即数据验证),将必要的数据发送到特定的电子邮件地址等.
我在PayPal网站上使用测试工具将测试数据发布到我的脚本中.我的脚本不起作用:应该发出代码,但我看不到错误.PayPal中的测试工具只是做了帖子,似乎不接受任何回复.我想看看我的脚本中发生了什么,以便我可以解决它.如何获取脚本输出的错误消息?
有任何想法吗?
我最近正在研究树结构,多个节点,多个可增加的级别以及print()方法.起初,我认为它应该是一个复合词,然后我写下了一些可能的设计和代码:
$struc = new Node(‘name0’, ‘id0’, ‘desc0’);
$node1 = new Node(‘node1’, ‘id1’, ‘desc1’);
$node2 = new Node(‘node2’, ‘id2’, ‘desc2’);
$node3 = new Node(‘node3’, ‘id3’, ‘desc3’);
$leaf1 = new Leaf(‘leaf1’, ‘ld1’, ‘lesc1’);
$leaf2 = new Leaf(‘leaf2’, ‘ld2’, ‘lesc2’);
$leaf3 = new Leaf(‘leaf3’, ‘ld3’, ‘lesc3’);
$leaf4 = new Leaf(‘leaf4’, ‘ld4’, ‘lesc4’);
$struc.add($node1);
$struc.add($node3);
$node1.add($leaf1);
$node1.add($leaf2);
$node1.add($node2);
$node2.add($leaf3);
$node3.add($leaf4);
Run Code Online (Sandbox Code Playgroud)
看起来不错,我认为并开始编码,print()方法可能会遵循Iterator模式.但在编码过程中,我觉得这些简单的节点太复杂了吗?而且我必须实例化很多具体的类(超过50多个,并且不断增加).然后我通过使用数组停止并思考一个简单的类似方法:
-- Structure Class --
//To be more readable and clear, array here could be
//divided to 3 arrays(root/nodes/leafs), then connect
//in a similar …
Run Code Online (Sandbox Code Playgroud) 假设网络表格中有5个输入
<input name='the_same[]' value='different' />
<input name='the_same[]' value='different' />
<input name='the_same[]' value='different' />
<input name='the_same[]' value='different' />
<input name='the_same[]' value='different' />
Run Code Online (Sandbox Code Playgroud)
当服务器端收到帖子数据时,我会使用foreach接受数据
$the_same = new array();
foreach($_POST['the_same'] as $data)
$the_same[] = $data;
Run Code Online (Sandbox Code Playgroud)
服务器端保存的数据顺序是否与Web表单中的顺序相同?和跨浏览器,它可能是所有浏览器遵循的标准.
例如,我希望一个文件在上传到我的linux主机时自动具有644的权限,在上传之前,它是在windows下。我怎么能这样做呢?
顺便说一句,我使用 Filezilla 进行上传
更新:在提出这个问题之前,其实我也曾经认为这是不可能的。但是,由于我有很多 WordPress 网站,我记得我从来不需要为 WordPress 文件设置权限。于是我做了一个实验
我看到所有文件的权限自然是正确的,有些是 644,有些是 755,与 WordPress 文档中描述的完全一样
php ×6
css ×2
jquery ×2
arrays ×1
autocomplete ×1
eclipse ×1
html ×1
http ×1
javascript ×1
linux ×1
mysql ×1
performance ×1
permissions ×1
post ×1
sql-order-by ×1
windows ×1