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
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:
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
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
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
-
<
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.
>
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
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
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
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
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
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
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
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
>
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 :
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
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
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
.
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
-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
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]
21 matches
Mail list logo