29 users online (1 members and 28 guests)  


  Results 1 to 3 of 3

Related

  1. Script runs in Firefox, Safari, but not IE5    Forum: Website Scripts Forum
    Replies: 7
  1. #1
    matthewst's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2007
    Posts
    4

    script only half runs when called from php

    I can run the following script from the web it won't convert but it does display "hello world".

    test1.pl
    Code:
    #!/usr/bin/perl
    exec "convert image.pdf image.jpg";
    print "hello world";
    If I'm on the server I can type "perl test1.pl" and it will do the conversion and display hello world.

  2. #2
    matthewst's Avatar
    New User

    Status
    Offline
    Join Date
    Aug 2007
    Posts
    4

    Re: script only half runs when called from php

    I could really use some help with this.

  3. #3
    xmassey's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Apr 2007
    Posts
    100

    Re: script only half runs when called from php

    Possibly this line isn't functioning properly,
    exec "convert image.pdf image.jpg";
    what exactly does it do?, I understand that you abandon the perl programme to the other one so possibly this part is wrong convert image.pdf image.jpg



Tags for this Thread