Selecting a file in our webspace from our local system

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 ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-02-2007
akuva
 
Posts: n/a
Default Selecting a file in our webspace from our local system

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

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

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
==================
Reply With Quote
  #3 (permalink)  
Old 08-02-2007
akuva
 
Posts: n/a
Default Re: Selecting a file in our webspace from our local system

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

Reply With Quote
  #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
  #5 (permalink)  
Old 08-03-2007
akuva
 
Posts: n/a
Default Re: Selecting a file in our webspace from our local system

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


Reply With Quote
  #6 (permalink)  
Old 08-03-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Selecting a file in our webspace from our local system

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
==================
Reply With Quote
  #7 (permalink)  
Old 08-15-2007
lists73@skilltube.com
 
Posts: n/a
Default Re: Selecting a file in our webspace from our local system

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



Reply With Quote
  #8 (permalink)  
Old 08-15-2007
Rik
 
Posts: n/a
Default Re: Selecting a file in our webspace from our local system

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
Reply With Quote
  #9 (permalink)  
Old 08-15-2007
Jerry Stuckle
 
Posts: n/a
Default Re: Selecting a file in our webspace from our local system

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
==================
Reply With Quote
  #10 (permalink)  
Old 08-15-2007
Rik
 
Posts: n/a
Default Re: Selecting a file in our webspace from our local system

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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:27 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0