SearchSearch   

Selecting a file in our webspace from our local system

 
   Webmaster Forums (Home) -> PHP RSS
Next:  Selecting a file in our webspace from our local s..  
Author Message
akuva

External


Since: Aug 01, 2007
Posts: 6



(Msg. 1) Posted: Thu Aug 02, 2007 12:29 am
Post subject: Selecting a file in our webspace from our local system
Archived from groups: comp>lang>php (more info?)

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
Back to top
akuva

External


Since: Aug 01, 2007
Posts: 6



(Msg. 2) Posted: Thu Aug 02, 2007 4:16 am
Post subject: Re: Selecting a file in our webspace from our local system
Archived from groups: per prev. post (more info?)

On Aug 2, 3:55 pm, Jerry Stuckle <jstuck....RemoveThis@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....RemoveThis@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
Back to top
Jerry Stuckle

External


Since: Jul 08, 2004
Posts: 3787



(Msg. 3) Posted: Thu Aug 02, 2007 6:55 am
Post subject: Re: Selecting a file in our webspace from our local system
Archived from groups: per prev. post (more info?)

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.TakeThisOut@attglobal.net
==================
Back to top
Jerry Stuckle

External


Since: Jul 08, 2004
Posts: 3787



(Msg. 4) Posted: Thu Aug 02, 2007 9:21 am
Post subject: Re: Selecting a file in our webspace from our local system
Archived from groups: per prev. post (more info?)

akuva wrote:
> On Aug 2, 3:55 pm, Jerry Stuckle <jstuck... RemoveThis @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 RemoveThis @attglobal.net
==================
Back to top
akuva

External


Since: Aug 01, 2007
Posts: 6



(Msg. 5) Posted: Thu Aug 02, 2007 11:27 pm
Post subject: Re: Selecting a file in our webspace from our local system
Archived from groups: per prev. post (more info?)

On Aug 2, 6:21 pm, Jerry Stuckle <jstuck....RemoveThis@attglobal.net> wrote:
> akuva wrote:
> > On Aug 2, 3:55 pm, Jerry Stuckle <jstuck....RemoveThis@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....RemoveThis@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 top
Jerry Stuckle

External


Since: Jul 08, 2004
Posts: 3787



(Msg. 6) Posted: Fri Aug 03, 2007 7:26 am
Post subject: Re: Selecting a file in our webspace from our local system
Archived from groups: per prev. post (more info?)

akuva wrote:
> On Aug 2, 6:21 pm, Jerry Stuckle <jstuck....RemoveThis@attglobal.net> wrote:
>> akuva wrote:
>>> On Aug 2, 3:55 pm, Jerry Stuckle <jstuck....RemoveThis@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.RemoveThis@attglobal.net
==================
Back to top
lists73

External


Since: Aug 15, 2007
Posts: 1



(Msg. 7) Posted: Wed Aug 15, 2007 6:19 am
Post subject: Re: Selecting a file in our webspace from our local system
Archived from groups: per prev. post (more info?)

We do have a nice movie linked on our side explaining the file
handling in PHP - maybe this helps Smile

http://www.skilltube.com/index.php?option=com_content&task=view&id=44...


On 3 Aug., 08:27, akuva <shankar.... DeleteThis @gmail.com> wrote:
> On Aug 2, 6:21 pm, Jerry Stuckle <jstuck... DeleteThis @attglobal.net> wrote:
>
>
>
> > akuva wrote:
> > > On Aug 2, 3:55 pm, Jerry Stuckle <jstuck... DeleteThis @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... DeleteThis @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
Back to top
Krustov

External


Since: Dec 05, 2006
Posts: 127



(Msg. 8) Posted: Wed Aug 15, 2007 8:44 pm
Post subject: Re: Selecting a file in our webspace from our local system
Archived from groups: per prev. post (more info?)

<comp.lang.php>
<Jerry Stuckle>
<Wed, 15 Aug 2007 13:35:48 -0400>
<C8WdnUt6JaNdpF7bnZ2dnUVZ_tLinZ2d DeleteThis @comcast.com>

> Well, you went farther than I did. I didn't even clock on the link
> "tutorial"
>

Do you mean your slagging off something you havent even looked at ? .


--
(c) The Amazing Krustov
Back to top
Rik

External


Since: Aug 08, 2006
Posts: 876



(Msg. 9) Posted: Wed Aug 15, 2007 9:49 pm
Post subject: Re: Selecting a file in our webspace from our local system
Archived from groups: per prev. post (more info?)

On Wed, 15 Aug 2007 21:44:37 +0200, Krustov <me.DeleteThis@privacy.net> wrote:

> <comp.lang.php>
> <Jerry Stuckle>
> <Wed, 15 Aug 2007 13:35:48 -0400>
> <C8WdnUt6JaNdpF7bnZ2dnUVZ_tLinZ2d.DeleteThis@comcast.com>
>
>> Well, you went farther than I did. I didn't even clock on the link
>> "tutorial"
>>
>
> Do you mean your slagging off something you havent even looked at ? .

Nope, reading is an art. He deduced he was a spammer, tried to slag off
the tutorial, but gave up due to the fact it wasn't even his...
--
Rik Wasmus
Back to top
Display posts from previous:   
       Webmaster Forums (Home) -> PHP
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum