Page 2 of 3
Posted: Sat Feb 21, 2004 6:04 pm
by Shendemiar
Phenom wrote:Wow 7 posts in a row? Is that a record?
Cough cough Edit Button
I'm sorry, i dont want to cross any rocommended guidelines, it's just that if i'v posted a topic, i want it to reach a conclusion.... So i must post to it until I or somebiody else can tell me and teh other readers whats it all about...
Edit... good for the ones who read it the first time, bad for ones who already read the start of it... Whats official recommendation to this?
(and i tend to run in very strange errors with all languages i use... cant say whats it about... I do quite complex stuff, but i'm self learned...(and it's usually not OS or outside related))
Posted: Sun Feb 22, 2004 3:20 pm
by d3ad1ysp0rk
He didn't mean edit the original post as in the text, just edit it by adding more to it instead of posting again.. and again.. etc
also, did you find anything yet?
Posted: Sun Feb 22, 2004 3:29 pm
by Shendemiar
No, i just came, but i'll let you know soon as i figure it out
Posted: Sun Feb 22, 2004 3:44 pm
by Shendemiar
When php is run, does it create a actual real file, or somekind of direct stream to the browser who requested it?
If it uses a file, then this might be somekind of fileaccess problem?
************************************
Another thing (in same post

)
If i hit stop in my browser the page is only half complete.
If i kill php.exe with taskmanager, the page comes complete.
*************************************
Ok this has become more a personal journal than a thread.... But i need to clear my thoughts somewhere

Posted: Sun Feb 22, 2004 4:11 pm
by John Cartwright
show us your updated code now...
Posted: Sun Feb 22, 2004 4:24 pm
by Shendemiar
I think i found the guilty line:
# $temp1=nations($row['to']);
That passing a null (acidently entered into database by hand made adjustments) to nations-function. Anyway shouldnt that give somekind of an error? and why the page shows as complete when php is killed?
Posted: Sun Feb 22, 2004 4:30 pm
by Shendemiar
No, its not that either...
maybe me echoeing variable containing ' s
Posted: Sun Feb 22, 2004 5:04 pm
by Shendemiar
How is it even possible the php.exe to remain as as an open process? I coud have 100 of them in my process list! They use no CPU, or have no anykind of activity.
Some server- or php settings must be wrong... Woudnt all servers be full of these "processes" if this was possible due to code-error?
Posted: Sun Feb 22, 2004 6:06 pm
by d3ad1ysp0rk
why did you make 2 topics anyways..?
and still, the only idea i have is infinite loop..
Posted: Sun Feb 22, 2004 6:13 pm
by Shendemiar
LiLpunkSkateR wrote:why did you make 2 topics anyways..?
and still, the only idea i have is infinite loop..
I wasnt sure where to put it, so i later added another one to the clientside forum. (yes a bit crossposting, sorry)
It's basicly:
Code: Select all
<?php
IF a
{
While B
{
echo's
}
}
?>
If i had infinite loop, would it show the whole page after killing the php.exe?
Posted: Sun Feb 22, 2004 6:16 pm
by John Cartwright
Yes because php runs through the server and once it is done processing then it will display the data... so if a loop is infinite it will keep on going until you manually kill it.
Posted: Sun Feb 22, 2004 6:20 pm
by Shendemiar
OK!
Other possible places i have commented out, and still had the problem, so it cant be them right?
If its loop, then this is my main suspect!
while ($row = mysql_fetch_array($haku, MYSQL_ASSOC))
So what $row actually is when it has row from query in it? And what's it when the query's lat row has been processed?
Posted: Sun Feb 22, 2004 6:26 pm
by John Cartwright
On a side note change
Code: Select all
<?php
$mailreaad=fetch_query("update users_mail set isread=1 where isread=0 and userid=$Player and gameid=$GameNumber");
?>
to
Code: Select all
<?php
$mailread=fetch_query("update users_mail set isread=1 where isread=0 and userid=$Player and gameid=$GameNumber");
?>
you mispelled $mailread
Posted: Sun Feb 22, 2004 6:29 pm
by Shendemiar
ou mispelled $mailread
Thanks.
Posted: Sun Feb 22, 2004 6:32 pm
by John Cartwright
Help me understand what exackly you want this script to do?
Some of the logic in this doesn't seem right... gimme a step by step list plz then I will probably know what's wrong