[PHP] xml parsing

2002-10-17 Thread Michael Ransburg
Hi! I understand that it's easily possible to parse xml documents with php. But what about changing them? With other xml parsers, I have the xml document in a structure (usually a tree or an array) and when I change something in the structure I can later "write out" the structure again into a xml

RE: [PHP] how to generate a date between 1998 and today by random?

2002-05-07 Thread Michael Ransburg
haven't tried that: use mktime to get unixtimestamps of today and of the date between 1998. create a random number between these timestamps (the random function should be capable of it, or just code yourself a little function). convert the resulting timestamp to a date using the todate() functi

RE: [PHP] Self Destruct code

2002-05-07 Thread Michael Ransburg
Too easy...the client would just have to check the code for it and he would have the code. Better get a md5'd version of the code from somewhere in the net (from your server for example) and compare it to the md5'd version of the code the client put in. But that way the client could always just

RE: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
not being allowed. I'll try to change this. thanks mike > -Original Message- > From: Jason Wong [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, May 07, 2002 12:19 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] multipart/form-data > > > On Tuesday 07 May 200

RE: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
t; On Tuesday 07 May 2002 18:01, Michael Ransburg wrote: > > Hi! > > > > Everytime I add enctype="multipart/form-data" to my tag the > > $HTTP_POST_VARS is empty. If I remove it, everything works. > I need the > > multipart/form-data because I'm doi

AW: [PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
rt/form-data%26hl%3Den%26start%3D20 %26sa%3DN (all in one line above) I did search deja before, but even as many seem to have this problem, I did not find an answer... thanks again Mike > -Ursprüngliche Nachricht- > Von: Michael Ransburg [mailto:[EMAIL PROTECTED]] > Gesendet:

[PHP] multipart/form-data

2002-05-07 Thread Michael Ransburg
Hi! Everytime I add enctype="multipart/form-data" to my tag the $HTTP_POST_VARS is empty. If I remove it, everything works. I need the multipart/form-data because I'm doing a file upload as part of my form. I'm running PHP 4.1.2. Any ideas? Thanks mike ps: Here is my core configuration: Con