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. > >

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] 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] 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] 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] 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] 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

[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] 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

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] 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] 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] 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] 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] 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 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] 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] 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

[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 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

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] 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] 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] 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 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] 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 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 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 Jonathan Kahan
That worked in answering part 1 now i got to figure out part 2 - Original Message - From: "Tijnema !" <[EMAIL PROTECTED]> To: "Jonathan Kahan" <[EMAIL PROTECTED]> Cc: "php Lists" Sent: Tuesday, March 13, 2007 5:55 PM Subject: Re: [PHP] 2 errors I can not understand On 3/13/07, Jonat

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 21:50 +0100, Tijnema ! wrote: > On 3/13/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: > > Robert Cummings wrote: > > > I've found clicking really fast can get you back :) > > > > I, too, have successfully used this technique. :-) > > > > Chris > > Did you guys ever noted that

Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Tijnema !
On 3/13/07, Jonathan Kahan <[EMAIL PROTECTED]> wrote: Hi all, Please see my output below followed by the code. I have been trying for some to figure out why 1) I can not get a line feed to work in the web page that i am using to display the output as I am not running from the commad line Line

[PHP] 2 errors I can not understand

2007-03-13 Thread Jonathan Kahan
Hi all, Please see my output below followed by the code. I have been trying for some to figure out why 1) I can not get a line feed to work in the web page that i am using to display the output as I am not running from the commad line 2) Why my loop is only executing 3 times when i want it

[PHP] Re: session/login issue

2007-03-13 Thread Gunter Sammet
"Mark" wrote in message news:[EMAIL PROTECTED] > Gunter Sammet wrote: > >> Hi all: >> I inherited an application using PHP 5.1.4 with MySQL 4.1.20, >> Apache/2.0.46 (Red Hat) on a VPS server with Plesk 7.5. The >> authentication >> used to work just fine till yesterday. Now it doesn't authentic

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Tijnema !
On 3/13/07, Chris Shiflett <[EMAIL PROTECTED]> wrote: Robert Cummings wrote: > I've found clicking really fast can get you back :) I, too, have successfully used this technique. :-) Chris Did you guys ever noted that little arrow down just right of the back button, where you can go back 2 step

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

2007-03-13 Thread Tijnema !
On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote: On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: > So you just need to set the content-type and output > add this to the bottom of the script: > header("Content-Type: ".$encodeddata); > echo $title; > > If i understand you right. > > Tijnema >

Re: [PHP] mail

2007-03-13 Thread Tijnema !
On 3/13/07, Dani Dws <[EMAIL PROTECTED]> wrote: 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? best regards. Sometimes ISP is blocking port 25, if so, yo

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Chris Shiflett
Robert Cummings wrote: > I've found clicking really fast can get you back :) I, too, have successfully used this technique. :-) Chris -- Chris Shiflett http://shiflett.org/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] mail

2007-03-13 Thread Brad Fuller
> -Original Message- > From: Dani Dws [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 13, 2007 2:35 PM > To: php-general@lists.php.net > Subject: [PHP] mail > > I just want to know if the mail function works from a localhost (local > server)? > > I've checked my php.ini all the setting a

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

2007-03-13 Thread Tijnema !
On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> 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

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

2007-03-13 Thread Bruce Gilbert
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 using PHPMyAdmin and I

[PHP] mail

2007-03-13 Thread Dani Dws
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? best regards. _ Solve the Conspiracy and

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

2007-03-13 Thread Micky Hulse
bruce wrote: Any thoughts/ideas. The ydn-javascript is busy... but specifically for the YUI library: List forum/archives (found via quick google search): YUI: Good luck! Cheers, Micky -- Wishlists:

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

2007-03-13 Thread Yannick Warnier
Le mardi 13 mars 2007 à 10:19 -0700, bruce a écrit : > 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. > > Any thoughts/ideas. Hi Bruce, Try the Dojo Toolkit mailing lists, or any JS toolk

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

2007-03-13 Thread Yannick Warnier
Le lundi 12 mars 2007 à 18:04 +0100, Tijnema ! a écrit : > On 3/12/07, Doctorrock <[EMAIL PROTECTED]> wrote: > > > > 2007/3/12, Yannick Warnier <[EMAIL PROTECTED]>: > > > > > > The problem wasn't quite there. The 304 response was correct and didn't > > > really cause a problem in IE7. > > > > > > I

[PHP] Re: Stream Functions

2007-03-13 Thread ccspencer
Richard Lynch writes: On Sun, March 11, 2007 1:15 pm, [EMAIL PROTECTED] wrote: Can anyone suggest why the connection might be refused? My first guess would be that you have a firewall blocking the connection. PHP can't poke holes in your firewall for you. Since it is in the so-called "u

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On Tue, 2007-03-13 at 18:44 +0100, Tijnema ! wrote: On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote: > > > > Well that's strange since PHP4 and 5 both use the same ini file on my > > dev box. And so they both get the following i

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 18:44 +0100, Tijnema ! wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote: > > > > > > Well that's strange since PHP4 and 5 both use the same ini file on my > > > dev box. And so they both get the follow

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote: > > Well that's strange since PHP4 and 5 both use the same ini file on my > dev box. And so they both get the following ini setting: > > date.timezone="Canada/Eastern" > > And in p

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 13:02 -0400, Robert Cummings wrote: > > Well that's strange since PHP4 and 5 both use the same ini file on my > dev box. And so they both get the following ini setting: > > date.timezone="Canada/Eastern" > > And in php 4.4.4 I get the bad output, but in php 5.2.0 I get t

Re: [PHP] Class and subclass

2007-03-13 Thread Stut
Alain Roger wrote: In fact the problem is that under Zend Studio editor, when i typed : $this->class_A_property->Class_B_method did not appear as valid. if i typed $this->class_A_property , this was valid because $this refered to Class_A. but if you define a property (private $myobject_B) in c

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

2007-03-13 Thread Peter Lauri
Not pure Ajax, but it is Javascipt: [EMAIL PROTECTED] Best regards, Peter Lauri www.dwsasia.com - company web site www.lauri.se - personal web site www.carbonfree.org.uk - become Carbon Free > -Original Message- > From: bruce [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 13, 2007 7:2

RE: [PHP] dst and strtotime

2007-03-13 Thread Brad Fuller
Jake McHenry wrote: > Why would one give me EST and the other EDT? Because EDT did not kick in until 2 or 3 AM on 3/11. PHP is compensating for DST by subtracting 1 hour, because php sees "last sunday" as 12:00 AM on 3/11. Subtract 1 hour and you get 11:00 PM on 3/10. > +60*60 worked after strt

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
-Original Message- From: Jake McHenry [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 13, 2007 11:22 AM To: For users of Fedora; PHP-General Subject: Re: [PHP] dst and strtotime A little more info: strtotime("last monday") or yesterday, is correct, but strtotime("last sunday") giv

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

2007-03-13 Thread Németh Zoltán
2007. 03. 13, kedd keltezéssel 12.12-kor Bruce Gilbert ezt írta: > I stumbled upon this article http://www.chrisjdavis.org/2005/10/16/php-in-css/ > > and was trying out variables with PGP, but can't get it to work. I > wanted to have a variable image that changes on refresh, and also set > the bod

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

2007-03-13 Thread Tijnema !
On 3/13/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote: I stumbled upon this article http://www.chrisjdavis.org/2005/10/16/php-in-css/ and was trying out variables with PGP, but can't get it to work. I wanted to have a variable image that changes on refresh, and also set the body color with PHP/CSS

Re: [PHP] FW: looking for two remote functions

2007-03-13 Thread tedd
At 4:18 PM +0100 3/13/07, Tijnema ! wrote: I'm not sure if it's the size you were looking for, but keep in mind that it depends on the block size. So different filesystems use different block size. Tijnema Yes and in addition, regardless of the "absolute" file size, the file still has to be

[PHP] Looking for a good Ajax Mailing List

2007-03-13 Thread bruce
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. Any thoughts/ideas. Thanks -Bruce [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] Class and subclass

2007-03-13 Thread Jim Lucas
Alain Roger wrote: Hi Richard, In fact the problem is that under Zend Studio editor, when i typed : $this->class_A_property->Class_B_method did not appear as valid. if i typed $this->class_A_property , this was valid because $this refered to Class_A. but if you define a property (private $myo

Re: [PHP] Redirecting in a PHP script

2007-03-13 Thread Philip Thompson
As other people have already said, use the header() function. However, be sure to include exit; after you call it. I've run into problems where it did not redirect properly if I didn't have the exit call. This also prevents anymore of the page loading (and maybe providing sensitive informat

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On Tue, 2007-03-13 at 17:58 +0100, Tijnema ! wrote: On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > > > > >

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 17:58 +0100, Tijnema ! wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > >

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > > On Tue, 2007-03-1

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Tijnema ! <[EMAIL PROTECTED]> wrote: On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > > > > > >>

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > > > >> -Original Message- > > > >> From: Jake McHenry [mai

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 17:50 +0100, Tijnema ! wrote: > On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > > > > > >> -Original Message- > > > >> From: Jake McHenry [mailto:[EMAIL PROTECTED] > > > >> Sent: Tuesday, March 13, 2

RE: [PHP] dst and strtotime

2007-03-13 Thread Brad Fuller
> -Original Message- > From: Jake McHenry [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 13, 2007 11:22 AM > To: For users of Fedora; PHP-General > Subject: Re: [PHP] dst and strtotime > > A little more info: > > strtotime("last monday") or yesterday, is correct, but > strtotime("l

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Has or can anyone try this on PHP5 to see if it does the same? I'll upgrade if needed, but didn't really want to at the current time.. Thanks Jake As i said before i don't think it has to do with PHP version, but with your timezone se

Re: [PHP] PHP URL issues

2007-03-13 Thread Tijnema !
On 3/13/07, Steve <[EMAIL PROTECTED]> wrote: Instead of trying to call specific $_GET values, try printing out the entire $_GET variable. echo ''; print_r($_GET); echo ''; Anything else there? I wanted to say that:P You can check if the data is really sended to the second page by printing t

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 12:50 -0400, Jake McHenry wrote: > Has or can anyone try this on PHP5 to see if it does the same? I'll upgrade > if needed, but didn't really want to at the current time.. PHP 5.2.0 works properly. Cheers, Rob. -- .--

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: Has or can anyone try this on PHP5 to see if it does the same? I'll upgrade if needed, but didn't really want to at the current time.. Thanks Jake As i said before i don't think it has to do with PHP version, but with your timezone settin

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Jake McHenry [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, March 13, 2007 11:22 AM >> To: For users of Fedora; PHP-General >> Subject: Re: [PHP] dst and strtotime >> >> A little more info: >> >> strtotime("

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > >> -Original Message- > >> From: Jake McHenry [mailto:[EMAIL PROTECTED] > >> Sent: Tuesday, March 13, 2007 11:22 AM > >> To: For users of Fedora; PHP-General > >> Subject: Re:

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
Has or can anyone try this on PHP5 to see if it does the same? I'll upgrade if needed, but didn't really want to at the current time.. Thanks Jake On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: >> -Original Message- >> From: Jake McHenry [mailto:[EMAIL PROTECTED] >> Sen

Re: [PHP] dst and strtotime

2007-03-13 Thread Robert Cummings
On Tue, 2007-03-13 at 12:31 -0400, Jake McHenry wrote: > > >> -Original Message- > >> From: Jake McHenry [mailto:[EMAIL PROTECTED] > >> Sent: Tuesday, March 13, 2007 11:22 AM > >> To: For users of Fedora; PHP-General > >> Subject: Re: [PHP] dst and strtotime > >> > >> A little more info: >

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Jake McHenry [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, March 13, 2007 11:22 AM >> To: For users of Fedora; PHP-General >> Subject: Re: [PHP] dst and strtotime >> >> A little more info: >> >> strtotime("

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
yes. echo date("Y-m-d g:i A T", time()); echo date("Y-m-d g:i A T", strtotime("last sunday")); returns 2007-03-13 12:38 PM EDT 2007-03-10 11:00 PM EST Thanks, Jake does return the time() command the right date for you? Tijnema On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote:

[PHP] variables in CSS in PHP question/problems

2007-03-13 Thread Bruce Gilbert
I stumbled upon this article http://www.chrisjdavis.org/2005/10/16/php-in-css/ and was trying out variables with PGP, but can't get it to work. I wanted to have a variable image that changes on refresh, and also set the body color with PHP/CSS and maybe get that to change on refresh too. sp from

Re: [PHP] dst and strtotime

2007-03-13 Thread Tijnema !
does return the time() command the right date for you? Tijnema On 3/13/07, Jake McHenry <[EMAIL PROTECTED]> wrote: A little more info: strtotime("last monday") or yesterday, is correct, but strtotime("last sunday") gives me 3/10 (saturday), strtotime("last saturday") gives me 3/9 (Frida

RE: [PHP] Capitalizing the first letter

2007-03-13 Thread Peter Lauri
> > Thank you! I did not know about the ucwords() functions, and it > does not need the string set to lower case. > > Now to create a filter that returns only numbers (e.g. "a1234z" > -> "1234") and the same for non-numbers. > [Peter Lauri - DWS Asia] This to replace all non-digit characters

Re: [PHP] Using a reentrant form

2007-03-13 Thread Németh Zoltán
2007. 03. 13, kedd keltezéssel 08.19-kor Todd Cary ezt írta: > 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 validatio

Re: [PHP] PHP URL issues

2007-03-13 Thread Satyam
I wouldn't do the htmlentities() on the whole argument list. Depending on the Doctype version you have declared and depending how well implemented it is in each browser, it may render the argument list useless. Unless you declared the strictest and latest version of HTML, all browsers will tak

Re: [PHP] dst and strtotime

2007-03-13 Thread Jake McHenry
A little more info: strtotime("last monday") or yesterday, is correct, but strtotime("last sunday") gives me 3/10 (saturday), strtotime("last saturday") gives me 3/9 (Friday), "last friday" gives me 3/8 thursday.. etc. maybe it will go away after a week?? anyone else have anyt

[PHP] Using a reentrant form

2007-03-13 Thread Todd Cary
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. Is there a disadvantage to this approach? Thank you...

Re: [PHP] FW: looking for two remote functions

2007-03-13 Thread Tijnema !
Can you maybe explain why you want the exact size on the disk in blocks?? do you care if it differs 1KB?? what are you planning to write, the actual filesize on the disk can only differ 1 block with real filesize, and so if the blocksize is 1024bytes, it differes a max of 1024bytes... And btw, th

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
Instead of trying to call specific $_GET values, try printing out the entire $_GET variable. echo ''; print_r($_GET); echo ''; Anything else there? "Don Don" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > $query_string = 'testId='. urlencode(trim($tmpTestId)) . '&userId=' . > u

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
Steve wrote: For your filter to return only/no digits, I would recommend doing a bit of reading on preg_replace ( http://us2.php.net/preg_replace ) while noting the following flags: \d Matches any decimal digit; this is equivalent to the class [0-9]. \D Matches any non-digit character; this i

Re: [PHP] PHP URL issues

2007-03-13 Thread Don Don
$query_string = 'testId='. urlencode(trim($tmpTestId)) . '&userId=' . urlencode(trim($tmpUserId)); print ' View Values '; on view page i am trying to display the values using $_GET[value] and it sill returns "" Satyam <[EMAIL PROTECTED]> wrote: You should use urlencode() on variables th

Re: [PHP] Image from a secure site

2007-03-13 Thread Manolet Gmail
Well in case someone need to do this... this is the code.. very easy at all.. header ('Content-type: image/jpeg'); $ch =curl_init("http://contelec.sytes.net:2002/IMAGE.JPG?cidx=20072261649239281";); curl_setopt($ch,CURLOPT_USERPWD,"invitado:invitado"); curl_exec($ch); curl_close($ch);

[PHP] Re: session/login issue

2007-03-13 Thread Mark
Gunter Sammet wrote: > Hi all: > I inherited an application using PHP 5.1.4 with MySQL 4.1.20, > Apache/2.0.46 (Red Hat) on a VPS server with Plesk 7.5. The authentication > used to work just fine till yesterday. Now it doesn't authenticate > anymore. My debugging so far hasn't revelaed much. It s

Re: [PHP] $35 to the first person who can do this XML-parsing PHP script

2007-03-13 Thread Jochem Maas
Richard Lynch wrote: > On Mon, March 12, 2007 8:05 pm, Myron Turner wrote: >> Richard Lynch wrote: >>> For something that simple in PHP4, I didn't even bother with the >>> 50-line expat lib solution... >>> >>> A couple preg matches, or even just strtok and call it done... >>> >>> //assume file_get_

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Steve
For your filter to return only/no digits, I would recommend doing a bit of reading on preg_replace ( http://us2.php.net/preg_replace ) while noting the following flags: \d Matches any decimal digit; this is equivalent to the class [0-9]. \D Matches any non-digit character; this is equivalent to

RE: [PHP] Re: question regarding form filtering

2007-03-13 Thread Tim
> -Message d'origine- > De : Haydar Tuna [mailto:[EMAIL PROTECTED] > Envoyé : mardi 13 mars 2007 14:53 > À : php-general@lists.php.net > Objet : [PHP] Re: question regarding form filtering > > Hello, >You can write some basic functions such as checking > length of variable, re

Re: [PHP] PHP URL issues

2007-03-13 Thread Steve
This may or may not help, but here's a few things to note: 1) I would avoid placing variable output in double quoted strings. While not important for smaller scripts, doing a large number of outputs like this causes a decent performance hit. In fact, I wouldn't use double quotes ever in php. In

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department An

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

RE: [PHP] Capitalizing the first letter

2007-03-13 Thread Edward Kay
> I would like to write a filter that takes the text "smith" or > "SMith" and returns "Smith"; same for "ralph smith". Is the a > good source on using filters this way? > $bar = ucwords(strtolower($bar)); This is an example on the manual page for ucwords. How hard did you look? Edward --

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello Again, You can use ucwords() functions except my method. This function returns a string with the first character of each word in str capitalized, if that character is alphabetic. :) -- Haydar TUNA Republic Of Turkey - Ministry of National Education Education Technology Department

[PHP] Re: Capitalizing the first letter

2007-03-13 Thread Haydar Tuna
Hello, In PHP ucfirst() function make a string's first character uppercase. But ralph smith have two words respectivetely ralph and smith. For this reason, if you call the ucfirst("ralph smith") function, you cannot see the Ralph Smith. You see the Ralph smith. If you want to see Ralph Smith

Re: [PHP] Capitalizing the first letter

2007-03-13 Thread Todd Cary
Chris Boget wrote: I would like to write a filter that takes the text "smith" or "SMith" and returns "Smith"; same for "ralph smith". Is the a good source on using filters this way? It may not be the most efficient way of accomplishing this, but you could do something like: $string = 'SMit

Re: [PHP] Data Types Problem

2007-03-13 Thread Jochem Maas
Richard Lynch wrote: > By definition, all HTTP data is of type 'string' because that's the > ONLY data type HTTP supports. > > PHP will cheerfully typecast it to whatever it needs to be later, but > when it first comes in from the GET (or POST or COOKIE or whatever) > data, it's going to start its

  1   2   >