php-general Digest 29 Jan 2009 15:21:30 -0000 Issue 5929

2009-01-29 Thread php-general-digest-help
php-general Digest 29 Jan 2009 15:21:30 - Issue 5929 Topics (messages 287351 through 287361): Re: help with require/includes pathing frustration 287351 by: Edmund Hertle 287353 by: Daniel Brown Re: help with require/includes pathing frustration [SOLVED] 287352 by:

[PHP] PHP 5.3.0beta1

2009-01-29 Thread Johannes Schlüter
Hi, we have packaged PHP 5.3.0beta1. Source tarballs can be found at http://downloads.php.net/johannes/php-5.3.0beta1.tar.bz2 ac16e56bf6a4b37ff35d9bc061063a9 http://downloads.php.net/johannes/php-5.3.0beta1.tar.gz 71c6c06087cfa9c38567b050d00bcabf Windows binary builds on

[PHP] Rounded rectangle in php

2009-01-29 Thread Jônatas Zechim
Hi there, is it possible do make a rounded rectangle in php, i can do a ellipse, but i need a space between the corners, i need to make something like this: http://superbrush.files.wordpress.com/2008/03/086.jpg not the color and the shadows, only the form. zechim -- PHP General Mailing List

Re: [PHP] Rounded rectangle in php

2009-01-29 Thread Greg Bowser
It is certainly possible, but to my knowledge, there is no built-in method for doing so. After a quick Google, it looks like this has been done before: http://www.assemblysys.com/dataServices/php_roundedCorners.php http://us3.php.net/manual/en/function.imagefilledrectangle.php#42815 But if

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Terion Miller
Hi Guys! Well I tried the INNER JOIN and still can not get it to echo the AdminID so I know it isn't working, (what kind of things should I think about that could make it not work) so far the only query that did work and return the AdminID was my original I believe it was referred to as hosed

Re: [PHP] Rounded rectangle in php

2009-01-29 Thread tedd
At 11:36 AM -0200 1/29/09, Jônatas Zechim wrote: Hi there, is it possible do make a rounded rectangle in php, i can do a ellipse, but i need a space between the corners, i need to make something like this: http://superbrush.files.wordpress.com/2008/03/086.jpg not the color and the shadows,

RES: [PHP] Rounded rectangle in php

2009-01-29 Thread Jônatas Zechim
Hi Tedd, i cant imagine doing that pic i've show to u, follow me, I must do 4 ellipse and 1 rectangle and union all to make a rounded rectangle? My problem now is the geometry. *--* | | *--* It can be this? zechim -Mensagem original- De: tedd

Re: [PHP] Rounded rectangle in php

2009-01-29 Thread ceo
Yes, you will need four ellipses, arcs, or similar shapes -- but they'll all be the SAME except for the center, so make that a function probably. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RES: [PHP] Rounded rectangle in php

2009-01-29 Thread Jônatas Zechim
Thank u, i'll try, when I do, i'll post here. zechim -Mensagem original- De: c...@l-i-e.com [mailto:c...@l-i-e.com] Enviada em: quinta-feira, 29 de janeiro de 2009 13:52 Para: php-general@lists.php.net Assunto: Re: [PHP] Rounded rectangle in php Yes, you will need four ellipses, arcs,

Re: RES: [PHP] Rounded rectangle in php

2009-01-29 Thread Al
Jônatas Zechim wrote: Thank u, i'll try, when I do, i'll post here. zechim -Mensagem original- De: c...@l-i-e.com [mailto:c...@l-i-e.com] Enviada em: quinta-feira, 29 de janeiro de 2009 13:52 Para: php-general@lists.php.net Assunto: Re: [PHP] Rounded rectangle in php Yes, you

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Shawn McKenzie
Terion Miller wrote: Hi Guys! Well I tried the INNER JOIN and still can not get it to echo the AdminID so I know it isn't working, (what kind of things should I think about that could make it not work) so far the only query that did work and return the AdminID was my original I believe it

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Terion Miller
Hi Again Here is the query and code I tried: $sql = SELECT * FROM workorders WHERE AdminID = (SELECT AdminID FROM admin WHERE UserName = ' . mysql_real_escape_string($_SESSION['user']) . '); $result2 = mysql_query ($sql); $row2 = mysql_fetch_assoc ($result2); $printrow =

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Shawn McKenzie
Terion Miller wrote: Hi Again Here is the query and code I tried: $sql = SELECT * FROM workorders WHERE AdminID = (SELECT AdminID FROM admin WHERE UserName = ' . mysql_real_escape_string($_SESSION['user']) . '); $result2 = mysql_query ($sql); $row2 = mysql_fetch_assoc

[PHP] Switch statement Question

2009-01-29 Thread Alice Wei
Hi, I have a code snippet here as in the following: //Switch statements between the four options switch($string) { case : $string= NOT book.author='All'; break; default: $string= $string . AND NOT book.author='All'; break; } This code does work, but I am wondering if it is possible in

[PHP] Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log http://www.emdebian.org/buildd/b/base-passwd/trunk/base-passwd-arm-1221459903.log and if you look into those Build-Logs, the

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log http://www.emdebian.org/buildd/b/base-passwd/trunk/base-passwd-arm-1221459903.log and if

RE: [PHP] Switch statement Question

2009-01-29 Thread Boyd, Todd M.
-Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: Thursday, January 29, 2009 3:02 PM To: php-general@lists.php.net Subject: [PHP] Switch statement Question Hi, I have a code snippet here as in the following: //Switch statements between the four options

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Terion Miller
Well upon looking it was number 2, I had no orders in the workorder table, but here is an oddity I wonder if someone can explain if I run this simple query: $query = SELECT * FROM admin, workorders WHERE admin.UserName = '.$_SESSION['user'].' ; It returns adminID = 7 (my number is

[PHP] Re: Switch statement Question

2009-01-29 Thread Frank Stanovcak
Alice Wei aj...@alumni.iu.edu wrote in message news:snt101-w587cd616331fc59b84834af0...@phx.gbl... Hi, I have a code snippet here as in the following: //Switch statements between the four options switch($string) { case : $string= NOT book.author='All'; break; default: $string= $string . AND

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Shawn McKenzie
Terion Miller wrote: Well upon looking it was number 2, I had no orders in the workorder table, but here is an oddity I wonder if someone can explain if I run this simple query: $query = SELECT * FROM admin, workorders WHERE admin.UserName = '.$_SESSION['user'].' ; It returns

Re: [PHP] Making a Variable from different tables with Matching Dbfields?

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: Terion Miller wrote: Well upon looking it was number 2, I had no orders in the workorder table, but here is an oddity I wonder if someone can explain if I run this simple query: $query = SELECT * FROM admin, workorders WHERE admin.UserName =

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log

[PHP] Imagick-setImageFormat()

2009-01-29 Thread Philip Thompson
Hello all. I'm pretty new to Imagick. I'm merely attempting the examples on the PHP site (http://php.net/manual/en/imagick.examples-1.php), but I'm having some issues. I'm attempting the reflection of an image example and when I attempt to: $canvas-setImageFormat(png); I get an error

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Hello Shawn, Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Thanks for it, now I have an array but the |head -n 11 is ignored and my arrays have up to several 10.000

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Forgotten one thing: If I continue to process the array() with, e.g., $POS=strpos(stripcslashes($TMP_DATA['0']), :

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: Actually though, instead of exec() why not something like: $TMP_DATA = explode(\n, $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue trying! Thanks, Greetings and

[PHP] kadm5 Library

2009-01-29 Thread Tim Gustafson
Hi, I'm running PHP on a CentOS 5.2 box and I'd like to get the kadm5 library to work. The documentation says that the package is both included by default and also available as a PECL module. The functions are not available in my base install (I'm using the PHP package from the CentOS

[PHP] Re: Imagick-setImageFormat()

2009-01-29 Thread Philip Thompson
On Jan 29, 2009, at 4:20 PM, Philip Thompson wrote: Hello all. I'm pretty new to Imagick. I'm merely attempting the examples on the PHP site (http://php.net/manual/en/imagick.examples-1.php), but I'm having some issues. I'm attempting the reflection of an image example and when I attempt

[PHP] Re: Hidden costs of PHP arrays?

2009-01-29 Thread Clancy
On Wed, 28 Jan 2009 00:50:18 +, nrix...@gmail.com (Nathan Rixham) wrote: Clancy wrote: Also what the relative virtues of defining the same set of fields for every contact, as against either defining only the fields which actually hold values, as in the following examples? a:

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: Actually though, instead of exec() why not something like: $TMP_DATA = explode(\n, $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: Hello Shawn, Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Thanks for it, now I have an array but the |head -n 11 is ignored and my arrays

[PHP] MicroSlow Software (was: Re: Hidden costs of PHP arrays?)

2009-01-29 Thread Micah Gersten
Clancy wrote: One could reasonably hope that the same could be said for every part of the programming chain, but it is one of the ironies of modern computing that computers get faster and faster, memory gets cheaper and cheaper, programming appears to get simpler and simpler, yet the

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Forgotten one thing: If I continue to process the array() with, e.g.,

Re: [PHP] Switch statement Question

2009-01-29 Thread Jochem Maas
Boyd, Todd M. schreef: -Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: Thursday, January 29, 2009 3:02 PM To: php-general@lists.php.net Subject: [PHP] Switch statement Question Hi, I have a code snippet here as in the following: //Switch statements

Re: [PHP] Re: Hidden costs of PHP arrays?

2009-01-29 Thread Paul M Foster
On Fri, Jan 30, 2009 at 11:10:16AM +1100, Clancy wrote: snip As a former assembly language programmer I have some idea of the vast amount of thumb twiddling which is going on behind-the-scenes when I make some apparently simple request like the one to get my phone number. Undoubtedly most

Re: [PHP] Re: Hidden costs of PHP arrays?

2009-01-29 Thread Eric Butera
On Thu, Jan 29, 2009 at 9:02 PM, Paul M Foster pa...@quillandmouse.com wrote: On Fri, Jan 30, 2009 at 11:10:16AM +1100, Clancy wrote: snip As a former assembly language programmer I have some idea of the vast amount of thumb twiddling which is going on behind-the-scenes when I make some

[PHP] PHP Content Management

2009-01-29 Thread Jason Todd Slack-Moehrle
Hi All, I am looking for an open-sourced CMS that is PHP/MySQL based. I would like something simple to setup, but also would be good for a storefront as I want to use it for my indie business. Thoughts? -Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] PHP Content Management

2009-01-29 Thread Larry Garfield
On Friday 30 January 2009 12:16:44 am Jason Todd Slack-Moehrle wrote: Hi All, I am looking for an open-sourced CMS that is PHP/MySQL based. I would like something simple to setup, but also would be good for a storefront as I want to use it for my indie business. Thoughts? -Jason

Re: [PHP] PHP Content Management

2009-01-29 Thread Nathan Rixham
Larry Garfield wrote: On Friday 30 January 2009 12:16:44 am Jason Todd Slack-Moehrle wrote: I would like something simple to setup, http://drupal.org/ lol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Content Management

2009-01-29 Thread Kyle Terry
On Jan 29, 2009, at 11:27 PM, Nathan Rixham nrix...@gmail.com wrote: Larry Garfield wrote: On Friday 30 January 2009 12:16:44 am Jason Todd Slack-Moehrle wrote: I would like something simple to setup, http://drupal.org/ lol -- PHP General Mailing List (http://www.php.net/) To unsubscribe,