Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-21-2006, 11:58 PM   #1
Registered: Nov 2005
Location: India
Distribution: Slackware
Posts: 51

Rep: Reputation: 15
undefined function scandir() in php

Hi there

I've istalled Apache 1.3.34 and php 4.x from source code. It is working nicely but I am unable to use the scandir function. It's saying (Call to undefined function scandir()).

What needs to be done?

Isn't scandir() installed by default?
What configuration options need to be set if any?

Please show me the right direction.

Last edited by tooparam; 01-22-2006 at 12:09 AM.
Old 01-22-2006, 02:03 AM   #2
Senior Member
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 50
it is only available in PHP 5; the manual page lists an alternative for PHP 4 using opendir and readdir


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Call to undefined function imagettfbbox() QtCoder Programming 24 01-18-2012 01:20 PM
PHP: call to undefined function preg_match() (I think to do with PCRE) BuckRogers01 Linux - Software 1 10-17-2005 02:35 PM
Need help with PHP and MySQL: Undefined function... Mega Man X Programming 12 09-16-2004 12:07 AM
Call to undefined function: mail() in PHP pembo13 Fedora 0 07-28-2004 08:40 PM
PHP: Call to undefined function: session_start() wellmt Linux - Newbie 2 06-01-2004 06:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration