Search found 7 matches

by eswoosh
2012-02-07T14:07:54-07:00
Forum: Fred's Scripts
Topic: Cylinderize
Replies: 10
Views: 35136

Re: Cylinderize

You guys are the best. This forum is probably the fastest, most efficient and well educated resource i think i've ever visited. Ok so my entire script: <?php$docRoot = getenv("DOCUMENT_ROOT"); //echo $docRoot; exec("bash ".$docRoot."/create/cyl.sh -m vertical -p 20 paul.png warped_paul.png 2>&1 ...
by eswoosh
2012-02-07T12:52:58-07:00
Forum: Fred's Scripts
Topic: Cylinderize
Replies: 10
Views: 35136

Re: Cylinderize

Line 174 from cyl.sh:

Code: Select all

174: PROGNAME=`type $0 | awk '{print $3}'`  # search for executable on path
175: PROGDIR=`dirname $PROGNAME`            # extract directory of program
176: PROGNAME=`basename $PROGNAME`          # base name of program
by eswoosh
2012-02-07T12:52:02-07:00
Forum: Fred's Scripts
Topic: Cylinderize
Replies: 10
Views: 35136

Re: Cylinderize

Ok so: exec("bash cyl.sh -m vertical -p 20 paul.png warped_paul.png 2>&1",$out,$returnval); foreach($out as $text) { echo "$text<br>"; } Gives an output of: cyl.sh: line 174: type: cyl.sh: not found dirname: too few arguments Try `dirname --help' for more information. basename: too few arguments Try ...
by eswoosh
2012-02-07T12:28:02-07:00
Forum: Fred's Scripts
Topic: Cylinderize
Replies: 10
Views: 35136

Re: Cylinderize

Bonzo - yes your pages are the top favourite for me in this topic - Must of read 2/3 of the pages on there - can i just say a huge thank you for all of your help via those pages - it really opened my eyes.

I'll post back once I've had a chance to try the methods posted by you both - thanks again
by eswoosh
2012-02-07T11:14:03-07:00
Forum: Fred's Scripts
Topic: Cylinderize
Replies: 10
Views: 35136

Cylinderize

Specifically looking at the URL: http://www.fmwconcepts.com/imagemagick/cylinderize/index.php I am trying to use/implement this script using PHP (either PHP 4 OR PHP5 it doesn't matter) I am extremely interested in getting this up and running but hitting a bit of a wall. My IM installation is ...
by eswoosh
2011-09-18T07:23:16-07:00
Forum: Users
Topic: bug using a £ sign
Replies: 3
Views: 7290

Re: bug using a £ sign

Spot on with those answers guys. Thanks. For future reference / archive: I use notepad++ to develop PHP, here's what I did: 1) I used the built in 'Convert to UTF-8' function on all code related to generating images with ImageMagick. 2) I used a PHP command: utf8_encode($my_text_variable); I think ...
by eswoosh
2011-09-17T15:25:12-07:00
Forum: Users
Topic: bug using a £ sign
Replies: 3
Views: 7290

bug using a £ sign

Hi searched everywhere on this forum and the web, no one seems to of come accross this issue, looking for some help please. I'm using this code: exec("convert -fill black -pointsize 18 \\-size 600x caption:@".$invoice_ext_id.".invoice.txt ".$temp_file_name.$invoice_ext_id."-B.jpg"); The php ...