Page 1 of 1

PHP opendir() function on Novell Netware

Posted: Mon Jun 14, 2004 7:20 am
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!