Re: [PHP] menu Q

2006-02-17 Thread William Stokes
http://www.css-discuss.org/ :-) I tried that also :) Had to put this to stylesheet to get it 'fire' select.menu {} But it didn't solve the problem... thanks for the effort anyway. -Will Kim Christensen [EMAIL PROTECTED] kirjoitti viestissä:[EMAIL PROTECTED] On 2/17/06, William Stokes

[PHP] umlaut problem in firefox

2006-02-17 Thread Andy
Hi to all, I just reinstalled one of our servers last week, and I am noticing a wierd problem. On the old one was php4 running. Suse 9.1 OS. Everything worked very well. On the new one Suse 10. Php5. Only with firefox (sometimes and not always) and only on some computers the umlauts öäüüü

[PHP] archiving?

2006-02-17 Thread benifactor
i have a question about what i beleive to be called archiving... i am building a news script and would like to limit post to be displayed per page i have done this successfully. what i am having probplems with is displaying the next set of news. here is my code: ?php include(core.php);

[PHP] Re: archiving?

2006-02-17 Thread Barry
benifactor wrote: i have a question about what i beleive to be called archiving... i am building a news script and would like to limit post to be displayed per page i have done this successfully. what i am having probplems with is displaying the next set of news. here is my code: ?php

[PHP] Re: umlaut problem in firefox

2006-02-17 Thread Barry
Andy wrote: Hi to all, I just reinstalled one of our servers last week, and I am noticing a wierd problem. On the old one was php4 running. Suse 9.1 OS. Everything worked very well. On the new one Suse 10. Php5. Only with firefox (sometimes and not always) and only on some computers the

[PHP] Re: archiving?

2006-02-17 Thread Barry
Barry wrote: benifactor wrote: i have a question about what i beleive to be called archiving... i am building a news script and would like to limit post to be displayed per page i have done this successfully. what i am having probplems with is displaying the next set of news. here is my

Re: [PHP] Re: umlaut problem in firefox

2006-02-17 Thread Andy
From the DB I get the text correctly. meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 This is a good question I have to check it. The DB encoding is : iso-8859-1. Now, the strange thing is that is does not appear ALWAYS and only sometimes and only in firefox. So.. I

[PHP] anyone care to explain the logic behind this output ....

2006-02-17 Thread Jochem Maas
THIS CODE php -r ' $a = array(0, 1); $b = array(1 = 0, 0 = 1); var_dump($a $b); // true var_dump($a $b); // true var_dump($b $a); var_dump($b $a); echo \n\$a:\n; var_dump((bool)$a, (int)$a, (string)$a, intval($a),

Re: [PHP] PHP !== Hypertext Pre-Processor

2006-02-17 Thread John Nichel
Richard Lynch wrote: On Thu, February 16, 2006 9:38 am, tedd wrote: Gustavo said: This great programming language is *much more* than a Hypertext Pre-Processor! It is? I've seen a fair number of PHP applications that had nothing to do with Hypertext... GD, libPDF, Ming, GTK... Hell,

Re: [PHP] PHP !== Hypertext Pre-Processor

2006-02-17 Thread Stut
I'm a bit confused by the need for this debate. As far as I'm concerned PHP stopped being an acronym a while back. Why can't it just be PHP? Why does it need to be redefined? Does anyone actually use the full name these days? In essence, does it really matter? -Stut -- PHP General Mailing

Re: [PHP] PHP job postings?

2006-02-17 Thread John Nichel
Curt Zirzow wrote: snip If I was scouting for postions that need to area specific, i'd first look for a php group that is located within the area. Go to local colleges post announcments. Look at any sort of group that is related to php like a linux group. /snip I second that. I lean on the

RE: [PHP] PHP !== Hypertext Pre-Processor

2006-02-17 Thread Jay Blanchard
[snip] Hell, for the past year or two, I've been replacing/writing new shell scripts written in BASH/Perl with PHP. None of them output HTML. ;) [/snip] Pretty Hot Performer Actually I had done a lot of this as well. Sometimes much quicker than SED and AWK are for getting the command line

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-17 Thread tedd
on 02/17/2006 01:55 AM tedd said the following: Most of those who are aware of disability issues, don't use any barriers at all. CAPTCHA is often used to prevent abuses from people using automated robot programs. To solve the problem of visually impaired people, there are audio

[PHP] Japanese spam on list

2006-02-17 Thread Barry
Whats that Japanese spam mail on this list about Oo -- Smileys rule (cX.x)C --o(^_^o) Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] ! in front of a variable?

2006-02-17 Thread Jeff
Hey all, I've got some code from someone else I've inherited and need to sort out some problems with. The programmer that wrote it originally was much better than I and programmed a little over my head to say the least. One function that I've come across that has 5 variables as input:

Re: [PHP] ! in front of a variable?

2006-02-17 Thread John Nichel
Jeff wrote: Hey all, I've got some code from someone else I've inherited and need to sort out some problems with. The programmer that wrote it originally was much better than I and programmed a little over my head to say the least. One function that I've come across that has 5 variables as

Re: [PHP] ! in front of a variable?

2006-02-17 Thread Satyam
boolean Not operator - Original Message - From: Jeff [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Friday, February 17, 2006 4:06 PM Subject: [PHP] ! in front of a variable? Hey all, I've got some code from someone else I've inherited and need to sort out some problems

Re: [PHP] ! in front of a variable?

2006-02-17 Thread Barry
John Nichel wrote: Jeff wrote: Hey all, I've got some code from someone else I've inherited and need to sort out some problems with. The programmer that wrote it originally was much better than I and programmed a little over my head to say the least. One function that I've come across that

RE: [PHP] ! in front of a variable?

2006-02-17 Thread Jay Blanchard
[snip] I've got some code from someone else I've inherited and need to sort out some problems with. The programmer that wrote it originally was much better than I and programmed a little over my head to say the least. One function that I've come across that has 5 variables as input:

Re: [PHP] anyone care to explain the logic behind this output ....

2006-02-17 Thread Robin Vickery
On 17/02/06, Jochem Maas [EMAIL PROTECTED] wrote: THIS CODE php -r ' $a = array(0, 1); $b = array(1 = 0, 0 = 1); var_dump($a $b); // true var_dump($a $b); // true var_dump($b $a); var_dump($b $a); [...]

Re: [PHP] PHP job postings + previous hosting question

2006-02-17 Thread tg-php
Just wanted to thank everyone for the helpful suggestions and ideas regarding these two topics. I've had to put my web hosting decision on the back burner for now while I deal with other big projects and other fun issues so I apologize for not getting back to the people who responded (publicly

[PHP] array_map help

2006-02-17 Thread Mark Steudel
I've got the following code and I am not doing something right. Either my function is wrong, or the way Im using array_map is wrong, as slashes are still making it into the data, and the asdf iosn't getting appended to each value. Thanks, Mark // function to remove stripped slashes function

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-17 Thread Manuel Lemos
Hello, on 02/17/2006 01:19 PM tedd said the following: I am not sure what you mean. Are you saying that nobody should use audio CAPTCHA because one user was not able to configure his browser to play the audio CAPTCHA? I am sure that it is something easier to achieve than screen reader

Re: [PHP] anyone care to explain the logic behind this output ....

2006-02-17 Thread Jochem Maas
Robin Vickery wrote: On 17/02/06, Jochem Maas [EMAIL PROTECTED] wrote: THIS CODE php -r ' $a = array(0, 1); $b = array(1 = 0, 0 = 1); var_dump($a $b); // true var_dump($a $b); // true var_dump($b $a); var_dump($b $a);

Re: [PHP] attaching MySQL 5.0.18 to PHP 4.4.2

2006-02-17 Thread Paul Goepfert
I forgot to mention that that php and mysql are installed on a windows machine which means I didn't have to run the configure script that would associate mysql with php. How do I do this on a windows machine? Paul On 2/17/06, Kim Christensen [EMAIL PROTECTED] wrote: On 2/17/06, Paul Goepfert

Re: [PHP] ! in front of a variable?

2006-02-17 Thread Jochem Maas
Jay Blanchard wrote: [snip] I've got some code from someone else I've inherited and need to sort out some problems with. The programmer that wrote it originally was much better than I and programmed a little over my head to say the least. One function that I've come across that has 5 variables

Re: [PHP] ! in front of a variable?

2006-02-17 Thread Paul Novitski
At 07:06 AM 2/17/2006, Jeff wrote: I've got some code from someone else I've inherited and need to sort out some problems with. The programmer that wrote it originally was much better than I and programmed a little over my head to say the least. One function that I've come across that has 5

Re: [PHP] array_map help

2006-02-17 Thread Jochem Maas
Mark Steudel wrote: I've got the following code and I am not doing something right. Either my function is wrong, or the way Im using array_map is wrong, as slashes are still making it into the data, and the asdf iosn't getting appended to each value. I rewrote what you had like so: ?php

[PHP] List of units

2006-02-17 Thread diego
I'm trying to list the hdd units from a server PHP machine running on windows, and can´t find a right function to do that. (Don't like to do a map A-Z function code) ¿Anyone know how to do that in a good way? Thanks, Diego. -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Need help interpreting server log entries

2006-02-17 Thread Kirk . Johnson
We are seeing this message in our server logs with respect to one of our internal extensions. What is the meaning of Overrun in this context? acd-result.c(114) : Block 0x0816D12C status: Beginning: Overrun (magic=0x0021, expected=0x7312F8DC) End: Unknown TIA Kirk -- PHP

Re: [PHP] ! in front of a variable?

2006-02-17 Thread Rafael
I took me a little while to notice that it wasn't a function declaration :p It's just as Jay said, it's calling function with those arguments, where '!$var2' extends to '!(bool)$var2' or treat/cast this value as/to boolean, and pass it's inverted value or NOT $var2. Jay Blanchard

RE: [PHP] array_map help

2006-02-17 Thread Mark Steudel
Thank you I will give it a try. -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 9:24 AM To: Mark Steudel Cc: php-general@lists.php.net Subject: Re: [PHP] array_map help Mark Steudel wrote: I've got the following code and I am not doing

[PHP] Last Sunday in September?

2006-02-17 Thread Jay Paulson
Hi, I'm building a program and I need to find the last Sunday in September for every year because the following Monday is the start of a new year for us. So 2006 ends on September 24th 2006 and the new year (2007) starts on September 25th 2006. I was thinking that using the strtotime() would get

[PHP] Re: menu Q

2006-02-17 Thread Rafael
I use Fx 1.5.0.1 and Opera 9-prev2 and everything seems to be Ok. The select it's inside a form, and my guess is that you haven't set any padding/margin for that form, so try adding something like FORM { padding: 0; margin: 0; } By the way, this questions should not be here,

Re: [PHP] Last Sunday in September?

2006-02-17 Thread tg-php
There's going to be 'tighter' and more efficient ways to do this.. probably some using strtotime(). I have an irrational distrust of the results from strtotime() though, so I use it sparingly. Here's a simple solution though: ?php // Designate month $month = 2; // Designate year $year

Re: [PHP] ! in front of a variable?

2006-02-17 Thread tg-php
Ooops.. I made the same mistake in my private reply.. hah.. = = = Original message = = = I took me a little while to notice that it wasn't a function declaration :p ~It's just as Jay said, it's calling function with those arguments, where '!$var2' extends to '!(bool)$var2' or treat/cast this

RE: [PHP] Last Sunday in September?

2006-02-17 Thread Shaunak Kashyap
$currentTS = strtotime(now); $currentYear = date(Y); $nextYear = $currentYear + 1; $lastSundayInSepCurrentYearTS = strtotime(last Sunday, strtotime(10/1/$currentYear)); $firstDayNextYearTS = strtotime(1/1/$nextYear); // // So your psuedocode becomes... // if (($currentTS

[PHP] Problem with HUGE floating values and fmod

2006-02-17 Thread Marco Almeida
Hi there, I'm trying to calculate check digits for a payment system, using the ISO 7064 (MOD 97-10) algorithm, wich is, already translated to PHP: $check=98-fmod(($num*100),97); Where $num is a huge number... Example: 90150123123400043211 should have check digit 51 In windows calculator: 98 -

Re: [PHP] HN CAPTCHA at http://www.phpclasses.org

2006-02-17 Thread tedd
Manuel: Your points are well taken. A good CAPTCHA must be fuzzy. If you know other fuzzy CAPTCHA besides these, it may help to sharing that knowledge. The CAPTCHA I was primarily referring to was the image one -- however, it's just another barrier. I am sure there are all sorts of ways

RE: [PHP] ! in front of a variable?

2006-02-17 Thread Jeff McKeon
Ok, the variable is boolean and that does make sense. Thanks for all the replies. Jeff -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] What does a ? represent

2006-02-17 Thread Shaunak Kashyap
I'm not sure if these completely answer your question but they might get you started: http://dev.mysql.com/doc/refman/4.1/en/mysql-stmt-prepare.html http://dev.mysql.com/doc/refman/4.1/en/mysql-stmt-execute.html Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd.,

Re: [PHP] What does a ? represent

2006-02-17 Thread tg-php
It's usually used as a single character wildcard. So something = ? would match A, B, 1, etc.. but not AB, A1. -TG = = = Original message = = = In the some code I'm working with I see many database queries using the PEAR DB class where ? is used for a value in the SQL. What is the rule for

Re: [PHP] Problem with HUGE floating values and fmod

2006-02-17 Thread Curt Zirzow
On Fri, Feb 17, 2006 at 06:48:13PM -, Marco Almeida wrote: Hi there, I'm trying to calculate check digits for a payment system, using the ISO 7064 (MOD 97-10) algorithm, wich is, already translated to PHP: $check=98-fmod(($num*100),97); Where $num is a huge number... Example:

[PHP] URL problem

2006-02-17 Thread Jesús Alain Rodríguez Santos
I have a following directory: - folder (site) index.php - folder (example) index.php the url to this directory will be: http://www.example.com/site/index.php but I need redirect with: header() function to the index.php inside the folder example without the url change I mean, I want to

RE: [PHP] URL problem

2006-02-17 Thread Shaunak Kashyap
If you are in a *nix environment, make a symlink from site_folder/index.php - site_folder/example_folder/index.php and that should do it. Shaunak Kashyap Senior Web Developer WPT Enterprises, Inc. 5700 Wilshire Blvd., Suite 350 Los Angeles, CA 90036 Main: 323.330.9900

Re: [PHP] What does a ? represent

2006-02-17 Thread Satyam
Not is SQL, the single character wildcard is the underscore. In SQL the ? is usually used for argument replacement, much like the %s in printf. Satyam - Original Message - From: [EMAIL PROTECTED] To: php-general@lists.php.net Cc: [EMAIL PROTECTED] Sent: Friday, February 17, 2006

RE: [PHP] What does a ? represent

2006-02-17 Thread Jeff
-Original Message- From: Shaunak Kashyap [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 15:22 To: php-general@lists.php.net Subject: RE: [PHP] What does a ? represent I'm not sure if these completely answer your question but they might get you started:

RE: [PHP] array_map help

2006-02-17 Thread Mark Steudel
I figured out that nothing was wrong with this (other than the other things you pointed out) and that I was just uploading the wrong file to the wrong place ... oops Thanks again, Mark -Original Message- From: Jochem Maas [mailto:[EMAIL PROTECTED] Sent: Friday, February 17, 2006 9:24

[PHP] Re: Last Sunday in September?

2006-02-17 Thread Joel Leibow
Here is how I did it. ?php //total days in september $septNumberOfDays = 30; //get the day of the month for 12:00:00am on the last day of September of the current year $septLastDay = date('w', mktime(0, 0, 0, 9, $septNumberOfDays, date('Y'))); //if the last day itself isn't a sunday

[PHP] Session Locking Up

2006-02-17 Thread Ray Hauge
Hello List, I'm having an intermittent problem where the session locks up for some of my users. When the session locks up, the browser just sits there waiting for a response from the server. It seems to be random, which makes it very difficult to debug. It also seems to happen system wide,

Re: [PHP] anyone care to explain the logic behind this output ....

2006-02-17 Thread David Tulloh
(Don't you hate it when people forget to post back to the list...) The secret is actually hidden in the docs, http://php.net/manual/en/language.operators.comparison.php When comparing $a $b, you compare the first value of $a (0) to the value with the same key in $b (1). 0 1 -- true When you

[PHP] DB Error ??? help please ...

2006-02-17 Thread Mehmet Fatih Akbulut
hi all, today, i get this error frequently : A fatal error has occurred DB Error: extension not found [line 542 of /var/www/horde/kronolith/lib/Driver/sql.php] ... but php5-mysql is installed. and also i installed pear db ... what may cause this problem ? and how can i fix this ? help please ...

[PHP] Session Locking Up

2006-02-17 Thread Ray Hauge
Hello List, I'm having an intermittent problem where the session locks up for some of my users. When the session locks up, the browser just sits there waiting for a response from the server. It seems to be random, which makes it very difficult to debug. It also seems to happen system wide,

Re: [PHP] Saving a BLOB image to a file (SOLVED)

2006-02-17 Thread Gerry Danen
On 2/16/06, tedd [EMAIL PROTECTED] wrote: However, after given it some thought, I would imagine that one could get a unique generated string, create a file with that string, give the file the correct permissions, then pull the image from the dB and save, do image processing, and then reload

[PHP] Logging visitors path and presenting this to visitors

2006-02-17 Thread Peter Lauri
Hi, I am about to create a feature that will help the visitor in his/her navigation of the page. I want to store the visitors last 10 pages that was visited so that this person easily can go back to a page he was at before, without using the BACK button. I see two solutions to this, but I am

Re: [PHP] Logging visitors path and presenting this to visitors

2006-02-17 Thread Robert Cummings
On Fri, 2006-02-17 at 23:47, Peter Lauri wrote: Hi, I am about to create a feature that will help the visitor in his/her navigation of the page. I want to store the visitors last 10 pages that was visited so that this person easily can go back to a page he was at before, without using the