View Single Post

  #4 (permalink)  
Old 08-02-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Selecting a file in our webspace from our local system

akuva wrote:
> On Aug 2, 3:55 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> akuva wrote:
>>> How to read a file which is in our webspace from localsystem in php.
>>> please give me ideas or any code if anybody has it will be helpful

>> Can you access the file from the local system already? What do you want
>> to do with the file - copy it, display it, what?
>>

>
> i want to attach that file with my mail so i have to just make a
> reference of that file from my local system. I have created a
> apllication to send email from my local system but the attachment it
> has to take from a file stored in my webserver to reduce the bandwidth
> usage. How to point to the file in my weserver from local system
>


OK, is the file available to the webserver? That is, could you display
it in a browser with a url like http://www.example.com/emailme.html?

If so, you can just fopen() the url and fread() the file.

If it isn't, how do can you access the file from your local machine
without using PHP?

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Reply With Quote