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
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
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.
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
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
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
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
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
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
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
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
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
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
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
> } 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
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
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
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
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
/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
:
> 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
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
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
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 (
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/
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
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
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
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
#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
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
&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
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
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.
>
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
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
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?
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
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
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
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,
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
#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
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
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
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
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
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
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
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
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
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/
--
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
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?
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
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
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
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
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
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
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
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.
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
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:
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
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
> >
'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
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
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
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://
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
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
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
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
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:/
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
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
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
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
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
://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
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/
--
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
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
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
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
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
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
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
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
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
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://
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
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
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
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
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
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
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
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,
701 - 800 of 1454 matches
Mail list logo