Search results

  1. A

    PHP - how to grab website html from a form post submission

    I just found out how to do it. In case anyone else is interested I've posted the function I found on the net to accomplish it. /* sendToHost * ~~~~~~~~~~ * Params: * $host - Just the hostname. No http:// or /path/to/file.html portions * $method - get or...
  2. A

    PHP - how to grab website html from a form post submission

    Well the output from the CGI is not just a representation of the form data. The CGI is actually a seach engine of sorts so I need to be able to grab the html of what the CGI search engine returns.
  3. A

    PHP - how to grab website html from a form post submission

    In my php script I need to be able to send form data (of method post) to a cgi script and then have my php grab the html contents of what the cgi script returns. Does anyone know how to do this? Thanks.
  4. A

    PhP newb question:writing text to a file by insertion, not overwriting

    Thanks for the response. I was afraid this was the only method. I mean its not terribly hard to implement, it just seemd kind of sloppy so I was hoping php simply had a way to insert data. Ah well, for my purposes the text file will be more than (less than?) small enough to just overwrite the...
  5. A

    PhP newb question:writing text to a file by insertion, not overwriting

    I just started learning php and I've come across a problem I can't find the solution to anywhere. All I want to do is scan through a file until I read a key string and then write text there. I have been able to scan through the file to the point needed, but when I then write to the file it...
  6. A

    Multi dimensional arrays in Objective-C

    Damn, Neural Nets is the field I really want to get into, though I haven't even scratched the surface of the field as I've only read ch. 1 in a couple books on it I have and don't have the time to read more due to having my actual comp sci classes (I'll try to take a class on neural nets my...
  7. A

    coding cocoa and quite clueless

    Basically just create a land class that holds all your possible information ie. num troops, building1, etc... you could even make an array for this. Then you want a matrix to hold this land class. There is no need to use a cocoa matrix or anything like that so just create a matrix: id...
  8. A

    coding cocoa and quite clueless

    I'm not sure I really understand your question. What exactly do you want to do. You can just make a matrix and each element has your info in it. Are you wondering how you would then go about displaying it visually? You could simply create a 'NSView' and set up 'NSRect's of what ever size you...
  9. A

    How do I enable Objective-C++ use in Xcode 1.5?

    Thanks a lot! I'm downloading it now and will check it out. EDIT: Yep it all ran and compiled fine. I'm not sure why mine wasn't working but from here I can experiment and figure out what went wrong. Thanks again.
  10. A

    How do I enable Objective-C++ use in Xcode 1.5?

    I have looked at that page. In fact I have that exact code they've written and the thing just wont compile when ever I try to import the HelloWorld.mm file. I get parse errors pretty much whenever I use the word "class" I got these same errors when I was trying to do this on my own (meaning...
  11. A

    How do I enable Objective-C++ use in Xcode 1.5?

    I want to mix C++ and Objective-C and heard Xcode supports this through Objective-C++. developer.apple.com has very little help on how I go about doing this. I found some example code they have, but when I just put it in a file with a .mm extension I still can't use the objects. It just seems to...
  12. A

    nc and SSH

    I see; do you happen to know of one which can accept piped commands? As of now I can't pipe commands into the standard apple SSH.
  13. A

    nc and SSH

    It's a third party tool called netcat. Yes you can get it from fink. It's got some cool abilities. But back to my question, anyone gotten it to work, or know if it's possible.
  14. A

    nc and SSH

    Has anyone ever been able to ssh into a Mac OS X client through use of netcat; ie entering: nc myhostip 22 When I do this I get the message: SSH-1.19-OpenSSH_3.4p1 Then if I hit enter I get the message: Protocol mismatch. And it exits out. So has anyone gotten nc to work, and or does anyone...
  15. A

    Writing a program that will send commands to another shell

    I tried the popen() command for ssh but after the password has been entered I get a message: "Warning: no access to tty (Bad file descriptor). Thus no job control in this shell." This function does work for other shells, but do any of you have any ideas for SSH?
  16. A

    Writing a program that will send commands to another shell

    Hmm interesting idea, which may be of some help, but as you say it may be difficult to issue multiple commands. Any other ideas?
  17. A

    Writing a program that will send commands to another shell

    I know that if you are writting a C or C++ program, using the system(char *) function will send commands to the terminal command line. What I was wondering is how one could go about makeing a program that will launch another shell and then output its commands to that. For ex. If I write...
  18. A

    a.out command not found???

    I love you! That did it. :)
  19. A

    a.out command not found???

    I have been programming on my schools linux server for a long time. At one point I had installed the dev tools on my mac. I remember everything in it working perfectly fine. Now however if I compile a C or C++ program in the termnal everything looks fine. These are very simple test progs. When I...
  20. A

    How to reveal the ipod_control folder?

    I just want to be able to manipulate the songs that the ipod plays with out having to open up some program to do it (reveal the ipod_control folder in the finder since as of now I can only access it by terminal). It's not like this is extreamly neccessary, but its the kind of thing I like to do...
Back
Top