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.
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.