Jump to content

freedbill

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Posts posted by freedbill

  1. Could you do a "phpinfo(INFO_MODULES)" and let me know what version of CURL that is installed on your server.  My version is 7.16.14.  I see that the most recent version is 7.19.5.  Doubt if this is the problem but would be interested in knowing your results.

     

    Thanks

    Bill

  2. Yes.  I use it for some other functionality.  BTW.  The output that you received is correct.  That is very encouriging, so I'm having another issue.

     

    I'm running on a leased godaddy virtual dedicated server and have complete control of my environment.  I'm just not very knowledgeable when it comes to configuration of Linux or PHP.

     

     

  3. my environment: LINUX 2.6.9 Fedora Core 7

    Apache 2.2

    PHP 5.2.6

     

    I am having difficulty using CURL to access a remote server on a non-standard port.

     

    Example:  The url (http://socket.carfax.com:8080) should should return the following:  "901 Transaction Error".  Type it into a browser address window and it returns the desired result.

     

    The following php script attempts to do the same via CURL, three different ways.  All return the same result....nothing....

     

    <?

    $ch = curl_init();

    curl_setopt ($ch, CURLOPT_URL, "http://socket.carfax.com");

    curl_setopt ($ch, CURLOPT_HEADER, 0);

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    curl_setopt($ch, CURLOPT_PORT, '8080');

    $res = curl_exec($ch);

    curl_close ($ch);

     

    echo ("<br>results of test #1=$res");

     

     

     

    $ch = curl_init();

    curl_setopt ($ch, CURLOPT_URL, "http://socket.carfax.com");

    curl_setopt ($ch, CURLOPT_HEADER, 0);

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    curl_setopt($ch, CURLOPT_PORT,8080);

    $res = curl_exec($ch);

    curl_close ($ch);

     

    echo ("<br>results of test #2=$res");

     

     

     

    $ch = curl_init();

    curl_setopt ($ch, CURLOPT_URL, "http://socket.carfax.com:8080");

    curl_setopt ($ch, CURLOPT_HEADER, 0);

    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

    $res = curl_exec($ch);

    curl_close ($ch);

    echo ("<br>results of test #3=$res");

     

    ?>

     

    Does anyone have any suggestions what I am doing wrong.  I'm not very familar with CURL but it appears quiet straightforward.

     

    Thanks in advance.

    Bill

  4. Boy do I wish I could just withdraw this question!

     

    Thanks so much for the simple but not so obvious to me use of dot (.) reference.

     

    I did not grasp that the dot reference was a reference to the current directory and thought that it was some sort of command needed to "execute" the php cli script.

     

    Oh well, thanks again for the obvious.  All works well now.

     

    Bill

  5. I'm trying to use PHP CLI for the first time and am encountering a path problem that has me confused.

     

    Background: I am using a Virtual dedicated server from Godaddy, running Apache Server, on Linux 2.6.9 with PHP 5.2.6 and PLESK 8.4.

     

    I know my way around Linux just enough to get into trouble.

     

    I have created the following simple php script (named tester):

     

    #!/usr/bin/php -q

    <?

    echo "Hello World";

    ?>

     

    I have placed it in two locations for testing:

     

    Location one:

    The script is placed in /usr/bin

    I can execute the following command line from anywhere and it works fine:

    /./usr/bin/tester

     

    Location two (in a web folder):

    The script is placed in: /var/www/vhosts/lasmi1.net/httpdocs

    I am unable to execute this script from the following command line.

    /./var/www/vhosts/lasmi1.net/httpdocs/tester.

     

    I can 'cd' to the web folder and still am unsuccessful with the following command line:

    ./tester

     

    The error is 'extension "./testert is not present" '

     

    This should be simple, but has my brain busted.

     

    Any help is greatly appreciated.

  6. Hi all. I have many years in IT but pretty new to Apache and web hosting so pardon what may be a dumb question.

     

    I have Godaddy virtual hosting running Linux with Plesk installed.

     

    I installed a php based CRM package (SugarCRM) with no problems.

     

    I installed a patch for the CRM product and started receiving a Server 500 internal error.

     

    I experimented and learned that I could copy the folder contents to a new folder and all worked well once again, in the new folder.

     

    I emptied the damaged folder and inserted a simple index.html as the only folder contents and I still received the Server 500 Internal error.

     

    So, here I am with a "damaged???" folder which I can just delete and move on, but I really need to know why this happened, so I can avoid such problems in the future.

     

     

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.