[PHP] xml scipt not working :/

2002-08-20 Thread Pafo
anyone know why this scritp dont read all the posts..? xml file: http://www.camelotherald.com/xml/servers.xml script in action: http://www.ant.nu/test.php if u look at the script in action, it prints out the xml file, except 1 line.. the output looks like this: Relicname Relictype Relicowner

[PHP] mail and attachments

2002-08-19 Thread Pafo
i got a script that the user signs up on and send a profile to the owners email address but i want to implement a file upland and that the uploaded file should be submitted with the mail.. is this possible in php? i know its possible in cg.. regards patrick -- PHP General Mailing List (http:

[PHP] php string match problem

2002-08-18 Thread Pafo
heh,, is it just me or can anyone see whats wrong with this code... $query = "SELECT * FROM logininfo WHERE loginname = '$LOGINNAME'"; if ($result = mysql_query($query)){ while ($row = mysql_fetch_row($result)){ $temp = $row[8]; $temp2 = $LOGINNAME; if ($temp == $temp2) { <-- this d

[PHP] Re: xml and a big script

2002-08-18 Thread Pafo
this line is only for debugging: print $val located within these tags in startElement case "NAME": $da_relicname=$val;print $val;break; case "TYPE": $da_relictype=$val;break; "Pafo" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">n

[PHP] xml and a big script

2002-08-18 Thread Pafo
i was almost done with everything :) and ofcourse i find a problem with the xml parser... the parser is not collection some vital information, and i dont know why... the xmlsite is: http://www.camelotherald.com/xml/servers.xml the problem is market with a <-- : 1707 Up - <

Re: [PHP] array's

2002-08-18 Thread Pafo
now it works, thx alot :) regards patrick "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Sunday 18 August 2002 12:25, Pafo wrote: > > anyone that can find the problem..? > > description below. >

[PHP] array's

2002-08-17 Thread Pafo
anyone that can find the problem..? description below. debug '***' OUTPUT '**' i = 0; $this->i < count($this->RelicName); $this->i++) { print "$this->RelicName[$this->i] : $this->RelicType[$this->i] : $this->RelicRe

[PHP] Re: array and a class

2002-08-16 Thread Pafo
solved it thx anyway "Pafo" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > i got my nice looking class like this: > > class Relic { > var $RelicName; > var $RelicType; > var $RelicRealm; > var $Relic

[PHP] silly arrays

2002-08-16 Thread Pafo
i got a php-script like this, just to make sure that it works before i try to implement it: debug '***' OUTPUT '**' i = 0; $this->i < count($this->RelicName); $this->i++) { print "$this->RelicName[$this->i] : $this->R

[PHP] array and a class

2002-08-16 Thread Pafo
i got my nice looking class like this: RelicName : $this->RelicType : $this->RelicRealm : $this->RelicOwner"; } function CheckForPrint() { if ($this->RelicName == "" || $this->RelicType == "" || $this->RelicRealm == "" || $this->RelicOwner == "") { return false; } else { return

Re: [PHP] Re: php and classes

2002-08-16 Thread Pafo
the problem is that i dont have access to php.ini :/ on a shared webhotel :( regards patrick "Jason Wong" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Friday 16 August 2002 11:40, Pafo wrote: > > nm, now it works

[PHP] Re: php and classes

2002-08-15 Thread Pafo
nm, now it works,, forgot the silly () thx, Gurhan :) regards patrick "Pafo" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > dosent printout anything, here have a look: > http://www.ant.nu/phpclass.php > > regards &g

[PHP] Re: php and classes

2002-08-15 Thread Pafo
dosent printout anything, here have a look: http://www.ant.nu/phpclass.php regards patrick "Bogdan Stancescu" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > So what happens exactly? > > > Pafo wrote: > > i reed

[PHP] Re: Code for db connection errors

2002-08-15 Thread Pafo
why not: i think ive would have done something like that... but im not the greatest expert on php :) regards patrick "Andre Dubuc" <[EMAIL PROTECTED]> skrev i meddelandet [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Suppose, during an attempted connection to a database, an error condition >

[PHP] php and classes

2002-08-15 Thread Pafo
i reed thru my code and i noticed that it wasent readable, like Dan said in one of my other post "xml and php". so i thought, why not create afew classes to make everything look good :) i managed to make this class, but it just dosent work,, anyone got any idea why it wont work..? RelicName :

[PHP] Re: xml and php

2002-08-15 Thread Pafo
ata_handler($xml_parser, "characterData"); // print "\n"; print "\n"; print "Guild: Obliteration/Midgard\n\n"; // Open the XML file for reading $fp = fopen("http://www.camelotherald.com/xml/servers.xml","r";) or die("Error reading

[PHP] xml and php

2002-08-15 Thread Pafo
iwill rephrase my question, where can i find good xml-php links? how would you extract all information about the Guinevere server in this xmlpage, http://www.camelotherald.com/xml/servers.xml its aprox in the middle of the list, and i want all information there so i could display it on a page. r

[PHP] php and xml problem

2002-08-14 Thread Pafo
i got 2 problems with this code: ServerStatusPopulation< /TR>\n"; print "$da_server"; if ($da_type) { print "($da_type)"; } print ""; print "$da_status"; print "$da_population\n"; print "\n"; print "LastguildupdateLastcharupdate< /TR>\n"; print "$da_lastguildupdate$da_lastcharupda

[PHP] newbie question 2

2002-01-31 Thread Pafo
. how would u keep track of current number of peop on your site, and i dont mean a ordinary counter... cause in asp i would be able to do this: Number of peop on my site: <%= application("number_of_peops_on_my_site") %> regards pafo -- PHP General Mailing List (http://www

[PHP] new question

2002-01-31 Thread Pafo
-dump http://localhost/php/ppp.php > /dev/null but it dosent work, do i have to register the cronfile somewhere to make it work...? cause i want it to run this file every 5mins... is there any other way??? regards pafo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EM

[PHP] Hi - newbie questions...

2002-01-31 Thread Pafo
and the other way round? regards pafo -- 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 administrators, e-mail: [EMAIL PROTECTED]