Some times I get... Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 4096001 bytes) in /home/virtual/site2/fst/var/www/html/ad_network_427.php on line 18 while some times the ads do show up! The ad_network_ads_427.txt file is 90K. The bottom of the php file that I'm adding the code to looks like <P><B> <?php ini_set ("include_path", ini_get ("include_path") . ':../:../../:../../../:../../../../'); include ('ad_network_427.php'); echo $ad_network; ?> </B></center> </body> </html> <?php } } ?> Code (php): when it's added, a wiki script. Would adding eight megs of memory get rid of the error? The weird thing is that some times it works and some times it doesn't, while it always works when it comes through perl on SSI pages!
There is nothing in the ad_network PHP script that would use anywhere remotely close to that much. Maybe SSI itself is causing memory usage weirdness or something...
It was the line mentioned in the error that was causing it. Changing line 18 from $string = fread($handle, 4096000); to $string = fread($handle, 2096000); got rid of the error. I think the original number was making it try to allocate too much memory even though it didn't even need close to that much!
Hmmmm... strange. I'm going to have a look at that. I didn't think PHP allocated the full amount if it didn't need it.
Hey shawn I did the same change that nintendo mentioned and it still showed an error. Here is what nintendo said: Well instead of placing: $string = fread($handle, 2096000); I placed: $string = fread($handle, 209600); <----- With a 0 removed But then I noticed that my weight went down on my account, is there any way you can fix that?
Try lowering the number even more. If that doesn't fix it, give your server more memory for php, like 16 megs.
Nintendo, I said the problem was fixed, but the weight in my account went down by some points. So now it isn't a server problem, it's a co-op advertising problem
er your server doesn't effect your weight, PR, Google listings...do!!!! To try to prove that effected it, add the 0 back and see if it goes back up.
How much weight do you get for redscowl-bluesingsky.us ??!!! New site, and just a few hundred pages indexed, shouldn't generate very much weight, if any!!!
actually i only got around 2 to 3 hundred in weight, it keeps changing all the time. It should go up soon, since I am going to add the code to more sites!
of course not nintendo, Google will give PR10 to websites with duplicate content for sure! I mean what kind of SEO expert are you if you didn't know that?