Posts requests for a research article

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #16
    Originally posted by ricowyder
    Hi Markus

    It did so:

    php C:\curl.php > C:\new.txt

    Prompts: command "php" is either typed wrong or could not be found

    Do I need something else to run this except the cmd?
    Do you gots PHP installed on your system? If so, you might need to update your PATH system variable so that it can find the PHP executable.

    So, what directory is PHP at?

    Comment

    • ricowyder
      New Member
      • Jul 2009
      • 10

      #17
      Hi Mark

      I've tried to install apache server and php to run your code. Unfortunately, I wasn't that successful at it. Is there any way I can run this by uploading it on my server and by loading the file? Sorry for all inconvenience, you're of great help.

      Wishes

      Rico

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #18
        Originally posted by ricowyder
        Hi Mark

        I've tried to install apache server and php to run your code. Unfortunately, I wasn't that successful at it. Is there any way I can run this by uploading it on my server and by loading the file? Sorry for all inconvenience, you're of great help.

        Wishes

        Rico
        You don't need apache to run it - but, sure.

        Just upload it to your server. If PHP has cURL enabled (off by default - check your php.ini*), then it'll output the results to the screen.

        * In your php.ini, look for the line ';extension=php _curl.dll' (or something like that) and remove the preceeding ';'.

        Let me know if you need anymore help,

        Mark.

        PS: Remember to restart your server if you make changes to the configuration.

        Comment

        • ricowyder
          New Member
          • Jul 2009
          • 10

          #19
          Hi Mark

          A friend helped me out running it on their server. I tested it with 4 entries (form a .txt) and got this output:

          PHP Notice: Undefined offset: 1 in M:\web\uat\ftp_ exchange\Rico\c url.php on line 127

          Array

          (

          [apple

          ] => 57 records

          [dell

          ] => 52 records

          [migros

          ] => 26 records

          [laposte

          ] => 0 records

          [wuala] =>

          )

          Which is great. I started running my list of 20'000+ entries (I hope this doesn't shock you). Apparently, it's quite slow and therefore works well. I didn't got blocked.

          However, the first line PHP Notice appears again and again. I am not sure if all sets are processed.

          Before I start running all through, I wanted to ask you the following:
          1. how can I get rid of this PHP Notice?
          2. I have some stranges company names like "A Beautiful Code" or "@Compass" or "23/6" - will spaces or symbols influence the query?

          A sample of my text file:

          A Beautiful Site
          A Big Important Company
          A Blog.Branding-Studio
          A-1 Technology
          a-steroids
          A.T. Kearney
          A1-4 Electronics, Inc.
          A10 Networks
          A123Systems
          A1Vacations
          A2 ltd
          A2B Office Products
          A2B Office Technology

          Could they cause any problems with you script?

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #20
            That is maybe an error on my part - I'll check as soon as I can (just got in and I've gotta go back out).

            Mark (will be back later).

            Comment

            Working...