how to access a file on local system

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
ravitalele
Forum Newbie
Posts: 1
Joined: Wed Mar 31, 2004 5:07 pm

how to access a file on local system

Post by ravitalele »

Hi

I am trying to open a file residng on local hard drive from a php page. I have a html page from where I can browse to the file and click on a button which calls the php page.

When I try this it says the file does not exists. I have checked the if the file exists and display message if it does not. If I copy the file to the server where the php file is then it works OK. i.e. the file gets opened.

Any suggestions?

Thanks,
User avatar
markl999
DevNet Resident
Posts: 1972
Joined: Thu Oct 16, 2003 5:49 pm
Location: Manchester (UK)

Post by markl999 »

Got some example code to show?
Post Reply