php-general Digest 9 Apr 2007 12:32:19 -0000 Issue 4724

2007-04-09 Thread php-general-digest-help
php-general Digest 9 Apr 2007 12:32:19 - Issue 4724 Topics (messages 252277 through 252298): session in forum 252277 by: uni uni 252280 by: itoctopus Re: foreach question 252278 by: chris.aquanuke.com 252279 by: Sebe 252284 by: siavash1979.telus.net

Re: [PHP] foreach question

2007-04-09 Thread siavash1979
Quoting Lori Lay [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: Sorry this is the full script... whois.php html bodyspan style=font-size:13;font-family:Arial,Verdana; form method='POST' action='whois.php' pbEnter Domain Names (one per line)/b/p textarea name='domain' cols=50

Re: [PHP] keeping credit card info in session

2007-04-09 Thread Lester Caine
[EMAIL PROTECTED] wrote: Thanks a lot every one. These are great replies. I guess I should have explained a bit more about what I'm doing. first of all, this is not my site, it's for a client of mine. second, I did suggest using a paypal API or a paid site to take care of this, but my client

Re: [PHP] keeping credit card info in session

2007-04-09 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Thanks a lot every one. These are great replies. I guess I should have explained a bit more about what I'm doing. first of all, this is not my site, it's for a client of mine. probably irrelevant from a legal pooint of view. second, I did suggest using a paypal

Re: [PHP] Design Dilemma - Database Data Abstraction

2007-04-09 Thread Lester Caine
Martin Alterisio wrote: I have a dilemma on a design where I humbly ask your help. I'm working on the model part of a web application (not to be understood in the web2.0 way, but in a more general way, where anything mounted on HTTP is a web application) done in PHP5 following the MVC design

[PHP] DOM and XSLTProcessor

2007-04-09 Thread Buesching, Logan J
Greetings, I apologize if this is a little long, but I am trying to put as much information as I have done in this first post. I am running PHP 5 and attempting to use DOM to create data to show on a webpage and using XSLTProcessor with an XSLT sheet to output it into XHTML. Everything is

Re: [PHP] MD5 bot Question

2007-04-09 Thread Tijnema !
On 4/9/07, tedd [EMAIL PROTECTED] wrote: At 4:38 AM -0700 4/8/07, benifactor wrote: hmm, why don't you md5 more then once.. I read somewhere that MD5'ing anything more than once, does not increase security. Cheers, tedd Not in this case, as it doesn't goes about decrypting the key here,

Re: [PHP] MD5 bot Question

2007-04-09 Thread Micky Hulse
Tijnema ! wrote: You can't stop me :) http://86.86.80.41/dev/debug/tedd.php It's cracked again :) Maybe use flash for this... harder to crack? (Of course, Flash will open door to other problems.) Sorry, coming in on this late. Good work Tedd! Very interesting. M -- Wishlists:

Re: [PHP] DOM and XSLTProcessor

2007-04-09 Thread Tijnema !
On 4/9/07, Buesching, Logan J [EMAIL PROTECTED] wrote: Greetings, I apologize if this is a little long, but I am trying to put as much information as I have done in this first post. I am running PHP 5 and attempting to use DOM to create data to show on a webpage and using XSLTProcessor with

RE: [PHP] DOM and XSLTProcessor

2007-04-09 Thread Buesching, Logan J
This could offer a possible workaround. Let me first state that I cannot simply do: echo htmlspecialchars_decode($proc-transformToXML($doc)); If I were to do that, then it would assume that all of these encodings need to be decoded; which definitely is not the case. I only want to do this

Re: [PHP] keeping credit card info in session

2007-04-09 Thread Davi
Em Segunda 09 Abril 2007 01:12, [EMAIL PROTECTED] escreveu: Thanks a lot every one. These are great replies. You're welcome! ^^ I guess I should have explained a bit more about what I'm doing. first of all, this is not my site, it's for a client of mine. Things going to be better... =]

[PHP] Session Authentication

2007-04-09 Thread Ólafur Waage
Lets say i have a login system. This system authenticates the user via mysql, when the user is authenticated, i set a session variable to let the system know the user is authenticated. ie. $_SESSION[authenticated] = true; Lets also say i know that's how the system works, that a session variable

[PHP] redirect http to https

2007-04-09 Thread Ben Liu
What's the prescribed method for redirecting a user forcibly to from the non-SSL secured version of a page to the SSL-secured version? Is this handled at the web server level or at the script level. I found this by googling: ?php if($_SERVER['SERVER_PORT'] !== $encport || $_SERVER['HTTPS']

Re: [PHP] MD5 bot Question

2007-04-09 Thread tedd
At 1:21 AM -0700 4/9/07, Micky Hulse wrote: Maybe use flash for this... harder to crack? (Of course, Flash will open door to other problems.) Sorry, coming in on this late. Good work Tedd! Very interesting. M: Tijnema showed how MD5 could be used to identify an image file and crack my

Re: [PHP] MD5 bot Question

2007-04-09 Thread Robert Cummings
On Mon, 2007-04-09 at 08:46 -0400, tedd wrote: At 1:21 AM -0700 4/9/07, Micky Hulse wrote: Maybe use flash for this... harder to crack? (Of course, Flash will open door to other problems.) Sorry, coming in on this late. Good work Tedd! Very interesting. M: Tijnema showed how MD5

[PHP] Re: Simple question on simplexml

2007-04-09 Thread Timothy Murphy
Haydar TUNA wrote: You can use following example:) ?php $xml = simplexml_load_file(test.xml); $xml-body[0]-addChild(book, Atat�rk The Rebirth Of A Nation); ? This doesn't work. It allows to add a child with some text, as in your example. But it doesn't allow you to add a

[PHP] Re: Simple question on simplexml

2007-04-09 Thread Timothy Murphy
Jochem Maas wrote: there is this: http://php.net/manual/en/function.simplexml-element-addChild.php which will allow adding of string data (so you won't be needing to create the new SimpleXMLElement object as per your example below). obviously you will have to first load tghe complete

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
Ólafur Waage wrote: Lets say i have a login system. This system authenticates the user via mysql, when the user is authenticated, i set a session variable to let the system know the user is authenticated. ie. $_SESSION[authenticated] = true; Lets also say i know that's how the system works,

Re: [PHP] Session Authentication

2007-04-09 Thread Ólafur Waage
Thanks, yes my knowledge of sessions was a little vague. 2007/4/9, Stut [EMAIL PROTECTED]: Ólafur Waage wrote: Lets say i have a login system. This system authenticates the user via mysql, when the user is authenticated, i set a session variable to let the system know the user is

Re: [PHP] redirect http to https

2007-04-09 Thread edwardspl
Ben Liu wrote: What's the prescribed method for redirecting a user forcibly to from the non-SSL secured version of a page to the SSL-secured version? Is this handled at the web server level or at the script level. I found this by googling: ?php if($_SERVER['SERVER_PORT'] !== $encport ||

[PHP] Sense last record

2007-04-09 Thread Mário Gamito
Hi, I'm doing this site that has three news in the homepage. You can see the static version here: http://www.telbit.pt As you can see, the two first news have blocoTexto class and the third, blocoTextoLast Now, i'm developing a dinamyc structure where the news are stored in a MySQL database

Re: [PHP] Session Authentication

2007-04-09 Thread Martin Marques
Ólafur Waage escribió: Lets say i have a login system. This system authenticates the user via mysql, when the user is authenticated, i set a session variable to let the system know the user is authenticated. ie. $_SESSION[authenticated] = true; Lets also say i know that's how the system works,

Re: [PHP] redirect http to https

2007-04-09 Thread Martin Marques
Ben Liu escribió: What's the prescribed method for redirecting a user forcibly to from the non-SSL secured version of a page to the SSL-secured version? Is this handled at the web server level or at the script level. I found this by googling: This should be done with the rewrite instruction

Re: [PHP] MD5 bot Question

2007-04-09 Thread tedd
At 8:49 AM -0400 4/9/07, Robert Cummings wrote: On Mon, 2007-04-09 at 08:46 -0400, tedd wrote: At 1:21 AM -0700 4/9/07, Micky Hulse wrote: Maybe use flash for this... harder to crack? (Of course, Flash will open door to other problems.) Sorry, coming in on this late. Good work Tedd! Very

Re: [PHP] redirect http to https

2007-04-09 Thread Ben Liu
On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: This should be done with the rewrite instruction of apache, or what ever instructionyour web server has. Um...guess I will have to check with our hosting company about this. Thanks. - Ben -- PHP General Mailing List

Re: [PHP] MD5 bot Question

2007-04-09 Thread Robert Cummings
On Mon, 2007-04-09 at 09:45 -0400, tedd wrote: At 8:49 AM -0400 4/9/07, Robert Cummings wrote: On Mon, 2007-04-09 at 08:46 -0400, tedd wrote: At 1:21 AM -0700 4/9/07, Micky Hulse wrote: Maybe use flash for this... harder to crack? (Of course, Flash will open door to other problems.)

Re: [PHP] redirect http to https

2007-04-09 Thread edwardspl
Ben Liu wrote: On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: This should be done with the rewrite instruction of apache, or what ever instructionyour web server has. Um...guess I will have to check with our hosting company about this. Thanks. - Ben Hello, FYI : ?php

Re: [PHP] MD5 bot Question

2007-04-09 Thread Tijnema !
On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 09:45 -0400, tedd wrote: At 8:49 AM -0400 4/9/07, Robert Cummings wrote: On Mon, 2007-04-09 at 08:46 -0400, tedd wrote: At 1:21 AM -0700 4/9/07, Micky Hulse wrote: Maybe use flash for this... harder to crack? (Of

Re: [PHP] MD5 bot Question

2007-04-09 Thread Robert Cummings
On Mon, 2007-04-09 at 16:27 +0200, Tijnema ! wrote: I think that we can conclude that a non-crackable CAPTCHA doesn't exist, but also that there doesn't exist a real hard to crack CAPTCHA. All current CAPTCHAs can be broken quite easy. MD5 can help in some cases, but only if the CAPTCHA uses

Re: [PHP] redirect http to https

2007-04-09 Thread Tijnema !
On 4/9/07, Ben Liu [EMAIL PROTECTED] wrote: What's the prescribed method for redirecting a user forcibly to from the non-SSL secured version of a page to the SSL-secured version? Is this handled at the web server level or at the script level. I found this by googling: ?php

RE: [PHP] Sense last record

2007-04-09 Thread Peter Lauri
Assuming you know it will be three records: $i = 1; while(...) { if($i==3) { //Do the stuff for the last one } else { //Do the rest of the stuff here } $i++; } Assuming you don't know: $count = mysql_num_rows($Result); //or

Re: [PHP] MD5 bot Question

2007-04-09 Thread Tijnema !
On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:27 +0200, Tijnema ! wrote: I think that we can conclude that a non-crackable CAPTCHA doesn't exist, but also that there doesn't exist a real hard to crack CAPTCHA. All current CAPTCHAs can be broken quite easy. MD5

Re: [PHP] Session Authentication

2007-04-09 Thread Tijnema !
On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: Ólafur Waage escribió: Lets say i have a login system. This system authenticates the user via mysql, when the user is authenticated, i set a session variable to let the system know the user is authenticated. ie. $_SESSION[authenticated]

RE: [PHP] redirect http to https

2007-04-09 Thread Peter Lauri
-Original Message- From: Ben Liu [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 3:52 PM To: Martin Marques; PHP Subject: Re: [PHP] redirect http to https On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: This should be done with the rewrite instruction of

Re: [PHP] Session Authentication

2007-04-09 Thread Davi
Em Segunda 09 Abril 2007 10:04, Stut escreveu: Ólafur Waage wrote: Lets say i have a login system. This system authenticates the user via mysql, when the user is authenticated, i set a session variable to let the system know the user is authenticated. ie. $_SESSION[authenticated] = true;

Re: [PHP] MD5 bot Question

2007-04-09 Thread Robert Cummings
On Mon, 2007-04-09 at 16:39 +0200, Tijnema ! wrote: On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:27 +0200, Tijnema ! wrote: I think that we can conclude that a non-crackable CAPTCHA doesn't exist, but also that there doesn't exist a real hard to crack

Re: [PHP] redirect http to https

2007-04-09 Thread Ben Liu
On 4/9/07, Peter Lauri [EMAIL PROTECTED] wrote: You might be able to do this by putting an .htaccess file in your webroot of non-ssl: -- RewriteEngine On RewriteRule ^/(.*)$ https://www.yourdomain.com/$1 [L] -- This appears to work: RewriteEngine On RewriteCond %{SERVER_PORT}

Re: [PHP] Sense last record

2007-04-09 Thread Satyam
I would use some JavaScript on the client side to go through the table and change the classes once the whole page is loaded. Otherwise, for a pure PHP solution, I might either load the whole table on an array, which is wasteful in memory, or defer the actual output of each record until the

Re: [PHP] MD5 bot Question

2007-04-09 Thread Tijnema !
On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:39 +0200, Tijnema ! wrote: On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:27 +0200, Tijnema ! wrote: I think that we can conclude that a non-crackable CAPTCHA doesn't exist, but

Re: [PHP] Sense last record

2007-04-09 Thread tg-php
Sorry, I only saw the one response to this question so not sure if what I'm going to propose was already mentioned and wouldn't work. Two things come to mind.. first, it looks like blocoTextoLast just has different margin settings, I assume because it's located on the right side of the page

Re: [PHP] MD5 bot Question

2007-04-09 Thread Stut
Tijnema ! wrote: On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:39 +0200, Tijnema ! wrote: On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:27 +0200, Tijnema ! wrote: I think that we can conclude that a non-crackable CAPTCHA

Re: [PHP] MD5 bot Question

2007-04-09 Thread Tijnema !
On 4/9/07, Stut [EMAIL PROTECTED] wrote: Tijnema ! wrote: On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:39 +0200, Tijnema ! wrote: On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:27 +0200, Tijnema ! wrote: I think that we

Re: [PHP] Sense last record

2007-04-09 Thread Mário Gamito
Hi, Thank you all for your answers. I solved the problem with: div id=blocoNews ?php include('config.php'); include('adodb/adodb.inc.php'); $debug = 1; // connect to MySQL $conn-debug=1; $conn = ADONewConnection('mysql'); $conn-PConnect($host,$user,$password,$database); //

Re: [PHP] Session Authentication

2007-04-09 Thread Martin Marques
Tijnema ! escribió: On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: Yes: Don't use transparent session id, or even better, save the authentication in a cookie on the client (seperated from the session array). And then the user would crack the cookie I know they are encrypted,

Re: [PHP] MD5 bot Question

2007-04-09 Thread Robert Cummings
On Mon, 2007-04-09 at 17:28 +0200, Tijnema ! wrote: On 4/9/07, Stut [EMAIL PROTECTED] wrote: Tijnema ! wrote: On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2007-04-09 at 16:39 +0200, Tijnema ! wrote: On 4/9/07, Robert Cummings [EMAIL PROTECTED] wrote: On Mon,

Re: [PHP] Session Authentication

2007-04-09 Thread Tijnema !
On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: Tijnema ! escribió: On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: Yes: Don't use transparent session id, or even better, save the authentication in a cookie on the client (seperated from the session array). And then the

Re: [PHP] Session Authentication

2007-04-09 Thread Davi
Em Segunda 09 Abril 2007 12:37, Tijnema ! escreveu: On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: Tijnema ! escribió: On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: Yes: Don't use transparent session id, or even better, save the authentication in a cookie on

RE: [PHP] Session Authentication

2007-04-09 Thread Peter Lauri
-Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 5:38 PM To: Martin Marques Cc: Ólafur Waage; php-general@lists.php.net Subject: Re: [PHP] Session Authentication On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: Tijnema !

Re: [PHP] Session Authentication

2007-04-09 Thread Tijnema !
On 4/9/07, Peter Lauri [EMAIL PROTECTED] wrote: -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 5:38 PM To: Martin Marques Cc: Ólafur Waage; php-general@lists.php.net Subject: Re: [PHP] Session Authentication On 4/9/07, Martin Marques

RE: [PHP] Session Authentication

2007-04-09 Thread Peter Lauri
Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, but every cracker is 99% illegal right? But that means i can't give you these tools to proof it, but it is possible. Tijnema [Peter

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
Peter Lauri wrote: -Original Message- From: Tijnema ! [mailto:[EMAIL PROTECTED] Sent: Monday, April 09, 2007 5:38 PM To: Martin Marques Cc: Ólafur Waage; php-general@lists.php.net Subject: Re: [PHP] Session Authentication On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote:

Re: [PHP] Design Dilemma - Database Data Abstraction

2007-04-09 Thread Martin Alterisio
2007/4/9, Lester Caine [EMAIL PROTECTED]: Martin Alterisio wrote: I have a dilemma on a design where I humbly ask your help. I'm working on the model part of a web application (not to be understood in the web2.0 way, but in a more general way, where anything mounted on HTTP is a web

RE: [PHP] Session Authentication

2007-04-09 Thread Robert Cummings
On Mon, 2007-04-09 at 18:57 +0200, Peter Lauri wrote: Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, but every cracker is 99% illegal right? But that means i can't give you these

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
Peter Lauri wrote: Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, but every cracker is 99% illegal right? But that means i can't give you these tools to proof it, but it is possible. Tijnema

Re: [PHP] Session Authentication

2007-04-09 Thread Tijnema !
On 4/9/07, Stut [EMAIL PROTECTED] wrote: Peter Lauri wrote: Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, but every cracker is 99% illegal right? But that means i can't give you these

Re: [PHP] Session Authentication

2007-04-09 Thread Tijnema !
On 4/9/07, Tijnema ! [EMAIL PROTECTED] wrote: On 4/9/07, Stut [EMAIL PROTECTED] wrote: Peter Lauri wrote: Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, but every cracker is 99%

Re: [PHP] Session Authentication

2007-04-09 Thread Davi
Em Segunda 09 Abril 2007 13:05, Robert Cummings escreveu: (...) Hasn't anyone here had a boring day (yeears ago) when they created an auto vote bot for some stupid poll? :B I never do this!!! =P But I changed a cookie of an browser game XD -- Davi Vidal [EMAIL PROTECTED] [EMAIL

Re: [PHP] Session Authentication

2007-04-09 Thread Martin Marques
Tijnema ! escribió: On 4/9/07, Martin Marques martin@bugs.unl.edu.ar wrote: So what? The user authenticated himself, so what is he gonna crack? Yes, but i guess you're not only storing if the user has authenticated, also storing a username? And if that's not the case, then you could

Re: [PHP] Session Authentication

2007-04-09 Thread Martin Marques
Davi escribió: Sessions are stored in the temporary's server folder... So... If I known my session ID and where it's stored, I can do something... Have you tried it? I mean, as a non-root, non-apache user. :-P -- select 'mmarques' || '@' || 'unl.edu.ar' AS email;

Re: [PHP] Session Authentication

2007-04-09 Thread Davi
Em Segunda 09 Abril 2007 13:47, Martin Marques escreveu: Davi escribió: Sessions are stored in the temporary's server folder... So... If I known my session ID and where it's stored, I can do something... Have you tried it? I mean, as a non-root, non-apache user. :-P No. And I known that

Re: [PHP] MD5 bot Question

2007-04-09 Thread tedd
At 9:58 AM -0400 4/9/07, Robert Cummings wrote: On Mon, 2007-04-09 at 09:45 -0400, tedd wrote: However, this did make me wonder about the images that M$ and others are using for captchas -- like find the kitty in a set of pictures. The MD5 application could be used to identify as many

Re: [PHP] MD5 bot Question

2007-04-09 Thread Robert Cummings
On Mon, 2007-04-09 at 12:51 -0400, tedd wrote: At 9:58 AM -0400 4/9/07, Robert Cummings wrote: Hi Tedd, Put down the crack pipe please... captcha images are usually generated on the fly. Their image repository is 0. Their image universe is all of the permutations of an image containing all

Re: [PHP] Session Authentication

2007-04-09 Thread tedd
At 5:55 PM +0200 4/9/07, Tijnema ! wrote: Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, I don't believe that. FireFox probably has most, if not all. Cheers, tedd -- ---

Re: [PHP] Session Authentication

2007-04-09 Thread Tijnema !
On 4/9/07, tedd [EMAIL PROTECTED] wrote: At 5:55 PM +0200 4/9/07, Tijnema ! wrote: Cookies are old, so in the time they were introduced, today it is possible to create and modify cookies with some good tools. These tools are illegal, I don't believe that. FireFox probably has most, if not all.

Re: [PHP] Session Authentication

2007-04-09 Thread Martin Marques
Tijnema ! escribió: Who said firefox is legal? :P I believe that what firefox can do is limited, some things that are illegal are not possible. I don't know exactly what's illegal, i searched for it a few years ago, and that's what i found then. Explain how it would be illegal to modify

RE: [PHP] Need a working SOAP example using SOAP -- PHP is blocking the calls

2007-04-09 Thread Daevid Vincent
c, could you be having a problem related to the allow_url_fopen ini setting? Now we're talkin! Okay, I made sure that allow_url_fopen and allow_url_include are both on. Verified via phpinfo(); Still no luck. :-\ However, this sparked an idea... I have been using

RE: [PHP] Need a working SOAP example using SOAP -- PHP is blocking the calls (scripts)

2007-04-09 Thread Daevid Vincent
Here is the code I'm using: client1.php ?php $client = new SoapClient(http://machine.locutus.com/StockQuote/stockquote.wsdl;, # $client = new SoapClient(https://admin:[EMAIL PROTECTED]/stockquote.wsdl, array( # login =

[PHP] Where to insert a phrase in the right place

2007-04-09 Thread Mário Gamito
Hi, I'm making this site that was static and now has some dynamic features, so it's a little bit patched :) If you care to visit http://www.telbit.pt/2/login.php you'll notice that the word Welcome is already present, and only should be after the download. Also, the error You didn't fill all

Re: [PHP] Need a working SOAP example using SOAP -- PHP is blocking the calls

2007-04-09 Thread Lori Lay
Daevid Vincent wrote: c, could you be having a problem related to the allow_url_fopen ini setting? Now we're talkin! Okay, I made sure that allow_url_fopen and allow_url_include are both on. Verified via phpinfo(); Still no luck. :-\ However, this sparked an idea... I have been

RE: [PHP] Where to insert a phrase in the right place

2007-04-09 Thread Jay Blanchard
[snip] How can i make the word Welcome appear only after the login ? [/snip] If you set a cookie upon login you can then check for the existence of the cookie. If the cookie exists do not display 'Welcome'. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] MD5 bot Question

2007-04-09 Thread Travis Doherty
Robert Cummings wrote: On Mon, 2007-04-09 at 12:51 -0400, tedd wrote: At 9:58 AM -0400 4/9/07, Robert Cummings wrote: Hi Tedd, Put down the crack pipe please... captcha images are usually generated on the fly. Their image repository is 0. Their image universe is all of the

Re: [PHP] Session Authentication

2007-04-09 Thread Stut
Martin Marques wrote: Tijnema ! escribió: Who said firefox is legal? :P I believe that what firefox can do is limited, some things that are illegal are not possible. I don't know exactly what's illegal, i searched for it a few years ago, and that's what i found then. Explain how it would be

Re: [PHP] MD5 bot Question

2007-04-09 Thread Tijnema !
On 4/9/07, Travis Doherty [EMAIL PROTECTED] wrote: Robert Cummings wrote: On Mon, 2007-04-09 at 12:51 -0400, tedd wrote: At 9:58 AM -0400 4/9/07, Robert Cummings wrote: Hi Tedd, Put down the crack pipe please... captcha images are usually generated on the fly. Their image repository is 0.

Re: [PHP] MD5 bot Question

2007-04-09 Thread tedd
At 1:04 PM -0400 4/9/07, Robert Cummings wrote: On Mon, 2007-04-09 at 12:51 -0400, tedd wrote: We were talking about M$'s picture captcha where they show pictures and ask a question like Pick the picture that shows a kitty and NOT an on the fly graphic captcha. There are different types of

Re: [PHP] MD5 bot Question

2007-04-09 Thread tedd
At 4:19 PM -0400 4/9/07, Travis Doherty wrote: Steganography has been able to hide text in images for quite some time now. Basically you cram whatever info you want into the 'unused' or 'less used' bytes of the image. With this in mind I imagine even if you did have an image repository of

Re: [PHP] Session Authentication

2007-04-09 Thread Martin Marques
Stut escribió: As with most things these days it probably breaches the DMCA. But frankly speaking, if doing that works then the developers of the application, and by extension the company, deserve everything they get. DMCA is a real piece of crap. -- select 'mmarques' || '@' || 'unl.edu.ar'

Re: [PHP] MD5 bot Question

2007-04-09 Thread Robert Cummings
On Mon, 2007-04-09 at 22:27 +0200, Tijnema ! wrote: On 4/9/07, Travis Doherty [EMAIL PROTECTED] wrote: Robert Cummings wrote: On Mon, 2007-04-09 at 12:51 -0400, tedd wrote: At 9:58 AM -0400 4/9/07, Robert Cummings wrote: Hi Tedd, Put down the crack pipe please...

Re: [PHP] Where to insert a phrase in the right place

2007-04-09 Thread Mário Gamito
Hi, Jay Blanchard wrote: [snip] How can i make the word Welcome appear only after the login ? [/snip] If you set a cookie upon login you can then check for the existence of the cookie. If the cookie exists do not display 'Welcome'. I have: session_start(); session_register(email); in

Re: [PHP] MD5 bot Question

2007-04-09 Thread tedd
At 4:39 PM -0400 4/9/07, Robert Cummings wrote: On Mon, 2007-04-09 at 22:27 +0200, Tijnema ! wrote: This is exactly what tedd did in his last arrow example. He edited the header of the GIF image, and so that would result in different MD5. Finding this part and skipping it in the MD5 check

[PHP] mysql if empty

2007-04-09 Thread chris
If I search for something in mysql that returns an empty result I cant get it to return No result found always returns Found even though the recoed does not exist... $sql = SELECT Client FROM booked WHERE Name = 'larry'; $result = mysql_query($sql); if ($result == ) { echo No result found;

Re: [PHP] mysql if empty

2007-04-09 Thread afan
If I search for something in mysql that returns an empty result I cant get it to return No result found always returns Found even though the recoed does not exist... $sql = SELECT Client FROM booked WHERE Name = 'larry'; $result = mysql_query($sql); if ($result == ) { echo No result

Re: [PHP] mysql if empty

2007-04-09 Thread Lori Lay
[EMAIL PROTECTED] wrote: If I search for something in mysql that returns an empty result I cant get it to return No result found always returns Found even though the recoed does not exist... $sql = SELECT Client FROM booked WHERE Name = 'larry'; $result = mysql_query($sql); if ($result ==

Re: [PHP] mysql if empty

2007-04-09 Thread Davi
Em Segunda 09 Abril 2007 18:27, Lori Lay escreveu: [EMAIL PROTECTED] wrote: If I search for something in mysql that returns an empty result I cant get it to return No result found always returns Found even though the recoed does not exist... $sql = SELECT Client FROM booked WHERE

[PHP] Re: Design Dilemma - Database Data Abstraction

2007-04-09 Thread Tony Marston
Martin Alterisio [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a dilemma on a design where I humbly ask your help. I'm working on the model part of a web application (not to be understood in the web2.0 way, but in a more general way, where anything mounted on HTTP is a web

Re: [PHP] Where to insert a phrase in the right place

2007-04-09 Thread Mário Gamito
Hi, André Medeiros wrote: ?php session_start(); if(!isset($_SESSION['greeted'])) { echo Welcome; $_SESSION['greeted'] = 1; } ? It doesn't work :( if ($_SESSION['greeted'] == 1) print('Welcome ' . $name); $_SESSION['greeted'] is always equal to 1 as set in the beginning of the

Re: [PHP] MD5 bot Question

2007-04-09 Thread Tijnema !
On 4/9/07, tedd [EMAIL PROTECTED] wrote: At 4:39 PM -0400 4/9/07, Robert Cummings wrote: On Mon, 2007-04-09 at 22:27 +0200, Tijnema ! wrote: This is exactly what tedd did in his last arrow example. He edited the header of the GIF image, and so that would result in different MD5. Finding

Re: [PHP] mysql if empty

2007-04-09 Thread Paul Novitski
At 4/9/2007 02:18 PM, [EMAIL PROTECTED] wrote: If I search for something in mysql that returns an empty result I cant get it to return No result found always returns Found even though the recoed does not exist... $sql = SELECT Client FROM booked WHERE Name = 'larry'; $result =

Re: [PHP] DOM and XSLTProcessor

2007-04-09 Thread Tony Marston
If there are parts of an XML document where you do not want '' and '' changed in 'lt;' and 'gt;' during the transformation then you need to use the disable-output-escaping option, as in the following example. xsl:if test=/root/footer div class=footer xsl:value-of select=/root/footer

Re: [PHP] mysql if empty

2007-04-09 Thread Satyam
An empty result is still a valid result. As long as the SQL statement is valid, you will get a result set. This doesn't meant that the variable holding the reference to the result set is itself empty, but that you will fail to fetch any results from it. Satyam - Original Message -

[PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
Hello, I'm working on a project now and I'd like to get some feedback on how to implement a proper class (or two). This is an application that records an employee's used vacation time. There are two tables: (1) events, (2) users. Users: id (int) name (varchar) email (varchar) balance

Re: [PHP] Need a working SOAP example using SOAP -- PHP is blocking the calls

2007-04-09 Thread Jochem Maas
Daevid Vincent wrote: c, could you be having a problem related to the allow_url_fopen ini setting? Now we're talkin! Okay, I made sure that allow_url_fopen and allow_url_include are both on. Verified via phpinfo(); Still no luck. :-\ However, this sparked an idea... I have been

Re: [PHP] MD5 bot Question

2007-04-09 Thread Micky Hulse
tedd wrote: ...snip... that's the reason for the alt attribute. Thanks for clarification! :) You are doing some great work with captchas... I also really like your audio captcha experiments. Keep up the great work! Cheers, Micky -- Wishlists: http://snipurl.com/vrs9 Switch:

[PHP] MySQL exceptions

2007-04-09 Thread Davi
Hi all! I'm developing an OOP app using PHP 5. I want to use try-catch with mysql functions. So, the question is: what are the exceptions classes of MySQL? Where can I found it? TIA -- Davi Vidal [EMAIL PROTECTED] [EMAIL PROTECTED] -- Agora com fortune: BOFH Excuse #426: internet is

Re: [PHP] Re: Design Dilemma - Database Data Abstraction

2007-04-09 Thread Martin Alterisio
2007/4/9, Tony Marston [EMAIL PROTECTED]: Martin Alterisio [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a dilemma on a design where I humbly ask your help. I'm working on the model part of a web application (not to be understood in the web2.0 way, but in a more general

Re: [PHP] Session Authentication

2007-04-09 Thread Ólafur Waage
Thanks for the replies guys, became a pretty big thread. The actual code is just a select statement from the user table using sprintf and mysql_real_escape_string for the username and password. I count how many row's the select statement returns, if its not zero then i authenticate by setting a

Re: [PHP] Question about OO design

2007-04-09 Thread Jochem Maas
Chris W. Parker wrote: Hello, I'm working on a project now and I'd like to get some feedback on how to implement a proper class (or two). This is an application that records an employee's used vacation time. There are two tables: (1) events, (2) users. Users: id (int) name

Re: [PHP] MySQL exceptions

2007-04-09 Thread Jochem Maas
Davi wrote: Hi all! I'm developing an OOP app using PHP 5. I want to use try-catch with mysql functions. So, the question is: what are the exceptions classes of MySQL? Where can I found it? IIRC mysqli (certainly not mysql) extension does not throw exceptions, so write code that checks

RE: [PHP] Question about OO design

2007-04-09 Thread Chris W. Parker
On Monday, April 09, 2007 3:51 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Thanks for the response Jochem. Chris W. Parker wrote: [snip] you probably only want one DB call to populate the User object with all the relevant user data at the point where the object is created. [snip] Ok. I

[PHP] Re: MySQL exceptions

2007-04-09 Thread itoctopus
Use the @ in front of the statement and then check the result if it's valid. -- itoctopus - http://www.itoctopus.com Davi [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all! I'm developing an OOP app using PHP 5. I want to use try-catch with mysql functions. So, the question

Re: [PHP] Question about OO design

2007-04-09 Thread Jochem Maas
Chris W. Parker wrote: On Monday, April 09, 2007 3:51 PM Jochem Maas mailto:[EMAIL PROTECTED] said: Thanks for the response Jochem. Chris W. Parker wrote: [snip] you probably only want one DB call to populate the User object with all the relevant user data at the point where the

  1   2   >