This is a fairly common complaint. If you really dislike it, let Apple know. Maybe they'll change the behavior with enough similar feedback.
http://www.apple.com/feedback/ipod.html
You most likely, then, do not have "." in your PATH. You should be able to run it as "./restart" if you're in the directory of the script.
You probably don't really want to have the script be world-writable, by the way.
\" works. How were you trying to use it, exactly? (Code below does what you're trying to do.)
$conFile = "dbconn.php";
$fh = fopen($conFile, 'w') or die("can't open file");
$dbname = "web39-databasename";
fwrite($fh, "\$dbname=\"$dbname\";\n");
The thing that comes immediately to mind is database permissions, if the php script is connecting as a different user than you're using for executing the command line queries.
Create a class with a static Main() method and set this as your startup object.
[STAThread]
static void Main()
{
// do whatever you want here
}
If you decide that you want to display a form include (using whatever form you want to display instead of Form1, of course):
Application.Run(new...
You could use head instead of get and make sure that the first element of the returned array starts with "image"
For example:
use LWP::Simple;
my ($type) = head $url;
if ($type =~ /^image/) {
# do stuff
}
I've tried several different ways to close a session, but the only one that I can get to work is unreasonable. (In particular, System.Quit -- this is unreasonable because it closes ALL sessions, not just the one I want to close.)
Here's a trimmed down example of one of the things I've tried...
When you say
InnerEx[] PointerArray = new InnerEx[5];
you're not making 5 instances of InnerEx, you're just creating an array with 5 slots for InnerEx objects. All of the elements of the array will be null. You still need to instantiate the objects yourself.
If your Main() sub exits, your program is going to end. That's by definition. You can show the form non-modally, then continue to do other things -- including, perhaps, looping and checking to see if all of the forms you have displayed have been closed, exiting if they have been.
The standard ToString() conversion for DateTime won't work for Access. You need to convert explicitly, like:
selectString = "INSERT INTO Purchase(ClientID, Date) VALUES (50, '" & mydate.ToString("d") & "')"
The "d" tells it to format into the...
You can also get rid of the warning by instead using the condition:
while ($condition) {
}
To exit you'd set $condition to 0 instead of -1. Or you could set it to undef
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.