Jump to content

freedbill

Members
  • Posts

    14
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

freedbill's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Resolved - Godaddy blocks port 8080...even on leased servers. Thought I had complete control of my leased server, guess that is just not the case.
  2. Could someone with Godaddy hosting please try the original test script (1st post in this string), and post the results. Many thanks. Bill
  3. Thanks for the version info. The following script works fine. <?php error_reporting(E_ALL); ini_set('display_errors', 'On'); $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, "http://www.google.com/"); curl_setopt ($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $res = curl_exec($ch); curl_close ($ch); echo ($res); ?>
  4. 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
  5. Yes, I've tried a single instance and a single test. Same results. Hopefully this all makes sense to someone. Bill
  6. 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.
  7. I made both of your recommended modifications and still received the same results. (nothing). Am I encountering a LINUX or Apache or php configuration issue? Thank you so much for your response. Bill
  8. Having the same problem. I have started a new post but thought I'd log it here also in hopes that someone will have the secret in their back pocket. Thanks Much, Bill
  9. I have added a trailing slash to all three tests and get the same (nothing) results. Bill
  10. 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
  11. 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
  12. 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.
  13. Thanks much for your responses Corbin & PFMaBISmAd. Indeed it was a hidden .htaccess file, which I found using PuTTY. Now that I have that information, I can figure out what happened. Thanks again!
  14. 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.