Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
I think you have an issue with the line while($d<$s) when it comes to the number 3. $d will NEVER be < $s if $s = 3. I think you want $d<=$s?? Or maybe a switch for the number 3? - Original Message From: Jonathan Kahan <[EMAIL PROTECTED]> To: php Lists Sent: Tuesday, March 13, 2007

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Matt Carlson
I retract my statement. I think I spoke too quickly. I think I don't fully understand the code (can't pay attention right now for some reason), and I talked too quick. I do think it has to do with the while loop though, as that is where it seems to be dying. - Original Message From:

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jake McHenry
It worked for you? It didn't for me until i changed if ($s%$d=0) to if($s%$d == 0) Jake - Original Message - From: "Jonathan Kahan" <[EMAIL PROTECTED]> To: "Tijnema !" <[EMAIL PROTECTED]> Cc: "php Lists" Sent: Tuesday, March 13, 2007 6:08 PM Subject: Re: [PHP] 2 errors I can not u

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Myron Turner
Matt Carlson wrote: I think you have an issue with the line while($d<$s) when it comes to the number 3. $d will NEVER be < $s if $s = 3. I think you want $d<=$s?? Or maybe a switch for the number 3? - Original Message From: Jonathan Kahan <[EMAIL PROTECTED]> To: php Lists Sent: Tu

Re: [PHP] Looking for a good Ajax Mailing List

2007-03-13 Thread Martin Marques
bruce escribió: Hi... I know this is off topic.. I'm looking for a good Ajax Mailing list for Ajax discussions. I've seen a few via google, but not alot of traffic. Best I know of are the Mozilla JavaScript and DOM mailling lists. There's an AJAX list, but I mainly use the JS one: https://l

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jonathan Kahan
This did fix the problem but I am amazed that $s%$d=0 would be interpereted as a statement assigning d to 0 since there is some other stuff in front of d... I would think that would produce an error at compile time since $s%$d is an illegal variable name. Normally when my php script errors at

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 19:04 -0400, Jonathan Kahan wrote: > This did fix the problem but I am amazed that > > $s%$d=0 would be interpereted as a statement assigning d to 0 since there is > some other stuff in front of d... I would think that would produce an error > at compile time since $s%$d is

Re: [PHP] mail

2007-03-13 Thread Martin Marques
Dani Dws escribió: I just want to know if the mail function works from a localhost (local server)? I've checked my php.ini all the setting are right but the mail function is not sending any mail, any idea? How are you using it? -- select 'mmarques' || '@' || 'unl.edu.ar' AS email; -

Re: [PHP] Back to security

2007-03-13 Thread jekillen
On Mar 12, 2007, at 3:32 PM, Richard Lynch wrote: On Sat, March 10, 2007 12:41 pm, Alain Roger wrote: I'm continuing to work on securing my administration part of the website. based on previous posts and reading materials, I was thinking to use the following process : Think of HTTPS as like

[PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Mark
I have a web session management server that makes PHP clustering easy and fast. I have been getting a number of requests for some level of redundancy. As it is, I can save to an NFS or GFS file system, and be redundant that way. Here is an explanation of how it works: http://www.mohawksoft.org/?q

Re: [PHP] Back to security

2007-03-13 Thread Jon Anderson
jekillen wrote: For what it is worth, I am only aware of one drawback to https with respect to how requests are handled that makes it difficult to use with virtual hosting. I am a little hazy on how it works but when https is used only the ip address of the request is available to the server bef

Re: [PHP] different and logic between PHP4 and PHP5

2007-03-13 Thread Larry Garfield
On Tuesday 13 March 2007 7:50 am, Vieri wrote: > //$b=3; > $c=3; > $a=($b and $c); > echo "A = ".$a; > ?> > > in PHP4 I get: > A = 0 > and in PHP5 I get: > A = > I could call this lazyness on our part or code > portability through PHP versions or better yet, bad > inherited coding right from the

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jim Lucas
Robert Cummings wrote: On Tue, 2007-03-13 at 19:04 -0400, Jonathan Kahan wrote: This did fix the problem but I am amazed that $s%$d=0 would be interpereted as a statement assigning d to 0 since there is some other stuff in front of d... I would think that would produce an error at compile tim

Re: [PHP] displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Jim Lucas
Bruce Gilbert wrote: I am having some difficulty getting an image to display on a php that I have added to MySQL DB. Here is what I have tried so far in the MySQL DB I have a table called image_holder and the fields are id,mimename,filecontents...filecontents field is set to a type of blob

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 18:46 -0700, Jim Lucas wrote: > > another suggestion would be to have it written this way > > 0 == ($s % $d) > > if you by chance did this > > 0 = ($s % $d) > > it will give you an error, because you cannot assign a value to a > literal value. Yeah, this has flown across

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jim Lucas
Robert Cummings wrote: On Tue, 2007-03-13 at 18:46 -0700, Jim Lucas wrote: another suggestion would be to have it written this way 0 == ($s % $d) if you by chance did this 0 = ($s % $d) it will give you an error, because you cannot assign a value to a literal value. Yeah, this has flown a

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Chris Shiflett
Tijnema wrote: > Did you guys ever noted that little arrow down just right of > the back button, where you can go back 2 steps at once, so you > don't have to click very fast? I think we both remember browsing before that feature was invented. Chris -- Chris Shiflett http://shiflett.org/ -- P

Re: [PHP] Help me specify/develop a feature! (cluster web sessions management)

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 7:27 pm, Mark wrote: > I have a web session management server that makes PHP clustering easy > and > fast. I have been getting a number of requests for some level of > redundancy. > > As it is, I can save to an NFS or GFS file system, and be redundant > that > way. Talk to J

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Richard Lynch
While the others have provided the answers for your questions, I went a little further before reading the whole thread, so here's some bonus free advice. :-) On Tue, March 13, 2007 4:30 pm, Jonathan Kahan wrote: > 1) I can not get a line feed to work in the web page that i am using > to > display

Re: [PHP] displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 9:07 pm, Jim Lucas wrote: > DON'T USE REQUEST > only use it from where you expect it to be, in this case, $_GET Unless you actually WANT your web application to be flexible and allow other users to have links or POST forms to interface with it... It's not like you can trust

[PHP] Re: displaying image from MySQL DB using HTML/PHP

2007-03-13 Thread Haydar Tuna
Hello, I think your image field in mysql table is BLOB. Firstly, you can create like a image.php file for call image data from table. You can call your image data this file with GET,POST or SESSION variables and in image table there is a uqiue field for call any image such as personal id

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote: > This did fix the problem but I am amazed that > > $s%$d=0 would be interpereted as a statement assigning d to 0 since > there is > some other stuff in front of d... I would think that would produce an > error > at compile time since $s%$d is a

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 6:27 pm, Robert Cummings wrote: > Moral of the story? Don't be sloppy. Take pride in writing readable > code. Anyone can produce gibberish. The converse is not true. :-) IOW, some of us produce gibberish even when we are trying to write readable code. 'Course, Perl hackers

Re: [PHP] Can i use DateTime Object with an timestamp as referenceinstead of an formated string.

2007-03-13 Thread Mathijs
Richard Lynch wrote: Personally, I'd log it in GMT or UTC or whatever it is, and then only change time-zones on display. Logging various different time-zones within the actualy data is just going to be confusing, probably... Depends on what you are doing, though, I guess... YMMV On Wed, March

Re: [PHP] PHP 5.2 + IE 7 = HTTP 304 in login procedure [SOLVED]

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 1:56 pm, Yannick Warnier wrote: >> > According to RFC1033 ( >> > http://www.camtp.uni-mb.si/books/Internet-Book/DNS_NameFormat.html >> ), >> > underscores are forbidden in DNS names, including subdomains. > >> >> Yeah, meaning that the program where you created the subdomain

Re: [PHP] mail

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 1:35 pm, Dani Dws wrote: > I just want to know if the mail function works from a localhost (local > server)? It *can* be made to work, even if you have not succeeded so far. > I've checked my php.ini all the setting are right but the mail > function is > not sending any mai

Re: [PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Richard Lynch
Surf directly to your CSS URL and see what happens. There are several possibiliies: #1. Your CSS has in its output, because you have not convinced your web-server to run your CSS file through PHP to compute the dynamic result. You need something like this in .htacces: ForceType application/x

Re: [PHP] Using a reentrant form

2007-03-13 Thread Richard Lynch
On Tue, March 13, 2007 10:19 am, Todd Cary wrote: > To validate a page, I set the form value to the page name the > user is on. Then there is a hidden variable, "looped" that is > set to "1". By checking "looped", I know if the user has > re-entered the form so I can do my validation checks. > >

<    1   2