jumpenjuhosaphat Posted November 21, 2006 Share Posted November 21, 2006 Okay, so I am looking for some errors in some very sloppy PHP, and I am pretty new to PHP so this might seem like an obvious answer, but:The file file1.php includes file2.phpSo I went to look at file2.php, and it includes file1.php, isn't that an infinite loop? Link to comment https://forums.phpfreaks.com/topic/27977-include-this-and-then-include-that-includes-this-again/ Share on other sites More sharing options...
jumpenjuhosaphat Posted November 21, 2006 Author Share Posted November 21, 2006 Also, I just found another problem too, maybe you could help with. On the same site, tables seem to mysteriously disappear. I remade the missing table, and a different one dissappeared. Any help would be appreciated. Link to comment https://forums.phpfreaks.com/topic/27977-include-this-and-then-include-that-includes-this-again/#findComment-128004 Share on other sites More sharing options...
taith Posted November 21, 2006 Share Posted November 21, 2006 to kill that infinate loop use... include_once();and for that table issue, i'd need to see the code to see why... Link to comment https://forums.phpfreaks.com/topic/27977-include-this-and-then-include-that-includes-this-again/#findComment-128006 Share on other sites More sharing options...
jumpenjuhosaphat Posted November 21, 2006 Author Share Posted November 21, 2006 THere is a lot of code. To narrow it down a bit, is there a way that I could search the code for a string that could cause this to happen? If so, what string should I search for? I already tried searching for mysql_drop_db, but came up with nothing. What else should I be looking for? There are easily 50 different php scripts on this site, and I wouldn't know what script to give you. Link to comment https://forums.phpfreaks.com/topic/27977-include-this-and-then-include-that-includes-this-again/#findComment-128031 Share on other sites More sharing options...
taith Posted November 21, 2006 Share Posted November 21, 2006 its really hard to say... i'd need to see the source to troubleshoot why :-) Link to comment https://forums.phpfreaks.com/topic/27977-include-this-and-then-include-that-includes-this-again/#findComment-128034 Share on other sites More sharing options...
jumpenjuhosaphat Posted November 21, 2006 Author Share Posted November 21, 2006 The forum seems to be stopping me from posting the code. I'm gonna upload it to my server in a text file. It is just the index.php file, if you need anything else, just let me know.The file can be found at www.linkslinky.com/index.txtThanks for the help Link to comment https://forums.phpfreaks.com/topic/27977-include-this-and-then-include-that-includes-this-again/#findComment-128054 Share on other sites More sharing options...
jumpenjuhosaphat Posted November 21, 2006 Author Share Posted November 21, 2006 Well, it seems to be working now that I re made the last missing table. Hopefully I won't be back on this issue anymore. Link to comment https://forums.phpfreaks.com/topic/27977-include-this-and-then-include-that-includes-this-again/#findComment-128080 Share on other sites More sharing options...
taith Posted November 21, 2006 Share Posted November 21, 2006 good to hear :-) Link to comment https://forums.phpfreaks.com/topic/27977-include-this-and-then-include-that-includes-this-again/#findComment-128097 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.