
Laurent_R
Veteran
/ Moderator
Aug 15, 2012, 7:06 AM
Post #2 of 35
(24404 views)
|
Re: [gerble1000] i have an emergency please help
[In reply to]
|
Can't Post
|
|
Hmmm, I am almost never using Perl under Windows, so my advice may be clumsy or clunky, but if you write:
system('C:/"Program Files (x86)"/"Apache Software Foundation"/Apache2.2/htdocs/customers/$domainname/roundimage.php'); the $domainname variable will not be interpreted correctly, because the command is created between single quotes (no interpolation of variables). You have to construct your command differently. Perhaps changing double quotes to single quotes and single quotes to double quotes will be sufficient to solve the problem. If this does not work, you can first construct the command into a variable and then run it. Something like that:
my $command = 'C:/"Program Files (x86)"/"Apache Software Foundation"/Apache2.2/htdocs/customers/'; $command = $command . $domainname . '/roundimage.php'; system ("$command");
|