Advertisement:

Author Topic: tutorial needed for script pathway  (Read 2685 times)

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
tutorial needed for script pathway
« on: March 03, 2014, 09:57:55 pm »
I hate for this to rear it's ugly head again. but I need to know how to create a pathway from the osclass script to the server.

my server has imagemagik installed in a strange place, it's not showing in php.info. so they provide the pathway. so where do I direct the osclass script to locate it?

global variables shows that oc-load.php direction is; library path to os-class, and is defined in config. so I go to config, where do I set the correct path for the imagemagik library to create the lib path for oc-load?

it is not abs-path

but Im sure abs_path is in it somewhere

so in oc-load.php

define('imagemagik', 'pathway/abs_path', 'where is the location?')

is that what i need?
« Last Edit: March 03, 2014, 10:47:12 pm by design »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: tutorial needed for script pathway
« Reply #1 on: March 04, 2014, 01:15:29 am »
Hi,

Quote
it's not showing in php.info. so they provide the pathway. so where do I direct the osclass script to locate it?

PHP uses Imagick, that "Provides a wrapper to the ImageMagick library". I think it's possible they don't have that installed, that would explain why is not showing in php.info ???

The only way I could think of you using ImageMagick would be to be able to execute shell commands from PHP -shell_exec(). But even so, trying to interact directly with the main program would need a lot of modifications across all the Osclass scripts.  :o And the syntax... well, shell syntax, enough said.  ;D

Why don't you ask your hosting directly about Imagick? The extension can be easily installed with no need to reinstall PHP all over again.

http://pecl.php.net/package/imagick

Regards





design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: tutorial needed for script pathway
« Reply #2 on: March 04, 2014, 02:21:05 am »
they have it installed but it is in a different directory then the rest of the php library - I know how dumb. ??? :-X
would I sound like an idiot if I asked them to move it to the directory with the rest of the php fun?

http://www.inmotionhosting.com/support/website/software/is-imagemagick-installed-on-the-servers
« Last Edit: March 04, 2014, 02:23:38 am by design »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: tutorial needed for script pathway
« Reply #3 on: March 04, 2014, 03:28:32 am »
Well, if you need it badly enough to dare to modify a couple of sacred core scripts, :D really IMagick is used only in two places:

oc-includes/osclass/classes/ImageResizer.php
oc-includes/osclass/classes/Watermark.php

And this is an alternate way to use ImageMagick from PHP:

Quote
phMagick requires 2 things ImageMagick and the ability to issues systems calls with the exec() function

phMagick

Now, obviously this won't have exactly the same syntax than Imagick, so you'd have to learn a few things to achieve your goal (but not too much, truth is ImageResizer.php is not so big a script). ;)

Regards

design

  • Hero Member
  • *****
  • Posts: 2619
  • Osclass 3.5 MAC/PC w/ Modern Browsers
Re: tutorial needed for script pathway
« Reply #4 on: March 04, 2014, 07:43:18 pm »
nope, brain broke.  :o  not only did brain brake, I don't want to mess with the core ::)

Im not sure why my images are doing what they are doing. so I guess I can find a different way to solve the problem Im having.

thank you for reply.
« Last Edit: March 04, 2014, 07:49:55 pm by design »

tomshaft

  • Hero Member
  • *****
  • Posts: 862
  • Osshaft for Osclass - Add 650 posts to my total
Re: tutorial needed for script pathway
« Reply #5 on: March 04, 2014, 08:04:24 pm »
Your not alone. My server also has it set up but tells me I have to set the pathway in the script which as you say is near impossible. I have given up long ago wrestling with that summo, summu, summa  - How the hell is that spelled.....

Anyway, Following along hoping that with your bulldog like grip on problems, you fix my problem...

Tom

yellow53

  • Full Member
  • ***
  • Posts: 142
Re: tutorial needed for script pathway
« Reply #6 on: January 25, 2016, 01:57:59 am »
I have the same problem.

ImageMagick is installed but not detected on my osclass.

How can i change the path in osclass in order to detect imagemagick ?

many thanks

Aficionado

  • Guest
Re: tutorial needed for script pathway
« Reply #7 on: January 25, 2016, 01:52:52 pm »
You can't "change the path".

Imagick is not PROPERLY installed on your server. Ask your hostin support to install it properly.

OR maybe you JUST have to ACTIVATE it from your Cpanel.

yellow53

  • Full Member
  • ***
  • Posts: 142
Re: tutorial needed for script pathway
« Reply #8 on: January 25, 2016, 11:24:30 pm »
Dear Aficionado,

thanks for your help.

attached screenshot of my ftp. it's installed. but osclass doesn't recognized as installed.

My host is 1&1 and I dont have Cpanel.

So I dont really know how to activate it ?