SwiftlyTilting: usability, reusability

Sunday, October 30, 2005

phpABC 2.2

This is a security upgrade. All users need to upgrade to this version as soon as possible.

Download phpABC 2.2

Downloaded 10869 times


53 Comments Leave Comment

Thanks for taking the trouble of maintain this tool and for putting out a security update. Any information on what changed from v2.1 to v2.2?

Comment by Marcos V — Tuesday, November 1, 2005 @ 8:03 am

The configuration system has been redone because it was insecure, allowing a malicious user to execute arbitrary php code.

I’m also working on a new javascript enhanced skin as well as an RSS reader tool for phpABC so stay tuned.

Comment by swiftlytilting — Tuesday, November 1, 2005 @ 1:56 pm

Hey,

Sorry, call me a moron but I know nothing about PHP and can’t figure this out at all! I’ve uploaded the files to my webspace, and I can access the config page. Typed all my setting s, but when I press “Update Preferences” the page just refreshed and nothing happens. Am I right in thinking “Domain” is the external IP address of the PC that is running ABC? I don’t get this at all :( please help!

Thanks,

Suman

Comment by Suman — Wednesday, November 16, 2005 @ 7:35 pm

I suspect you need to select where to save your settings

Comment by swiftlytilting — Wednesday, November 16, 2005 @ 8:14 pm

I tried checking both of the settings (cookie and to server) individually and both together, but no luck :(

Thanks,

Suman

Comment by Suman — Thursday, November 17, 2005 @ 4:34 am

i don’t know why that is happening.. you should be able to save the settings in your cookies

you could go and manually edit /includes/config.xml and see if that allows you to access your ABC server

Comment by swiftlytilting — Thursday, November 17, 2005 @ 3:41 pm

Ok I’ll try and manually edit it… not quite sure how though! For example for the do I just type the port number inbetween the brackets? e.g 12345

Thanks,

Suman

Comment by Suman — Friday, November 18, 2005 @ 9:34 am

Just tried manually editing and that does not work either :( same problem!

Thanks,

Suman

Comment by Anonymous — Friday, November 18, 2005 @ 9:38 am

Ahhh lol I got it working! Turns out on my ABC download machine I set the Webservice to “Loopback”, but now I set it to “Auto” and it works fine :D

Thanks,

Suman

Comment by Anonymous — Friday, November 18, 2005 @ 5:05 pm

glad to hear you got it working :) and to hear it wasn’t an error in the phpabc code.. though it should have told you it was unable to connect… hmmm

Comment by swiftlytilting — Friday, November 18, 2005 @ 5:56 pm

Yup all sorted… as Marcos V said further up ^^ thanks for taking the time to make this easy-to-use script, it’s damn useful and we appreciate it a lot :D

One more little problem I have though, the “Add File” function doesn’t work for me. The PHP is hosted on my webspace (provided by my ISP). Since this webspace is password protected I’m guessing that it won’t let me upload the torrent file? Is there anyway to add a login password to allow PHPABC to write the torrent file to my webspace, or maybe bypass this step and upload the torrent file directly to the ABC client?

Thanks,

Suman

Comment by Suman — Saturday, November 19, 2005 @ 5:33 pm

i suspect what is actually happening is the file IS being written to the webspace, but then ABC cannot add the file because it is password protected. phpABC deletes the torrent files after trying to add them so thats why it may seem like nothing is getting uploaded

You can test this by unchecking ‘delete file after uploading’ and then checking the torrent directory you specified in your settings to see if the torrent file is still there. if so, then it is uploading correctly.

Comment by swiftlytilting — Sunday, November 20, 2005 @ 3:21 am

Ok I tried that and I don’t think the file is being uploaded :(

I’m a bit confused though… in the instructions you said “Expects an absolute path from your http server’s
root directory. (ie “/torrents/” corresponds to “yourhost.com/torrents/”)”.

When I log on to my webspace via FTP, I get a folder called “www.mydomain.com”. I have no modify privileges to this folder, nor can I make any other new folders in this space. However I can get inside this folder and have full control to the contents of it (this is where the phpABC script is places). My torrent directory is set as /torrents/, but does that mean phpABC expects it to be /torrents/ straight away or /www.mydomain.com/torrents/ I have tried both settings but neither works…

Sorry if that makes no sense at all I’m a very confusing person :D

Thanks,

Suman

Comment by Suman — Sunday, November 20, 2005 @ 4:37 am

it tries to put the file in the path of your directory off of $_SERVER[’DOCUMENT_ROOT’]

if you want to know where $_SERVER[’DOCUMENT_ROOT’] points to, make a blank php document and add

<? echo $_SERVER[’DOCUMENT_ROOT’];>

to it

Comment by swiftlytilting — Monday, November 21, 2005 @ 4:49 pm

“Parse error: parse error, unexpected ‘>’ in /web/sites/244/mysite/www.mysite.isp.com/index.php on line 1

:confused:

(I don’t know anything about php btw!)

Cheers,

Suman

Comment by Suman — Tuesday, November 22, 2005 @ 3:50 pm

oops.. it should be

<? echo $_SERVER[’DOCUMENT_ROOT’]; ?>

Comment by swiftlytilting — Tuesday, November 22, 2005 @ 7:03 pm

Can’t get the server root script to work at all now :(

Thanks,

Suman

Comment by Suman — Tuesday, November 29, 2005 @ 11:35 am

I’ve been using phpABC for a while now. It works great, thanks for the effort. I thought of something today, when I didn’t have access to a computer, would it be possible to create a WAP version to access via a cell phone’s mobile web? Of course, you wouldn’t want as much information displayed as you do on the full web version. But, I was hoping at least torrent name, percentage complete, and perhaps a stop and resume controls. I’d appreciate it if you could, if not, thanks for what you have done.

Comment by Scott — Friday, December 2, 2005 @ 1:56 am

People have commented that the current setup works fine on their PDAs. If you know HTML you could make your own template :) Just duplicate the ABC3 folders in styles and template and phpABC will autodetect the new template

Comment by swiftlytilting — Friday, December 2, 2005 @ 2:37 pm

Gave it a try, and it gave an error. I guess my cell screen can’t handle the wide fromat like a PDA can. I’ll try to figure out how to edit the template. What editor would be best? I tried pulling it up in Word, but that gives an error. OpenOffice didn’t work either.

Comment by Scott — Monday, December 5, 2005 @ 10:47 am

Hehe methinks if you’re trying to open HTML documents in an office program that you’ll have difficulty creating a template. The original template for phpABC was very basic.. i’ll update that and release it soon.

Comment by swiftlytilting — Tuesday, December 6, 2005 @ 6:43 am

I am getting this error when trying to c hange the ABC preferences. Any pointers :)

I am able to view the torrents fine.

thanks in advance.

Comment by Bubble — Tuesday, December 6, 2005 @ 6:35 pm

oops forgot about the error.

Warning: array_combine() [function.array-combine]: Both parameters should have equal number of elements in c:\Inetpub\wwwroot\abc\includes\phpABC.class.inc on line 221

Unable to get parameters. Check your ABC web service permissions.

Comment by Bubble — Tuesday, December 6, 2005 @ 6:35 pm

got it working nevermind :) apologize for multiple posts.

Comment by Bubble — Tuesday, December 6, 2005 @ 7:09 pm

;)

Comment by swiftlytilting — Tuesday, December 6, 2005 @ 10:02 pm

‘About phpABC’ displays v2.1 ;-)

Comment by Chris — Saturday, December 10, 2005 @ 10:16 pm

oops hehe

Comment by swiftlytilting — Saturday, December 10, 2005 @ 10:35 pm

I was using a modified version of PHP4ABC (to run with ABC 3.0), but I just tried phpABC. I like it, although I did run into a couple of setup issues (ABC webservice needed to be configured in Loopback mode amongst other things).

One thing I don’t like is the skin, so I’m looking forward to the new ones, especially if it’s javascript-enhanced.

I’ve been thinking about writing a Greasemonkey userscript for a while, that would re-write torrent links (.torrent extensions and special patterns for popular torrent sites) to start a download at home directly from the browser. I’ll let you know if I get around to coding it.

Comment by Julien Couvreur — Wednesday, January 18, 2006 @ 8:53 pm

Ok, I just wrote the Greasemonkey script I was describing. One thing that would be useful from phpABC to make it better would be a parameter “noUI=true” on the add.php page to prevent it from redirecting to the main page. Would you mind adding this in for the next version?

BTW, I noticed a Firefox extension to do something similar: http://extensionroom.mozdev.org/more-info/abcadd
But it requires that the ABC webservice be directly accessible on the web, rather that listening on the loopback interface only.

Comment by dumky — Thursday, January 19, 2006 @ 5:50 pm

The Loopback/Auto setting appears to be different depending on the user. Someone upthread had to set it to Auto to get it to work. My ABC web service seems to not work when I set it to auto.

BTW if you can make webmonkey scripts you should have no problem making your own skins for phpABC.. they’re just html documents with special tags. Check out the style and template folders in the phpABC directory

Comment by swiftlytilting — Friday, January 20, 2006 @ 4:21 am

I just posted a Greasemonkey extension that adds an icon next to the links that it identifies as torrent files. When you click on that icon, it will start the download in phpABC.
Before using it, you need to change the url in the source code to point it to your phpABC instance though. I may improve on this in the future with a preference dialog.

http://blog.monstuff.com/archives/images/AddTorrentsToABC.user.js

Comment by Julien Couvreur — Tuesday, January 31, 2006 @ 2:34 pm

^ cool.. i was going to ask you to post it :)

Comment by swiftlytilting — Monday, February 6, 2006 @ 5:18 pm

I love this software,

Would you ever consider putting up a website dedicated to the development and discussion of PHPAbc?

Also are there any screenshots of this new build? I haven’t found any reason to upgrade my version in .8 builds so I am kind of curious as to the new features, etc… of this build.

Comment by Lane — Thursday, February 23, 2006 @ 12:12 pm

You should upgrade to 2.2 unless you like your web server being vunerable to hacker attacks

Comment by swiftlytilting — Saturday, February 25, 2006 @ 5:44 pm

Hi

I just installed PHPABC on my new server machine and I get a error when I go into the preferences .I know it’s prolly a appache setup thing but I don’t know where to start to look to fix it the error I am getting is

Warning: array_combine() [function.array-combine]: Both parameters should have equal number of elements in C:\web\phpABC\includes\phpABC.class.inc on line 221

I noticed someone else had the same error before but didn’t post what they did to fix it :)

any help/Ideas would be great

regards Mary

Comment by Drudess — Monday, March 27, 2006 @ 1:03 am

The quickest way would be to append an “at sign” (@) in front of the array_merge command. You could also change your php settings to not display warnings, though then you may miss warnings like I apparently did :D

Comment by swiftlytilting — Monday, March 27, 2006 @ 10:26 am

what exactly php version soes it accept ? i have php 4.1.1 and apache 1.3 and i get blank page on index.php, no errors in logs, i have php as a module in apache.when i have php as binary - the same, i`m trying to install phpabc 2.2. Any ideas ?

Comment by DoGG — Wednesday, March 29, 2006 @ 2:54 am

on a fresh install index.php should redirect you to config.php.. try setting the config up and see if that makes a difference

Comment by swiftlytilting — Wednesday, March 29, 2006 @ 4:08 am

Update dphp to 4.3 and everything is ok now. Works like a charm, thanks, great software !!

Comment by DoGG — Wednesday, March 29, 2006 @ 5:07 am

Oh… everytime i want to upload a file, add url or change the config, it adds “\” to url redirection.. so when i do add url i get “http://localhost\/index.php”. What can cause this ? php abc or some apache/php config bug that i made ???

Comment by DoGG — Wednesday, March 29, 2006 @ 8:48 am

OK, fixed that, i added authentication to my site by adding thos lines in apache config:
AllowOverride AuthConfig
AuthType Basic
AuthName “StuFF”
AuthUserFile “c:/apache/htdocs/htaccess”
Require valid-user
And that was causing the problem, i chnged first line to:
AllowOverride All
And everything is working again. I gues i should RTFM :D

Comment by DoGG — Wednesday, March 29, 2006 @ 9:53 am

Well, i`m still running into the “?|” problem.. only solution is to disabel authentication to apache, which is not possible for me. can You write how the php script is redirecting to index.php after some file upload/configuration change etc.. Maybe i have some variable set wrong in my php installation. Maybe there is some global file/variable that is defining this ???

Comment by DoGG — Wednesday, April 5, 2006 @ 9:10 am

the problem is : “everytime i want to upload a file, add url or change the config, it adds “\” to url redirection.. so when i do add url i get “http://localhost\/index.php” “

Comment by DoGG — Wednesday, April 5, 2006 @ 9:11 am

hmm… you don’t by chance have the phpabc files in the root directory of your web server do you? thats the only thing i can think would be causing this besides a config problem

here is the code for the redirect to the index page:

header("Location: http://” . $_SERVER[’HTTP_HOST’]
                  . dirname($_SERVER[’PHP_SELF’])
                  . “/” . “index$phpext”);

Comment by swiftlytilting — Wednesday, April 5, 2006 @ 5:44 pm

Ohhh… i HAD it in a root dir of my apache, moving this to other directory and adding a virtual host, solved the problem totally. Thanks a lot !! You really made my day. BTW php ABC is the best web interface for a windows torrent client out there (phpABC is even better then ABC itself - hanging up all the time, eating up all the resources etc..), i`ve tried them all for one week now, this one is perfect, have everythingi need and it`s pure php. Once again - Thanks a lot !

Comment by DoGG — Wednesday, April 5, 2006 @ 9:44 pm

cool.. good to hear you got it working :) Thanks for the kind words; i’m glad you like the program!

also Mary (Drudess).. i suspect you were tying to go into ABC’s preferences before you had setup phpABC. The reason why the array size was mismatched was because the array is trying to combine a list of parameters with their values from abc.. but if it can’t connect to abc then it won’t return the values, and thus the lists wont be the same size

Comment by swiftlytilting — Thursday, April 6, 2006 @ 3:34 am

hey, i can upload a file, i can see it uploaded in the server in a dir that i set in phpABC (when i uncheck the “delete..” function) config, but then it stays there, it`s not moved into ABC. I have abc web service set to loopback, there are no errors in apache log, any clues ??

Comment by SonAsks — Monday, April 10, 2006 @ 6:07 am

sorry for sapmming the comments system but i really can`t figure out how to make it work with htaccess file ( uploading the file). maybe if some of You make it work could pleases tell me how the htaccess fiel looked like and what version of php and apache did You use ? maybe add a link to a working http.conf file could help ? If i could get it to work i could make some installation from scratch howto for phpABC ??

Comment by SonAsks — Friday, April 14, 2006 @ 4:02 am

Hi,

where can i get the README file for PHPabc, im having tough time setting up pref.

Thanks

Comment by abixalmon — Monday, July 17, 2006 @ 6:36 am

I just installed PHPABC on a new Windows system, on top of PHP 5.2.4. It appears that a new default setting in PHP may break PHPABC.
The issue manifested itself in the following way: when loading index.php, instead of getting HTML generated by the PHP code, I’d get some PHP code instead. It would start with “text) { echo ‘Error loading skin: $skin…”.

The problem appears to be that the PHP code in PHPABC uses a short version of the PHP open tag (”

Comment by Julien Couvreur — Tuesday, September 18, 2007 @ 8:10 pm

Previous comment got cut-off.

The problem appears to be that the PHP code in PHPABC uses a short version of the PHP open tag (”<?” instead of “<?php”).

The fix is simple. Modify your php.ini file to have “short_open_tag = On” instead of “short_open_tag = Off”.

Cheers

Comment by Julien Couvreur — Tuesday, September 18, 2007 @ 8:11 pm

Wow thats pretty obnoxious they set short tags to off by default! :(

Comment by swiftlytilting — Wednesday, September 19, 2007 @ 1:17 pm

I m trying to install PhpABC on my free web host site…
but every time only Config.php file is open
please give me the step by step process….

and what should i enter the
Port
Unique key

Comment by ANKIT JAIN — Wednesday, March 30, 2011 @ 3:12 am

Leave a Comment

Validate XHTML | Word Press