[theme-reviewers] File operations in themes, which PHP functions are/will stay allowed?
emil at themeid.com
Tue Apr 5 02:13:50 UTC 2011
It's always good idea to look for an alternatives from WordPress core. Just
few moments ago I had:
$buffer = file_get_contents($twitter_url);
and changed that to:
$buffer = wp_remote_retrieve_body(wp_remote_get($twitter_url));
This was from my test enviroment, not the actual live site.
*Emil Uzelac* | ThemeID | T: 224-444-0006 | Twitter: @EmilUzelac | E:
emil at themeid.com | http://themeid.com
Make everything as simple as possible, but not simpler. - Albert Einstein
On Mon, Apr 4, 2011 at 8:15 PM, Lmm Muc <lmmmuc at gmail.com> wrote:
> Looks like file_get_contents is not permitted anymore. What about fopen
> etc.? Looks like they still can be used?
> What can and cannot be used regarding opening, closing, writing to files?
> I plan to write dynamic CSS to a file (ending on .css) located in the theme
> theme-reviewers mailing list
> theme-reviewers at lists.wordpress.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the theme-reviewers