[PHP] File access from another machine

2004-02-26 Thread Harish
Hello All, Is there any possibility to open a file in another machine, provided the IP of the machine using PHP scripts. I only need to open a file with the format abc190104.csv in another machine & write data into that file. Or to steam it through the HTTP. Regards Harish Rao K -- PHP General

Re: [PHP] File access from another machine

2004-02-26 Thread Raditha Dissanayake
hi, how about RCP,SCP, SFTP or FTP or worse comes to worse NFS Harish wrote: Hello All, Is there any possibility to open a file in another machine, provided the IP of the machine using PHP scripts. I only need to open a file with the format abc190104.csv in another machine & write data into tha

Re: [PHP] file access to "virtual files"

2004-02-09 Thread Jason Wong
On Monday 09 February 2004 16:23, merlin wrote: > there is following scenario: > - One php file saved with .pdf extension > - .htaccess tells php to parse this file > - ?ID=x provides the database id for individual files > > That whole thing workes perfectly as long as you access it via browser >

[PHP] file access to "virtual files"

2004-02-09 Thread merlin
Hi there, there is following scenario: - One php file saved with .pdf extension - .htaccess tells php to parse this file - ?ID=x provides the database id for individual files That whole thing workes perfectly as long as you access it via browser and URL. Now I need to save those files, or send t

Re: [PHP] File access denied!!!

2003-03-31 Thread Marek Kilimajer
You need to chmod o+r them (in the ftp client). Also the path must be readable by the web server. You might want to set up the ftp server to give these permisions automaticaly Joakim Larsson wrote: I am running a ftp server on my mac along with the webserver on OS 10.2. The files that i upload

[PHP] File access denied!!!

2003-03-28 Thread Joakim Larsson
I am running a ftp server on my mac along with the webserver on OS 10.2. The files that i upload to the server i have no access to through the internet. This is the message i get when trying to access the webpage "You don't have permission to access /index.html on this server.". What do i do to get

Re: [PHP] File Access Rights

2003-03-05 Thread Pushpinder Singh Garcha
t: Wednesday, March 05, 2003 12:51 PM Subject: [PHP] File Access Rights Hello all My php script needs to read a text file that is stored in the same Dir as the php file. However I do not want to allow users to be able to see the contenst of the file from the Browser. Please suggest some remedy.

Re: [PHP] File Access Rights

2003-03-05 Thread Pushpinder Singh Garcha
Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 05, 2003 12:51 PM Subject: [PHP] File Access Rights Hello all My php script needs to read a text file that is stored in the same Dir as the php file. However I do not want to allow users to be a

Re: [PHP] File Access Rights

2003-03-05 Thread Kevin Stone
Good luck. - Kevin - Original Message - From: "Pushpinder Singh Garcha" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, March 05, 2003 12:51 PM Subject: [PHP] File Access Rights > > Hello all > > My php script needs to read a text file that

Re: [PHP] File Access Rights

2003-03-05 Thread Jason Wong
On Thursday 06 March 2003 03:51, Pushpinder Singh Garcha wrote: > My php script needs to read a text file that is stored in the same Dir > as the php file. However I do not want to allow users to be able to see > the contenst of the file from the Browser. Please suggest some remedy. If you're usi

[PHP] File Access Rights

2003-03-05 Thread Pushpinder Singh Garcha
Hello all My php script needs to read a text file that is stored in the same Dir as the php file. However I do not want to allow users to be able to see the contenst of the file from the Browser. Please suggest some remedy. Thanks in advance Pushpinder Singh Garcha

Re: [PHP] File Access...

2002-09-19 Thread Marek Kilimajer
put this to the begining of your some.php if (eregi("some.php",$PHP_SELF)) { Header("Location: index.php"); die(); } Brian McGarvie wrote: >How could you redirect somone from directly accessing a file... > >Meaning... if an engine spiders www.domain.com/some.php > >How could you make s

[PHP] File Access...

2002-09-19 Thread Brian McGarvie
How could you redirect somone from directly accessing a file... Meaning... if an engine spiders www.domain.com/some.php How could you make some.php redirect to index.php However... the site is framed, and the menu uses content.php to display the selected content. Any ideas? -- PHP General

[PHP] File Access & Security Issues

2002-02-14 Thread Steven Walker
How assured can I be that people will NOT be able to view my php code? I'm creating an e-commerce site that will contain sensitive information and algorithms. I want to to take every precaution possible to protect that data and code. One concern in particular is the ability to view the content

Re: [PHP] file access(mpeg) only for authenticated people

2001-03-07 Thread Thorsten Gutermuth
hi! I'm having some trouble with this. If i use an ftp address out of some reason I'm unable to read the file(although I get a handle).(ftp server supports passive mode) And if I use http(without authorisation) the browser still asks if I want to save it.(even if I use video/mpeg as Content-Type)

Re: [PHP] file access(mpeg) only for authenticated people

2001-03-07 Thread Mukul Sabharwal
Hey, Well sure there is: $fp = fopen($filename, 'r') or die('damn'); $read = fread($fp, filesize($filename)) or die('damn'); $filestr = basename($filename); header("Content-Disposition: attachment; filename=$filestr"); header("Content-Type: application/octet-stream"); echo $read; exit; Neat A

[PHP] file access(mpeg) only for authenticated people

2001-03-07 Thread Thorsten Gutermuth
Hi! I'm trying to make some mpegs available only to people who authenticated themselves using php. But all the solutions I found somewhat unpleasant because I uses chmod to set the file attributes to u=rw and then used either i) readfile("ftp://name:password@server/path//test.mpeg"); or ii) head