logo       

AW: + character in a command line argument: msg#00412

Subject: AW: + character in a command line argument
Hi,
"+" is special to DOS at least with the copy command in that 
"copy a+b.txt" means:
take file "a" and file "b.txt" and concatenate them giving file a.
A file named "a+b.txt" is legal with windows but not with DOS.

By the way, the treatment of + in filenames has been changed
with PHP 4.3. Since then a+b.txt is one filename, quoted or not.
-- 
Sven Schnitzke

> -----Ursprüngliche Nachricht-----
> Von:  mmy [SMTP:mmouly@xxxxxxxxxx]
> Gesendet am:  Sonntag, 30. März 2003 11:30
> An:   php-windows@xxxxxxxxxxxxx
> Betreff:      [PHP-WIN] + character in a command line argument
> 
> Hi!
> 
> I'm using PHP 4.3.1, IE 5.5, Win ME
> 
> I'm trying to use php through DOS command line.
> 
> Running the very basic script
> 
> $argv = $_SERVER['argv'];
> var_dump($argv);
> 
> I noticed that the command line arguments are split at a + character, even
> if between double quotes.
> 
> for instance
> 
> php test.php a+b
> 
> or
> 
> php test.php "a+b"
> 
> both return 3 arguments, "test.php", "a" and "b".
> 
> I don't know if it is a DOS or php problem (though if you name a file
> a+b.txt, the DOS command type a+b.txt runs correctly, which seems to
> exonerate DOS...).
> 
> My questions are more practical : does anybody knows how to pass a + in an
> argument?? Are there other characters that are special in addition to " and
> + ??
> 
> Thanks in advance
> 
> 
> 
> 
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

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




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
science.linguis...    culture.sf.lite...    video.mplayer.c...    yellowdog.gener...    ietf.rfc822/199...    emacs.help/2002...    redhat.release....    kernel.speakup/...    java.openejb.de...    debian.devel.gt...    xfree86.newbie/...    bug-tracking.ma...    pam/2003-05/msg...    games.devel.ope...    user-groups.lin...    music.pancham/2...    network.mq.deve...    web.html.genera...    arklinux.bugs/2...    linux.ecasound/...    qnx.openqnx.dev...    org.user-groups...    file-systems.sf...    trustix.contrib...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe