Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. flea333

    Logging pings

    I want to repeatedly ping a computer and log when I no longer can ping them. So I need to record the last time it was able to ping the computer.
  2. flea333

    global array

    I have a function and I am defining an array inside it. However I declare the array outside the function so I thought it would be global, however outside the function I can't read the array. I define it as: $imagearray = array(); Then I define each component inside the function.
  3. flea333

    Using opendir() in PHP3

    I am passing a varialbe to opendir, I want to send the directory through the url. My server does not seem to process the variable as a string or something though. When I type in the name of the directory it reads it. What is going on? The code that doesn't work is: $dir = "./".$gallery."/"; if...
  4. flea333

    Using opendir() with a variable

    I am trying to pass a variable directory name to a script but it seems to just open the root directory on the server. Why won't this work: opendir('/'.$gallery.'/') But this does when I specify the string in the code: opendir('/directory/'); Is the variable somehow not a string or something? I...
  5. flea333

    Parsing a file name from the whole path

    What is the best way to extract a random file name from its whole path when the file name and path will always be unique? EX: C:\Documents and Settings\My Documents\Zinni\MTmFreq140dB63_072204.txt I want the .txt file name. Is there a way to search a string backwards for the '\'?
  6. flea333

    Delete leading space on string

    What is an easy way to get rid of a leading space on a randomly size string?
  7. flea333

    Focus on a radio buttong

    I need to select a radio button when I click on an input field. Is there a set focus command to select a radio button?
  8. flea333

    Floating point number conversion

    I have a string: 3.333332976326346e-004 When I use atof is returns 0.00. Is this string too long? Whats going on?
  9. flea333

    strip carriage returns

    Does anybody know of another way to fix this?
  10. flea333

    strip carriage returns

    Actually I figured out that the carriage return before each rget is the return sent from the previous command. So to fix it, even thought its a pain, I can put the rxflush command in before each rget.
  11. flea333

    strip carriage returns

    I added set aspect rgetchar 13 STRIP and it strips the carriage return following the returned string. But I still have a carriage return before the string. How can I eliminate this?
  12. flea333

    Setting Duplex

    I typed: set duplex full in my script but when I go to Options it shows half duplex. What is going on?
  13. flea333

    if statement

    I need to compare two sets of strings but I am finding it hard with this primitive language. I need to do this: if ((string1 != string2) && (string1 != string3)) the strcmp does not want to work well with ! or 'not'
  14. flea333

    RGET command Duplex

    I am encountering problems retrieving responses from a unit over the serial port because rget seems to want to grap the transmitting commands. I tried changing the duplex and thought it worked at first, but aparently not. I have to transmit a command, then my system responds and I want to read...
  15. flea333

    Server CPU usage

    I want to know how much cpu time it takes the server to read files off the a directory. Basically I want to know if it takes a lot of server time to load all the file names using readdir() because I run it every time this page loads, which is meant to be a lot.
  16. flea333

    Passing Arrays across pages

    How do I pass an array over? I believe the array is global because I declared it outside any functions.
  17. flea333

    Passing Arrays across pages

    This is what I do: I read file names in a directory and store them in an array, then I want to pass that array over to the next page like the same way you submit variables from a form to another page.
  18. flea333

    Passing Arrays across pages

    I need to pass an array to the same page as it refreshes, I don't want to have to load the array every time the page loads. Is there a way to do this?
  19. flea333

    Alternative to RGET

    Is there a command that can snag data out of the buffer and display it at the same time? The rget steals the text away preventing it from being printed.
  20. flea333

    waitfor - interesting discovery

    I found an interesting thing happen and this is why I thought the waitfor commands were not working! I was using waitfor for the same thing I was transmitting, and for some reason the waitfor read the sent command and reported it got the data. I found this out by specifying MATCHCASE for the...

Part and Inventory Search

Back
Top