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.
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...
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...
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 '\'?
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?
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'
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...
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.
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.
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...
Is there a better way to monitor the FAILURE after using transmit rather than using an if statment after each transmit?
I have a bunch of transmit statements and would like to make sure the remote system responds properly, I'd like to know a way around putting in an if FAILURE after each one.
I need to find three strings in different chronological order in a bunch of data fed back from a remote system. The rget only captures 256 bytes, cutting off the last three fourths of my data. How can I easily store all this data and search for strings in it?
Is there any way to clear the entire scrollback buffer. Clear just scrolls down so you can't see the old stuff, can I eliminate all thats stored above?
I'm sending a transmit string, then after each time I use waitfor to ensure I receive what I want. Well the waitfor doesn't seem to want to work after about 10 or so of them. It just skips right on ahead. I know my data is coming in as the waitfor statement has it. What could be the problems?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.