Thanks guys, I was unaware having quotes around it would make a difference.
Works fine once I removed the quotes.
"John Kelly" <> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Can I pass the ftp transfer mode in a string like ...
>
> $
Can I pass the ftp transfer mode in a string like ...
$filetype = "FTP_ASCII";
$upload = ftp_fput($conid, $dfile, $sfile, $filetype);
I ask as when I do I get the following error message ...
Warning: ftp_fput() expects parameter 4 to be long, string given
If I replace $filetype with the text F
Thanks for the examples Zak! I got it working.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks that did it!
"Martin Towell" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Try adding curly braces around the var name, like this:
>
> for($i=0; $i
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Hi, I have 1 primary array called $item containing 20 values each of whose
value is part of the name of 20 other arrays containing various number of
values. How can I cycle through the primary $item array using a foreach and
within that do a for on each of the 20 secondary arrays dynamically
inse
"John Kelly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> "John Kelly" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > Hi, I have a form using the post metho
"John Kelly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi, I have a form using the post method that outputs a dynamic number of
> fields each time with the same name but different values - this is
required.
> For exam
Hi, I have a form using the post method that outputs a dynamic number of
fields each time with the same name but different values - this is required.
For example ...
filename[]
filename[]
filename[]
filename[]
On the next page I try to access the array using ...
for($i=0; $ihttp://www.php.net/)
I have multiple domains hosted on a server. When I fsockopen to one of them
I end up in the document root of another one. Is there a way to specify the
directory one ends up in after establishing an fsockopen connection OR
issuing a command via fput to CD to a different system path after
connectin
"John Kelly" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How do I check if a remote file exists that is in a directory protected by
> an .htaccess file?
>
I should have added that this is the code I have tried without su
How do I check if a remote file exists that is in a directory protected by
an .htaccess file?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi, I am using the example code at php.net to FTP a file to a remote server.
I am trying to overwrite an existing file, but want to maintain the
owner/group of the file being overwritten but it keeps giving the
overwritten file the owner/group name of the userid that I am loggin in via
FTP with. W
Hi, can someone tell me why the following results in evaluated variables
with 2 slashes in front of apostrophys instead of one and how I can modify
it to only add 1? Thanks!
foreach($_POST as $k=>$v){
if (get_magic_quotes_gpc()){
$_POST[$k] = stripslashes($v);
}
$_POST[$k] = addslashes($v);
eval(
13 matches
Mail list logo