php-general Digest 15 Jun 2010 16:09:17 -0000 Issue 6800
Topics (messages 306147 through 306170):
CFP for Surge Scalability Conference 2010
306147 by: Jason Dixon
Re: protecting email addresses on a web site
306148 by: Per Jessen
306149 by: Per Jessen
306150 by: cheran krishnamoorthy
306151 by: Ashley Sheridan
306154 by: Ian
306155 by: Ashley Sheridan
Re: PHP on command line -- mysql_connect error
306152 by: Ferdi
Re: Quick Question
306153 by: Malka Cymbalista
export from one server to another
306156 by: Merlin Morgenstern
306157 by: Sándor Tamás
306158 by: Ashley Sheridan
306159 by: Richard Quadling
Delete File With Any File Extension
306160 by: Shaun Thornburgh
306161 by: Adrian
306162 by: cheran krishnamoorthy
306163 by: Tanel Tammik
306164 by: Ashley Sheridan
Re: Multiple Login in a single PC should not be possible
306165 by: Shreyas Agasthya
306166 by: Ashley Sheridan
306167 by: Karl DeSaulniers
306168 by: Ashley Sheridan
Re: [PHP-WEBMASTER] Web Service Problem
306169 by: Richard Quadling
306170 by: Michael Shadle
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-gene...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
We're excited to announce Surge, the Scalability and Performance
Conference, to be held in Baltimore on Sept 30 and Oct 1, 2010. The
event focuses on case studies that demonstrate successes (and failures)
in Web applications and Internet architectures.
Rasmus Lerdorf will be presenting his "PHP Performance Checklist" talk
at Surge, and our Keynote speakers include John Allspaw and Theo
Schlossnagle. We are currently accepting submissions for the Call For
Papers through July 9th. You can find more information, including our
current list of speakers, online:
http://omniti.com/surge/2010
If you've been to Velocity, or wanted to but couldn't afford it, then
Surge is just what you've been waiting for. For more information,
including CFP, sponsorship of the event, or participating as an
exhibitor, please contact us at su...@omniti.com.
Thanks,
--
Jason Dixon
OmniTI Computer Consulting, Inc.
jdi...@omniti.com
443.325.1357 x.241
--- End Message ---
--- Begin Message ---
David Mehler wrote:
> Hello,
> I've got a site that is needing to have two email addresses on it, one
> for general contact and information and the other for webmaster for
> site problems. I do not want these addresses to become harvested by
> spammers yet i want to make it possible for people to email if needed.
> I can not use javascript for this solution.
I wouldn't bother - you won't escape the spammers anyway. :-(
--
Per Jessen, Zürich (15.9°C)
--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
>> > Unfortunately, you can't get away with just a contact form these
>> > days if you're a business, as it's a legal requirement in some
>> > countries to have a contact details available, and not just a
>> > contact form.
>>
>> Do you have specifics? I've never heard of such a requirement.
>>
>> Notwithstanding Ash's assertion, I would suggest a contact form. The
>> email address is effectively hidden, and you can apply CAPTCHA to the
>> form to cut down on bot spam. It also introduces some discipline on
>> the user, and potentially allows you to categorize inquiries (making
>> it easier to pass them on to the proper person). You can also have a
>> pick list on the form which details which person you'd like the form
>> to be sent to.
>>
>> In general, on contact forms or "about us" pages, I include some
>> physical address and possibly a phone number. This might satisfy
>> Ash's requirement for "contact details".
>>
>> Paul
>>
>
>
> It's not my requirement, it's been a legal requirement in the UK for 3
> years now.
It's a pretty common EU requirement for anything business related.
--
Per Jessen, Zürich (16.0°C)
--- End Message ---
--- Begin Message ---
You can always convert an email address as image.no one can read but humans.
i think this is a simple solution.
Regards
Cherankrish
On Tue, Jun 15, 2010 at 2:50 AM, Paul M Foster <pa...@quillandmouse.com>wrote:
> On Mon, Jun 14, 2010 at 01:06:29PM +0100, Ashley Sheridan wrote:
>
> > On Mon, 2010-06-14 at 08:02 -0400, David Mehler wrote:
> >
> > > Hello,
> > > I've got a site that is needing to have two email addresses on it, one
> > > for general contact and information and the other for webmaster for
> > > site problems. I do not want these addresses to become harvested by
> > > spammers yet i want to make it possible for people to email if needed.
> > > I can not use javascript for this solution.
> > > Suggestions appreciated.
> > > Thanks.
> > > Dave.
> > >
> >
> >
> > If Javascript isn't a solution (which I can understand for accessibility
> > reasons) then the only method I've seen that seems to work is to have
> > the email as an image in the same font style as it would be on the page
> > if it were just text. Facebook uses this to display contact email
> > addresses for people, and I've seen it used elsewhere also. The only
> > other method I've seen is to add in extra characters with a small note
> > to humans to remove them, but I find this quite a messy solution.
> >
> > Unfortunately, you can't get away with just a contact form these days if
> > you're a business, as it's a legal requirement in some countries to have
> > a contact details available, and not just a contact form.
>
> Do you have specifics? I've never heard of such a requirement.
>
> Notwithstanding Ash's assertion, I would suggest a contact form. The
> email address is effectively hidden, and you can apply CAPTCHA to the
> form to cut down on bot spam. It also introduces some discipline on the
> user, and potentially allows you to categorize inquiries (making it
> easier to pass them on to the proper person). You can also have a pick
> list on the form which details which person you'd like the form to be
> sent to.
>
> In general, on contact forms or "about us" pages, I include some
> physical address and possibly a phone number. This might satisfy Ash's
> requirement for "contact details".
>
> Paul
>
> --
> Paul M. Foster
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
On Tue, 2010-06-15 at 13:28 +0530, cheran krishnamoorthy wrote:
> You can always convert an email address as image.no one can read but humans.
> i think this is a simple solution.
>
> Regards
> Cherankrish
>
> On Tue, Jun 15, 2010 at 2:50 AM, Paul M Foster <pa...@quillandmouse.com>wrote:
>
> > On Mon, Jun 14, 2010 at 01:06:29PM +0100, Ashley Sheridan wrote:
> >
> > > On Mon, 2010-06-14 at 08:02 -0400, David Mehler wrote:
> > >
> > > > Hello,
> > > > I've got a site that is needing to have two email addresses on it, one
> > > > for general contact and information and the other for webmaster for
> > > > site problems. I do not want these addresses to become harvested by
> > > > spammers yet i want to make it possible for people to email if needed.
> > > > I can not use javascript for this solution.
> > > > Suggestions appreciated.
> > > > Thanks.
> > > > Dave.
> > > >
> > >
> > >
> > > If Javascript isn't a solution (which I can understand for accessibility
> > > reasons) then the only method I've seen that seems to work is to have
> > > the email as an image in the same font style as it would be on the page
> > > if it were just text. Facebook uses this to display contact email
> > > addresses for people, and I've seen it used elsewhere also. The only
> > > other method I've seen is to add in extra characters with a small note
> > > to humans to remove them, but I find this quite a messy solution.
> > >
> > > Unfortunately, you can't get away with just a contact form these days if
> > > you're a business, as it's a legal requirement in some countries to have
> > > a contact details available, and not just a contact form.
> >
> > Do you have specifics? I've never heard of such a requirement.
> >
> > Notwithstanding Ash's assertion, I would suggest a contact form. The
> > email address is effectively hidden, and you can apply CAPTCHA to the
> > form to cut down on bot spam. It also introduces some discipline on the
> > user, and potentially allows you to categorize inquiries (making it
> > easier to pass them on to the proper person). You can also have a pick
> > list on the form which details which person you'd like the form to be
> > sent to.
> >
> > In general, on contact forms or "about us" pages, I include some
> > physical address and possibly a phone number. This might satisfy Ash's
> > requirement for "contact details".
> >
> > Paul
> >
> > --
> > Paul M. Foster
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
I'd already mentioned this, and it was deemed not very accessible (what
if someone is blind, for example?)
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On 14/06/2010 22:51, Ashley Sheridan wrote:
<snip>
> It's not my requirement, it's been a legal requirement in the UK for 3
> years now.
>
> http://www.calmdesign.co.uk/articles/Website_legal_requirements/?id=16
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
Hi,
Further to this the actual regulation is here:
http://www.opsi.gov.uk/si/si2002/20022013.htm
The relevant line from this:
6(c) the details of the service provider, including his electronic mail
address, which make it possible to contact him rapidly and communicate
with him in a direct and effective manner;
It must be stressed that these laws were written before spam became 90%+
of all email communication (2002). So I suspect it could be argued that
a contact form can be allowed to bypass your normal email spam checking
and is therefore a quicker way to communicate effectively.
IANAL ;)
Regards
Ian
--
--- End Message ---
--- Begin Message ---
On Tue, 2010-06-15 at 09:46 +0100, Ian wrote:
> On 14/06/2010 22:51, Ashley Sheridan wrote:
>
> <snip>
>
> > It's not my requirement, it's been a legal requirement in the UK for 3
> > years now.
> >
> > http://www.calmdesign.co.uk/articles/Website_legal_requirements/?id=16
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
>
> Hi,
>
> Further to this the actual regulation is here:
>
> http://www.opsi.gov.uk/si/si2002/20022013.htm
>
> The relevant line from this:
>
> 6(c) the details of the service provider, including his electronic mail
> address, which make it possible to contact him rapidly and communicate
> with him in a direct and effective manner;
>
>
>
> It must be stressed that these laws were written before spam became 90%+
> of all email communication (2002). So I suspect it could be argued that
> a contact form can be allowed to bypass your normal email spam checking
> and is therefore a quicker way to communicate effectively.
>
> IANAL ;)
>
> Regards
>
> Ian
> --
>
The link you gave is indeed 8 years old, whereas the one I gave is a lot
more current (3 years) and well after what you call the period of spam
(which really started kicking off big-time before 2002 anyway) Either
way, I don't think you can 'argue' with a law if you're a business. A
personal website is not under such restrictions, but there are lots a
business has to go through, and a business potentially faces more
repercussions from breaking laws, however daft or imposing they may be.
You could, I guess, claim ignorance, but that doesn't offer much
protection on a law that's 3 years old...
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On 14 June 2010 21:58, Ashley Sheridan <a...@ashleysheridan.co.uk> wrote:
> On Mon, 2010-06-14 at 21:36 +0530, Ferdi wrote:
>
> Hi list,
>
> My config is XAMPP 1.7.2 with PHP 5.3.0
>
> I'm trying to run a php script as a cron job. The same script works
> perfectly from the browser, but fails when I try it from the command line
> (not yet set it up as cron).
>
> I get the following error:
> PHP Fatal error: Call to undefined function mysql_connect() in
> /opt/lampp/htdocs/CS/weekly_email_report.php on line 3
>
> I tried using dl('mysql.so') before the mysql_connect, but to no avail, I
> get:
>
> PHP Warning: dl(): Unable to load dynamic library
> '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: cannot open
> shared object file: No such file or directory in
> /opt/lampp/htdocs/CS/weekly_email_report.php on line 2
> PHP Fatal error: Call to undefined function mysql_connect() in
> /opt/lampp/htdocs/CS/weekly_email_report.php on line 3
>
> In general many functions that work when the page is accessed from the
> browser, fail on the command line. I tried setting extension=mysql.so in
> both the php.ini files (the one used by the web server and the one used by
> the command line (/etc/php.ini, correct??), though not simultaneously)
>
> Any pointers??
>
> TIA
> Ferdi
>
>
> It sounds that maybe you have two different setups of PHP or that the CLI
> isn't using the same php.ini as the server module. What happens if you run a
> phpinfo() from the CLI? Do you get the output you expect? You should see the
> php.ini location as being the same as the server module. If not, you can
> pass the location of the php.ini in with the command line arguments.
>
> If you have two different installations of PHP (which some people tend to
> do) then you might need to make sure the right modules are installed on
> both.
>
> Try the ini thing first and see if that fixes the issue.
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
>
>
> Hi List,
When I read Ashley's reply, I figured why not use the other php interpreter?
The one the web server uses? It worked :-). Thanks Ashley.
Just for academic interest, I have put up the output of phpinfo I get with
the command line php interpreter at pastebin. This still does not work, but
that's immaterial now.
Find it at: http://pastebin.com/XL50eBFm
Regards,
Ferdi
--- End Message ---
--- Begin Message ---
The address to subscribe to the javascript list is
http://lists.evolt.org/mailman/listinfo/javascript
There is a link there to the archives.
--
Malka Cymbalista
Webmaster, Weizmann Institute of Science
malki.cymbali...@weizmann.ac.il
08-934-3036
>>> On 6/15/2010 at 12:16 AM, in message
<513c9a13-7e3a-44e5-a3b3-1e15bb467...@designdrumm.com>, Karl DeSaulniers
<k...@designdrumm.com> wrote:
> Thanks Malka,
> I was wondering if you had a web page I could go to before I sign up
> to see some discussions that have taken place.
> I tried using the lists.evolt.org, but it did not show the
> javascript section.
> TIA,
>
> Karl
>
>
> On Jun 14, 2010, at 3:20 AM, Malka Cymbalista wrote:
>
>> javascr...@lists.evolt.org
>> --
>>
>> Malka Cymbalista
>> Webmaster, Weizmann Institute of Science
>> malki.cymbali...@weizmann.ac.il
>> 08-934-3036
>>
>>
>>>>> On 6/14/2010 at 2:06 AM, in message
>> <26040320-88f0-4cf3-84ca-2ff81891b...@designdrumm.com>, Karl
>> DeSaulniers
>> <k...@designdrumm.com> wrote:
>>> Hello List,
>>> I may have asked this before, but can not find any emails about it.
>>> Does anyone know of a general-javascript email list like this php
>>> list?
>>> Hoping someone here can point me in the right direction.
>>> TIA
>>>
>>> Karl DeSaulniers
>>> Design Drumm
>>> http://designdrumm.com
>>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
--- End Message ---
--- Begin Message ---
HI there,
I am thinking about building a partner network where partners can export
content to my server which will then be imported. It should be as easy
as possible for the partner and not rely on any special php functions.
The best way to do this I guess is to deliver them a php file which will
create a xml structure that I can import. The problem I have now is, how
to transfer this xml-file to my server? Of course I could do this via
FTP, but then they need to have FTP enabled inside their php
installation. This might scare some partners away.
Does anybody have a good suggestion on how to do this?
Thank you for any hint,
Merlin
--- End Message ---
--- Begin Message ---
I'd use the POST method in HTTP. With this, on a simple page you can
read the XML file, and through the POST method, you can reach it. You
can put the XML in a POST variable, but you can also use File input
control in HTML to read and upload the file. You don't have to use FTP.
SanTa
2010.06.15. 12:00 keltezéssel, Merlin Morgenstern írta:
HI there,
I am thinking about building a partner network where partners can
export content to my server which will then be imported. It should be
as easy as possible for the partner and not rely on any special php
functions.
The best way to do this I guess is to deliver them a php file which
will create a xml structure that I can import. The problem I have now
is, how to transfer this xml-file to my server? Of course I could do
this via FTP, but then they need to have FTP enabled inside their php
installation. This might scare some partners away.
Does anybody have a good suggestion on how to do this?
Thank you for any hint,
Merlin
smime.p7s
Description: S/MIME Cryptographic Signature
--- End Message ---
--- Begin Message ---
On Tue, 2010-06-15 at 12:00 +0200, Merlin Morgenstern wrote:
> HI there,
>
> I am thinking about building a partner network where partners can export
> content to my server which will then be imported. It should be as easy
> as possible for the partner and not rely on any special php functions.
>
>
> The best way to do this I guess is to deliver them a php file which will
> create a xml structure that I can import. The problem I have now is, how
> to transfer this xml-file to my server? Of course I could do this via
> FTP, but then they need to have FTP enabled inside their php
> installation. This might scare some partners away.
>
> Does anybody have a good suggestion on how to do this?
>
> Thank you for any hint,
>
> Merlin
>
You could allow them to upload XML files to your server with a plain
upload form.
I doubt though that'll you'll convince many people to setup a local PHP
installation for the purposes of creating one XML file. Setting up PHP
for the first time can be a tricky thing for a lot of people to do.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On 15 June 2010 11:00, Merlin Morgenstern <merli...@fastmail.fm> wrote:
> HI there,
>
> I am thinking about building a partner network where partners can export
> content to my server which will then be imported. It should be as easy as
> possible for the partner and not rely on any special php functions.
>
>
> The best way to do this I guess is to deliver them a php file which will
> create a xml structure that I can import. The problem I have now is, how to
> transfer this xml-file to my server? Of course I could do this via FTP, but
> then they need to have FTP enabled inside their php installation. This might
> scare some partners away.
>
> Does anybody have a good suggestion on how to do this?
>
> Thank you for any hint,
>
> Merlin
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
We have just done something similar. We went down the SOAP route as
this allows third parties to be able to take our WSDL file (which
describes the services we offer) and create their own code from it,
essentially wrapping the SOAP comms in a class of language x. I used a
slightly modified wsdl2php class from sourceforge to create my client
classes for our own service, rather than manually creating them, as a
proof of concept. So wsdl2java, wsdl2net (if such things exist) would
do a similar job.
For us, the biggest advantage of SOAP over say REST was that SOAP is a
documented standard (with all its faults). We can supply a single
document which is man and machine readable and fully describes our
service. Admittedly, we used the Zend SOAP, WSDL and AutoDiscovery
classes for all of this, so really, we did VERY little in terms of
creating the SOAPy bits.
We have an Authentication service and then a series of services which
retrieve and supply data. We incorporated version control into all the
classes. So, V1 is where we are today. As we increase functionality,
we can incorporate a "superseded by" mechanism, which the end-user can
take into account if they so wish. The WSDL file will have the latest
info, they can re-generate their classes from the WSDL file and then
take advantage of the new functionality.
If we find a problem which essentially breaks the contract, we can
kill a version. And if if has a superseded by, we are again,
automatically informing the client of the newer code.
Add to that live (default), test (we think this is what you asked for)
and dev (this is where we are at the moment if you really want to see
something) requests for a particular version. As dev becomes test, the
dev is "killed" and "superseded by" the test and then the same for the
test -> live (with test's not being killed).
So. A simple enough setup, but allows us to move at our own pace in
terms of further development, allows us to incorporate requests and
bespoke requests to meet the needs of our partners ... all good. And
it was good fun doing this. Admittedly, there were a few bugs in the
Zend code I had to fix (all patches have been supplied but awaiting
someone to commit them to the code).
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
Hi,
I need to delete a file with any file extension where i know the name of the
file, is it possible to use regular expressions with the unlink function?
Thanks
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
--- End Message ---
--- Begin Message ---
Use glob() to get a list of matching afiles nd then unlink() them
separately.
> I need to delete a file with any file extension where i know the
> name of the file, is it possible to use regular expressions with the unlink
> function?
--- End Message ---
--- Begin Message ---
You can't use regular expression with unlink directly.
have a look on this
http://www.phpfreaks.com/forums/index.php?topic=256367.0
<http://www.phpfreaks.com/forums/index.php?topic=256367.0>Regards
Cherankrish
On Tue, Jun 15, 2010 at 4:17 PM, Shaun Thornburgh <
shaunthornbu...@hotmail.com> wrote:
>
> Hi,
>
> I need to delete a file with any file extension where i know the name of
> the file, is it possible to use regular expressions with the unlink
> function?
>
> Thanks
>
> _________________________________________________________________
> http://clk.atdmt.com/UKM/go/197222280/direct/01/
> We want to hear all your funny, exciting and crazy Hotmail stories. Tell us
> now
>
--- End Message ---
--- Begin Message ---
"Shaun Thornburgh" <shaunthornbu...@hotmail.com> wrote in message
news:bay148-w43caac3698e0134dfacc28ab...@phx.gbl...
Hi,
I need to delete a file with any file extension where i know the name of the
file, is it possible to use regular expressions with the unlink function?
Thanks
_________________________________________________________________
http://clk.atdmt.com/UKM/go/197222280/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us
now
Hi,
use glob() and then unlink with array_walk()
Br
Tanel
--- End Message ---
--- Begin Message ---
On Tue, 2010-06-15 at 16:23 +0530, cheran krishnamoorthy wrote:
> You can't use regular expression with unlink directly.
> have a look on this
> http://www.phpfreaks.com/forums/index.php?topic=256367.0
>
> <http://www.phpfreaks.com/forums/index.php?topic=256367.0>Regards
> Cherankrish
>
> On Tue, Jun 15, 2010 at 4:17 PM, Shaun Thornburgh <
> shaunthornbu...@hotmail.com> wrote:
>
> >
> > Hi,
> >
> > I need to delete a file with any file extension where i know the name of
> > the file, is it possible to use regular expressions with the unlink
> > function?
> >
> > Thanks
> >
> > _________________________________________________________________
> > http://clk.atdmt.com/UKM/go/197222280/direct/01/
> > We want to hear all your funny, exciting and crazy Hotmail stories. Tell us
> > now
> >
Make sure you don't accidentally delete files you need. Once you've got
the list of files with the glob() function as Adrian mentioned, don't
just loop through and delete them all, as you could end up removing a
file which you really need later.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
Karl,
Which app are you talking about?
Regards,
Shreyas
On Tue, Jun 15, 2010 at 8:21 AM, Karl DeSaulniers <k...@designdrumm.com>wrote:
> Hey,
> I just found this app that I think will do your single user login. It is a
> MySQL monitoring app called MySQL Query Analyzer. It has the functionality I
> think you were looking for. Might be worth a "look-see".
>
> :))
>
> Hth,
> Karl
--
Regards,
Shreyas Agasthya
--- End Message ---
--- Begin Message ---
On Tue, 2010-06-15 at 16:52 +0530, Shreyas Agasthya wrote:
> Karl,
>
> Which app are you talking about?
>
> Regards,
> Shreyas
>
> On Tue, Jun 15, 2010 at 8:21 AM, Karl DeSaulniers <k...@designdrumm.com>wrote:
>
> > Hey,
> > I just found this app that I think will do your single user login. It is a
> > MySQL monitoring app called MySQL Query Analyzer. It has the functionality I
> > think you were looking for. Might be worth a "look-see".
> >
> > :))
> >
> > Hth,
> > Karl
>
>
>
>
I think he means MySQL Query Analyzer, but I'm not sure how that is an
answer to the question though!
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On Jun 15, 2010, at 6:24 AM, Ashley Sheridan wrote:
On Tue, 2010-06-15 at 16:52 +0530, Shreyas Agasthya wrote:
Karl,
Which app are you talking about?
Regards,
Shreyas
On Tue, Jun 15, 2010 at 8:21 AM, Karl DeSaulniers
<k...@designdrumm.com>wrote:
> Hey,
> I just found this app that I think will do your single user
login. It is a
> MySQL monitoring app called MySQL Query Analyzer. It has the
functionality I
> think you were looking for. Might be worth a "look-see".
>
> :))
>
> Hth,
> Karl
I think he means MySQL Query Analyzer, but I'm not sure how that is
an answer to the question though!
Thanks,
Ash
http://www.ashleysheridan.co.uk
Yes. MySQL Query Analyzer.
I read that it has single user login capability.
Is that not what you were wanting?
Karl DeSaulniers
Design Drumm
http://designdrumm.com
--- End Message ---
--- Begin Message ---
On Tue, 2010-06-15 at 07:04 -0500, Karl DeSaulniers wrote:
> On Jun 15, 2010, at 6:24 AM, Ashley Sheridan wrote:
>
> > On Tue, 2010-06-15 at 16:52 +0530, Shreyas Agasthya wrote:
> >>
> >> Karl,
> >>
> >> Which app are you talking about?
> >>
> >> Regards,
> >> Shreyas
> >>
> >> On Tue, Jun 15, 2010 at 8:21 AM, Karl DeSaulniers
> >> <k...@designdrumm.com>wrote:
> >>
> >> > Hey,
> >> > I just found this app that I think will do your single user
> >> login. It is a
> >> > MySQL monitoring app called MySQL Query Analyzer. It has the
> >> functionality I
> >> > think you were looking for. Might be worth a "look-see".
> >> >
> >> > :))
> >> >
> >> > Hth,
> >> > Karl
> >>
> >>
> >>
> >>
> >
> > I think he means MySQL Query Analyzer, but I'm not sure how that is
> > an answer to the question though!
> >
> > Thanks,
> > Ash
> > http://www.ashleysheridan.co.uk
> >
> >
>
>
> Yes. MySQL Query Analyzer.
> I read that it has single user login capability.
> Is that not what you were wanting?
>
>
> Karl DeSaulniers
> Design Drumm
> http://designdrumm.com
>
Erm...
According to mysql.com it's for Java and .Net (no mention of PHP) and it
doesn't look like the source is released, so you can't reverse engineer
it, so I don't see how it's an answer to the OP's question.
Thanks,
Ash
http://www.ashleysheridan.co.uk
--- End Message ---
--- Begin Message ---
On 15 June 2010 12:44, John <john.zaka...@graphicano.com> wrote:
>
>
>
> Really i need help coz i am trying to solve this problem from 4 weeks and i
> can not so please help me
>
> I want to use a web service ( created in ASP.NEt ) in my web site using php
> coz i will use the result in other php pages.
> the web service link
> is: http://196.218.16.133/onlinereservation/service.asmx?WSDL
>
> function name: HotelData under HotelsSearch
>
> Is there a tool for PHP or any other way to pass string for HotelData and
> get an XML file containing the result?
>
>
>
> I tried to learn SOAP in the manual and I can not till now return data from
> this web service
>
>
>
> My Code is:
>
>
>
> <?
>
> header("Content-Type: text/plain");
>
> $client = new
> SOAPClient('http://196.218.16.133/OnlineReservationTravelline/service.asmx?WSDL');
>
>
>
> try {
>
> $params->HotelData =
> '<HotelsParameters><CityID>388</CityID><UserName>admin</UserName><UserPassword>admin</UserPassword><DateFrom>6/12/2010</DateFrom><DateTo>6/13/2010</DateTo><NumberOfRooms>2</NumberOfRooms><Room><RoomSerial>1</RoomSerial><Adults>1</Adults><Child><ChildSerial>1</ChildSerial><ChildAge>5</ChildAge></Child></Room><Room><RoomSerial>2</RoomSerial><Adults>2</Adults><Child><ChildSerial>1</ChildSerial><ChildAge>8</ChildAge></Child><Child><ChildSerial>2</ChildSerial><ChildAge>5</ChildAge></Child></Room><CurrencyID>162</CurrencyID></HotelsParameters>';
>
>
>
> $result = $client->HotelsSearch($params);
>
> //echo $result;
>
> } catch (SOAPFault $exception) {
>
>
>
> print $exception;
>
> print htmlspecialchars($client->__getLastRequest());
>
> }
>
>
>
> var_dump($result);
>
>
>
> ?>
>
>
>
> Note: the string is '
> <HotelsParameters><CityID>388</CityID><UserName>admin</UserName><UserPassword>admin</UserPassword><DateFrom>6/12/2010</DateFrom><DateTo>6/13/2010</DateTo><NumberOfRooms>2</NumberOfRooms><Room><RoomSerial>1</RoomSerial><Adults>1</Adults><Child><ChildSerial>1</ChildSerial><ChildAge>5</ChildAge></Child></Room><Room><RoomSerial>2</RoomSerial><Adults>2</Adults><Child><ChildSerial>1</ChildSerial><ChildAge>8</ChildAge></Child><Child><ChildSerial>2</ChildSerial><ChildAge>5</ChildAge></Child></Room><CurrencyID>162</CurrencyID></HotelsParameters>’
>
>
>
>
>
> John Zakaria Sabry
> Senior Web Developer
>
>
>
> 3 El Nasr Street, EL Nozha EL Gedida,
> Heliopolis, Cairo, Egypt
>
> Phone: +202 262 00 755 - +2 012 551 5551
>
> Fax: +202 262 00 755
>
> Mobile: +2 018 131 91 89
>
> john.zaka...@graphicano.com
>
> www.graphicano.com
>
>
http://pastebin.com/cuXnT9Fb
That contains some PHP classes which are based upon the WSDL file. The
conversion is with the sourceforge wsdl2php project (with some mods).
In YOUR code ...
<?php
// Include the classes which wrap the SOAP service for you.
require_once 'service.php';
try
{
// Create a new Service (unforuntate name - maybe ReservationSystem
or something - Service is VERY generic).
$Service = new Service();
// Let's do a tour search.
$TourSearchRequest = new TourSearch();
// Populate the TourSearchRequest.
$TourSearchRequest->date = '2010/01/01';
// Run the search.
$TourSearchResponse = $Service->TourSearch($TourSearchRequest);
// Dump the response (expecting it to be of class TourSearchResponse.
var_dump($TourSearchResponse);
}
catch(Exception $ex)
{
// Dump the exception, taking note of faultstring and faultcode as
these are SOAP Server generated errors.
var_dump($ex);
}
?>
But this is generating a SOAP exception on the server, so the client
code won't help here.
["faultstring"]=>string(96) "Server was unable to process request.
---> Object reference not set to an instance of an object."
["faultcode"]=>string(11) "soap:Server"
["detail"]=>string(0) ""
How are you building the WSDL file? By hand? If so, I would recommend
learning about using DocBlocks and a tool to auto generate the WSDL
file.
I use a modified version of Zend's SOAP, WSDL and AutoDiscovery tools
to build my WSDL files from my source code.
I then use a modified sourceforge's wsdl2php project to convert the
wsdl file to normal PHP classes which do all the wrapping of the SOAP
comms for me and let's me use normal PHP coding as if all the services
were local and not on a remote server.
Richard.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling
--- End Message ---
--- Begin Message ---
Wso2 is also pretty awesome.
I wish soap would just die and be replaced with rest and json.
On Jun 15, 2010, at 6:15 AM, Richard Quadling <rquadl...@gmail.com> wrote:
> On 15 June 2010 12:44, John <john.zaka...@graphicano.com> wrote:
>>
>>
>>
>> Really i need help coz i am trying to solve this problem from 4 weeks and i
>> can not so please help me
>>
>> I want to use a web service ( created in ASP.NEt ) in my web site using php
>> coz i will use the result in other php pages.
>> the web service link is:
>> http://196.218.16.133/onlinereservation/service.asmx?WSDL
>>
>> function name: HotelData under HotelsSearch
>>
>> Is there a tool for PHP or any other way to pass string for HotelData and
>> get an XML file containing the result?
>>
>>
>>
>> I tried to learn SOAP in the manual and I can not till now return data
>> from this web service
>>
>>
>>
>> My Code is:
>>
>>
>>
>> <?
>>
>> header("Content-Type: text/plain");
>>
>> $client = new
>> SOAPClient('http://196.218.16.133/OnlineReservationTravelline/service.asmx?WSDL');
>>
>>
>>
>> try {
>>
>> $params->HotelData =
>> '<HotelsParameters><CityID>388</CityID><UserName>admin</UserName><UserPassword>admin</UserPassword><DateFrom>6/12/2010</DateFrom><DateTo>6/13/2010</DateTo><NumberOfRooms>2</NumberOfRooms><Room><RoomSerial>1</RoomSerial><Adults>1</Adults><Child><ChildSerial>1</ChildSerial><ChildAge>5</ChildAge></Child></Room><Room><RoomSerial>2</RoomSerial><Adults>2</Adults><Child><ChildSerial>1</ChildSerial><ChildAge>8</ChildAge></Child><Child><ChildSerial>2</ChildSerial><ChildAge>5</ChildAge></Child></Room><CurrencyID>162</CurrencyID></HotelsParameters>';
>>
>>
>>
>> $result = $client->HotelsSearch($params);
>>
>> //echo $result;
>>
>> } catch (SOAPFault $exception) {
>>
>>
>>
>> print $exception;
>>
>> print htmlspecialchars($client->__getLastRequest());
>>
>> }
>>
>>
>>
>> var_dump($result);
>>
>>
>>
>> ?>
>>
>>
>>
>> Note: the string is '
>> <HotelsParameters><CityID>388</CityID><UserName>admin</UserName><UserPassword>admin</UserPassword><DateFrom>6/12/2010</DateFrom><DateTo>6/13/2010</DateTo><NumberOfRooms>2</NumberOfRooms><Room><RoomSerial>1</RoomSerial><Adults>1</Adults><Child><ChildSerial>1</ChildSerial><ChildAge>5</ChildAge></Child></Room><Room><RoomSerial>2</RoomSerial><Adults>2</Adults><Child><ChildSerial>1</ChildSerial><ChildAge>8</ChildAge></Child><Child><ChildSerial>2</ChildSerial><ChildAge>5</ChildAge></Child></Room><CurrencyID>162</CurrencyID></HotelsParameters>’
>>
>>
>>
>>
>>
>> John Zakaria Sabry
>> Senior Web Developer
>>
>>
>>
>> 3 El Nasr Street, EL Nozha EL Gedida,
>> Heliopolis, Cairo, Egypt
>>
>> Phone: +202 262 00 755 - +2 012 551 5551
>>
>> Fax: +202 262 00 755
>>
>> Mobile: +2 018 131 91 89
>>
>> john.zaka...@graphicano.com
>>
>> www.graphicano.com
>>
>>
>
> http://pastebin.com/cuXnT9Fb
>
> That contains some PHP classes which are based upon the WSDL file. The
> conversion is with the sourceforge wsdl2php project (with some mods).
>
> In YOUR code ...
>
> <?php
> // Include the classes which wrap the SOAP service for you.
> require_once 'service.php';
>
> try
> {
> // Create a new Service (unforuntate name - maybe ReservationSystem
> or something - Service is VERY generic).
> $Service = new Service();
>
> // Let's do a tour search.
> $TourSearchRequest = new TourSearch();
>
> // Populate the TourSearchRequest.
> $TourSearchRequest->date = '2010/01/01';
>
> // Run the search.
> $TourSearchResponse = $Service->TourSearch($TourSearchRequest);
>
> // Dump the response (expecting it to be of class TourSearchResponse.
> var_dump($TourSearchResponse);
> }
>
> catch(Exception $ex)
> {
> // Dump the exception, taking note of faultstring and faultcode as
> these are SOAP Server generated errors.
> var_dump($ex);
> }
> ?>
>
> But this is generating a SOAP exception on the server, so the client
> code won't help here.
>
> ["faultstring"]=>string(96) "Server was unable to process request.
> ---> Object reference not set to an instance of an object."
> ["faultcode"]=>string(11) "soap:Server"
> ["detail"]=>string(0) ""
>
> How are you building the WSDL file? By hand? If so, I would recommend
> learning about using DocBlocks and a tool to auto generate the WSDL
> file.
>
> I use a modified version of Zend's SOAP, WSDL and AutoDiscovery tools
> to build my WSDL files from my source code.
>
> I then use a modified sourceforge's wsdl2php project to convert the
> wsdl file to normal PHP classes which do all the wrapping of the SOAP
> comms for me and let's me use normal PHP coding as if all the services
> were local and not on a remote server.
>
> Richard.
>
>
>
> --
> -----
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---