php-windows Digest 24 Apr 2004 01:16:23 -0000 Issue 2222
Topics (messages 23521 through 23527):
Re: [PHP-NIX] File upload
23521 by: Viraj Kalinga Abayarathna
23523 by: Ragnar
23524 by: Viraj Kalinga Abayarathna
23526 by: Jattie van der Linde
Re: COM on remote machine
23522 by: M.Staiger
23525 by: M.Staiger
The COM problem when converting from ASP to PHP
23527 by: Steven Kidd
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 ---
are you uploading the file through a HTML form? if so check the FORM for the
following
hidden input field...
<input type="hidden" name="MAX_FILE_SIZE" value="2097152">
increace the above value (in bytes) to a bit more
value than your maximum
file size you are tring to upload.
happy coding...
Vk.
Ragnar wrote:
> Hi guys/girls,
>
> I am having some major pain here with a php script handling file uploads.
> It's part of an CMS and the file in question takes a PDF, makes a thumbnail
> of it and then moves it to it's proper location on the server.
>
> All this works fine with smaller files < ~ 2 MB.
>
> I am having a file that needs to be uploaded to the server though, that is
> 2.3MB and the script just doesn't handle it.
>
> I have already increased all the PHP.ini setting (i.e. max_file_size,
> max_input_time, max_execution_time etc.) but to no avail.
>
> All the setting are well beyond of what the actual process takes, and the
> script itself doesn't seem to timeout, it just comes back with:
>
> "Warning: Unable to open 'none' for reading: No such file or directory in
> ..."
>
> which is pointing to the line where the file is copied from it's temp
> location on the server /tmp/ to it's proper folder.
> It seems to me, the file (temporary) never actually ends up on the server in
> the first place.
>
> As I said above, for smaller files everything works fine.
>
> All this is running on:
> Apache, PHP 4.1.2, Linux
>
> The increase for the php.ini variables is only made for one of
> the domains hosted on that machine via entries in the virtual host part
> of the httpd.conf and I checked with phpinfo() wether the variables that
> increased via those setting are actually changing accordingly.
> All that looked fine.
>
> Does anyone have an idea what could be going on?
> I'd appreciate any help on this, as the client is expecting this to
> be fixed ASAP.
>
> cheers,
>
> Ben
>
> --
> "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
> Jetzt aktivieren unter http://www.gmx.net/info
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi Vk,
I tried this beforehand, but to no avail. The documentation
also states that this form field entry does not overwrite the
max_filesize_setting in php.ini, when uploading.
so even if I set the hidden form field to 30MB and the .ini
setting is 8MB the file will be rejected if it's over 8MB.
I am am wrong on this, let me know.
>
> are you uploading the file through a HTML form? if so check the FORM for
> the
> following
> hidden input field...
> <input type="hidden" name="MAX_FILE_SIZE" value="2097152">
> increace the above value (in bytes) to a bit
> more
> value than your maximum
> file size you are tring to upload.
>
> happy coding...
>
> Vk.
>
>
> Ragnar wrote:
>
> > Hi guys/girls,
> >
> > I am having some major pain here with a php script handling file
> uploads.
> > It's part of an CMS and the file in question takes a PDF, makes a
> thumbnail
> > of it and then moves it to it's proper location on the server.
> >
> > All this works fine with smaller files < ~ 2 MB.
> >
> > I am having a file that needs to be uploaded to the server though, that
> is
> > 2.3MB and the script just doesn't handle it.
> >
> > I have already increased all the PHP.ini setting (i.e. max_file_size,
> > max_input_time, max_execution_time etc.) but to no avail.
> >
> > All the setting are well beyond of what the actual process takes, and
> the
> > script itself doesn't seem to timeout, it just comes back with:
> >
> > "Warning: Unable to open 'none' for reading: No such file or directory
> in
> > ..."
> >
> > which is pointing to the line where the file is copied from it's temp
> > location on the server /tmp/ to it's proper folder.
> > It seems to me, the file (temporary) never actually ends up on the
> server in
> > the first place.
> >
> > As I said above, for smaller files everything works fine.
> >
> > All this is running on:
> > Apache, PHP 4.1.2, Linux
> >
> > The increase for the php.ini variables is only made for one of
> > the domains hosted on that machine via entries in the virtual host part
> > of the httpd.conf and I checked with phpinfo() wether the variables that
> > increased via those setting are actually changing accordingly.
> > All that looked fine.
> >
> > Does anyone have an idea what could be going on?
> > I'd appreciate any help on this, as the client is expecting this to
> > be fixed ASAP.
> >
> > cheers,
> >
> > Ben
> >
> > --
> > "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
> > Jetzt aktivieren unter http://www.gmx.net/info
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
NEU : GMX Internet.FreeDSL
Ab sofort DSL-Tarif ohne Grundgeb�hr: http://www.gmx.net/dsl
--- End Message ---
--- Begin Message ---
can you send me the fread() part of your script? and what is the
OS you are tring this?
any how i like to share my coding which I did few weeksback for
one of my Windows buddy.
Vk.
Ragnar wrote:
> Hi Vk,
>
> I tried this beforehand, but to no avail. The documentation
> also states that this form field entry does not overwrite the
> max_filesize_setting in php.ini, when uploading.
>
> so even if I set the hidden form field to 30MB and the .ini
> setting is 8MB the file will be rejected if it's over 8MB.
>
> I am am wrong on this, let me know.
>
> >
> > are you uploading the file through a HTML form? if so check the FORM for
> > the
> > following
> > hidden input field...
> > <input type="hidden" name="MAX_FILE_SIZE" value="2097152">
> > increace the above value (in bytes) to a bit
> > more
> > value than your maximum
> > file size you are tring to upload.
> >
> > happy coding...
> >
> > Vk.
> >
> >
> > Ragnar wrote:
> >
> > > Hi guys/girls,
> > >
> > > I am having some major pain here with a php script handling file
> > uploads.
> > > It's part of an CMS and the file in question takes a PDF, makes a
> > thumbnail
> > > of it and then moves it to it's proper location on the server.
> > >
> > > All this works fine with smaller files < ~ 2 MB.
> > >
> > > I am having a file that needs to be uploaded to the server though, that
> > is
> > > 2.3MB and the script just doesn't handle it.
> > >
> > > I have already increased all the PHP.ini setting (i.e. max_file_size,
> > > max_input_time, max_execution_time etc.) but to no avail.
> > >
> > > All the setting are well beyond of what the actual process takes, and
> > the
> > > script itself doesn't seem to timeout, it just comes back with:
> > >
> > > "Warning: Unable to open 'none' for reading: No such file or directory
> > in
> > > ..."
> > >
> > > which is pointing to the line where the file is copied from it's temp
> > > location on the server /tmp/ to it's proper folder.
> > > It seems to me, the file (temporary) never actually ends up on the
> > server in
> > > the first place.
> > >
> > > As I said above, for smaller files everything works fine.
> > >
> > > All this is running on:
> > > Apache, PHP 4.1.2, Linux
> > >
> > > The increase for the php.ini variables is only made for one of
> > > the domains hosted on that machine via entries in the virtual host part
> > > of the httpd.conf and I checked with phpinfo() wether the variables that
> > > increased via those setting are actually changing accordingly.
> > > All that looked fine.
> > >
> > > Does anyone have an idea what could be going on?
> > > I'd appreciate any help on this, as the client is expecting this to
> > > be fixed ASAP.
> > >
> > > cheers,
> > >
> > > Ben
> > >
> > > --
> > > "Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
> > > Jetzt aktivieren unter http://www.gmx.net/info
> > >
> > > --
> > > PHP Windows Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
> --
> NEU : GMX Internet.FreeDSL
> Ab sofort DSL-Tarif ohne Grundgeb�hr: http://www.gmx.net/dsl
pab.php
Description: application/unknown-content-type-phpfile
upload.php
Description: application/unknown-content-type-phpfile
--- End Message ---
--- Begin Message ---
There is some server level setting that alos limits file size uploads. Can not recall
the detail of it thou!
-----Original Message-----
From: Ragnar [mailto:[EMAIL PROTECTED]
Sent: 23 April 2004 06:01
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP-NIX] File upload
Hi guys/girls,
I am having some major pain here with a php script handling file uploads.
It's part of an CMS and the file in question takes a PDF, makes a thumbnail
of it and then moves it to it's proper location on the server.
All this works fine with smaller files < ~ 2 MB.
I am having a file that needs to be uploaded to the server though, that is
2.3MB and the script just doesn't handle it.
I have already increased all the PHP.ini setting (i.e. max_file_size,
max_input_time, max_execution_time etc.) but to no avail.
All the setting are well beyond of what the actual process takes, and the
script itself doesn't seem to timeout, it just comes back with:
"Warning: Unable to open 'none' for reading: No such file or directory in
..."
which is pointing to the line where the file is copied from it's temp
location on the server /tmp/ to it's proper folder.
It seems to me, the file (temporary) never actually ends up on the server in
the first place.
As I said above, for smaller files everything works fine.
All this is running on:
Apache, PHP 4.1.2, Linux
The increase for the php.ini variables is only made for one of
the domains hosted on that machine via entries in the virtual host part
of the httpd.conf and I checked with phpinfo() wether the variables that
increased via those setting are actually changing accordingly.
All that looked fine.
Does anyone have an idea what could be going on?
I'd appreciate any help on this, as the client is expecting this to
be fixed ASAP.
cheers,
Ben
--
"Sie haben neue Mails!" - Die GMX Toolbar informiert Sie beim Surfen!
Jetzt aktivieren unter http://www.gmx.net/info
--- End Message ---
--- Begin Message ---
"M.Staiger" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hello NG,
>
> Imagine that you have one machine running iis with php and want to call a
> COM-Server (e.g. Word) on a remote machine.Would this be possible? How
would
> it look like, if this is the call for the local machine : $word = new
> COM("word.application");
Meanwhile I found an indication that the IP-Address of the remote machine
has to be stated when instanciating the com object .. but HOW? Which format?
Is there an example existing?
Marc
--- End Message ---
--- Begin Message ---
> Meanwhile I found an indication that the IP-Address of the remote machine
> has to be stated when instanciating the com object .. but HOW? Which
format?
> Is there an example existing?
.. my monologue is to be continued ...
Here's an example of how to use real dcom :
$E = new COM("Excel.Application", "[remote IP-Address]");
Marc
--- End Message ---
--- Begin Message ---
Hi,
<<I think it's more suitable for the php-windows list so I post here
again,sorry. -- stev>>
When I converting lines of ASP code:
<%
dim keysobjs
dim privkey
dim pubkey
dim seed
Set keysobj= CreateObject("wmrmobjs.WMRMKeys")
keysobj.GenerateSigningKeys privkey, pubkey
seed = keysobj.GenerateSeed()
Response.Write privkey
Response.Write "<br>"
Response.Write pubkey
Response.Write "<br>"
Response.Write seed
%>
To the PHP one:
<?
$com = new COM("wmrmobjs.WMRMKeys");
$com->GenerateSigningKeys($privkey,$pubkey);
$seed = $com->GenerateSeed();
echo "Private key=".$privkey;
echo "<br>";
echo "Public key=".$pubkey;
echo "<br>";
echo "Seed=".$seed;
?>
In the ASP code everything works pretty well,
In the PHP code, although I can obtain the value of $seed,
the $privkey and $pubkey are null,
kindly check the code for me, thx...
--- End Message ---