|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-30 20:19 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 04:00:02 2025 UTC |
The following code appears to work when a web browser is started under a UNIX environment, however the same code produces an error when I start a web browser under a Windows machine. $image_base="aaa"; if (eregi("\.(jpg|gif)$",$image1,$regs)) { copy($image1,"../homes/images/".$image_base.".".$regs[1]); } The error that appears under a windows browser looks like this: Warning: Unable to open 'C:\Documents and Settings\jfbell\My Documents\My Pictures\Sample.jpg' for reading: No such file or directory in /shared/www/data/old/virtual/i/ivoryhomes/control/modelhomes.phtml on line 18 Obviously, php is trying to use the Windows filename when copying. This is wrong. Can anyone help with this? -John