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 -
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
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
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.
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
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?
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
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
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
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.
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 being
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.
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
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
any articles
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 to
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 code. So I thought
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
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
[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
--
PHP
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)
HTH,
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,
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 not
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 not
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,
so
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 not
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
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
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 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
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 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().
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
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, 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's
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`
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, 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
--
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 use any 5th
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 be
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
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) by PHP4. :(
Daniel Brown wrote:
What the hell? Why not start a thread that can be fun and
challenging for all of us.
How about this:
?php
define('MONY', 20);
$mickle = 0
while(++$mickle)
{
if (MONY == $mickle)
{
echo Muckle;
exit;
}
}
?
It's a bit more obscure ;)
--
PHP General
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
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 unsecured box,
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:
What
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
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'll give
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!
?php
function x($x)
{
switch ($x)
{
case 1: return 'bitten';
case 2: return 'shy';
}
}
--
... 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
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!
?php
function x($x)
{
switch ($x)
{
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;
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-mInstantiateTime =
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!
?php
function x($x)
{
I think I have to answer to this one: 'If at first you don't succeed try,
try again'.
Eric
?
function at($level) {
$level == 10 ? $ret = winner : '';
$level == 15 ? $ret = try : '';
$level == 20 ? $ret = first : '';
$level == 25 ? $ret = user : '';
$level
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...
?php
$x = rand( 1, 20 );
for( $i = 0; $i $x; $i++ );
while( --$i 0 );
?
Cheers,
Rob.
--
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
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Eric Newberry [EMAIL PROTECTED]
Cc: php-general@lists.php.net
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
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
59 matches
Mail list logo