Re: [PHP] manipulating XML via php DOM

2007-11-21 Thread Jonas Geiregat
I don't think it is valid to have an opening tag and a closing tag with nothing in between. So an initial and a final , as you recall it, should become . Second, I'm not sure I understand what you want to accomplish. From the example document you added is this the result you expect: genu

Re: [PHP] Should I put pictures into a database?

2007-11-21 Thread Jonas Geiregat
Op 21-nov-07, om 03:45 heeft Bastien Koert het volgende geschreven: Well, this was just hashed out last week, again. Its a personal thing. I am against it, having seen the slowdown and database bloat caused when this is done. I prefer a pointer to the image to be stored in the table and u

Re: [PHP] xinclude

2007-11-19 Thread Jonas Geiregat
Sorry the code works fine, just forgot the echo the output. On Mon, 2007-11-19 at 22:04 +0100, Jonas Geiregat wrote: > I've been playing with DOMDocument->xinclude but it just doesn't seem to > work for me. > > test.php: > > header('set content-ty

[PHP] xinclude

2007-11-19 Thread Jonas Geiregat
I've been playing with DOMDocument->xinclude but it just doesn't seem to work for me. test.php: preserveWhiteSpace = false; $doc->formatOutput = true; $doc->load('test.xml'); $doc->xinclude(); $doc->saveXML(); ?> test.xml: http://www.w3.org/2001/XInclude";>

Re: [PHP] general question ?

2003-02-24 Thread Jonas Geiregat
Ernest E Vogelsinger heeft geschreven: At 22:42 24.02.2003, Jonas Geiregat spoke out and said: [snip] http://kemu.ath.cx/intranet/login.phps when I press submit everything is OK it works like I want it to work but I'm not happy with the result I see

[PHP] Re: Removing URL Variables

2003-02-24 Thread Jonas Geiregat
Jim Pringle heeft geschreven: I've noticed some sites that have variables in the link (template.php?tpl=fold), but when the page is displayed, the variable is not visable in URL in the address window. How do you do this? thanks Maybe they redirect you ? -- PHP General Mailing List (http://www.p

[PHP] general question ?

2003-02-24 Thread Jonas Geiregat
http://kemu.ath.cx/intranet/login.phps when I press submit everything is OK it works like I want it to work but I'm not happy with the result I see in my url window I see this http://localhost/intranet/login.php?user=kemu&passwd=test&submit=login I don't like it that you can know the passwd is the

[PHP] mail question

2003-02-13 Thread Jonas Geiregat
is it possible to do something like mail("[EMAIL PROTECTED]","subject","hello if($a){ return andreas; }"); or what would be the best solution for this ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] mail + pdf + memory question

2002-09-29 Thread Jonas Geiregat
this is my code what I want to do is generate a pdf file(not save it on hd of server but in memory) then send it as attachement to someone $pdf = pdf_new(); pdf_open_file($pdf,""); pdf_begin_page($pdf, 595, 842); pdf

[PHP] mail + memory question

2002-09-29 Thread Jonas Geiregat
this is my code what I want to do is generate a pdf file(not save it on hd of server but in memory) then send it as attachement to someone $pdf = pdf_new(); pdf_open_file($pdf,""); pdf_begin_page($pdf, 595, 842); pdf

[PHP] pdf question

2002-09-29 Thread Jonas Geiregat
this is my code I can't save the pdf file on server cause webserver doesn't have write permission to the dir I normally wanted to be in but I just want to generate a pdf file and send it as attachement with email how can I do this by generating the pdf in memory -- PHP General Mailing List (

[PHP] Re: date question

2002-09-29 Thread Jonas Geiregat
and If I want to calculate from given date the next month like strtotime("next month") gives me the date of one month in advanced from NOW but I want to get the date one month in advanced from a given date not NOW Jonas Geiregat wrote: > I have a date ex 24/08/02 > and I nee

[PHP] date question

2002-09-29 Thread Jonas Geiregat
I have a date ex 24/08/02 and I need to see if that date is the same date as it is today (only one month later) but 5day's in advanced => that would be 24/09/02 so if(date == date now - 5) {true} else{false} how can I do this right ? -- PHP General Mail