php-general Digest 29 Sep 2007 09:25:33 -0000 Issue 5044
Topics (messages 262568 through 262575):
Re: languages and PHP
262568 by: Per Jessen
How can I configure some values in iis6 like php_admin_value in httpd.conf ?
262569 by: Bulent Kolay
Re: php 5 soap question
262570 by: Rob Richards
262571 by: Nathan Nobbe
Session problem
262572 by: DuÅ¡an NovakoviÄ
262573 by: Jim Lucas
Re: counting with leading zeros
262574 by: Dan Parry
Classes and access to outside variables
262575 by: Merlin
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 ---
Edward Vermillion wrote:
> On Sep 28, 2007, at 1:05 PM, Per Jessen wrote:
>>
>> 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.
As long as it is only the app, it's not a real problem. If it affects
apache, it's a different issue. If the app throws a couple of
unexpected exceptions or something, no big deal.
> 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.
I agree, but to check for unwanted charactersets and do conversions and
what have you, is way overkill IMOH.
> 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.
I agree - like I said, authentication is required.
/Per
--- End Message ---
--- Begin Message ---
I use iis6, php5.2 on windows2003
How can I configure some values in iis6 like php_admin_value in httpd.conf ?
Also, What sort of security tool can I use in iis6 like mod_security ?
Thanks
--- End Message ---
--- Begin Message ---
__getTypes() and __getFunctions() are your friends.
They tell you alot about the functions and structure of parameters and
return types.
Rob
Hurst, Michael S. wrote:
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 ---
i recommend playing around w/ soap ui then; its helped me understand how to
structure many requests using SoapClient and there is no doubt it has saved
me a great deal of time. once you see the request xml that soap ui
generates you can understand how to structure a call to the web service
using SoapClient.
-nathan
On 9/28/07, Hurst, Michael S. <[EMAIL PROTECTED]> wrote:
>
> 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 ---
Hi,
I have two problems with sessions.
Firstly, even though session limit is set on default value on server,
which is about 5 hours, if I don't take any action for about 15 mins I
am thrown out and I have to log in again. Are there any addition
functions which I can use in order to explicitly specify session
lifetime?
Secondly, after a certain period of time, while I am logged in, page
just freezes and it indicates that it is trying to load. Page stays
frozen all the time. At that moment, the only solution is to clear
private data in the browser. After that, I am logged out and I can
regulary log in and procede to work normally. It doesn't happend evry
time I log in, but once in while.
I have only used functions such as session_start() and session_destroy.
Thanks for your help,
Dušan
- -
made by Dusan
--- End Message ---
--- Begin Message ---
Dušan Novaković wrote:
Hi,
I have two problems with sessions.
Firstly, even though session limit is set on default value on server,
which is about 5 hours, if I don't take any action for about 15 mins I
am thrown out and I have to log in again. Are there any addition
functions which I can use in order to explicitly specify session
lifetime?
Secondly, after a certain period of time, while I am logged in, page
just freezes and it indicates that it is trying to load. Page stays
frozen all the time. At that moment, the only solution is to clear
private data in the browser. After that, I am logged out and I can
regulary log in and procede to work normally. It doesn't happend evry
time I log in, but once in while.
I have only used functions such as session_start() and session_destroy.
Thanks for your help,
Dušan
- -
made by Dusan
sounds like a problem with the hosting provider.
Is this a single server that you have your web site on, or is it a farm of
servers?
--
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 ---
Can I please interject and say that I vastly respect Tedd(ddd) and Rob(bb?)
and their opinions
Dsn
--
Dan Parry
Senior Developer
Virtua Webtech Ltd
Company Number: 5078356
Vat Number: 827044536
[EMAIL PROTECTED]
www.virtuawebtech.co.uk
01745 354924
> -----Original Message-----
> From: tedd [mailto:[EMAIL PROTECTED]
> Sent: 28 September 2007 17:20
> To: brian; [EMAIL PROTECTED]
> Subject: Re: [PHP] counting with leading zeros
>
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
> --
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.13.33/1034 - Release Date:
> 27/09/2007 17:00
--- End Message ---
--- Begin Message ---
Hi there,
I am new to PHP classes and I do want to access a variable outside the
class, but somehow that does not work. global also does not have any effect.
In the following example I would like to be able to access $dbh from
inside the class like I did in that example. This does not work. Can
somebody please give me a hint on the right syntax?
$dbh = 'test';
class search_helper extends AjaxACApplication
{
/**
* Database connection details
*/
var $db_hostname = $dbh;
Thank you for any help,
Merlin
--- End Message ---