Re: [PHP] OO Docs for SQLite extension

2004-09-10 Thread Greg Donald
.php.net/sqlite -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Array inside Class

2004-09-10 Thread Greg Beaver
ne 7 results in: 2 The reasoning behind not allowing complex expressions in variable declarations is that they must be evaluated at compile time, *before* any functions, classes, or other complex structures have been parsed and therefore created, otherwise php would be either incredibly unstabl

Re: [PHP] multi dimension array

2004-09-10 Thread Greg Donald
while(). What database are you using? What do your tables look like? Where's the code you've written already if any? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Can I name a session variable using another variable?

2004-09-10 Thread Greg Beaver
x27;prevtime'][$roomname])) { // update the session subvariable, or use it } else { // create the session subvariable } Regards, Greg John Gostick wrote: Hi, I've encountered a problem I can't seem to find much reference to on the web, so I was wondering if anyone here co

Re: [PHP] PHP5 OOP

2004-09-10 Thread Greg Donald
. Overall it's long-winded and the humor is dry. Tons of useless chatter in between the information you really want. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 OOP

2004-09-10 Thread Greg Beaver
Greg Donald wrote: On Fri, 10 Sep 2004 15:09:57 -0700, Ed Lazor <[EMAIL PROTECTED]> wrote: Any recommendations on the best PHP5 OOP book to get? I have Advanced PHP Programming by George Schlossnagle. It's turning out to be a great book, but I'd like to read more on PHP5 OOP. T

Re: [PHP] Re: [Newbie Guide] For the benefit of new members

2004-09-11 Thread Greg Donald
a > semi-colon ";" and will see the problem immediately. So save yourself a lot of time and get a colorful editor like vim or editplus or something.. :) -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Class dependencies

2004-09-11 Thread Greg Beaver
assume they are there, as the user can't install your class without the presence of the others (well, they can, but it requires some monkey business and they would have to know that it failed) Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
characters "+", quotes, etc. > The form post data with "GET" method. And then I can't get correctly posted > data in my PHP script. How to "unescape" data with PHP? > > Can someone help me ? stripslashes() perhaps? -- Greg Donald http://destiney.com

Re: [PHP] multi dimension array

2004-09-13 Thread Greg Donald
y want to do a LEFT JOIN with the relevant field. SELECT * FROM dealer LEFT JOIN orders ON dealer.dealerid = order.dealerid WHERE order.status = '10' GROUP BY dealer.dealerid or something like that. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
es unicode, so you may wanna check out the multi-byte string functions: http://www.php.net/manual/en/ref.mbstring.php -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] multi dimension array

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 08:04:41 -0700 (PDT), Dan McCullough <[EMAIL PROTECTED]> wrote: > $sql = "SELECT dealer.dealerid as ddealerid, dealer.company as company, dealer.name > as name, > dealer.surname as surname, dealer.email as email, dealer.contactday as contactday, > orders.orderid > as oorderid

Re: [PHP] dynamical class variable definition

2004-09-13 Thread Greg Donald
die("bindArray() failed: array expected"); foreach($array as $k => $v){ $obj->$k = $array[$k]; } } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
uot;. Can you change it back before you decode it? Maybe with str_replace() ? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] dynamical class variable definition

2004-09-13 Thread Greg Donald
} } class Obj { var $x = 1; function Obj(){} } $o = new Obj(); $a = array(1, 2, 3); bindArray($a, $o); print_r($o); ?> Produces: obj Object ( [x] => 1 [0] => 1 [1] => 2 [2] => 3 ) You may want to prefix your key names with some text however. :) -- Gre

Re: [PHP] if syntax using multiple conditions

2004-09-13 Thread Greg Donald
)) Then > messages = "Bad filename" > filename = "" > WhichAction = 0 > End If I'd use a regular expression so as to match all those symbols with one command. Check out eregi() or maybe strstr(). -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem creating a date before 1970 on Fedora

2004-09-13 Thread Greg Donald
. A couple years ago when upgrading some web servers we found RedHat 7 had this issue, strtotime() basically didn't work and always returned -1 on 'negative' unix timestamps. I have never used Fedora but it's probably the same issue all over again. I know this isn'

[PHP] php.net code samples grey boxes

2004-09-13 Thread Greg Donald
wnloaded a couple months back looks fine but the live site seems broken. TIA.. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: whois with php

2004-09-13 Thread Greg Donald
f you have other suggestions, please tell us! I'd suggest searching freshmeat.net for "php whois". Chances are others have already invented a good wheel we can use. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: MSSQL, PHP and Linux

2004-09-13 Thread Greg Donald
/ "the Fedora Project is for developers and high-tech enthusiasts using Linux in non-critical computing environments." Sorry, I don't mean to offend.. but I see no reason to help report and fix RedHat bugs for free when they no longer offer us a free public distro that isn't bleedi

Re: [PHP] php.net code samples grey boxes

2004-09-13 Thread Greg Donald
ful php source code again. Thanks to all you guys for checking. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] usage stats

2004-09-13 Thread Greg Donald
x27;s like 3 or 4 of us at least. :) Check out netcraft.com, they seem to be the defacto standard for stuff like this. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: extended class question

2004-09-13 Thread Greg Beaver
the a class - that's what makes it private. It's a nice feature. Now we no longer need to document private variables. Users of our classes can simply ignore them and even name their own variables exactly the same way with impunity. Greg Ed Lazor wrot

Re: [PHP] replace accents

2004-09-14 Thread Greg Donald
On Tue, 14 Sep 2004 17:51:00 +0200, Diana Castillo <[EMAIL PROTECTED]> wrote: > Anyone know of any function to replace letters with accents with just the > regular letter, for instance replace á with a, > ç with c, ñ with n ? str_replace(), eregi_replace() -- Greg Donald http

Re: [PHP] mysql_connect does not connect

2004-09-14 Thread Greg Donald
works. If it doesn't then post some error messages and code for what's being tried and failing. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OK ... WHY does this work ?????

2004-09-14 Thread Greg Donald
orks) is that PHP > makes the key the same as the value if the key isn't specified. But is this > actually correct Or is there something "going on" that I don't know > about ??? Yes, that is what's happening, a simple test shows this: #!/usr/bin/php outpu

Re: [PHP] IIS 4 vulnerabilities

2004-09-15 Thread Greg Donald
rewall for a couple of games that aren't available otherwise. Other than that I find the Windows OS a very risky venture, especially when it comes to server applications. Microsoft has proven time and time again they are fairly incapable of being secure. That may change in the future

Re: [PHP] security issus

2004-09-15 Thread Greg Donald
works all right. > Has anyone experienced this before? Did I just misconfigure something? This may be of some help: http://httpd.apache.org/docs/mod/mod_dir.html -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] Checking file_exists()

2004-09-15 Thread Greg Donald
$upload_file) { > $db = mysql_connect("localhost","usr","pwd"); > mysql_select_db("imsafm",$db); > $date = date("m-d-Y, D, H:i"); > $trauma = 'imsafm/$PHP_login/$img1_name'; Variables inside single quotes don't get evaluat

Re: [PHP] jpgraph newbie

2004-09-15 Thread Greg Donald
syntax > errors, they will be displayed but this just doesn't seem to do > anything. Are you supplying it with fonts? The last time I installed JPGraph it required Arial and Arial Bold at least. Does your PHP install support the GD library? -- Greg Donald http://gdconsultant

Re: [PHP] MySQL to OO

2004-09-15 Thread Greg Donald
> a class would make it alot easier. > > Does anybody know such a project or something similar? > I just want to avoid writing to much SQL http://pear.php.net/package/DB_QueryTool -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://w

[PHP] Re: XML parser for PHP5

2004-09-15 Thread Greg Beaver
;re probably best off using XML_Serializer from PEAR, as neither simplexml nor DOM retains any useful information when serialized and unserialized. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: XML parser for PHP5

2004-09-15 Thread Greg Beaver
m as $item) { echo $item->title . ''; echo '' . $item->description . ''; } break; } ?> Of course, the full range RSS tags are available to you as object properties, and attributes as array access (like $rss['version']) Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect does not connect

2004-09-15 Thread Greg Donald
ossibilities in the manner you say. You obviously know what's best Sam.. Good luck. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Splitting 12345 -> 1,2,3,4,5

2004-09-15 Thread Greg Beaver
Michael Mao wrote: Anyone know how I can split a number into individual digits? If you want to be funky, you can try Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Splitting 12345 -> 1,2,3,4,5

2004-09-16 Thread Greg Beaver
Martin Holm wrote: Michael Mao wrote: Thanks John. Found what I'm looking for: Function str_split() to make it php4 compatible you can use this function: | if (!function_exists('str_split')) { function str_split ($str, $size = 1) { $arr = array(); for ($i = 0 ; $i < strlen($str) ; $i +=

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread Greg Donald
nt(number) | avg(number) | +---+-+ |18 | 2.3889 | +---+-+ 1 row in set (0.00 sec) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP4 readdir is_dir working incorrectly?

2004-09-16 Thread Greg Donald
> >http://www.morningstarcom.net/hosting.php Need sunglasses to view the t50.com graphics. Heh. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL query for average records per day

2004-09-16 Thread Greg Donald
+ | 2004-01-01 | 3 | 2. | | 2004-01-02 | 4 | 2.5000 | | 2004-01-03 | 4 | 3.5000 | ++---+-+ 3 rows in set (0.01 sec) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] checking multiple URL parameters

2004-09-16 Thread Greg Donald
ay ( [x] => 1 ) Array ( [x] => 1 ) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I have a PHP-CLI script which uses stdin open another PHP-CLI that uses stdin.....

2004-09-16 Thread Greg Donald
ch of PHP-CLI scripts which open other helper PHP-CLI > scripts which may be called together or apart (so includes don't work) > cat first.php second.php third.php #!/usr/bin/php #!/usr/bin/php #!/usr/bin/php > ./first.php I am first.php I am second.php I am third.php --

Re: [PHP] Novice PHP Variable/Link Question

2004-09-16 Thread Greg Donald
On Thu, 16 Sep 2004 14:54:34 -0700, revDAVE <[EMAIL PROTECTED]> wrote: > How can I use a PHP variable as the destination for a link? > > > go here > > With var...? How do I write this? > > go here -- Greg Donald http://gdconsultants.com/ http://destiney

Re: [PHP] reading from files

2004-09-17 Thread Greg Donald
gt; Thank you for any hint on that, http://php.net/fread http://php.net/fwrite -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Greg Donald
On Fri, 17 Sep 2004 13:34:18 -0700 (PDT), Matthew Sims <[EMAIL PROTECTED]> wrote: > > Check your firewall. I would but I don't have 30 minutes to spare. Too busy walking my lizard.. or something. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP Gen

Re: [PHP] mysql_connect does not connect

2004-09-17 Thread Greg Donald
o keep this dignified and stuff. :) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reading from files

2004-09-17 Thread Greg Donald
On Fri, 17 Sep 2004 15:58:04 -0500, Steve Brown <[EMAIL PROTECTED]> wrote: > I'm new here, so someone please tell me if "RTFM" is frowned upon as a > response. :) RTFA and find out :) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP

Re: [PHP] use php to download mysql table

2004-09-18 Thread Greg Donald
On Sat, 18 Sep 2004 10:13:47 -0700, AMC <[EMAIL PROTECTED]> wrote: > Does anyone have any sample code that will download a mysql table to an > excel file? http://sourceforge.net/projects/psxlsgen/ -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailin

Re: [PHP] List Etiquette

2004-09-18 Thread Greg Beaver
our reply. The main point is don't make people read stuff that is irrelevant, they don't like that. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: readdir behavior I cannot understand

2004-09-19 Thread Greg Beaver
;, but not "this $way" because $way is a variable that will be interpreted. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Converting PHP code and db schema from PostgreSQL to MySQL

2004-09-20 Thread Greg Donald
y2pg.pl does and reverse the logic. > Any link / tutorial / etc. would be highly appreciated. I recommend using ADOdb, just in case you change your mind later and want to switch databases again you'd be set: http://adodb.sourceforge.net/ -- Greg Donald http://gdconsultants.com/ h

Re: [PHP] Fork PHP script X at a time.

2004-09-20 Thread Greg Donald
l_error()); > while($data = mysql_fetch_array($res)){ > exec("/usr/local/bin/php fork.php ".$_data["id"]." > /dev/null &"); I'd write a scheduler. Insert the jobs into the database whenever they need to run. Then have a script that runs via c

[PHP] gmail accounts

2004-09-20 Thread Greg Donald
ter I do a bunch of PHP coding I start to use echo again because it's one character shorter and I'm lazy like that. What about you? -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
g every list serve member should be using, and not all email clients support very well. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: gmail accounts

2004-09-20 Thread Greg Donald
ouldn't have but one echo > statement, right? ;) You mean that bloated overkill they call Smarty? No way. eval() is good enough for me :) -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
On Mon, 20 Sep 2004 14:27:41 -0700, Rick Fletcher <[EMAIL PROTECTED]> wrote: > Greg Donald wrote: > I didn't reply to your email. The email I replied to mentioned nothing > related to PHP. Exactly.. you probably don't use a threaded email client, else you might have

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
asked that a > javascript thread be taken off list. Me neither. In fact I answer javascript questions sometimes, if I know the answer. Hard to not have webpages with at least some javascript these days. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing

Re: [PHP] Re: OT gmail accounts

2004-09-20 Thread Greg Donald
ll were given to php-general subscribers in no time flat. Imagine that. I try to be generous and people treat me like I killed someone. Whatever. BTW, RFC 1855 says 4 lines for a signature. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://

Re: [PHP] List Etiquette

2004-09-21 Thread Greg Donald
reply-to-all then edit the To: and Cc: fields as you described. GMail handles this issue just swell though. When I get duplicate emails it only shows me one of them. I've gone looking for the other email when I first noticed it happening, and it's nowhere to be found. -- Greg Dona

Re: [PHP] Image Text

2004-09-21 Thread Greg Donald
src,0,0,255); Try imagecolorresolve() instead here. > also > where can I find different fonts that I can use in > imageloadfont () Depends on your system. c:\windows\fonts /usr/share/fonts/truetype is where I've used fonts from previously. -- Greg Donald http://gdconsultants

Re: [PHP] Any idea how to automatically post to http authentication?

2004-09-21 Thread Greg Donald
ear.php.net/packages.php?catpid=11&catname=HTTP Also, you might try curl: http://pear.php.net/package/Net_Curl -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] using foreach() to capture multiple selections

2004-09-21 Thread Greg Donald
oreach($myGoals as $key => $value) { print "$value"; } print ""; ?> untested.. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] choose upload folder

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 23:05:17 +0200, Joerg P <[EMAIL PROTECTED]> wrote: > I am building a script only for local use and would like the user to > choose a specific folder on his computer, to catalogize all files in > this folder. > > How do I let the user choose this folder

Re: [PHP] shuffling an array (array generated from records in a database)

2004-09-21 Thread Greg Donald
e order by rand(); Otherwise PHP's shuffle() function may help you. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] List Etiquette

2004-09-21 Thread Greg Donald
On Wed, 22 Sep 2004 12:17:57 +0930, David Robley <[EMAIL PROTECTED]> wrote: > Go get him, troops :-0 Sorry. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Mohavi

2004-09-21 Thread Greg Donald
Anyone using this? http://mojavi.org/ If so, how do you like it? -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] accessing querystring values

2004-09-21 Thread Greg Donald
On Tue, 21 Sep 2004 20:16:50 -0700, AMC <[EMAIL PROTECTED]> wrote: > How do you access values sent to a page as part of a querystring in php? They arrive in the $_GET array in modern PHP installs. print_r($_GET); -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PH

[PHP] Re: Strange errors when PHP script called from CRON

2004-09-22 Thread Greg Beaver
isn't accessing a script at the same time as the webserver or another process? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Does PHP need another mailing list???

2004-09-22 Thread Greg Donald
On Thu, 23 Sep 2004 04:23:18 +0800, Jason Wong <[EMAIL PROTECTED]> wrote: > I suggest adding another two lists (at least), one for mysql and one for > javascript ;-) php-db exists already. I don't think anyone would subscribe to php-js, except peeps with questions. --

Re: [PHP] Does PHP need another mailing list???

2004-09-22 Thread Greg Donald
On Wed, 22 Sep 2004 15:26:01 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Three...Apache php-install should cover that. I think php-oo would be nice however. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Does PHP need another mailing list???

2004-09-22 Thread Greg Donald
On Wed, 22 Sep 2004 16:29:01 -0400, John Nichel <[EMAIL PROTECTED]> wrote: > Four...Just for flames. ;) My local Linux Users Group went the other way. They made a list serv just for n00bs. It has one rule only, no flames. -- Greg Donald http://gdconsultants.com/ http://destiney.com/

Re: [PHP] Does PHP need another mailing list???

2004-09-22 Thread Greg Donald
t people probably feel the same, I'm on php-db and it doesn't get much traffic. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Differences between echoing the output gradually or returning it.

2004-09-22 Thread Greg Donald
ceived. Which way is faster depends on what the script does more than how you output it. Try it both ways, bench it, and then you'll know for sure. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Good xml to array class?

2004-09-22 Thread Greg Beaver
sy. There's only 1 reasonable choice: http://pear.php.net/XML_Serializer Not only is the package good, it's maintained by one of the best XML coders in PHP-land. Regards, Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Good xml to array class?

2004-09-22 Thread Greg Beaver
r instance, if you're returning values through xml-rpc or soap), you will be better off with XML_Serializer. Otherwise, simplexml is truly magnificent. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mailing to hotmail

2004-09-24 Thread Greg Donald
s to blacklist maintainers asking to get removed.. What a lost cause. -- Greg Donald http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Version Controlling

2004-09-26 Thread Greg Beaver
release (especially if you use the pear installer). If you use the PEAR installer, you can also use the dependencies feature to split your code up into smaller chunks, making maintenance of large projects even simpler. use TortoiseCVS, you will never have doubts about how easy it is to use

Re: [PHP] textarea vs. type="text" data difference?

2004-10-10 Thread Greg Donald
On Sun, 10 Oct 2004 12:28:53 -0700, Sam Smith <[EMAIL PROTECTED]> wrote: > I have a form with both textarea and text type fields. > > I submit it and do some processing on identical data and get different > results. > > What's up with that. No idea since you did

Re: [PHP] php and print

2004-10-10 Thread Greg Donald
ure, echo(), print(), sprintf().. just to name a few. But what you want is javascript. Try google. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Lost in query... Trying to get output from query....

2004-10-11 Thread Greg Donald
s the file #file_name > > can anyone please assist. Does $admin_get_options_result['description'] not give you the data you need? If not, I must not be understanding your question. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP Gen

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Greg Donald
and all, but I found our production servers were running a PHP too old to use it one day last week when I tried. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Quick file_get_contents() questions...your opinion needed

2004-10-11 Thread Greg Donald
), fgets(), fclose() combination which has been available since PHP3. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] config.php

2004-10-11 Thread Greg Donald
On Mon, 11 Oct 2004 11:59:56 -0400, bigmark <[EMAIL PROTECTED]> wrote: > Is there anyway of creating a config.php file on the fly using a form. Sure. fopen() can write new files easy enough. And the data from the form submission is available via the $_POST array. -- Greg Do

Re: [PHP] Question about array_search

2004-10-11 Thread Greg Donald
key exists with isset() and compare it to the item you mean to add to the array. There lots of other ways too, possibly more overhead, but less code. For example you could just add the item to the array blindly, then run array_unique() on the array. -- Greg Donald Zend Certified Eng

Re: [PHP] creating a folder in php

2004-10-12 Thread Greg Donald
On Tue, 12 Oct 2004 13:35:13 -0500, Jay Blanchard <[EMAIL PROTECTED]> wrote: > I want an IDE that will let me speak code into it. Anyone else want > anything? I'd like a clone of myself to do my 9-5 x 5 for me. Oh yeah, and a bag of cheetos. Thanks. -- Greg Donald Zend C

[PHP] Re: PEAR status on PHP5?

2004-10-12 Thread Greg Beaver
us on this? Has anybody used PEAR and PHP5 on a production environment succesfully yet? You need to set error_reporting to E_ALL, instead of E_ALL | E_STRICT. All errors will disappear. Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] creating a folder in php

2004-10-12 Thread Greg Donald
worms are everywhere. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php and print

2004-10-12 Thread Greg Donald
Javascript was created by Netscape. Other than the name collision, they have very little to do with each other. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] general organization question

2004-10-12 Thread Greg Donald
can learn more about this, I > guess structural, stuff? The php.net manual has great code samples throughout. There are many good php related sites out there too. phpbuilder.com is a good one. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Tutorials for Maintenance of State

2004-10-12 Thread Greg Donald
sion, variables, objects, etc. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] general organization question

2004-10-12 Thread Greg Donald
vi/tutorial.htm It's way more than just templates, it's display and logic seperation, modularization, filter chains, the works. In fact we use Smarty as the template rendering engine for Mojavi: http://smarty.php.net It'll make a small project seem huge in no time flat, but that&#x

Re: [PHP] time

2004-10-13 Thread Greg Donald
e why you need to store the time in MySQL at all. If the mail needs to go every 24 hours, it seems more like a job for cron. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installing PHP 5.0.2 on Fedora Core 2

2004-10-13 Thread Greg Donald
e, it is not there. Is Apache > installed by default without using --enable-so ? > > If so, what can I do? Search the mailing list archives, a very similar if not exact issue was discussed just last week: http://marc.theaimsgroup.com/?l=php-general -- Greg Donald Zend Certified Eng

Re: [PHP] hy problems with php 5.01 installation !

2004-10-13 Thread Greg Donald
just phpinfo(); ) in the web page apears > just the code of the test.php !!! > > When i try to install as module i have no error ! > > Thankyou , ! You missed a step somewhere! Try, try again! http://www.php.net/manual/en/install.windows.apache2.php ! -- Greg

Re: [PHP] Determine variable with the lowest value?

2004-10-13 Thread Greg Donald
On Wed, 13 Oct 2004 17:19:28 -0500, BOOT <[EMAIL PROTECTED]> wrote: > the code should determine that $a and $b have the lowest value, and randomly > pick one of them. if $a was = 1 instead then it would just pick $a > > Thanks for any suggestions! Use an array. -- Greg Don

Re: [PHP] PHP 5 compile time configure options

2004-10-14 Thread Greg Donald
e options at compile time as well as documentation and > what they do? ./configure --help -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread Greg Donald
e this: > > Whose turn is it to take out the garbage? > > Mike has done it 3 times > Bob has done it 2 times > Jane has done it 5 times > etc... > > Therefore its Bob's turn. $a = array(3 => 'Mike', 2 => 'Bob', 5 => 'Jane&#x

Re: [PHP] dbm choices - advice?

2004-10-14 Thread Greg Donald
o push my query results into, but I would > love to make it faster if possible. Am I hopelessly misguided? > > I would love any feedback! Sounds like you want views and functions. Postgres has those. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destine

Re: [PHP] User Defined Forms

2004-10-14 Thread Greg Donald
lution I have thought of is to have each user > create a set of PDF forms when they sign up and each time they fill one in > they upload it to the server for storage. > > I would be most grateful for anyone's input on this before I dive in head > first! -- Greg Donald

Re: [PHP] new connection with pg_pconnect

2004-10-14 Thread Greg Donald
s you have to create a new (2nd) connection, since the database is selected when the connection occurs. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Referring Page

2004-10-14 Thread Greg Donald
guise of privacy, Norton Personal Firewall for example. -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >