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 '\'?
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.
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.
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.
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...
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.