By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

eqivalent to scandir for php 4

P: n/a
Hi folks,
I'm starting to develop my final year project for college.
Just set up dreamweaver site environment. My local machine is windows based
running php 5 while my remote machine is unix based on php 4.something.

I have already come across a differrence, scandir()
it only works for php5, is there anything similar to it available for php4.
Only new to php. Thanks for your help.
Jul 17 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
On Sat, 18 Dec 2004 20:44:02 -0000, "David Callan" <co*****@akamarketing.com>
wrote:
I'm starting to develop my final year project for college.
Just set up dreamweaver site environment. My local machine is windows based
running php 5 while my remote machine is unix based on php 4.something.

I have already come across a differrence, scandir()
it only works for php5, is there anything similar to it available for php4.
Only new to php. Thanks for your help.


Read the manual - there is a PHP4 equivalent example on the manual page for
scandir().

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2

P: n/a
Thanks Andy, found that just there.
Have most hosts converted over to php5 yet do you think. PHP 5 version is a
lot easier

"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:iu********************************@4ax.com...
On Sat, 18 Dec 2004 20:44:02 -0000, "David Callan" <co*****@akamarketing.com> wrote:
I'm starting to develop my final year project for college.
Just set up dreamweaver site environment. My local machine is windows basedrunning php 5 while my remote machine is unix based on php 4.something.

I have already come across a differrence, scandir()
it only works for php5, is there anything similar to it available for php4.Only new to php. Thanks for your help.
Read the manual - there is a PHP4 equivalent example on the manual page

for scandir().

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool

Jul 17 '05 #3

P: n/a
Dave wrote:
Thanks Andy, found that just there.
Have most hosts converted over to php5 yet do you think. PHP 5 version is a
lot easier

"Andy Hassall" <an**@andyh.co.uk> wrote in message
news:iu********************************@4ax.com...
On Sat, 18 Dec 2004 20:44:02 -0000, "David Callan"


<co*****@akamarketing.com>
wrote:

I'm starting to develop my final year project for college.
Just set up dreamweaver site environment. My local machine is windows
based
running php 5 while my remote machine is unix based on php 4.something.

I have already come across a differrence, scandir()
it only works for php5, is there anything similar to it available for
php4.
Only new to php. Thanks for your help.


Read the manual - there is a PHP4 equivalent example on the manual page


for
scandir().

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool



Most hosts are still using PHP 4.x.x, and PHP 5 is a lot nicer in my
oppinion, much better OO features among other things.

~Cameron
Jul 17 '05 #4

P: n/a
*Cameron wrote:
Dave wrote:
Thanks Andy, found that just there.
Have most hosts converted over to php5 yet do you think. PHP 5 version
is a
lot easier


Most hosts are still using PHP 4.x.x, and PHP 5 is a lot nicer in my
oppinion, much better OO features among other things.

Well, 5.X is a lot nicer, true... but then comes MySQL 4.1.X - it is also
a lot nicer than the previous versions.

The problem is, its not always backward compatible, and this is especially
the case with mysql. The hosts will not upgrade until the new versions are
publically accepted as the new standard, with very good and understandable
reasons.
--
Thomas

SELECT date FROM wife WHERE bitching = '0' AND sex = '1'
Jul 17 '05 #5

P: n/a
Have any versions of php been withdrawn in the past?

"Thomas" <ne*********@nospam.netcom.no> wrote in message
news:op**************@asltsvg002.chc.domain...
*Cameron wrote:
Dave wrote:
Thanks Andy, found that just there.
Have most hosts converted over to php5 yet do you think. PHP 5 version
is a
lot easier


Most hosts are still using PHP 4.x.x, and PHP 5 is a lot nicer in my
oppinion, much better OO features among other things.

Well, 5.X is a lot nicer, true... but then comes MySQL 4.1.X - it is also
a lot nicer than the previous versions.

The problem is, its not always backward compatible, and this is especially
the case with mysql. The hosts will not upgrade until the new versions are
publically accepted as the new standard, with very good and understandable
reasons.
--
Thomas

SELECT date FROM wife WHERE bitching = '0' AND sex = '1'

Jul 17 '05 #6

P: n/a
Thomas wrote:
*Cameron wrote:
Dave wrote:
Thanks Andy, found that just there.
Have most hosts converted over to php5 yet do you think. PHP 5
version is a
lot easier

Most hosts are still using PHP 4.x.x, and PHP 5 is a lot nicer in my
oppinion, much better OO features among other things.


Well, 5.X is a lot nicer, true... but then comes MySQL 4.1.X - it is
also a lot nicer than the previous versions.

The problem is, its not always backward compatible, and this is
especially the case with mysql. The hosts will not upgrade until the
new versions are publically accepted as the new standard, with very
good and understandable reasons.


Very true, maybe some will start to offer the possibility of PHP5 while
still allowing PHP4, would be the best way to phase it in really.
I'm cutting right through anyways, just need a bit more hardware and a
UPS then I will have my own server...mmmm

~Cameron
Jul 17 '05 #7

P: n/a
David Callan wrote:
Hi folks,
I'm starting to develop my final year project for college.
Just set up dreamweaver site environment. My local machine is windows
based running php 5 while my remote machine is unix based on php
4.something.

I have already come across a differrence, scandir()
it only works for php5, is there anything similar to it available for
php4. Only new to php. Thanks for your help.


glob() should be able to do the job just as well.
Instead of
scandir('path/to/folder/');
you'll write
glob('path/to/folder/*');

There are off course a few other diferences too. I suggest you have a look
at http://www.php.net/glob

--
Tommy

Jul 17 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.