RE: [PHP-WINDOWS] A POSSIBLE BIG PROBLEM WITH PHP WORKING WITH W'98 AND PWS!! . Please tell me what can I do.
| From: | Eduardo Jordan G. | Date: | Thu, 25 May 2000 16:11:38 +0000 |
| Subject: | RE: [PHP-WINDOWS] A POSSIBLE BIG PROBLEM WITH PHP WORKING WITH W'98 AND PWS!! . Please tell me what can I do. | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-112@lists.php.net to get a copy of this message | ||
Maybe it's because php doesn't fully support win32 system commands.
Eduardo Jordán G.
ejordan@accessinter.net
-----Original Message-----
From: Jordi Marquès. [SMTP:trespi@interwatts.com]
Sent: Thursday, May 25, 2000 11:28 AM
To: php-windows@lists.php.net
Subject: [PHP-WINDOWS] A POSSIBLE BIG PROBLEM WITH PHP WORKING WITH W'98 AND PWS!! . Please
tell me what can I do.
thanks for advance!
I have worked with php2 and unix os, and now I'm doing my final project to end my studies and I
have a problem with php3 that I don't know if it has solution.
I'm doing the project with windows'98 and pws, I don't know which, but is pws.
I had copied files to the server working with unix without problems, using the comand system, but it
doesn't works with windows.
I have tried all this commands:
/* primera manera SYSTEM
$comanda="copy $userfile c:\\temp\\$userfile_name<BR>";
echo "comanda : $comanda<BR>";
System("$comanda",$resultsystem);
*/
/* segona manera PASSTHRU
$comanda="copy $userfile c:\\temp\\$userfile_name<BR>";
echo "comanda : $comanda<BR>";
$cadena= passthru($comanda, $resultsystem);
*/
/* tercera menera ESCAPESHELL CMD
$comanda="copy $userfile c:\\temp\\$userfile_name<BR>";
echo "comanda : $comanda<BR>";
system(EscapeShellCmd($comanda),$resultsystem);
*/
/* if (!rename ($userfile, $userfile_name) )
{
print("failed to rename $userfile...<br>\n");
}else{
print("la cosa ha nat de puta mare!!\n");
}
*/
if (!copy($userfile, $userfile_name) )
{
print("failed to copy $userfile...<br>\n");
}else{
print("la cosa ha nat de puta mare!!\n");
}
and the result is samely the same:
COMMENTS: $userfile IS THE NAME OF THE INPUT FILE THAT I HAVE INPUT IN A FORM IN THE SAME PAGE
MIDA= SIZE, $userfile_size
userfile: C:\\WINDOWS\\TEMP\\php2
mida: 59
usefile_name: plus.gif
Warning: Unable to open 'C:\\WINDOWS\\TEMP\\php2' for reading: Unknown error in
C:\WebShare\wwwroot\proj4\paginaweb\fitxer.php3 on line 52
failed to copy C:\\WINDOWS\\TEMP\\php2...
I don't understand why I can know the name, the size but I can't copy it to a dir of my
server. I don't have idea about what can I do.
At the moment the rest of php in w98 and pws works fine, but I have been too long time spend in this
problem.
I hope you will know the solution.
thankyou very much.