Re: about exec() function in Windows system

From: Date: Thu, 10 Aug 2000 17:48:10 +0000
Subject: Re: about exec() function in Windows system
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-2561@lists.php.net to get a copy of this message
> You can use type casting. > See: http://www.php.net/manual/language.types.type-juggling.php php does mostly autoconverts the variable to the needed type. if somebody still need's to convert the type, use settype() btw, php does automtically convert integers which would overflow the integer range into double's <? $var = 2147483647; print "$var - ".gettype($var)."<br>\n"; /* overflows 32 bit integer range */ $var += 1; print "$var - ".gettype($var)."<br>\n"; ?> > > I am a beginner of php.Could you tell me more information about > > commands > > in exec() and how to use command in this function on my windows > > platform? what do you mean by that? to execute dir and get the diectorylisting under nt/w2k passthru("cmd /c dir"); > > And I can not find the function of convert the string to number,for > > example, how to convert the string "1234" to 1234? $var = "1234"; settype($var,"integer"); /* or */ $var = (int) $var; greetings daniel /*-- daniel beulshausen - daniel@php4win.de using php on windows? http://www.php4win.de

« previous php.windows (#2561) next »