On 29 Sep 2011 at 13:30, PHProg <php...@speedemessenger.com> wrote: 

> I'm trying to create a standard web form that will use a PHP script
> to copy a file from one server to another.


> <?php
> if(!@copy('http://mydomain.com/files/".$_POST['trakname']."','/".$_POST['dirna
> me']."/".$_POST['trakname']."'))

This line:


looks like a big mess of single and double quotes to me. Why don't you go 
through it very carefully? I'd be inclined to make a small test program 
separate from the web page stuff and do things like:

$_POST['trakname'] = "abc";
// similar for the other two

$myvar = 

echo $myvar;


and fiddle until that works.

Cheers  --  Tim

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to