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

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 and

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

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 using

Re: [PHP] File Access Rights

2003-03-05 Thread Kevin Stone
chmod($file, 0600); This sets the file to Owner read and write, Group nothing, Public nothing. If you're on a shared server then chances are this function has been disabled so you may have to FTP or SSH into your account and set the permissions for the file manually using the chmod command. Good

Re: [PHP] File Access Rights

2003-03-05 Thread Pushpinder Singh Garcha
Thanks Kevin I have tried to chmod the file ...but I need to give others the permission to read the file...or the script itself cannot open the file ! --Pushpinder On Wednesday, March 5, 2003, at 03:27 PM, Kevin Stone wrote: chmod($file, 0600); This sets the file to Owner read and write,

Re: [PHP] File Access Rights

2003-03-05 Thread Pushpinder Singh Garcha
The error that I get is a Permission Denied Message !! --Puspinder On Wednesday, March 5, 2003, at 03:27 PM, Kevin Stone wrote: chmod($file, 0600); This sets the file to Owner read and write, Group nothing, Public nothing. If you're on a shared server then chances are this function has been

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

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

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)