Comand Line Variables (Max Length)?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kardon33
    New Member
    • May 2007
    • 158

    Comand Line Variables (Max Length)?

    Hi all,

    So I just wanted to see if anyone knew what the maximum length for a command line variable? I want to deal with 640,000 bytes, is this fine? Does anyone what that does to php speed?
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    Heya, Kardon.

    What are you trying to accomplish? Perhaps there's an easier way to work with all that data.

    Comment

    • kardon33
      New Member
      • May 2007
      • 158

      #3
      Well I wrote this program in C that checks these lighting nodes with arp request and I need to get the data (Ip:status, for each node) back to my database which is sqlite. I would of just had C write to the database but I tried for hours and just couldn't get that to work.

      I didn't originally I was going to be dealing with that much data I thought far less but demands need to be met.

      I also wanted to limit the number of calls to the php script so thats why I am passing a string of all the nodes and there status.

      Comment

      • pbmods
        Recognized Expert Expert
        • Apr 2007
        • 5821

        #4
        The alternative would be to save the data to a text file and send your PHP script the path to that file. The PHP script can the open the file and read the values that way.

        Comment

        • kardon33
          New Member
          • May 2007
          • 158

          #5
          Thanks for the response,

          That idea would work great, but I went with a different approach. I decided to limit my calls to php every 1000 nodes.

          Comment

          Working...