|
Posted by akuva on 08/03/07 06:27
On Aug 2, 6:21 pm, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> 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 likehttp://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.
> jstuck...@attglobal.net
> ==================
the file is not adding as a attachment if i give it like what u have
told sir,
http://www.example.com/emailme.html? the attachment size it is showing
as 0 bytes the file is not attaching properly how to overcome this
problem
[Back to original message]
|