php-windows Digest 14 Nov 2003 12:47:55 -0000 Issue 1999
Topics (messages 22090 through 22095):
COM Hangs Script if another Script is doing something at the same time
22090 by: Scott Carr
WIN-IIS File Upload error
22091 by: Vladimir Iahnenco
22092 by: toby z
Re: Fatal error, but include_path seems correct?
22093 by: toby z
MS-SQL / FreeTDS - charsets ?
22094 by: Lars V. Nielsen
Plugin error for JP Graph
22095 by: Rinku Shivnani
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Long subject but, it's a weird problem.
I am running a system that has 1 COM object used in a couple different
spots. Basically the usage is on 3 pages in a 30-40 page system. So it
is not that many locations.
I have noticed that if I am accessing a script at the same time a COM
script is running, then the COM script hangs.
This is running on Apache2.
PHP 4.3.4
PEAR DB Library
Any ideas on this?
I have setup a bug (26245) as well.
--- End Message ---
--- Begin Message ---
Hi, All,
I tried to implement the file upload on a WEB server and run into the issue.
1.Test case 1.
WinXp, IIS, localhost - no problems.
2. Test case 2, Win2000, IIS, remote PC.
The error log, print_r $_FILES, and source follow below. I saw some notes
about the sharing. I tried to set tmp and Doc dir as Web shares - that
didn't work.
Thanks in advance.
====================================================================
Warning: move_uploaded_file(D:\INETPUB\WWWROOT\SCS\Documents\Club 977
HI.pls): failed to open stream: Permission denied in
d:\inetpub\wwwroot\scs\upload3.php on line 42
Warning: move_uploaded_file(): Unable to move
'D:\Inetpub\php\Temp\php25.tmp' to 'D:\INETPUB\WWWROOT\SCS\Documents\Club
977 HI.pls' in d:\inetpub\wwwroot\scs\upload3.php on line 42
============================================================================
==============
Array ( [myfile] => Array ( [name] => Club 977 HI.pls [type] => audio/scpls
[tmp_name] => D:\Inetpub\php\Temp\php25.tmp [error] => 0 [size] => 420 ) )
============================================================================
=========
if(isset($_FILES["myfile"]) and $_FILES["myfile"]["name"] != ''):
//my file parameters
$myfile = $_FILES["myfile"]["tmp_name"];
$myfile_name = $_FILES["myfile"]["name"];
$myfile_size = $_FILES["myfile"]["size"];
$myfile_type = $_FILES["myfile"]["type"];
$error_flag = $_FILES["myfile"]["error"];
$local_dir = stripslashes($_POST['TARGET_DIR']);
//$local_dir = $_POST['TARGET_DIR'];
$local_file = $local_dir.basename($myfile_name);
$can_move = True;
$response = 'Ok';
$info = '';
$info1 = '';
$info2 = '';
$info3 = '';
// no error
if($error_flag == 0):
if ( file_exists($local_file) ):
if ( unlink($local_file)):
$info2 = "File Old file deleted";
else:
$info2 = 'Can not delete existing file';
$can_move = False;
$error_flag = 1;
endif;
endif;
if ( $can_move ):
============================================
if (move_uploaded_file($myfile, $local_file)):
=========================================
$info1 = 'File '.$local_file.' saved.';
$response = 'OK';
else:
$info1 = 'File '.$local_file.' not saved.';
$info2 = 'Can not move '.$myfile.' to '.$local_file;
$response = 'ERROR';
$error_flag = 1;
endif;
else:
$info1 = 'File '.$local_file.' not saved.';
$response = 'ERROR';
$error_flag = 1;
endif;
else:
$info1 = 'File transfer error.';
$response = 'ERROR';
endif;
if ( $error_flag==0):
$info='File upload successful';
else:
$info='File upload error';
if ( $debug_mode):
print_r($_FILES);
endif;
endif;
--
Best regards,
Vladimir
---
mailto: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
hay ....
1. check temp_uploads settings in ur php.ini
2. try this
$userfile_name=$_FILES['userfile']['name'];
//The original name of the file on the client machine.
$userfile_type=$_FILES['userfile']['type'];
//The mime type of the file, if the browser provided this
information. An example would be "image/gif".
$userfile_size=$_FILES['userfile']['size'];
$userfile_from = $_FILES['userfile']['tmp_name'];
$name = "name u want the file to b uploaded with";
$file = $_FILES['userfile']['tmp_name'];
if (is_uploaded_file($file)) {
/* copy's the file to the dir you want */
//print_r("Copying ".$file);
if (copy($file, "files/". $_FILES['userfile']['name'])) {
/* instead of :
if (move_uploaded_file($userfile_from, "./files/" . $unique_id .
$userfile_name))
*/
echo("file uploaded successfully");
}
======================================
hope it helps
good luck
toby
--- Vladimir Iahnenco <[EMAIL PROTECTED]> wrote: > Hi, All,
> I tried to implement the file upload on a WEB server and run into
> the issue.
> 1.Test case 1.
> WinXp, IIS, localhost - no problems.
>
> 2. Test case 2, Win2000, IIS, remote PC.
> The error log, print_r $_FILES, and source follow below. I saw some
> notes
> about the sharing. I tried to set tmp and Doc dir as Web shares -
> that
> didn't work.
>
> Thanks in advance.
>
>
====================================================================
> Warning: move_uploaded_file(D:\INETPUB\WWWROOT\SCS\Documents\Club
> 977
> HI.pls): failed to open stream: Permission denied in
> d:\inetpub\wwwroot\scs\upload3.php on line 42
>
> Warning: move_uploaded_file(): Unable to move
> 'D:\Inetpub\php\Temp\php25.tmp' to
> 'D:\INETPUB\WWWROOT\SCS\Documents\Club
> 977 HI.pls' in d:\inetpub\wwwroot\scs\upload3.php on line 42
>
============================================================================
> ==============
> Array ( [myfile] => Array ( [name] => Club 977 HI.pls [type] =>
> audio/scpls
> [tmp_name] => D:\Inetpub\php\Temp\php25.tmp [error] => 0 [size] =>
> 420 ) )
>
============================================================================
> =========
> if(isset($_FILES["myfile"]) and $_FILES["myfile"]["name"] != ''):
> //my file parameters
> $myfile = $_FILES["myfile"]["tmp_name"];
> $myfile_name = $_FILES["myfile"]["name"];
> $myfile_size = $_FILES["myfile"]["size"];
> $myfile_type = $_FILES["myfile"]["type"];
> $error_flag = $_FILES["myfile"]["error"];
> $local_dir = stripslashes($_POST['TARGET_DIR']);
> //$local_dir = $_POST['TARGET_DIR'];
> $local_file = $local_dir.basename($myfile_name);
> $can_move = True;
> $response = 'Ok';
> $info = '';
> $info1 = '';
> $info2 = '';
> $info3 = '';
>
> // no error
> if($error_flag == 0):
> if ( file_exists($local_file) ):
> if ( unlink($local_file)):
> $info2 = "File Old file deleted";
> else:
> $info2 = 'Can not delete existing file';
> $can_move = False;
> $error_flag = 1;
> endif;
> endif;
> if ( $can_move ):
> ============================================
> if (move_uploaded_file($myfile, $local_file)):
> =========================================
> $info1 = 'File '.$local_file.' saved.';
> $response = 'OK';
> else:
> $info1 = 'File '.$local_file.' not saved.';
> $info2 = 'Can not move '.$myfile.' to
> '.$local_file;
> $response = 'ERROR';
> $error_flag = 1;
> endif;
> else:
> $info1 = 'File '.$local_file.' not saved.';
> $response = 'ERROR';
> $error_flag = 1;
> endif;
> else:
> $info1 = 'File transfer error.';
> $response = 'ERROR';
> endif;
> if ( $error_flag==0):
> $info='File upload successful';
> else:
> $info='File upload error';
> if ( $debug_mode):
> print_r($_FILES);
> endif;
> endif;
> --
> Best regards,
> Vladimir
> ---
> mailto: [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--- End Message ---
--- Begin Message ---
hay rod
locate $cfgPmaAbsoluteUri in ur phpmyadmin config.inc file
and put the path by which ur trying to access myadmin ..... like
'http://localhost/myadmin/';
then
$cfgServers[$i]['host'] = 'localhost';
and 3rd .... u need-not include path to myadmin in ur include_path in
php.ini :)
good luck
toby
configurtion is a rather hair-tearing and mind-repairing process ....
bare with it :)
--- Roderick Martin <[EMAIL PROTECTED]> wrote: > Tried it.
Same error message...
>
> Fatal error: Failed opening required
> './libraries/grab_globals.lib.php'
> (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D:
> \Netscape\SuiteSpot\docs\phpMyAdmin254')
> ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9
>
> On Nov 13, 2003, at 10:15 AM, Eric COLINET wrote:
>
> > Try :
> > D: \Netscape\SuiteSpot\docs\phpMyAdmin254
> > Instead of :
> > D: \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries
> > for your include path.
> >
> > Eric
> >
> > At 16:34 13/11/2003, Roderick Martin wrote:
> >> My setup:
> >> PHP 4.0.6
> >> Windows NT 4.0
> >> Netscape-Enterprise/3.6 SP3
> >>
> >> Installed phpMyAdmin to the root of the server, which is
> >> d:/Netscape/SuiteSpot/docs/phpMyAdmin254/
> >>
> >> I get the error: Fatal error: Failed opening required
> >> './libraries/grab_globals.lib.php'
> >> (include_path='.;c:\php4\pear;D:\Netscape\SuiteSpot\docs;D:
> >> \Netscape\SuiteSpot\docs\phpMyAdmin254\libraries')
> >> ind:/Netscape/SuiteSpot/docs/phpMyAdmin254/index.php on line 9
> >>
> >> As you can see, I've added the path to phpMyAdmin in my
> include_path,
> >> but it still errors out.
> >>
> >> Yes, there is a /libraries folder containing
> grab_globals.lib.php.
> >>
> >> Any suggestions?
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk
--- End Message ---
--- Begin Message ---
I'm having problem with charsets in connection with MS SQL Server 2000.
I've read that it requires version 8.0 of the FreeTDS library - which is at
the heart of the php_mssql extension, as I understand it.
I'm using php 4.3.2, i.e. using a php_mssql extension based on FreeTDS v7
(phpinfo() tells me).
Which version of PHP has / is planned to have version 8.0 of FreeTDS
included in the mssql extension ?
TIA
Lars V. Nielsen
--- End Message ---
--- Begin Message ---
Dear All,
I have made JP graph by dynamic value.
Now in windows based PC it says some plugin error for PNG file. Can any of you
suggest me any sollution for the same.
The URL is http://202.144.20.108/chiraag/marketyard/query_graph.php
Pls check it and tell me any sollution Pls.
Regards,
Rinku
--- End Message ---