Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法限制使用加载的字符数file_get_contents('http://myurl.com/');?
file_get_contents('http://myurl.com/');
我只需要从 URL 加载前 500 个字符以节省加载时间 - 这可能吗?我听说过这样的方法,但不知道它是否可行。
file_get_contents有一个maxLen参数可以做到这一点。
file_get_contents
maxLen
I have class (JavaBean if you want to call it like that)
class Tweet{ private millis; //number of millis since 1970 //other attributes and getters and setters, but i w