RE: [PHP] Question about phpinfo() and XML

2001-01-12 Thread Moritz Petersen
grrr. XML means 'eXtended Markup Language' and is not a client side language, but a language specification - say: standard. Many 'languages' derrive this standard, such as WML, XHTML and many other data exchange file-types. XML active means, that the XML-parsing functions will work with your PHP

RE: [PHP] problem with rewind 2

2001-01-11 Thread Moritz Petersen
Jorge Inti Benites RocheThe manual says: " The file pointer must be valid, and must point to a file successfully opened by fopen(). " "file" not "url". P.S.: please no HTML-mails. -Original Message- From: Jorge Inti Benites Roche [mailto:[EMAIL PROTECTED]] Sent: Tuesday, Janua

RE: [PHP] Stripping!!!

2001-01-11 Thread Moritz Petersen
with every line do the following to get the name: $name = strtok($line, " "); Mo. > -Original Message- > From: K.Simon [mailto:[EMAIL PROTECTED]] > Sent: Thursday, January 11, 2001 1:19 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Stripping!!! > > > I have a file with 45000 newsgroups

RE: [PHP] File Uploading Security - Urgent please

2001-01-11 Thread Moritz Petersen
$userfile_type contains the MIME-type of the file. This is maybe more relieable then just the extension... Mo. > if(ereg("jpg|jpeg|gif$",$userfile_name)) > { > do something > } > else > { > this file is not allowed > } > This will check that the uploaded file has the correct extensi

[PHP] cool OOP-phenomena!

2001-01-11 Thread Moritz Petersen
Hi list, this is not a problem, but a nice feature of OOP, I found today. Maybe it is useful for someone: name . ""; } } class Basis_A extends Basis { var $name = "Basis_A"; } class Basis_B extends Basis {

RE: [PHP] constants inside of a string

2001-01-10 Thread Moritz Petersen
> how do you use defines inside of a string... > > e.g. > > define(MAX,2); > print "the max is MAX"; print "the max is " . MAX; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list a

RE: [PHP] Calling a funtion inside a function

2001-01-10 Thread Moritz Petersen
> $c = "0"; > select($c, $id); > > > function select($c, $id) { > global $name, $db; > $sql = "select * from ref_directory where parent_id = '$id'"; > $results = pg_exec($db, $sql); > if (!$result) {printf ("ERROR"); exit;} >for ($pos=0;$pos $row = pg_fetch_array

RE: [PHP] Shorter way for "each"

2001-01-10 Thread Moritz Petersen
Hey Wico, > echo implode (' ', $array); this is quite a cool idea! For example echo "" . implode("", $my_array) . ""; would save some time, printing out an select-group... Thanks a lot, also to all other people, who helped me. Mo. -- PHP General Mailing List (http://www.php.net/) To unsub

RE: [PHP] Shorter way for "each"

2001-01-10 Thread Moritz Petersen
That's it. Thank you! > -Original Message- > From: Alexander Wagner [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 10, 2001 4:17 PM > To: Php-General@Lists. Php. Net > Subject: Re: [PHP] Shorter way for "each" > > > Moritz Petersen

[PHP] Shorter way for "each"

2001-01-10 Thread Moritz Petersen
Hi, is there a shorter way to do: while (list($key, $value) = each($my_array)) { echo $value... } I just need the value! Thanks, Mo. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To conta