php-general Digest 10 Jul 2006 09:49:35 -0000 Issue 4231

2006-07-10 Thread php-general-digest-help
php-general Digest 10 Jul 2006 09:49:35 - Issue 4231 Topics (messages 239223 through 239242): Re: php_mysql.dll 239223 by: João Cândido de Souza Neto 239226 by: Chris 239227 by: João Cândido de Souza Neto 239228 by: Chris 239229 by: João Cândido de

php-general Digest 11 Jul 2006 00:41:07 -0000 Issue 4232

2006-07-10 Thread php-general-digest-help
php-general Digest 11 Jul 2006 00:41:07 - Issue 4232 Topics (messages 239243 through 239279): Re: php_mysql.dll 239243 by: M. Sokolewicz 239279 by: João Cândido de Souza Neto Re: Software shopping cart 239244 by: Ma Siva Kumar string problem 239245 by:

Re: [PHP] php_mysql.dll

2006-07-10 Thread Chris
João Cândido de Souza Neto wrote: I add c:\php and c:\php\ext in path but nothing work. That wasn't the suggestion. Where is the libmysql.dll file located? -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] GD to database directly

2006-07-10 Thread Larry Garfield
On Monday 10 July 2006 09:31, Peter Lauri wrote: [snip] 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). [/snip] Is that really the case? Is this not depending on the application? :) My application will

Re: [PHP] php_mysql.dll

2006-07-10 Thread Jo�o C�ndido de Souza Neto
It's in c:\php\ext Chris [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] João Cândido de Souza Neto wrote: I add c:\php and c:\php\ext in path but nothing work. That wasn't the suggestion. Where is the libmysql.dll file located? -- Postgresql php tutorials

Re: [PHP] possible IE problem

2006-07-10 Thread Larry Garfield
This is an issue with the session not being closed properly on a redirect. IE seems to be more bothered by this than Firefox, for reasons I don't quite understand. The solution is to explicitly close the session yourself. See: http://www.php.net/manual/en/function.session-start.php#57875

[PHP] Is anyone using DBG Debugger on OS X ?

2006-07-10 Thread Graham Anderson
Has anyone successfully compiled/used DBG debugger with OS X and PHPEclipse ? I am getting pretty cryptic compile errors as I am not a unix guru. many thanks to the brighter folks who have been down this road. I have: OS X 10.4.7 PHP 5.1.4 www.entropy.ch Release 5 (Universal Binary)

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread tedd
At 11:28 AM -0700 7/10/06, Micky Hulse wrote: tedd wrote: Not as I see it. The first definition in the dictionary is seldom the only correct definition. Good point... Not to be contrary, but: What about when you are speaking in terms of computers, and specifically images? Seems like if the

RE: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread tedd
At 1:36 PM -0500 7/10/06, Jay Blanchard wrote: The other day I saw a temporary road construction sign that said Slow Men Working and it gave me pause I had the same pause when I read Slow Children Playing. I wondered if this was due to the fact that over 60 percent of our children are

Re: [PHP] arrays

2006-07-10 Thread tedd
At 3:38 PM -0400 7/10/06, Dallas Cahker wrote: Banging my head against a wall with arrays, maybe someone can help me with the answer. I have a db query that returns results from 1-100 or more. I want to put the results into an array and pull them out elsewhere. I want them to be pulled out in an

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
tedd wrote: You make a great points. As the old lady said, as she kissed the cow To each their own. :-) Sounds good to me. Like you said, things like this are very interesting. Nice site btw. I really like the simplicity of the logo, and very cool idea to make the tree change with the

[PHP] Zend Platform, is it good?

2006-07-10 Thread Chris
Hi, Have any of you used Zend Platform? Did/Do you like it? I'm trying to evaluate it for my company, and it definitely does the things I need (Session Clustering and caching) and alot of what I want (Error management, mass configuration changes), but I was hoping someone may be able to

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread tedd
At 7:29 PM -0700 7/10/06, Micky Hulse wrote: tedd wrote: You make a great points. As the old lady said, as she kissed the cow To each their own. :-) Sounds good to me. Like you said, things like this are very interesting. Nice site btw. I really like the simplicity of the logo, and very cool

[PHP] Re: string problem

2006-07-10 Thread Rafael
Well, if that's the pattern, you can search for '% and return anything between this and %'; if you can use PCRE try something like if ( preg_match('/'%(.+?)%'/X', $str, $matches) ) { echo $matches[1]; } Now, if the expression can only have: upper-case letters, numbers -, then use

[PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Hi, I have not done much Googling yet... thought I would ask here before I spend a bunch of time searching for some guidance... What would be the best function set for on-the-fly image manipulation (specifically image rotation?) Is it easily done? Possible? Worth the trouble? Any links

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Chris
Micky Hulse wrote: Hi, I have not done much Googling yet... thought I would ask here before I spend a bunch of time searching for some guidance... What would be the best function set for on-the-fly image manipulation (specifically image rotation?) Is it easily done? Possible? Worth the

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Chris wrote: It is. http://www.php.net/image There's even a function to do the rotations for you http://www.php.net/manual/en/function.imagerotate.php OMFG... I am such a schmuck! :: Bangs head on keyboard :: JK:Luhey; fdksahuioreufkjL: KHgfuidksja; fkdlsaah; lkhfkldjhsaljk

Re: [PHP] combine implode() and array_keys() to get a string of key names

2006-07-10 Thread Larry Garfield
On Friday 07 July 2006 10:03, Janet Valade wrote: Actually, it doesn't matter what the indexes are when you use implode. Implode just puts the values into a string. Here's code that will work. $field_array = array_keys($fields_form); $fields = implode(,,$field_array); $values =

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Paul Scott
On Mon, 2006-07-10 at 16:59 +1000, Chris wrote: http://www.php.net/image There's even a function to do the rotations for you http://www.php.net/manual/en/function.imagerotate.php That all depends on what you mean by image rotation. A bunch of folks define image rotation as displaying a

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread David Robley
Chris wrote: Micky Hulse wrote: Hi, I have not done much Googling yet... thought I would ask here before I spend a bunch of time searching for some guidance... What would be the best function set for on-the-fly image manipulation (specifically image rotation?) Is it easily done?

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Chris
David Robley wrote: Chris wrote: Micky Hulse wrote: Hi, I have not done much Googling yet... thought I would ask here before I spend a bunch of time searching for some guidance... What would be the best function set for on-the-fly image manipulation (specifically image rotation?) Is it

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Hi, Hehe, looks like I did not hit the hay just yet... too much geeking to do! Chris wrote: It's always interesting to see so many interpretations of the one thing :) Yeah, no doubt! I found this on AlistApart: http://www.alistapart.com/articles/randomizer/ Took me a few mins to figure out

[PHP] Software shopping cart

2006-07-10 Thread Ryan A
Hey all, While on the subject of shopping carts, (and i didnt want to hijack the other thread) can anybody recommend a shopping cart that sells ( or: to sell) software rather than material goods? Something simple, would prefer free (surprising eh?) but am open to commercial. Something simple

Re: [PHP] php_mysql.dll

2006-07-10 Thread M. Sokolewicz
although not specifically mentioned anywhere, make sure that your libmysql.dll file is *also* in the PATH of windows. If PHP misses that lib, it will bail out with the error below aswell. - tul Bagus Nugroho wrote: if windows, you may add php directory to the PATH of Windows [Environment

Re: [PHP] Software shopping cart

2006-07-10 Thread Ma Siva Kumar
On Mon July 10 2006 2:59 pm, Ryan A wrote: Hey all, While on the subject of shopping carts, (and i didnt want to hijack the other thread) can anybody recommend a shopping cart that sells ( or: to sell) software rather than material goods? Hi Ryan OS Commerce does all that you are asking

[PHP] string problem

2006-07-10 Thread weetat
Hi all , I am using PHP 4.3.2 , MYSQL database and Red Hat Entreprise OS. I have the SQL statement which store in $str variable as shown below : How to get the '%WS-X5225R%' from $str variable ? $str = SELECT DISTINCT(tbl_chassis.serial_no),tbl_card.card_model, ;

[PHP] Re: [Full-disclosure] Postfix configuration

2006-07-10 Thread nicolas figaro
Bartlomiej Szymanski a écrit : Hello, Hi I have a problem with message delivery via Postfix. I build a network, using VMware, consisting of three standalone FreeBSD machines. I named them: FREEBSD1, FREEBSD2 and FREEBSD3. do you know postfix has also a very good mailing list ? On each of

[PHP] sorry for the previous mail, mixed mailing list

2006-07-10 Thread nicolas figaro
/me really need some sleep ... N F -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] string problem

2006-07-10 Thread Jay Blanchard
[snip] I have the SQL statement which store in $str variable as shown below : How to get the '%WS-X5225R%' from $str variable ? $str = SELECT DISTINCT(tbl_chassis.serial_no),tbl_card.card_model, ; tbl_chassis.host_name,tbl_chassis.chasis_model,tbl_chassis.country,;

RE: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Jay Blanchard
[snip] If you actually want to load a different image each time, start with php.net/rand Perhaps the image names could be integer based, or you could oad the image paths into an array and use rand to select based on a numeric key. Or you could store the image paths in a mysql database and use

[PHP] Where is phpinfo getting this?

2006-07-10 Thread Robert Hicks
include_path.;C:\php5\pear .;C:\php5\pear I have PHP5 sure but it is in C:\PHP. I have looked in my ENV and I have scoured the registry and nothing comes up for php5. So where is it getting this entry? :Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Where is phpinfo getting this?

2006-07-10 Thread Brad Bonkoski
Check your include_path in your php.ini file. -Brad Robert Hicks wrote: include_path.;C:\php5\pear.;C:\php5\pear I have PHP5 sure but it is in C:\PHP. I have looked in my ENV and I have scoured the registry and nothing comes up for php5. So where is it getting this entry? :Robert

Re: [PHP] Where is phpinfo getting this?

2006-07-10 Thread Robert Hicks
I should have mentioned that in my first post. I did check the PHP.INI file and it is not in there (nor is there a mention of php5 in it). :Robert Brad Bonkoski wrote: Check your include_path in your php.ini file. -Brad Robert Hicks wrote: include_path.;C:\php5\pear.;C:\php5\pear

[PHP] Re: Where is phpinfo getting this?

2006-07-10 Thread Jo�o C�ndido de Souza Neto
I found something like this too. If you set your extension_dir to you´ll see that php will search the dynamic libraries in c:\php5. Robert Hicks [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] include_path .;C:\php5\pear .;C:\php5\pear I have PHP5 sure but it is in C:\PHP. I

RE: [PHP] Where is phpinfo getting this?

2006-07-10 Thread Ford, Mike
On 10 July 2006 14:29, Robert Hicks wrote: I should have mentioned that in my first post. I did check the PHP.INI file and it is not in there (nor is there a mention of php5 in it). Robert Brad Bonkoski wrote: Check your include_path in your php.ini file. -Brad Robert Hicks

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread tedd
That all depends on what you mean by image rotation. A bunch of folks define image rotation as displaying a set of images as a rotating slide show while others (like Chris) see it as rotating a single image on an axis (correct definition). --Paul Correct definition? Not as I see it. The first

Re: [PHP] Chnage Management in PHP aka version control?

2006-07-10 Thread tg-php
Well, I had similar problems at a previous job with SourceSafe as I'm having with CVS. I totally get and understand the concept of these systems, but they're still overly headachey to use. Maybe I DONT really get them. hah. I understand mostly how they work and the concept but it seems like

Re: [PHP] Chnage Management in PHP aka version control?

2006-07-10 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Well, I had similar problems at a previous job with SourceSafe as I'm having with CVS. I totally get and understand the concept of these systems, but they're still overly headachey to use. Maybe I DONT really get them. hah. I understand mostly how they work and

[PHP] parse error

2006-07-10 Thread Schalk
Greetings All, Please have a look at the following code: if ($numrows 1) // the member does not exist { include ($adminfolderpath./include/headeradmin.php); echo pThat email does not exist in the members list./p; echo pa href='login.php'Please login/a./p; include

[PHP] Re: Where is phpinfo getting this?

2006-07-10 Thread Robert Hicks
Okay, that is just plain wrong! Thanks though. :-) :Robert João Cândido de Souza Neto wrote: I found something like this too. If you set your extension_dir to you´ll see that php will search the dynamic libraries in c:\php5. Robert Hicks [EMAIL PROTECTED] escreveu na mensagem

Re: [PHP] parse error

2006-07-10 Thread Jochem Maas
Schalk wrote: Greetings All, Please have a look at the following code: your missing a closing brace some where - by the looks of things not in the code you sent. if ($numrows 1) // the member does not exist { include ($adminfolderpath./include/headeradmin.php); echo pThat email

Re: [PHP] parse error

2006-07-10 Thread Schalk
Thanks everyone. Jochem Maas wrote: Schalk wrote: Greetings All, Please have a look at the following code: your missing a closing brace some where - by the looks of things not in the code you sent. if ($numrows 1) // the member does not exist { include

Re: [PHP] parse error

2006-07-10 Thread Paul Novitski
At 08:11 AM 7/10/2006, Schalk wrote: I am getting the following error:* Parse error*: parse error, unexpected $ in */home/httpd/vhosts/demo.bdiverse.com/httpdocs/accessible/processlogin.php* on line *69 In my code the last line i.e. ? is marked as line 69 I don't see anything wrong with

[PHP] possible IE problem

2006-07-10 Thread Schalk
Greetings All, Now that the parse error is fixed the login script works fine in FF but in IE it does not do the redirect. Is there a reason why this code may not work in IE? Is there a better way to do this? $_SESSION['email'] = $email; $_SESSION['memberpassword'] = md5($memberpassword);

[PHP] GD to database directly

2006-07-10 Thread Peter Lauri
Best group member, I am creating images via GD and want to save them to the database. Right now I save them to the disk and then save them to the database. Is it possible to write them directly to the database and skip the middle step where I temporary write it to the hard disk? Best

RE: [PHP] GD to database directly

2006-07-10 Thread Jay Blanchard
[snip] I am creating images via GD and want to save them to the database. Right now I save them to the disk and then save them to the database. Is it possible to write them directly to the database and skip the middle step where I temporary write it to the hard disk? [/snip] 1. Do not store

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
tedd wrote: Not as I see it. The first definition in the dictionary is seldom the only correct definition. Good point... Not to be contrary, but: What about when you are speaking in terms of computers, and specifically images? Seems like if the subject is images on the computer, rotation

RE: [PHP] RE: [PHP-WIN] Dynamic HTML table sort with PHP

2006-07-10 Thread Vandegrift, Ken
Thanks for the reply - I will definitely look at the link you provided! I currently did get this working smoothly in pure PHP, but this obviously creates more overhead and a query is run on the DB everytime a column is clicked to get the sorted data back. This is for an internal app. that

RE: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Jay Blanchard
[snip] For example, I was driving down the road the other day, and I saw temporary road construction sign that said Road Const ahead. Now, my first thought was Constant as in C++. But, wait, this is not programing, this is driving, and they must mean Construction. [/snip] The other day I saw a

RE: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Jay Blanchard
[snip] Jay Blanchard wrote: The other day I saw a temporary road construction sign that said Slow Men Working and it gave me pause Reminds me of: Do you come from a land down under? Where women glow and men plunder? Can't you hear, can't you hear the thunder? You better run, you better

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Jay Blanchard wrote: While we are splitting hairs, slideshow would only be applicable if the images continued to change without page reloading. LOL, good point! Hehee. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread Micky Hulse
Jay Blanchard wrote: The other day I saw a temporary road construction sign that said Slow Men Working and it gave me pause Reminds me of: Do you come from a land down under? Where women glow and men plunder? Can't you hear, can't you hear the thunder? You better run, you better take

RE: [PHP] GD to database directly

2006-07-10 Thread Peter Lauri
[snip] 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). [/snip] Is that really the case? Is this not depending on the application? :) My application will never grow, and I can easily just change the file

[PHP] arrays

2006-07-10 Thread Dallas Cahker
Banging my head against a wall with arrays, maybe someone can help me with the answer. I have a db query that returns results from 1-100 or more. I want to put the results into an array and pull them out elsewhere. I want them to be pulled out in an orderly and expected fashion. part of

Re: [PHP] GD to database directly

2006-07-10 Thread Austin Denyer
Peter Lauri wrote: [snip] 1. Do not store images in a database, it is just a bad idea from a performance perspective (as has been covered many times heretofore). [/snip] Is that really the case? Is this not depending on the application? :) My application will never grow, and I can easily

Re: [PHP] arrays

2006-07-10 Thread Stut
Dallas Cahker wrote: Banging my head against a wall with arrays, maybe someone can help me with the answer. I have a db query that returns results from 1-100 or more. I want to put the results into an array and pull them out elsewhere. I want them to be pulled out in an orderly and expected

Re: [PHP] arrays

2006-07-10 Thread Brad Bonkoski
When loading the array you will only ever get the last record returned... so count($oarray) will always be 1? Perhaps something like this: Function $sql = ...; $ret = array(); while($row = mysql_feth_array($reault)) { array_push($ret, $row); } return $ret; then... $data = function(); $c =

Re: [PHP] arrays

2006-07-10 Thread Dallas Cahker
Both work great. Thanks On 7/10/06, Brad Bonkoski [EMAIL PROTECTED] wrote: When loading the array you will only ever get the last record returned... so count($oarray) will always be 1? Perhaps something like this: Function $sql = ...; $ret = array(); while($row =

RE: [PHP] Randomly rotate image on page load? File under: Image Manipulation

2006-07-10 Thread tedd
At 1:52 PM -0500 7/10/06, Jay Blanchard wrote: For sure. Photo Slideshow or just Slideshow makes the most sense to me. [/snip] While we are splitting hairs, slideshow would only be applicable if the images continued to change without page reloading. I'll continue to split hairs. As anyone who

Re: [PHP] php_mysql.dll

2006-07-10 Thread Jo�o C�ndido de Souza Neto
I add c:\php and c:\php\ext in path but nothing work. I hate Mr. Bill Gates. M. Sokolewicz [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] although not specifically mentioned anywhere, make sure that your libmysql.dll file is *also* in the PATH of windows. If PHP misses that