hicklemr / rtgui

Automatically exported from code.google.com/p/rtgui
0 stars 1 forks source link

rtGUI with PHP4 #66

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Install rtgui with PHP<5.0.0
2.
3.

What is the expected output? What do you see instead?
Unable to connect to rtorrent

What version of the product are you using? On what operating system?
rTorrent 0.8.4/0.12.4. rtGUI 0.2.6 in FreeBSD

Please provide any additional information below.
The reason caused this happened is "file_get_contents". file_get_contents
provides arguments "$context" after PHP 5.0.0. That's why PHP4 can't run
rtGUI. I did some workaround on function.php. The code is listed in my
blog: http://clyang.net/blog/2009/01/11/48

Hope this hack can help the user who runs PHP4. :)

Original issue reported on code.google.com by clyang on 11 Jan 2009 at 10:58

GoogleCodeExporter commented 8 years ago
Hi good hack, but I'm not going to incorporate it into rtGui as:
(a) It requires cURL.
(b) PHP5 has been around since 2004(!).
(c) I might well use PHP5 functions in rtGui in the future (probably without 
realising it).

Original comment by lemonbe...@gmail.com on 12 Jan 2009 at 8:07