English 中文(简体)
PHP在校正的同时:(false != (file = 阅读($handle))没有显示最近与MAMP在OSX上的档案变化。
原标题:PHP correct while-loop: (false !== ($file = readdir($handle))) is not showing recent files changes with MAMP on OSX

By now I m convinced that I must be one of the few who experienced something like this. The problem is that my PHP is not listing updates (or recent file changes) in a certain directory.

Say I have 3 files: 1.jpg 2.jpg 3.jpg

当我这样做时:

while (false !== ($file = readdir($handle))) {
    echo $file. <br /> ;
}

I get:
.
..
1.jpg
2.jpg
3.jpg

问题在于,如果我删除一个档案,我仍然看到三个档案的旧清单。 我与阿帕奇进行了核对,直接接触到该名录,我确实看到新的变化,只有两卷档案。 如果我产生超文本图像,我就有三个图像标签,但最后一个是空的。 因此,没有与阿帕奇一起进行骑手。

我在SOSX上使用MAMP,我已经使我能够想到的所有东西都丧失了能力,因此没有XCache,也没有自动接收器,也没有头痛。 我甚至尝试了清晰的统计,然后重新启用服务器/计算机,从PHP5.3改为PHP5.2。

我最后两件事尝试,将MAMP升级为最新版本(现为2.1.1),并全部清除。 DS_Store from my localhost but to noutil. 我看到了Finder中的最新消息,阿帕奇也看到这些内容,看到这些内容是决定坚持老版的双管线。

我的PHP版本为5.3,而MAMP在OSXnow Leopard。

任何想法/建议都受到欢迎:

问题回答

暂无回答




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

热门标签