Skip to main content
gamedev.net
🔒 Locked

[web] web hosting

Started by CProgrammer 0 replies 300+ views
Original Post
CProgrammer
CProgrammer
I want to host my php site and Ive already found a good host for the job. However the service has certain limitations on php sites: 9MB Memory, 8 CPU seconds and 90 Seconds running duration per call. Now how can I make sure my site fits in here. How can I see the memory consumption of my site using apache and what about the cpu seconds? -CProgrammer
konForce
konForce
<?php  $t = time();  // ...  print "Memory Usage: ".memory_get_usage()."<br />";   // depending on garbage collection, you may need to check this throughout the script  print "Elapsed seconds: ".(time()-$t);?>


Note: only works if PHP was compiled with memory limits.

I don't know how they measure CPU time, but I doubt it's anything you can easily validate yourself.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.