I just CANNOT figure out what is wrong with this!
------
$op1f = fopen("./test.txt","r");
$op1 = fread($op1f, filesize($op1f));
------
my file text.txt is in the same dir as the php file. I get the
following errors on run:
------
Warning: filesize() [function.filesize]: stat failed for Resource id #3
in C:\Program Files\Apache
Group\Apache2\htdocs\php\php\pickone\php\index.php on line 11
Warning: fread() [function.fread]: Length parameter must be greater
than 0. in C:\Program Files\Apache
Group\Apache2\htdocs\php\php\pickone\php\index.php on line 11
------
I know it's something stupid I'm doing, but I simply can't figure it
out!
Thanks,
IWP506