Koozali.org: home of the SME Server

php question

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks
« Reply #30 on: July 03, 2006, 05:45:51 PM »
I wish I knew more about these things

And yes I reviewed what I could understand in the script and the path appears to be correct so that would sort of indicate something that is not allowing this function on the SME box, either permissions/ownerships or something but  I set everything to 777 and www so it should at least work for testing purposes.

I've paid a programmer and a network/webhosting admin to look into all aspects
I'll post once I find out more.

I am determined to make this script work on SME it should work.

Thanks for the help and ideas on this.
If anyone desires to install it on one of your own ibays feel free to download it from my ibay
the link again is:
ftp://cyberspace@foolishlys.com

blockbuster

php question
« Reply #31 on: July 03, 2006, 07:26:47 PM »
Quote
Apearantly the script requires this:

Perl, CGI, GD, Curl, ImageMagik, be able to read/write in the cgi-bin folder and know the path to the script.

I initially was told by someone in the forums, I do not recall who or which post, but that SME meets the requirements.

Can someone please confirm this, perhaps I simply do not have the requirements ?


I don't know if it makes sence but ImageMagick is not installed by default on the SME-7.0.

To install it simply do:
Code: [Select]
yum --enablerepo=* install ImageMagick

next ImageMagick can be found in /usr/bin/, maybe you have to point your script somewere in this direction.

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Thanks
« Reply #32 on: July 04, 2006, 03:54:34 PM »
Thanks for that,

I did actually find a yum command for installing Image magik, and did not have any problems with the install, however the command from what I can recall did not look like that:

Anyhow thanks,because I cannot seem to find the reference to the previous command, I'll save this for future use if I have to re install SME fresh

Offline Agent86

  • *****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Project Update
« Reply #33 on: July 04, 2006, 07:43:12 PM »
Hi all

Thanks for all the help

Here is the conclusion and the perl auction is not working perfectly from what I can tell it's fixed, and also now works with all browsers as well.

Nice features too with html editor built in this is a features which ebay still lacks.

Anyhow here was the conclusion from the paid programmer that fixed this problem for me

I believe as it turns out SME was working fine and the script had a bug even the original designer could not fix.

Anyhow here is the details:
Hello Steve,

We done some fixing and it looks OK now.
Tere were strings like:
opendir (THEDIR, \"$config{'basepath'}$key\") || &oops(\"Categorydirectory $key could not be opened.\");
readdir THEDIR;
readdir THEDIR;
my @allfiles = sort { $a $b } map {int $_} readdir THEDIR;
closedir THEDIR;
my $file;
FILE: foreach $file (@allfiles) {
$file =~ s/^$config{'basepath'}$key\///;
$file =~ s/\.dat$//;
$totalfiles = @allfiles;
in the code repeted many times. And there was bug so file names were read incorrect and error placed.
Fixed with:
# readdir THEDIR;
# readdir THEDIR;
# my @allfeatfiles = sort { $a $b } map {int $_} readdir THEDIR;
my @allfeatfiles = sort { $a $b } grep {!/^\.+$/} readdir THEDIR;

Also we deleted few wrong records (lots) and placed test one - passed OK.

And there was one more error when creating new lot in
../../html/htmlarea/editor.js
so lot describtion could not be added. We replaced:
// document.all[objname].config = config; // store config settings
to:
document.getElementById(config) = config; // store config settings
Now it works too.

Pleasem test the script from your side and let us know if you see any more errors.


Well this is nice to know I'll post a link once I put this new info back into the package and anyone who wants it can have it

Thanks for all the help
Looking foward to playing with my new toy, also by the way I'm offering the auction site free for all -no listing fees, no seller fees and not buyers fees, however some of the deluxe features like bold, or features listings etc. I've got at a very low 10 or 15 cents per selection but the image uploads are free and the listing and counters are free.
I may get rid of all the fees but for now it's a nice experiment

I wonder if I should change the title of this original post to Perl instead of php since it's really perl realated but it does show the path of my investigations on this subject


 :hammer: