Re: [PHP] PHP Web Hosting

2004-04-19 Thread Greg Donald
be > mistaken and there may still be someone out there using 900baud. ;) You missed the point. But that's ok, I fixed the issue on my end. :0 * ^From:.*kegworks.com.* /dev/null -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Web Hosting

2004-04-20 Thread Greg Donald
stserve was for PHP discussion, not bogging up everyone's mailbox with uninteresting bits. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making an app unviewable during system maintainance

2004-04-20 Thread Greg Donald
be down near that > time. Without causing too many if statements what is the best way to do > this ? Get another server, setup replication, and do backups off the slave, virtually no downtime then. Otherwise make a site-down page and cron it's swap out schedule with your backups schedule.

[PHP] Re: PHP5 - instanceof

2004-05-13 Thread Greg Beaver
an instance of A without instantiating it? Thanks Martin Hi Martin, Reflection is your friend. Greg -- phpDocumentor http://www.phpdoc.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] eval() with CONSTANTS

2004-05-20 Thread Greg Donald
at looks like: instead of the desired Any ideas? I've google'd, and read lots of docs today trying to figure it out but I don't know what else to try. TIA. -- Greg Donald [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: CONSTANTS and good coding practice

2004-05-21 Thread Greg Donald
ows about all your CONSTANTS, but eval() doesn't. I made this little function so I could use defined CONSTANTS in HTML templates that get eval()'d. function makeConstants() { foreach(get_defined_constants() as $k=>$v) $GLOBALS[$k] = $v; } -- Greg Donald [EMAIL PROTECTED] -- PH

Re: [PHP] Self Testing PHP Code... Is it possible or practical??

2004-05-27 Thread Greg Donald
testing php > out there. Thanks for any pointers, ideas, advice or help you may have. You can use assert() for simple debugging. http://php.net/assert There's also PHPUnit2 for bigger stuff. http://pear.php.net/package/PHPUnit2 -- Greg Donald http://destiney.com/ -- PHP Genera

Re: [PHP] Just Testing

2004-06-15 Thread Greg Donald
On Tue, 15 Jun 2004 19:21:39 -0400, Michael Lauzon <[EMAIL PROTECTED]> wrote: > I am just testing, so that I can create a filter. Or a label rather? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] index.php not loading up

2004-06-16 Thread Greg Donald
27;re using. Mine are in /var/log/apache for example. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search Sanitization

2004-06-16 Thread Greg Donald
sset($_POST) ? array_map("slashes", $_POST) : array(); $_COOKIE = isset($_COOKIE) ? array_map("slashes", $_COOKIE) : array(); } function slashes($var){ if(is_array($var)) return array_map("slashes", $var); else return addslashes($var); } -- Gre

Re: [PHP] Just Testing

2004-06-16 Thread Greg Donald
ng a test message can get you practically beheaded on some lists, lkml for example. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Search Sanitization

2004-06-16 Thread Greg Donald
On Wed, 16 Jun 2004 16:10:10 -0400, Gabe <[EMAIL PROTECTED]> wrote: > > Hi Greg, I was looking at your function and I was wondering if you could > explain how the slashes function works exactly. It looks like it is > recursive, but I don't understand why you would need

Re: [PHP] Re: is there any application ,

2004-06-20 Thread Greg Donald
ache server was distributed with that. People seem to be doing all sorts of things with PHP lately. I've made a couple little php-gtk apps, it's pretty simple and the run really fast too. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Mysql fetch_row()

2004-06-20 Thread Greg Donald
y but I find I rarely need it as I usually already know the field names and the primary keys of all my tables. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include question

2004-06-21 Thread Greg Donald
> } else { >echo "action asked for is not specified"; > } > } else { > echo "action is not specified"; > } > ?> Looks like it would work to me. You might try function_exists() to help track down the problem. Probably a typo or mispelled function name. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] include_path problem in executing program from root folder

2004-06-21 Thread Greg Donald
and > the program executes. The include_path has "." folder in it. > > What could possibly be the problem with executing the program from the /www > folder? Make the include call to db_mysql.inc a full path. Cron isn't aware of much at all as far as system paths. ../ won

Re: [PHP] Sorting a large text string alphabetically

2004-06-21 Thread Greg Donald
y or object > in /var/www/html/list.php on line 236 > > Warning: Variable passed to each() is not an array or object in > /var/www/html/list.php on line 237 > > What am I doing wrong? foreach($names as $key => $names){ You are reusing the same variable, $names is being overwritten. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to add carriage returns??

2004-06-22 Thread Greg Donald
On Wed, 23 Jun 2004 00:47:23 -0500, Brent Clements <[EMAIL PROTECTED]> wrote: > > How do I add linefeeds every few words? php.net/wordwrap -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] OT? Getting peer reviews for an entire application

2004-06-22 Thread Greg Donald
to just make suggestions for general code improvement. > > So, where else might I find people that are willing to give general > reviews of code? Release it on Freshmeat.net. The reviews (and bug reports) will arrive shortly. You can also do all sorts of developer networking on Sourcef

Re: [PHP] printing out messages while processing a file

2004-06-22 Thread Greg Donald
/stdout', 'w'); fwrite($stdout, "status message goes here\r\n"); Why would you want to print tags in a console? The console isn't HTML aware. You probably just want \r\n as line delimiters. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Handling Code Continuation

2004-06-25 Thread Greg Donald
: > function input($type,$size,$name,$value) > { > return ">> > name=\"$name\">"; > } function input($type,$size,$name,$value) { return << EOF; } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Online Users

2004-07-02 Thread Greg Donald
ably already setting some kind of userID or userName, so make that a session variable if it is not already. Then it's just a matter of listing the userNames or userIDs out of the userSessions table. You might want to force session garbage collection at the top of each script by calling sessionGarbageCollection(). That will make the username listings more realtime. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google question

2004-07-14 Thread Greg Donald
this sort of query. http://www.google.com/apis/index.html -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google question

2004-07-14 Thread Greg Donald
he kit, simply unzip it and open the file "README.txt" to get started." on: http://www.google.com/apis/download.html Plus you can search the web for free sample PHP scripts people made for use with the Google API. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Greg Donald
a result of that. Any thoughts on this? What would be interesting is if a group picked up PHP4 and kept going with it in spite of the end of life announcement a few weeks back. I wonder if the PHP license would allow such a thing. How open is it exactly? -- Greg Donald http://destiney.com/

Re: [PHP] Building Web Site with Member Area in PHP (and MySQL) - Howto

2007-08-28 Thread Greg Donald
On 8/28/07, Jay Blanchard <[EMAIL PROTECTED]> wrote: > Google is your friend > http://www.google.com/search?hl=en&q=PHP+MySQL+login Everyone knows that already, even Google. http://www.google.com/search?q=google+is+your+friend -- Greg Donald http://destiney.com/ -- PHP Gene

[PHP] PHP Developer Required

2007-08-31 Thread Greg Gay
Title: Web Applications Developer Open August 30, 2007, Closing September 14, 2007 Formal Education: University Degree in computer science/engineering or related discipline Employer: University of Toronto, Faculty of Information Studies, Adaptive Technology Resource Centre, Description: Under

Re: [PHP] Dealing with auto-increment in MySQL

2007-09-03 Thread Greg Donald
t see that it matters, especially if you use unsigned ints for maximum range. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[Fwd: Re: [PHP] PHP Developer Required]

2007-09-04 Thread Greg Gay
in that rate, so that's a rather poor comparison. How much do you think he really makes an hour, after paying expenses out of that $99? And of course 4% isn't a bonus. Contract workers are paid that weekly, while staff accumulate it so they can take holidays and get paid. greg Robert Cumm

Re: [PHP] urldecode & header

2007-09-04 Thread Greg Donald
#x27; ] ) ? urldecode( $_REQUEST[ 'msg' ] ) : ''; At this point you can mangle $msg however you like and send it somewhere else with another header() call. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Command line socket server and SSL

2007-09-04 Thread Greg Donald
On Tue, 4 Sep 2007, Paul wrote: > > Which part do you need help with? The SSL part or the command line or the > > port or ... ? > > > > http://www.php.net/openssl > > http://www.php.net/sockets > > > I am familiar with the above links. What I cannot locate is anything that > indicates that a cmd li

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Greg Gay
&task=blogcategory&id=26&Itemid=109 greg mlists wrote: >A university, which hypes the need for an education, charges a fortune >for it (causing people to go into massive debt to get it), and then >turns around an offers less than a living wage is hypocritical. > >"Bec

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Greg Gay
Dan Shirah wrote: >My only question is.is that $50,000 Canadian dollars or American? :) > > > It's in Canadian dollars. Though there's not much difference between Canadian and American dollars any more. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [Fwd: Re: [PHP] PHP Developer Required]

2007-09-05 Thread Greg Maruszeczka
On Wed, 5 Sep 2007 14:35:10 -0400 "Daniel Brown" <[EMAIL PROTECTED]> wrote: > On 9/5/07, Robert Cummings <[EMAIL PROTECTED]> wrote: > > Well $2,500 is $2,500... no arguing that. But 6 years ago you'd have > > gotten about $40,000 and that certainly made a BIG difference :) > > Here, here. >

Re: [PHP] Command line socket server and SSL

2007-09-05 Thread Greg Donald
n run.. and with much better performance. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Command line socket server and SSL

2007-09-05 Thread Greg Donald
7;s not every day someone wants to use php with openssl but omit the web server component. > Do you have anything to offer in answer to my question to the list that > actually might help? Have you tried using the openssl s_server directly? -- Greg Donald Cyberfusion Consulting h

Re: [PHP] Buxa Coding Guidelines

2007-09-08 Thread Greg Donald
On Sun, 9 Sep 2007, magoo wrote: > Just wanted to see what you think of the strictness of Buxa, according to > their PHP guidelines: > http://www.buxaprojects.com/en/php_coding_guidelines.htm > > In their oppinion stuff like the short PHP init " ?>" is forbidden. > Do you people code that strict?

Re: [PHP] Buxa Coding Guidelines

2007-09-09 Thread Greg Donald
On Sat, 8 Sep 2007, mike wrote: > although handing off to a templating engine/presentation layer would > be even better of course. eval() is my favorite templating engine. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.p

Re: [PHP] Public Announcement

2007-09-11 Thread Greg Donald
those of the Apache mod_rewrite variety. http://wiki.codemongers.com/NginxHttpRewriteModule -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Publxic Announcement

2007-09-12 Thread Greg Donald
of our time? If its not then it's nothing > to me. It is written by some very smart Russians.. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Getting line count of a text file

2007-09-12 Thread Greg Donald
m currently remains a secret, but without a doubt, someday someone _will_ crack it. I personally hope this occurs before the renaming of PHP to Java. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Getting line count of a text file

2007-09-13 Thread Greg Donald
quired me to have > subtle differences based upon the underlying platform, i'm pretty sure > php would/can as well the assumption here, is that you're getting > into complex stuff.. I haven't made any assumptions. Seems the other way around entirely. -- Greg Dona

Re: [PHP] GD Library

2007-09-13 Thread Greg Donald
#x27;t totally outdated. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $ SERVER["REQUEST URI"] includes domain unexpectedly

2007-09-15 Thread Greg Donald
urns the domain: > > $_SERVER["REQUEST_URI"] = "/full-domain-name.com/some-html-file.html" basename() will assist you in getting the last part of the $_SERVER['REQUEST_URI'] path.. seems like that's what you're after. http://php.net/basename -- Greg

Re: [PHP] split in to multiple pages (I think)

2007-09-15 Thread Greg Donald
le in your SQL as part of your offset/limit parameters. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date weirdness

2007-09-18 Thread Greg Donald
I have extracted a small portion of a calendar application I developed recently to show some strange behavior with the date() function. When I run this I get duplicate dates occasionally down the list. I'm seeing 11/4 twice for example. Sometimes dates are missing from the list. The results ch

Re: [PHP] Beginner Tutorials for using CLASSES in PHP4

2007-09-29 Thread Greg Maruszeczka
t be wanting some direction on things like ORM and database abstraction. Have you looked into what some of the PHP-based frameworks are doing in this regard? I know they're PHP5-only but studying projects like Symfony and the new Zend Framework have really helped my understanding quite a bit. Of c

Re: [PHP] How can i only fetch a (rss/atom) feed when it's changed?

2007-10-03 Thread Greg Donald
On Wed, 3 Oct 2007, Mark wrote: > I'm currently fetching feeds about every hour (automatically in php) > but sometimes there are no new updates in a feed for 2 hours. so no i > wonder if it's possible to check the feed somehow to see if it changed > since i last fetched it and if it's the case than

Re: [PHP] Re: the opposite of a join?

2007-10-03 Thread Greg Donald
On Wed, 3 Oct 2007, Robert Cummings wrote: > I'd use the left join whenever available. Similarly, I design for the left join whenever possible. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscrib

Re: [PHP] combining 2 arrays

2007-10-16 Thread Greg Donald
On Tue, 16 Oct 2007, Paul Scott wrote: > You could try something like: > > $result[] = $arrayDB1; > $result[] .= $arrayDB2; That .= doesn't do what you think it does when used with arrays. -- Greg Donald Cyberfusion Consulting http://cyberfusionconsulting.com/ -- PHP Gen

Re: [PHP] Re: newbie questions

2007-10-21 Thread Greg Donald
AYED ? Like MySQL does: http://dev.mysql.com/doc/refman/5.0/en/insert-delayed.html -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Securing PHP

2007-10-22 Thread Greg Donald
On 10/22/07, Philip Thompson <[EMAIL PROTECTED]> wrote: > One resource: http://phpsec.org/ I find it very helpful to look at the actual exploits and understand why they work: http://www.securityfocus.com/swsearch?metaname=alldoc&query=php -- Greg Donald http://destiney.com/ --

Re: [PHP] problem with foreach

2007-10-22 Thread Greg Donald
to keep error What warning/notice? What other problems? > reporting on, you can just use an @ to suppress that error. Errors should be handled not suppressed. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ldap_bind() issue

2008-01-11 Thread Greg Donald
or how it's talking to the OpenLDAP libs.. but what exactly is the mystery. ldap_bind()'s "Error unknown" message isn't very helpful. Meanwhile another project of mine, on that same server, uses ruby-ldap and works just fine. > Or did you sanitize this before you posted?

[PHP] ldap_bind() issue

2008-01-11 Thread Greg Donald
ran ldconfig after installing the above libraries and they seem to be found with no problems during configuration and compilation. Any idea what might be the problem or what else I can try? I've already tried everything Google has to offer on the issue and am still stuck. Thanks, -- 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-compiling PHP on Mac OS X

2008-01-23 Thread Greg Donald
version. Or a third option, supply the missing dependencies Entropy wants. You will find most all of them in Macports. `port search xml|grep lib` shows a lot of results. Here's how I built mine the day I blog'd it: http://destiney.com/blog/php-4-5-macos-x -- Greg Donald http://destiney.c

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
nces in web development technology to focus on elsewhere. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
t is particularly interesting, especially if your into meta-languages or language creation in general. http://destiney.com/blog/play-with-perl6-mac-os-x-leopard -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
don't like it ;) It's opinionated software and is certainly not for everyone. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
r tasks. The syntax is a lot smaller which makes it a lot faster than XML. Perfect example of an advance in web technology. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
it like Perl's CPAN if you're familiar. There are also plugins, engines, and components depending on the level of integration you want the vendor code to have. 6) Model validations extend into the view. No re-mapping of variables like with Smarty or some others I've tried. 7) The R

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
password: > Perfect example of an advance in web technology. > perfect example of something that doesnt make much difference. The time saved writing Yaml instead of XML makes a huge difference to me. Similar savings are to be had when comparing PHP to most anything except Java.

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
ritten in Ruby not some silly contrivance like XML. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On Jan 30, 2008 12:40 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > java is awesome, it just hasnt worked out for me career wise. If you like Java then stick with PHP as that's where the syntax is clearly headed: http://www.php.net/~helly/php/ext/spl/ -- Greg Donald http:

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 2:38 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > If you like Java then stick with PHP as that's where the syntax is > > clearly headed: > > > > http://www.php.net/~helly/php/ext/s

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
On 1/30/08, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > On Jan 30, 2008 2:55 PM, Greg Donald <[EMAIL PROTECTED]> wrote: > > If you only need to test data integrity then it seems good enough. I > > would argue that being able to test xhr requests is a basic > >

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
'ruby' > 'php' => true It's like having a shell built directly into the language. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
etty_print_instance_variables", "private_methods", "protected_methods", "public_methods", "push", "rassoc", "reject", "reject!", "replace", "require", "respond_to?", "reverse", "reverse!", "reverse_each", "ri", "rindex", "select", "send", "shift", "singleton_methods", "size", "slice", "slice!", "sort", "sort!", "sort_by", "taint", "tainted?", "to_a", "to_ary", "to_s", "transpose", "type", "uniq", "uniq!", "unshift", "untaint", "values_at", "zip", "|"] And since you can't see it I will also mention that IRB has beautiful syntax highlighting. > however, ive never heard of an extension whereby the debugger > drops you into a 'php -a' session. > > and btw. php does have pecl and pear, these are both modular Every time I ever went to the PEAR site I played a game of 'how many times do I have to click before I dig down deep enough to realize the docs aren't really there'. Meanwhile every gem you install with Ruby has an rdoc package with complete api docs for the gem. You just fire up your local `gem server` and browse to http://localhost:8808/ to view complete api docs, offline or on. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first php 5 class

2008-01-30 Thread Greg Donald
gems are. When you install a gem the docs are created by rdoc for you on the fly using the gem's Ruby code itself. As a result you can't not get current api docs when you install a gem. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] first php 5 class

2008-01-31 Thread Greg Donald
On Jan 30, 2008 7:21 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Greg's my hero of the day - even if he has been banging the Ruby drum on > the PHP Stage half the night ;-) PHP is a great language. I don't plan to stop using it anytime soon. -- Greg Donald http://

Re: [PHP] Pass Variable Names to a Function

2008-02-01 Thread Greg Donald
x27;'; > } >} > > And I would call the function with set_var($name) or set_var($phone). > The problem is getting the function to use $var as a variable name, > rather than a value. What am I missing, please? "" means interpolate the contents. '' mea

Re: [PHP] array iteration vs. ArrayIterator

2008-02-01 Thread Greg Donald
ot;wordy, java-like syntax" only. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PEAR website and MSIE 6

2008-02-01 Thread Greg Donald
On Jan 31, 2008 7:04 AM, Eric Butera <[EMAIL PROTECTED]> wrote: > IE8 passes Acid2. :) They make a salve for that I heard. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Calling All Opinionated ******** ....

2008-02-01 Thread Greg Donald
27;m in the market for a new framework, but please only tell me about ZF because I don't want to spend my own time researching stuff for myself." Since when is learning something new a crime? Why are you even a programmer? ZF works fine if you don't mind all the bloated OO

Re: [PHP] New search related question

2008-02-04 Thread Greg Donald
On 2/4/08, Jason Pruim <[EMAIL PROTECTED]> wrote: > Is there anything wrong with the way I'm thinking? Or is it that there > is a better way to search through a static HTML site? http://www.htdig.org/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http:/

Re: [PHP] Re: New search related question

2008-02-04 Thread Greg Donald
t the logic for you. Q. If grep was the best search tool then why did slocate get invented? A. Indexes. A MySQL index doesn't go away in between requests. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Recommended ORM for PHP

2008-02-06 Thread Greg Donald
iveRecord caches the fields query in production. A one-time query to discover the field types is not a performance hit. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Source code protection

2008-02-06 Thread Greg Donald
On 2/6/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > There's the Zend Encoder at www.zend.com. Though it may be called > something else now. Pointless. http://www.phprecovery.com/ -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] PHP Source code protection

2008-02-06 Thread Greg Donald
On 2/6/08, Greg Donald <[EMAIL PROTECTED]> wrote: > On 2/6/08, Richard Heyes <[EMAIL PROTECTED]> wrote: > > There's the Zend Encoder at www.zend.com. Though it may be called > > something else now. > > Pointless. > > http://www.phprecovery.com/ http://w

Re: [PHP] shopping carts

2008-02-06 Thread Greg Donald
On 2/6/08, nihilism machine <[EMAIL PROTECTED]> wrote: > that does not help, none specify whether they have a custom fields > option or not. "Wah.. why won't anyone do my research for me?" -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://w

Re: [PHP] Recommended ORM for PHP

2008-02-07 Thread Greg Donald
://railsdb.org/ At this point I've successfully hooked it up to Oracle, MySQL, PostgreSQL, and SQLite. > greg, thoughts ? I like pie. Martin Fowler +1, if you're a software developer and don't own any books by him, you should. -- Greg Donald http://destiney.com/ -- PHP Gen

Re: [PHP] PHP Source code protection

2008-02-07 Thread Greg Donald
meone wants to reverse code that you have put in their possession, they will find a way. Deductive reasoning leads to two possible options: 1) Don't give the code to anyone. 2) Give the code to the client and accept the fact that it may get pirated. -- Greg Donald http://destiney.com/ --

Re: [PHP] PHP Source code protection

2008-02-07 Thread Greg Donald
On 2/7/08, Daniel Brown <[EMAIL PROTECTED]> wrote: > Actually, Greg, I respectfully disagree. First, just because > there may be ways to reverse-engineer things doesn't mean it's a bad > idea to attempt to protect your code against such. Why would you encode to start

Re: [PHP] PHP program to download sites

2008-02-07 Thread Greg Donald
ent.. so you don't download the whole internet. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Source code protection

2008-02-11 Thread Greg Donald
more capable than the Zend Encoder. In principle I'd at least want something that costs less than it's equivalent decoder. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
with which you are working. Additionally, they provide the opportunity > to punt anything not necessary at run-time to pre-compiled HTML. Your solution to templating is XML? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
al clients > such > as programmatic ones eg. web service clients or mobile devices. REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 3:37 PM, Nathan Nobbe <[EMAIL PROTECTED]> wrote: > well thats what xslt is, which is pretty nice. /me point Nathan to http://en.wikipedia.org/wiki/Rhetorical_question XSLT sucks, complete overkill. -- Greg Donald http://destiney.com/ -- PHP General Mailing L

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 3:32 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: > As an aside, you can save lines when debugging by doing: > > echo '' . print_r( $var, TRUE ) . ''; OMG, thanks for that. Lines are so expensive nowadays and all. -- Greg Donald http://des

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
I usually add a little function like this to my PHP projects: function debug( $var ) { echo ''; print_r( $var ); echo ''; } -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 2:57 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > I prefer content formatting encapsulation as provided by custom tags. Decorators? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On 2/12/08, Xavier de Lapeyre <[EMAIL PROTECTED]> wrote: > Do any of you guys & gurls know of a way to implement that template > system. eval() is my favorite templating engine. http://php.net/eval -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Greg Donald
On 2/18/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > cd /usr/ports/archivers/zip > make install clean zip pkg_add -r zip done. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Greg Donald
org/pub/FreeBSD/ports/i386/packages-6.1-release/Latest/zip.tbz' > by URL Works fine for me on 6.3-RELEASE. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Protected ZIP file with password

2008-02-18 Thread Greg Donald
On 2/18/08, Shawn McKenzie <[EMAIL PROTECTED]> wrote: > Sure, if you want to miss all the linker and compiler goodies :-) I'm guessing that'd be non-issue for an obviously inexperienced FreeBSD user. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http

Re: [PHP] More than one values returned?

2008-02-19 Thread Greg Donald
On 2/18/08, Robert Cummings <[EMAIL PROTECTED]> wrote: > I'd just return arrays unless I had a specific need for incurring object > overhead for such simple datatypes. w0rd. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] More than one values returned?

2008-02-19 Thread Greg Donald
it. In Ruby: def foo 1, 2 end a, b = foo In Python: def foo return 1, 2 a, b = foo In Perl: sub foo { return (1, 2); } (my $a, my $b) = foo; -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More than one values returned?

2008-02-19 Thread Greg Donald
On Feb 19, 2008 5:23 PM, Steve Edberg <[EMAIL PROTECTED]> wrote: > For completeness sake, this is pretty much the same in PHP: > > function test() { >return array(1,2); > } > > list($a,$b) = test(); Yup, just a few more keystrokes is all. -- Greg

Re: [PHP] What community software package gets your vote? PHPfox etc...

2008-02-19 Thread Greg Donald
r example: http://search.securityfocus.com/swsearch?sbm=%2F&metaname=alldoc&query=phpfox&x=0&y=0 Two exploits doesn't seem bad, but in what time span were they? Something to think about. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] More than one values returned?

2008-02-19 Thread Greg Donald
signment_%28computer_science%29#Parallel_assignment > Please read my other post which explains > the reasoning. Your "reasoning" is shit. min, max = 0, 0 is beautiful. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

<    3   4   5   6   7   8   9   10   11   12   >