php-general Digest 28 Sep 2007 18:48:05 -0000 Issue 5043
Topics (messages 262550 through 262567):
Re: Attachment Size and Memory limit with php and FC6 System]
262550 by: edwardspl.ita.org.mo
262551 by: Jim Lucas
262552 by: edwardspl.ita.org.mo
php 5 soap question
262553 by: Hurst, Michael S.
262555 by: Nathan Nobbe
262566 by: Nathan Nobbe
262567 by: Hurst, Michael S.
Installation of pear
262554 by: edwardspl.ita.org.mo
262560 by: Jim Lucas
Sessions vs MySQL
262556 by: Alberto García Gómez
262557 by: Stut
Re: counting with leading zeros
262558 by: tedd
Re: languages and PHP
262559 by: tedd
262562 by: Edward Vermillion
262564 by: Per Jessen
262565 by: Edward Vermillion
Re: [Fedora] [PHP] Installation of pear
262561 by: Ashley M. Kirchner
UPS TradeAbility / SOAP / PHP5
262563 by: jason php
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 ---
Jim Lucas wrote:
> [EMAIL PROTECTED] wrote:
>
>> Jim Lucas wrote:
>>
>>> [EMAIL PROTECTED] wrote:
>>>
>>>
>>>> Jim Lucas wrote:
>>>>
>>>>
>>>>> [EMAIL PROTECTED] wrote:
>>>>>
>>>>>
>>>>>> post_max_size = 10M
>>>>>> max_execution_time = 3600 ; Maximum execution time of each
>>>>>> script, in
>>>>>> seconds
>>>>>> max_input_time = 3600 ; Maximum amount of time each script may spend
>>>>>> parsing request data
>>>>>> memory_limit = 512M ; Maximum amount of memory a script may consume
>>>>>> file_uploads = On
>>>>>> upload_max_filesize = 8M
>>>>>>
>>>>>> But For IMP Display result :
>>>>>>
>>>>>> 1, Maximum Attachment Size: 2,097,152 bytes ( only 2MB ??? )
>>>>>>
>>>>> Not sure what Maximum Attachment Size is referring to. Never heard of
>>>>> that setting
>>>>>
>>>>> Where are you getting #1 reading from? Are you sure that isn't a
>>>>> preset limit in Horde?
>>>>>
>>>>>
>>>>>> 2, Fatal error: Allowed memory size of 8388608 bytes exhausted
>>>>>> (tried to
>>>>>> allocate 1519127 bytes) in
>>>>>> /home/itawm/html/horde/lib/Horde/MIME/Part.php on line 1027 (
>>>>>> limit 8MB
>>>>>> ??? )
>>>>>>
>>>>> your file upload was larger then 8MB... ?? What is confusing about
>>>>> this?
>>>>>
>>>>>
>>>>>> Mine is Linux FC6 System...
>>>>>>
>>>>>> Many thanks your help !
>>>>>>
>>>>>> Edward.
>>>>>>
>>>>>>
>>>> Hello Jim,
>>>>
>>>> Are you using the imp with FC6 also ?
>>>>
>>> no
>>>
>>>
>>>
>>>> If so, have you meet this kind of problem ?
>>>>
>>> no
>>>
>>>
>>>
>>>> Any more help or idea for me ?
>>>>
>>> Not at this time since you didn't answer my questions about Horde.
>>>
>>>
>>>
>>>> Many thanks !
>>>>
>>>> Edward.
>>>>
>>> it looks like PHP is doing exactly what it should be doing. I read
>>> that you tried uploading a file
>>> that was larger then the 8MB limit. That is a PHP error you showed us.
>>>
>>> How and where is the #1 error show to you?
>>>
>>> Never mind, I took 30 seconds and had Google tell me.
>>>
>>> http://www.google.com/search?q=imp+%22maximum+attachment+size%22+site%3Awiki.horde.org
>>>
>>>
>>> Check it out here
>>>
>>> http://wiki.horde.org/FAQ/Admin/Config?referrer=FAQ%2FAdmin#
>>>
>>> About two thirds the way down the page it will give you the answer
>>> the my initial question.
>>>
>>> " How can I configure IMP's maximum attachment size? "
>>>
>>> * man they should insert anchor tags so someone can link directly to
>>> what we are referring to
>>>
>>> It is not PHP that is setting the limit. 2MB is the default for the
>>> "maximum attachment size"
>>>
>>>
>> Hello Jim,
>>
>> I have ever tried to set upload_max_filesize = 8MB...
>> But it is still Maximum Attachment Size: 2,097,152 bytes
>>
>> Many thanks for your help !
>>
>> Edward.
>>
> Ok, let me explain this last time.
>
> the 8MB limit is set in php
>
> the 2MB limit is set in horde
>
> if you do not run your own server, your ISP probably set the PHP setting
>
> And the horde 2MB limit is the default attachment size
>
> I wasn't going to say it earlier, but google your friend.
>
> http://us2.php.net/manual/en/ini.core.php#ini.upload-max-filesize
>
> The default for upload_max_filesize is 2MB, so someone must have
> changed it at some point. And if you didn't change/set it, I'm going
> to guess you are using an ISP that did.
>
Hello,
Afte update the config of php, then reboot the Web Server, but horde /
imp show us still 2MB limit...
So, I don't understand where is the problem...
Hope more any help for us...
Thanks !
Edward.
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
> Hello,
>
> Afte update the config of php, then reboot the Web Server, but horde /
> imp show us still 2MB limit...
> So, I don't understand where is the problem...
>
> Hope more any help for us...
>
> Thanks !
>
> Edward.
The 2MB limit is a config option of Horde, NOT php
Did you even read the page that I sent you for the Horde website?
--
Jim Lucas
"Perseverance is not a long race;
it is many short races one after the other"
Walter Elliot
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--- End Message ---
--- Begin Message ---
Jim Lucas wrote:
>[EMAIL PROTECTED] wrote:
>
>
>>Hello,
>>
>>Afte update the config of php, then reboot the Web Server, but horde /
>>imp show us still 2MB limit...
>>So, I don't understand where is the problem...
>>
>>Hope more any help for us...
>>
>>Thanks !
>>
>>Edward.
>>
>>
>
>The 2MB limit is a config option of Horde, NOT php
>
>Did you even read the page that I sent you for the Horde website?
>
>
>
Hello Jim,
I had config the php ( php.ini ) and imp/config/conf.php also...
But it is still the problem...
Thank !
Edward.
--- End Message ---
--- Begin Message ---
I am trying to find out how to use php 5 to access a wsdl with the
following structure.
How do you send parameters to the service if the wsdl is like the
following.
- <s:element name="getPayment">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="pi" type="tns:paymentInput"
/>
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="paymentInput">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="var1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var7" type="s:string" />
</s:sequence>
</s:complexType>
It is similiar but I can find nothing that addresses this sort of
structure and I am at a loss as how to send vars to the request using
php 5.
I have looked for several days and cannot figure this out.
I didn't know if there was a page you could direct me to.
Mike Hurst
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
have you used soap ui <http://www.soapui.org/> before?
its a great tool for testing interaction w/ web services before you
implement a client layer in your
own code because it shows sent and received xml.
-nathan
On 9/28/07, Hurst, Michael S. <[EMAIL PROTECTED]> wrote:
>
> I am trying to find out how to use php 5 to access a wsdl with the
> following structure.
>
>
>
> How do you send parameters to the service if the wsdl is like the
> following.
>
> - <s:element name="getPayment">
> - <s:complexType>
> - <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="pi" type="tns:paymentInput"
> />
> </s:sequence>
> </s:complexType>
> </s:element>
> - <s:complexType name="paymentInput">
> - <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="var1" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var2" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var3" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var4" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var5" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var6" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var7" type="s:string" />
> </s:sequence>
> </s:complexType>
>
> It is similiar but I can find nothing that addresses this sort of
> structure and I am at a loss as how to send vars to the request using
> php 5.
>
>
>
> I have looked for several days and cannot figure this out.
>
>
>
> I didn't know if there was a page you could direct me to.
>
>
>
> Mike Hurst
>
> [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
--- End Message ---
--- Begin Message ---
can you post the url of the wsdl ?
-nathan
On 9/28/07, Hurst, Michael S. <[EMAIL PROTECTED]> wrote:
>
> I am trying to find out how to use php 5 to access a wsdl with the
> following structure.
>
>
>
> How do you send parameters to the service if the wsdl is like the
> following.
>
> - <s:element name="getPayment">
> - <s:complexType>
> - <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="pi" type="tns:paymentInput"
> />
> </s:sequence>
> </s:complexType>
> </s:element>
> - <s:complexType name="paymentInput">
> - <s:sequence>
> <s:element minOccurs="0" maxOccurs="1" name="var1" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var2" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var3" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var4" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var5" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var6" type="s:string" />
> <s:element minOccurs="0" maxOccurs="1" name="var7" type="s:string" />
> </s:sequence>
> </s:complexType>
>
> It is similiar but I can find nothing that addresses this sort of
> structure and I am at a loss as how to send vars to the request using
> php 5.
>
>
>
> I have looked for several days and cannot figure this out.
>
>
>
> I didn't know if there was a page you could direct me to.
>
>
>
> Mike Hurst
>
> [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
--- End Message ---
--- Begin Message ---
I would have to get approval before I can do that. I can probably post
a portion of the wsdl but not sure that it would be something that is
wanted to be made public in its current form. I will need to find out.
Mike
From: Nathan Nobbe [mailto:[EMAIL PROTECTED]
Sent: Friday, September 28, 2007 2:27 PM
To: Hurst, Michael S.
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] php 5 soap question
can you post the url of the wsdl ?
-nathan
On 9/28/07, Hurst, Michael S. <[EMAIL PROTECTED]> wrote:
I am trying to find out how to use php 5 to access a wsdl with the
following structure.
How do you send parameters to the service if the wsdl is like the
following.
- <s:element name="getPayment">
- <s:complexType>
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="pi" type="tns:paymentInput"
/>
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="paymentInput">
- <s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="var1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var4" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var5" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var6" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="var7" type="s:string" />
</s:sequence>
</s:complexType>
It is similiar but I can find nothing that addresses this sort of
structure and I am at a loss as how to send vars to the request using
php 5.
I have looked for several days and cannot figure this out.
I didn't know if there was a page you could direct me to.
Mike Hurst
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
Dear All,
Mine is FC6...
Just download the pear from
http://download.pear.php.net/package/PEAR-1.6.2.tgz
So how to install the pear 1.6.2 with the system ?
Thank for your help !
Edward.
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
Dear All,
Mine is FC6...
Just download the pear from
http://download.pear.php.net/package/PEAR-1.6.2.tgz
So how to install the pear 1.6.2 with the system ?
Thank for your help !
Edward.
yum install php-pear
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--- End Message ---
--- Begin Message ---
I'm seeking for some class to work with sessions against a mysql DB, please
examples are welcome.
Este correo ha sido enviado desde el Politécnico de Informática "Carlos Marx"
de Matanzas.
"La gran batalla se librará en el campo de las ideas"
--- End Message ---
--- Begin Message ---
Alberto García Gómez wrote:
I'm seeking for some class to work with sessions against a mysql DB,
please examples are welcome.
http://php.stut.net/104-mysql_sessions.html
-Stut
--
http://stut.net/
--- End Message ---
--- Begin Message ---
At 8:30 PM -0400 9/27/07, brian wrote:
I wasn't bitching! And i *thought* that my numerous attempts at
explaining such would have been enough. Obviously not, but wtf can you
do with people who seem to want only to stir up shit?
It sure sounded like you were bitching.
And, your off-list "fuck you, too, asswipe" to me certainly seems to
support that -- don't you think?
Look, there's nothing you can say to me that hasn't been said before
(some of it deserving), so my advice is for you to refrain from such
conduct and at least try to look professional. That way you'll hide
your ignorance a little longer -- it's always worked for me.
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
At 2:01 PM -0500 9/27/07, Edward Vermillion wrote:
So back to my original question, what breaks if you're *expecting*
UTF-8 and you don't *get* UTF-8?
Ed
Isn't UTF-8 the big fish here?
Sure there' UTF-16 and larger, but everything else is a subset of
UTF-8, is it not?
So, what's the problem if you get a character defined by ISO -- it's
still within the UTF-8 super-group, right?
The only problem I see here is IF the user has the char set to
display the glyph correctly -- OR am I off on something else that you
guys aren't even discussing?
Cheers,
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
On Sep 28, 2007, at 11:34 AM, tedd wrote:
At 2:01 PM -0500 9/27/07, Edward Vermillion wrote:
So back to my original question, what breaks if you're *expecting*
UTF-8 and you don't *get* UTF-8?
Ed
Isn't UTF-8 the big fish here?
Sure there' UTF-16 and larger, but everything else is a subset of
UTF-8, is it not?
So, what's the problem if you get a character defined by ISO --
it's still within the UTF-8 super-group, right?
The only problem I see here is IF the user has the char set to
display the glyph correctly -- OR am I off on something else that
you guys aren't even discussing?
Probably very relevant to the original question, but...
My question was more mental prodding than anything else. The OP had a
function to convert incoming text into UTF-8 before they did anything
with it. A couple of folks said that was unnecessary, if you set your
form to UTF-8 your incoming data will be in UTF-8 already.
I was just trying to make the point that if you expect your incoming
data to be in a certain state in your code you should make sure that
it is in that state before you act on it, since you can't guarantee
it's source. Checking to make sure the incoming data is in it's
expected state is not a waste of time (or unnecessary, or whatever
term of derision they picked) but is actually good coding practice.
I pretty much gave up on the thread when I got the reply along the
lines of "if it breaks something it's their problem, not mine".
Ed
--- End Message ---
--- Begin Message ---
Edward Vermillion wrote:
> I pretty much gave up on the thread when I got the reply along the
> lines of "if it breaks something it's their problem, not mine".
Ed, your question was a good one, but so was my answer. In my case, I
don't cater to an open community, but to a closed one. If you're not
authenticated, you're not getting anywhere to start with. If you
somehow manage to bypass that, and attempt to submit data I don't
expect, my priority is the survival of my application, nothing else.
/Per Jessen, Zürich
--- End Message ---
--- Begin Message ---
On Sep 28, 2007, at 1:05 PM, Per Jessen wrote:
Edward Vermillion wrote:
I pretty much gave up on the thread when I got the reply along the
lines of "if it breaks something it's their problem, not mine".
Ed, your question was a good one, but so was my answer. In my case, I
don't cater to an open community, but to a closed one. If you're not
authenticated, you're not getting anywhere to start with. If you
somehow manage to bypass that, and attempt to submit data I don't
expect, my priority is the survival of my application, nothing else.
But that was my point. Your way, your app may disintegrate at some
uncontrolled point. At least if your checking/validating your input
then you can take control of the situation and insure the "survival
of your application". Otherwise who knows where it will break and
what it will mean when it does.
And just because the community is closed, don't drop your guard on
basic security practices. You don't control what comes into your
site, you can only react to it.
Ed
--- End Message ---
--- Begin Message ---
[EMAIL PROTECTED] wrote:
Dear All,
Mine is FC6...
Just download the pear from
http://download.pear.php.net/package/PEAR-1.6.2.tgz
So how to install the pear 1.6.2 with the system ?
Read the installation documentation that comes with it.
--
W | It's not a bug - it's an undocumented feature.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
IT Director / SysAdmin / Websmith . 800.441.3873 x130
Photo Craft Imaging . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
--- End Message ---
--- Begin Message ---
Does anyone have any experience with UPS's TradeAbility platform and
implementing it in PHP?
The test WSDL file is located at
https://wwwcie.ups.com/webservices/LandedCost.wsdl
Can anyone take a look at this and give me some example code to perform a
query / receive a response?
Thanks!
--- End Message ---