Re: [PHP] Problem on OpenDir()

2002-11-27 Thread Joakim Andersson
Jack wrote: Dear Joakim First of all, thx for the reply and here is the code : ? include 'phpstudy/constant.inc'; $link=mysql_pconnect(HOST,USER,PASSWD); mysql_select_db(DBNAME,$link); file://Define Date format $currentyear = date('y'); $currentmonth = date(m); $previousmonth=$currentmonth -1;

[PHP] Problem on OpenDir()

2002-11-25 Thread Jack
Dear all here is the path i want to open for reading files from it! path = c:/pdf_reports/bills/Oct-02 i always got returned with these error : Warning: OpenDir: Invalid argument (errno 22) in c:/page.php on line 21 Warning: Supplied argument is not a valid Directory resource in c:/page.php

Re: [PHP] Problem on OpenDir()

2002-11-25 Thread Joakim Andersson
Jack wrote: Dear all here is the path i want to open for reading files from it! path = c:/pdf_reports/bills/Oct-02 Here you have no trailing / --- Snip --- when i change the path to : c:/pdf_reports/bills/ But here you do... It should not make a difference as far as I know, but it may be

[PHP] Problem on OpenDir()

2002-11-21 Thread Jack
Dear all I was trying to check if a directory exist in a specific folder, but i got this error message as below : Warning: OpenDir: Invalid argument (errno 22) in C:\InetPub\wwwroot\Nedcor Internal Live\Reports\Bills Reports\page.php on line 21 here is the code : ? $handle=opendir(c:\\);