This is a discussion on Selecting a file in our webspace from our local system within the PHP Language forums, part of the PHP Programming Forums category; How to read a file which is in our webspace from localsystem in php. please give me ideas or any ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|||
|
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? > > -- > ================== > Remove the "x" from my email address > Jerry Stuckle > JDS Computer Training Corp. > jstuck...@attglobal.net > ================== 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 |
|
|||
|
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 ================== |
|
|||
|
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 |
|
|||
|
akuva wrote:
> 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? >> > > 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 > > Sorry, my crystal ball is broken. I have no idea what your problem might be. You have provided no details other than the file doesn't get attached. -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|||
|
We do have a nice movie linked on our side explaining the file
handling in PHP - maybe this helps :) http://www.skilltube.com/index.php?o...ask=view&id=44... On 3 Aug., 08:27, akuva <shankar....@gmail.com> wrote: > 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 afilewhich 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 thefilefrom the local system already? What do you want > > >> to do with thefile- copy it, display it, what? > > > > i want to attach thatfilewith my mail so i have to just make a > > > reference of thatfilefrom my local system. I have created a > > > apllication to send email from my local system but the attachment it > > > has to take from afilestored in my webserver to reduce the bandwidth > > > usage. How to point to thefilein my weserver from local system > > > OK, is thefileavailable 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() thefile. > > > If it isn't, how do can you access thefilefrom your local machine > > without using PHP? > > > -- > > ================== > > Remove the "x" from my email address > > Jerry Stuckle > > JDS Computer Training Corp. > > jstuck...@attglobal.net > > ================== > > thefileis 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 thefileis not attaching properly how to overcome this > problem |
|
|||
|
On Wed, 15 Aug 2007 15:19:46 +0200, <lists73@skilltube.com> wrote:
> We do have a nice movie linked on our side explaining the file > handling in PHP - maybe this helps :) > > <snipped url> On the off chance you actually read this: 1. Please don't toppost. 2. Please actually read & respond to questions instead of just promoting your tutorial with the exact same text over and over in every thread which might be related. -- Rik Wasmus |
|
|||
|
Rik wrote:
> On Wed, 15 Aug 2007 15:19:46 +0200, <lists73@skilltube.com> wrote: >> We do have a nice movie linked on our side explaining the file >> handling in PHP - maybe this helps :) >> >> <snipped url> > > On the off chance you actually read this: > > 1. Please don't toppost. > 2. Please actually read & respond to questions instead of just promoting > your tutorial with the exact same text over and over in every thread > which might be related. > > --Rik Wasmus Rik, don't you know by now spammers can't read? And I checked it out. It isn't even on his site. All that is is a link to a movie on another site. Spammers aren't very smart, are they? -- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
|
|||
|
On Wed, 15 Aug 2007 17:16:30 +0200, Jerry Stuckle
<jstucklex@attglobal.net> wrote: > Rik wrote: >> On Wed, 15 Aug 2007 15:19:46 +0200, <lists73@skilltube.com> wrote: >>> We do have a nice movie linked on our side explaining the file >>> handling in PHP - maybe this helps :) >>> >>> <snipped url> >> On the off chance you actually read this: >> 1. Please don't toppost. >> 2. Please actually read & respond to questions instead of just >> promoting your tutorial with the exact same text over and over in every >> thread which might be related. > > Rik, don't you know by now spammers can't read? It's my sunny outlook on life, which always give me idle hope there is some genuine misunderstanding that can be rectified :-) > Spammers aren't very smart, are they? People actually clicking on links in spam even more so. That's what is keeping spam alive. No returns on spam would mean a very quick death. -- Rik Wasmus |