PHP opendir() function on Novell Netware

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
CobraMagic
Forum Newbie
Posts: 2
Joined: Mon Jun 14, 2004 7:20 am

PHP opendir() function on Novell Netware

Post by CobraMagic »

I'm trying to use gdlib under a Novell Netware 6 Apache MySQL platform.

In an effort to read my directory with original photos, I use the opendir function (see code below):

When starting the script i get an error on line 15 (the opendir statement
(1)No such file or directory:

This error can even result in the crashing of apache itself.

Can anyone help me on how to use the opendir statement on a netware platform.

Code: Select all

<?php
#defines
error_reporting (E_ALL);
$basisorg="org";
$rootpath="sys:/apache/htdocs/patrick/jpg/";
$maxphotoshor=5;
?>

<HTML>
<BODY>
<TABLE><TR>
<?
$photoshcounter=1;
echo "$rootpath$basisorg";
if ($handle = opendir("$rootpath$basisorg")) 
{
   #create photos
}
feyd added [php.] tags. come on people!
Post Reply