hello, other interesting articles to give a bird's eye view of new
features for php5
http://www.onlamp.com/pub/a/php/2004/07/15/UpgradePHP5.html
http://devzone.zend.com/node/view/id/1714
http://www.devshed.com/c/a/PHP/Whats-New-in-PHP-5/
hth.
yashesh bhatia.
On 6/26/07, Preethi <[EMAIL PROTEC
Thank you for your reply Nathan.
You are right that this method of caching is different than the two
types you have outlined below. I would not say that it is a new
method though, in fact, "pushing static files" to the server is very
common. If it weren't for the fact that this method, as I
- Original Message -
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Eric Newberry" <[EMAIL PROTECTED]>
Cc:
Sent: Tuesday, June 26, 2007 5:14 PM
Subject: Re: [PHP] PHP Brain Teasers
On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote:
I think I have to answer to this one: 'If a
Hi.
I am currently writing a script to put on my site so people can browse
other sites by using my site as a mirror therefore the contents of a
webpage would be retrieved and echoed on my site.
I am having some problems with placing my ad at the top of the page
that is echoed when a user browses
On Tue, 2007-06-26 at 17:00 -0700, Eric Newberry wrote:
> I think I have to answer to this one: 'If at first you don't succeed try,
> try again'.
Here's another one...
0 );
?>
Cheers,
Rob.
--
..
| InterJinn Application Framework - h
I think I have to answer to this one: 'If at first you don't succeed try,
try again'.
Eric
getMessage()."\n";
}
}
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Cummings wrote:
> On Wed, 2007-06-27 at 00:24 +0100, Colin Guthrie wrote:
>> Daniel Brown wrote:
>>>What the hell? Why not start a thread that can be fun and
>>> challenging for all of us. It's something I haven't seen done
>> Here's another quickie: Dead simple one!
>>
>> >
>> functio
Colin Guthrie wrote:
> Daniel Brown wrote:
>>What the hell? Why not start a thread that can be fun and
>> challenging for all of us.
>
> One more before bed:
>
> class pin
> {
> private $mVisible;
> private $mInstantiateTime;
>
> public function __construct()
> {
> $this->mInsta
Daniel Brown wrote:
>What the hell? Why not start a thread that can be fun and
> challenging for all of us.
One more before bed:
class pin
{
private $mVisible;
private $mInstantiateTime;
public function __construct()
{
$this->mInstantiateTime = floor(time() / 86400) * 86400;
On Wed, 2007-06-27 at 00:24 +0100, Colin Guthrie wrote:
> Daniel Brown wrote:
> >What the hell? Why not start a thread that can be fun and
> > challenging for all of us. It's something I haven't seen done
>
> Here's another quickie: Dead simple one!
>
>
> function x($x)
> {
> switch ($x
... if you really couldn't write it as dynamic PHP -- you could also
save it in a database.
Edward Vermillion wrote:
On Jun 26, 2007, at 3:31 PM, Crayon Shin Chan wrote:
On Wednesday 27 June 2007 03:53, Daniel Brown wrote:
On 6/26/07, Al Rider <[EMAIL PROTECTED]> wrote:
I think most sy
Daniel Brown wrote:
>What the hell? Why not start a thread that can be fun and
> challenging for all of us. It's something I haven't seen done
Here's another quickie: Dead simple one!
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Dan wrote:
> How are we going to respond to these? Should we answer or just kepe
> them to ourselves.
>
>
> SPOILER**
>
> Answer: Many a mickle makes a muckle?
SPOILER in the title is a good idea!
I was going for "Mony a mickle maks a muckle" hence the name of my
constant, but I'l
On Jun 26, 2007, at 3:31 PM, Crayon Shin Chan wrote:
On Wednesday 27 June 2007 03:53, Daniel Brown wrote:
On 6/26/07, Al Rider <[EMAIL PROTECTED]> wrote:
I think most systems have a /tmp directory above the web dir, so
outsiders can't watch it anyhow.
True, but on an unsecured box, this
On 6/26/07, Dan <[EMAIL PROTECTED]> wrote:
How are we going to respond to these? Should we answer or just kepe them to
ourselves.
SPOILER**
Answer: Many a mickle makes a muckle?
"Colin Guthrie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Daniel Brown wrote:
>>
On 6/26/07, Crayon Shin Chan <[EMAIL PROTECTED]> wrote:
On Wednesday 27 June 2007 03:53, Daniel Brown wrote:
> On 6/26/07, Al Rider <[EMAIL PROTECTED]> wrote:
> > I think most systems have a /tmp directory above the web dir, so
> > outsiders can't watch it anyhow.
>
> True, but on an unsecure
How are we going to respond to these? Should we answer or just kepe them to
ourselves.
SPOILER**
Answer: Many a mickle makes a muckle?
"Colin Guthrie" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Daniel Brown wrote:
What the hell? Why not start a thread that
Daniel Brown wrote:
>What the hell? Why not start a thread that can be fun and
> challenging for all of us.
How about this:
It's a bit more obscure ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 6/26/07, Jim Moseby <[EMAIL PROTECTED]> wrote:
> On 6/26/07, Jim Moseby <[EMAIL PROTECTED]> wrote:
> > >
> > > Jim, I didn't get any parse errors when I tested it, it just
> > > output the stuff. You're right though that is what
> they say
> > >
> >
> >
> > Bah - thwarted (again)
> On 6/26/07, Jim Moseby <[EMAIL PROTECTED]> wrote:
> > >
> > > Jim, I didn't get any parse errors when I tested it, it just
> > > output the stuff. You're right though that is what
> they say
> > >
> >
> >
> > Bah - thwarted (again) by PHP4. :(
> >
>
> How so? I didn't use any
On Wednesday 27 June 2007 03:53, Daniel Brown wrote:
> On 6/26/07, Al Rider <[EMAIL PROTECTED]> wrote:
> > I think most systems have a /tmp directory above the web dir, so
> > outsiders can't watch it anyhow.
>
> True, but on an unsecured box, this becomes possible, as Apache
> will most likely
Daniel Brown wrote:
> On 6/26/07, Jim Moseby <[EMAIL PROTECTED]> wrote:
>> >
>> > Jim, I didn't get any parse errors when I tested it, it just
>> > output the stuff. You're right though that is what they say
>> >
>>
>>
>> Bah - thwarted (again) by PHP4. :(
>>
>
>How so? I didn't
On 6/26/07, Jim Moseby <[EMAIL PROTECTED]> wrote:
>
> Jim, I didn't get any parse errors when I tested it, it just
> output the stuff. You're right though that is what they say
>
Bah - thwarted (again) by PHP4. :(
How so? I didn't use any 5th Generation-specific code
-
>
> Jim, I didn't get any parse errors when I tested it, it just
> output the stuff. You're right though that is what they say
>
Bah - thwarted (again) by PHP4. :(
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 6/26/07, Al Rider <[EMAIL PROTECTED]> wrote:
I think most systems have a /tmp directory above the web dir, so
outsiders can't watch it anyhow.
True, but on an unsecured box, this becomes possible, as Apache
will most likely be running universally as `nobody`, `httpd`,
`apache`, or `daemon
On 6/26/07, Tijnema <[EMAIL PROTECTED]> wrote:
On 6/26/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
>What the hell? Why not start a thread that can be fun and
> challenging for all of us. It's something I haven't seen done
> anywhere else yet, but I wouldn't be surprised if it has been. Let
> So here's the first one (it's simple):
>
>
> function at($level) {
> $level == 10 ? $ret = "winner" : '';
> $level == 15 ? $ret = "try" : '';
> $level == 20 ? $ret = "first" : '';
> $level == 25 ? $ret = "user" : '';
> $level == 30 ? $ret = "place" :
On 6/26/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
What the hell? Why not start a thread that can be fun and
challenging for all of us. It's something I haven't seen done
anywhere else yet, but I wouldn't be surprised if it has been. Let's
put together some names, phrases, and other stuff
On 6/26/07, Al Rider <[EMAIL PROTECTED]> wrote:
I thought that the php engine took care of deleting tmp files when the
script ended.
Thus, if his script is terminated before his code deletes the file, the
engine will insure it's deleted. Otherwise, he should use an
ignore_user_abort().
You
What the hell? Why not start a thread that can be fun and
challenging for all of us. It's something I haven't seen done
anywhere else yet, but I wouldn't be surprised if it has been. Let's
put together some names, phrases, and other stuff expressed as PHP
code and see who can come up with a
On 6/26/07, Al <[EMAIL PROTECTED]> wrote:
Would it not be better to create the file with tmpfile() and to put it in the
system /tmp dir; which, I believe, is generally not in the webspace?
The problem here, though, Al, is that it relies on the server
admin not to be lazy, and to have the box
Would it not be better to create the file with tmpfile() and to put it in the
system /tmp dir; which, I believe, is generally not in the webspace?
Daniel Brown wrote:
On 6/26/07, Marius Toma <[EMAIL PROTECTED]> wrote:
I can not believe how stupid I can be sometime.
I was trying to create
You might also consider looking at variable variables and dynamic PHP
(writing and evaluating php expressions on the fly).
http://us.php.net/variables.variable
http://us.php.net/eval
Writing the PHP to a file could be a potential security vulnerability.
Especially if this was going to go int
Mikey wrote:
Hey!
I have been looking through the docs writing test code and am going a
little bit mad trying to work this out.
Does anyone know where I can find a definitive list of DOM XML functions
that are supported in specific versions of PHP?
I write my code in Zend and it has 5.2.0,
On 6/26/07, Marius Toma <[EMAIL PROTECTED]> wrote:
I can not believe how stupid I can be sometime.
I was trying to create a file, but a file with the same name already
existed on the server - and I did not have the write permission to it,
so from here I got the error message saying that I can no
On 6/26/07, Daniel Brown <[EMAIL PROTECTED]> wrote:
On 6/26/07, Marius Toma <[EMAIL PROTECTED]> wrote:
> I can not believe how stupid I can be sometime.
>
> I was trying to create a file, but a file with the same name already
> existed on the server - and I did not have the write permission to it
On 6/26/07, Marius Toma <[EMAIL PROTECTED]> wrote:
I can not believe how stupid I can be sometime.
I was trying to create a file, but a file with the same name already
existed on the server - and I did not have the write permission to it,
so from here I got the error message saying that I can no
On 6/26/07, Marius Toma <[EMAIL PROTECTED]> wrote:
I can not believe how stupid I can be sometime.
I was trying to create a file, but a file with the same name already
existed on the server - and I did not have the write permission to it,
so from here I got the error message saying that I can no
I can not believe how stupid I can be sometime.
I was trying to create a file, but a file with the same name already
existed on the server - and I did not have the write permission to it,
so from here I got the error message saying that I can not create the
file :(
Thank for your time,
Mariu
Mikey wrote:
[EMAIL PROTECTED] wrote:
[snip]
its type is not DomNode, but DomText.
Only the 2nd child -
$NODE = $NODE->nextSibling;
has $NODE->tagName "channel".
My question is - why is the first child after "rss" DomText?
Thank you,
Iv
My guess is the whitespace between the nodes :o)
[EMAIL PROTECTED] wrote:
[snip]
its type is not DomNode, but DomText.
Only the 2nd child -
$NODE = $NODE->nextSibling;
has $NODE->tagName "channel".
My question is - why is the first child after "rss" DomText?
Thank you,
Iv
My guess is the whitespace between the nodes :o)
HTH,
Mikey
-
Hey!
I have been looking through the docs writing test code and am going a
little bit mad trying to work this out.
Does anyone know where I can find a definitive list of DOM XML functions
that are supported in specific versions of PHP?
I write my code in Zend and it has 5.2.0, so everything
These two reasons are in fact of little impact.
The real problem I have with output buffering in my web app is that it
doesn't handle .xls and .pdf files generated on the fly with PHP. Every
time the browser is going to download those kind of files it will get
corrupted.
The only solution I coul
On 26/06/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Tue, 2007-06-26 at 14:09 +0100, Stut wrote:
> Robert Cummings wrote:
> > On Tue, 2007-06-26 at 14:33 +0200, Emil Edeholt wrote:
> >> Hi!
> >>
> >> My php project would get a much cleaner code if I could set cookies
> >> anywhere in the co
if you want to spend a little i would recommend this book from php|arch
http://www.phparch.com/shop_product.php?itemid=135
-nathan
On 6/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi Preethi
> Kindly suggest me the good online tutorial for PHP5.
> Am already working on php4.
> Need
On Tue, 2007-06-26 at 14:09 +0100, Stut wrote:
> Robert Cummings wrote:
> > On Tue, 2007-06-26 at 14:33 +0200, Emil Edeholt wrote:
> >> Hi!
> >>
> >> My php project would get a much cleaner code if I could set cookies
> >> anywhere in the code. So I thought of output buffering. But I can't find
>
Robert Cummings wrote:
On Tue, 2007-06-26 at 14:33 +0200, Emil Edeholt wrote:
Hi!
My php project would get a much cleaner code if I could set cookies
anywhere in the code. So I thought of output buffering. But I can't find
any articles on the cons of output buffering. I mean it most be a reas
Thanks for your help Dave and Rob. I will start using output buffering a
lot more now.
Regards Emil
Robert Cummings wrote:
Cons of output buffering:
- tncy weency time overhead
- memory overhead since buffered content remains in memory
until flushed.
Cheers,
Rob.
-
On Tue, 2007-06-26 at 14:33 +0200, Emil Edeholt wrote:
> Hi!
>
> My php project would get a much cleaner code if I could set cookies
> anywhere in the code. So I thought of output buffering. But I can't find
> any articles on the cons of output buffering. I mean it most be a reason
> for it bei
Hi,
I just need a framework for administrating tables in a database. These are
simple add/edit/remove operations from tables.
Can you suggest a framework for this kind of job? Cause there are a lot of
tables and I hope I can find a nice tool to work with.
Thank you.
The DB ist mysql.
No, you didn't understand me clearly.
I need a framework, toolkit, class call it how you want, with wich I develop
an application that administrates the data's in the database. Something like
Smarty but more specific for what I need.
The ideea is the following:
I have 20
The DB ist mysql.
No, you didn't understand me clearly.
I need a framework, toolkit, class call it how you want, with wich I develop
an application that administrates the data's in the database. Something like
Smarty but more specific for what I need.
The ideea is the following:
I have 20 t
> Hi,
>
> I just need a framework for administrating tables in a database. These are
> simple add/edit/remove operations from tables.
>
> Can you suggest a framework for this kind of job? Cause there are a lot of
> tables and I hope I can find a nice tool to work with.
>
Look at Qcodo (http://www.
Hi!
My php project would get a much cleaner code if I could set cookies
anywhere in the code. So I thought of output buffering. But I can't find
any articles on the cons of output buffering. I mean it most be a reason
for it being off by default?
Kind Regards Emil Edeholt
--
PHP General Mai
I just need a framework for administrating tables in a database. These are
simple add/edit/remove operations from tables.
Can you suggest a framework for this kind of job? Cause there are a lot of
tables and I hope I can find a nice tool to work with.
What database are you working with? phpMyAd
Hi Preethi
> Kindly suggest me the good online tutorial for PHP5.
> Am already working on php4.
> Need to migrate from php4 to php5.
i think this is very important for OOP:
http://www.php.net/manual/en/language.oop5.php
and this one:
http://www.php.net/manual/en/language.exceptions.php
rega
BlankHi,
Need to have a kick start on PHP5.
Kindly suggest me the good online tutorial for PHP5.
Am already working on php4.
Need to migrate from php4 to php5.
Regards,
Preethi.
Extn No: 4099
Some of the greatest science comes from those unaware of established rules and
theories.
i made a mistake when i say i can solve this problem to a friend.
finally i realize it is not as simple as i appear to be.
what he ask me to do is write a simple script that, given a word.. the
script will generate a list of words combinaton
from the each character in in that word. i am tired thi
Hello all again,
Is it possible to parse animated GIFs with GD, just frame by frame?
Tijnema
--
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hello,
could somebody give me some direction here.
i am trying to build a RSS 2.0 parser using DOM. what puzzles me is the
following -
i get the XML -
$RSS_XML = file_get_contents($params['uri']);
then i instantiate a DOM object -
$RSS_DOM = new DomDocument();
then i load the XML -
$RSS_
60 matches
Mail list logo