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
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
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
>
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
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
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
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.
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
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
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
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
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
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
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
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)
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
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
17 matches
Mail list logo