My company, as a matter of policy, closes the ftp ports of the servers in the DMZ.
However, I am not convinced that this is necessary, given the advent of very secure
ftp servers. I would appreciate any comments on the security of an open ftp port. To
relate this to php, I am ready to give up
Rich,
Why don't you create an ssh tunnel between your two boxes and then
perform you ftp connection through there? This way, the connection would
be secure and you could impersonate whichever user you need to.
There is also a secure version of ftp, but I don't think that it can be
instantiated
On Wednesday 27 November 2002 01:42, Richard Fox wrote:
To relate this to php, I am ready to give up
trying to make my
system(scp ..);
code work, because I will have to give the apache user more permissions
than I am comfortable with.
What exactly are the problems you're encountering
?
Well, if you're going to be using ftp-over-ssh, I don't see why you're not
using scp directly instead.
I thought that if I create an ssh tunnel for ftp, I could use the php ftp
functions, they would actually be using ssh transparently.
Rich
--
PHP General Mailing List (http://www.php.net
Marco,
Would you have any examples for using an SSH tunnel? I'm using fsockopen
to get data from proprietary server software (just returns data to me in
different formats) and I would like to have it secure. I'm just not sure
how I could incorporate that.
Thanks,
Bryan
On 26 Nov 2002,
How do you check if a file exists a remote ftp site.
Try
$f = fopen ('ftp://server/filename', 'r');
if $f is null, the file doesn't exist. Otherwise, it exists and you have
to fclose ($f). FTP support has to be compiled into your version of PHP
for this to work.
Marco
-
php|architect -- The Monthly Magazine For PHP Professionals
if there's no function to check (which i can;t find real quick) do
soething like this:
if (!ftp_mdtm($conn_id, $file) {
echo File doesn't exist;
} else {
echo File exist;
}
On Friday, Nov 8, 2002, at 12:01 US/Eastern, Fifield, Mike wrote:
How do you check if a file exists a remote ftp site.
At 07:14 07.11.2002, Charles Wiltgen said:
[snip]
// Delete a file via FTP
function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) {
[snip]
or, if you have FTP support built in:
$user =
Ernest E Vogelsinger wrote...
or, if you have FTP support built in:
Yeah, a much better option if it's available.
It isn't for me, and I can't use it as a final solution, so I'm still
looking for a way to write files locally without using it. I wish PHP just
gave me the ability read and write
// Delete a file via FTP
function deleteFileViaFTP($ftpServer, $user, $password, $ftpDir, $ftpFile) {
$error = FALSE;
// Open connection to FTP port
$ftp = fsockopen($ftpServer,21);
$foo = fgets($ftp);
if (!ereg(^220*, $foo)) { $error = *** Error! FTP service not
Hi,
i wont to find a special Dir on many FTP Server's over PHP.
For searching my Server's have an site command like site dupe
Dirname
But if I try it with ftp_site I get only a bool back and not the search
result.
With a ftp_nlist I can't search Dir's only files.
And with ftp_rawlist I get
Hello,
I was just wondering, how do you FTP files in PHP? I can't seem to find
it in any of my PHP books so could someone kindly give me a rundown on
how they work? Thanks!
Thanks,
Stephen
http://www.melchior.us
http://php.melchior.us
--
PHP General Mailing List (http://www.php.net/)
To
http://www.php.net/manual/en/ref.ftp.php
You'll need FTP support compiled into PHP.
do a phpinfo() and search for FTP
Cheers,
Liam
- Original Message -
From: Stephen Craton [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, September 22, 2002 7:27 AM
Subject: [PHP] FTP Uploading
I took the scriopt from php manual and adapted it to my needs, but I get
an error:
Warning: ftp_put(): user_pictures/vic/: No such file or directory in
/home/victor/argilent-www/sites/kodak/upload_picture.php on line 103
This is the code:
# set up basic connection
$conn_id =
Hi,
I've just configured and installed sucessfully PHP 4.2.2 on my AIX server.
Everything works good, except when I want to connect to a FTP server within
a PHP script.
I compiled PHP using the --enable-ftp option and phpinfo() tells me that FTP
support is enabled.
Here is a simple script I
Hi, i'm making a script, that logs some ftp characteristics, like resume
support and stuff...i try using ftp_site(), but it's not working
I want to send a command like REST, but ftp_site() send the command like
this: SITE REST, with the SITE before the command...any way to do it?
Thx :D
Hi, i'm making a script to donwload files from a ftp server to the server
hosting the script, but i don't know how to download all the files from a
directory. I'm using the file system functions to conect to the ftp server,
because the ftp functions in php does not always work, and, actually
On Thu, 4 Jul 2002 20:43:25 +0100, you wrote:
Not really a PHP question - more an FTP protocol question - try reading the
FTP RFC at http://www.ietf.org/rfc/rfc959.txt
However, in a nutshell, to get all of the files in a directory -
1. get a listing of that directory (read the RFC for
i've written a class for connecting to an ftp server in
passiv mode, sending a text file, sending one or
more .mpegs and disconnecting.
on my test box this script works fine (PHP 4.2.1) BUT
on my live box (PHP 3.0.18) it fails...
On the live box (php 3.1.8) the script fails when i
call
Hi,
I was just wondering given that only the standard FTP functions are
supported by PHP, is there anyway to actually resume a download? The
only thing that seems even capable of issuing any versatile commands is
ftp_site, and that only issues site commands.
I haven't had much luck with
Hi guys..
i've got a problem...
i'm remaking a webftp system...
i took some base of it on the web... great..
So.. one of the features is : it appears the name of a directory and how
many files are in it.
like that :
DIR (5) == 5 files on the DIR
i use
$arq=ftp_nlist($connection, $xanda);
and
Hello
,is it possible to upload file that is bigger than 8MB thrue FTP upload
programmed in PHP? I need send attachments up to 50MB by FTP. It's for a
graphic studio which works with big files.
If yes how?
Thank you
Zavodsky
[EMAIL PROTECTED]
---
Odchoz zprva neobsahuje viry.
Zkontrolovno
Hi,
I'm creating an FTP script for uploading files... but now, when I pull out
the network plug of the server (so the connection is lost), my program
doesn't stop running... any ideas of how to check if a connection is still
alive?
Edward
// partial code:
for ($i=0; $imysql_numrows($query);
]
To: PHP-General [EMAIL PROTECTED]
Sent: Thursday, April 04, 2002 6:16 AM
Subject: [PHP] FTP
Hi,
I'm creating an FTP script for uploading files... but now, when I pull out
the network plug of the server (so the connection is lost), my program
doesn't stop running... any ideas of how to check
FTP with raw sockets is a little bit tricky because it actually requires a
second 'data' socket to be opened for each upload/download command.
Check out this excellent FTP class, which *doesn't* require PHP to be
compiled --with-ftp:
http://www.spencernetwork.org/ftp/ftp-class.txt
And of
I have written the code to upload using RAW FTP commands.
Cool!
How'd you get it to work?
--Dan
--
PHP scripts that make your job easier
http://www.analysisandsolutions.com/code/
SQL Solution | Layout Solution | Form Solution
T H E A N A L Y S I
Yes. Your solutions fails for any file over 5k about 99% of the time. The
server I use does not have the FTP functions installed so I cannot use
these, that is why I am looking to this solution.'
Chris
Analysis Solutions [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Hi Chris:
Yes. Your solutions fails for any file over 5k about 99% of the time. The
server I use does not have the FTP functions installed so I cannot use
I wouldn't really call it your solution, since it's really the
solution. FTP stands for File Transfer Protocol. If you don't have a
OK. I don't know how I can be more specific, but I will try. I have used
fopen(ftp://url) to upload files to the FTP server from a web form, however
this fails on files over 5k in size.
I do not have the FTP functions installed on the server I will be using.
I simply want to know how I would
Hey Chris:
On Tue, Mar 26, 2002 at 12:44:21PM -0700, Chris wrote:
OK. I don't know how I can be more specific, but I will try.
Dude, let's look at your initial question to the list:
Can anyone help me with the command I need for a RAW FTP file
upload? I can create connections and they
Can anyone help me with the command I need for a RAW FTP file upload?
I can create connections and they empty file, but I have no idea how to get
the data into the file and I have tried everything.
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Hi Chris:
On Mon, Mar 25, 2002 at 02:05:30PM -0700, Chris wrote:
Can anyone help me with the command I need for a RAW FTP file upload?
I can create connections and they empty file, but I have no idea how to get
the data into the file and I have tried everything.
Have you tried first creating
20/03/2002 10:01:25 AM
Hi all. I need a FTPd that I can easily add/remove users from
using PHP. What would you suggest is the best one?
I've tried pro-ftpd but I can't work it out, the documentation is
crap. I've tried pure-ftp but it's documentation is also quite
vague.
Thanks for your
Please help.
i'm trying to access a remote ftp server , with my script.
it all works nicely , i can log in , i can list folders , make folders,
delete stuff,
but NOT COPY FILES!!
it gives this warning and no error.
Warning: ftp_put: /capetown is current directory. in
disclamer
Before I get flamed for not reading the manual or trying on my own, I
would just like to say that I have been working on this for a few days
and have read the manual and looked at quite a few examples, all of
which seem to elude me.
/disclamer
I want to upload an image, and I want
Message -
From: sundogcurt [EMAIL PROTECTED]
To: GENERAL PHP LIST [EMAIL PROTECTED]
Sent: Monday, January 21, 2002 10:47 AM
Subject: [PHP] ftp functions
disclamer
Before I get flamed for not reading the manual or trying on my own, I
would just like to say that I have been working
-
From: sundogcurt [EMAIL PROTECTED]
To: GENERAL PHP LIST [EMAIL PROTECTED]
Sent: Monday, January 21, 2002 10:47 AM
Subject: [PHP] ftp functions
disclamer
Before I get flamed for not reading the manual or trying on my own, I
would just like to say that I have been working on this for a few days
machine.
Jim
- Original Message -
From: sundogcurt [EMAIL PROTECTED]
To: GENERAL PHP LIST [EMAIL PROTECTED]
Sent: Monday, January 21, 2002 11:34 AM
Subject: Re: [PHP] ftp functions
Would you suggest that I use the copy function instead?
I have tried the copy function in a prelim test
Damn , i hate ftp'ing twas the simplest thing in development but noe i'm
trying to deploy!! Pleez help!
Getting an WARNING! ftp_put! PORT command succesfull on
also the file doesn't seem to be uploading!!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
I started to use FTP functions and I would greatly appreciate some
confirmation :
- It is not using FTP function than I can download file to a client's
computer. (is there a way other than the A href=... ?)
- I can not read the name of the files that are on a client's computer. (The
client
Sorry for the totally OT question, but can anyone recommend a good, FREE,
FTP client for windows? I now have to pay for AceFTP aswell, which used to
be free.
Thank you
Rudi Ahlers
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Look -- if you're going to post OT messages, at least put [OT] in the subject
line so those of us who get pissy about OT messages (such as myself) can
filter them out.
As for a good, free windows FTP utility, you have one:
Open up a command prompt and type ftp.
--kurt
On Wednesday 14
Here's the problem:
I want a PHP scrip ton my shared server to be able to create some
directories and files. I don't want to make a directory with 777
permissions. Also, I'm going to distribute this script, so I don't want to
do set web or nobody as having write access in my system.
Solution?
Hi,
I'm trying to upload some files using PHP, but I'm limited to small files and I don't
know why. Could anyone please help me with this?
Hi,
I'm trying to upload some files using PHP, but I'm limited to small files of 1Mb or a
little more and I don't know why. Could anyone please help me with this?
This is the message I get:
Warning: error opening none in /home/proj/sapens/public_html/f1_material.php on line 51
the same
I'm trying to upload some files using PHP, but I'm limited to small files of 1Mb or
a little more and I don't know why. Could anyone please help me with this?
This is the message I get:
Warning: error opening none in /home/proj/sapens/public_html/f1_material.php on line
51
By default
I need to have web based ftp capabilities for a site I am working on. My
development server is running RedHat 7.1 and php-4.0.4, and I did compile
php with the --enable-ftp switch.
After reading the docs at php.net, I found a canned script
(http://www.php.net/manual/en/ref.ftp.php) that I
I'm looking for a way to automatically ftp a tab-delimited text file from a
private ftp location and update my Mysql table every 24 hours. I don't have
root access to the php/mysql server. Anyone have an idea?
Thanks,
Wade Berlin, Backstreet Production Group Inc.
I'm getting the following error:
Warning: Unable to find ftpbuf 0 in C:\directory\page.php on line 22
Whenever I try to connect to our FTP server...it does this whenever I make a
call to ftp_login(). The server, username, and password are correct, and I
can successfully FTP into it through
I'm getting the following error:
Warning: Unable to find ftpbuf 0 in C:\directory\page.php on line 22
Whenever I try to connect to our FTP server...it does this whenever I make a
call to ftp_login(). The server, username, and password are correct, and I
can successfully FTP into it through
Is there an easy way to implement FTP Resume in PHP?
I need to log into our ftp server using username/password through a
proxy and resume download of a logfile. Downloading the entire thing
each time would take too long. I also need to check the dates of some
files.
Thanks,
--
Marc
question :
Can i make a FTP connection to other server and download a file?
How can i do this
Greetings,
Manu Verhaegen
You could try this for the sake of simplicity:
$fp = fopen (ftp://user:[EMAIL PROTECTED]/;, w);
http://www.php.net/manual/en/function.fopen.php
Josh Hoover
KnowledgeStorm, Inc.
[EMAIL PROTECTED]
Searching for a new IT solution for your company? Need to improve your
product marketing?
Visit
Hi..
maybe you could help me, I want to make an FTP but whithout Ftp_open and all
those functions, is there any way???
tx
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
--
PHP General Mailing
a file listing and fetch files on the fly and do use to
send the output to a file which you could read from php.
ftp commands.in output.out
Option 2 is to get the RFC document on the ftp protocol and use phps socket
functions to make a php ftp client from the ground up. - Russ
---
Toolshed
Hi all,
I'm facing this serious problem where i can not ftp to my server. Any
idea to help to solve the problem? It could be possibly caused by the
ownership of the ftp folder. But, i don't know which folder is the right ftp
folder for me to change mode. Please help.
E K
Hello,
I am making a script that makes .htaccess files for websites. When I use
ftp_nlist(); It doesn't show the files with a . in front of them. Does
anyone know how to show hidden files when listing a directory?
Thanks
Brandon
--
PHP General Mailing List (http://www.php.net/)
To
Brandon Orther [EMAIL PROTECTED] wrote:
Hello,
I am making a script that makes .htaccess files for websites. When I use
ftp_nlist(); It doesn't show the files with a . in front of them. Does
anyone know how to show hidden files when listing a directory?
Maybe use ftp_rawlist();
, April 25, 2001 11:03 PM
To: [EMAIL PROTECTED]
Subject: [PHP] php FTP
Hi there,
I would like to use the PHP FTP functions.
Unfortunately, my webhost hasn't compiled PHP with the FTP extensions.
So, I thought that I might upload the extension myself into my webspace then
call it using the command dl
Hi there,
I would like to use the PHP FTP functions.
Unfortunately, my webhost hasn't compiled PHP with the FTP extensions.
So, I thought that I might upload the extension myself into my webspace then
call it using the command dl() from within a PHP webpage. That way, I could
(hopefully) get
I've never done it but here it is:
http://conf.php.net/pres/index.php?p=slides%2Fintroid=ac2
-Original Message-
From: ryan.barnett1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 10:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php FTP
Hi there,
I would like
To: [EMAIL PROTECTED]
Subject: [PHP] php FTP
Hi there,
I would like to use the PHP FTP functions.
Unfortunately, my webhost hasn't compiled PHP with the FTP extensions.
So, I thought that I might upload the extension myself into
my webspace then
call it using the command dl() from
] php FTP
Interesting - looks just great with Netscape Navigator 4.7;
Netscape 6.1
and Opera 5.?
My IE 5.x does not show the links, the title or the
background, nor does it
have blind hot area where the links are at the top of the
page. That
could be my IE and I curse Microosft
I'm trying to write a script to ftp the contents of one directory structure
onto another server.. I'm having problems recursing the directories, either
it a) doesn't do it or b) gets stuck in a loop.
Here's the function I'm having the problem with..
function recurseUp()
{
global
On Tue, Apr 24, 2001 at 10:10:58AM -0400, Chad Day wrote:
I'm trying to write a script to ftp the contents of one directory structure
onto another server.. I'm having problems recursing the directories, either
it a) doesn't do it or b) gets stuck in a loop.
Here's the function I'm having
Hi!
I tryed the ftp script found in php manual.
I got this errormessage:
---
Warning: Unable to find ftpbuf 0 in
/home/myName/public_html/sess/ftpfile.php3 on line 6
---
What does ftpbuf mean?
Thanks for any help.
Regards
Jan
--
PHP General Mailing List (http://www.php.net/)
To
How can I do FTP without FTP module?
Thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Maybe you can try implementing the RFC of the FTP.
Using plain socket functions, reading, receivingwriting
good luck.
""Mauro Biraghi"" [EMAIL PROTECTED] wrote in message
99se7u$906$[EMAIL PROTECTED]">news:99se7u$906$[EMAIL PROTECTED]...
How can I do FTP without FTP module?
this is probably NOT the problem, but I'll post anyway. Ive found if copying
code from web browser, ie from phpbuilder.com in IE, that 0x0D and 0x0A get
thrown in alot. this causes php to tell me that certain functions are
undefined, even though I know they are. I remove all 0x0D and 0x0A.
--
I need some help...
I try to do a ftp connection with php, but when i run the script it claims
that ftp_connect is "call to undefined function.
I have done a call to phpinfo, and it shows that ftp IS enabled! - Whats wrong?
Here is what i use:
$conn_id = ftp_connect("MyFtpSite");
I need a function to exec raw commands on a server, like "LIST" and esp. "LIST -al". I
going to use it for programming a public php-fxp client.
mfg
I am trying to get a directory listing over ftp with the ftp_nlist()
function. The problem is that the directory name has spaces in it and it
looks like ftp_nlist() chops the string at each space and performs a
separate listing for each word, which fails. I have tried quoting,
urlencoding and
201 - 273 of 273 matches
Mail list logo