Jump to content

<?=$humour?>

Members
  • Posts

    6
  • Joined

  • Last visited

    Never

About <?=$humour?>

  • Birthday 03/28/1969

Contact Methods

  • Website URL
    http://www.lampware.net.au

Profile Information

  • Gender
    Not Telling
  • Location
    Brisbane, AU

<?=$humour?>'s Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. [!--quoteo(post=383229:date=Jun 13 2006, 10:30 PM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ Jun 13 2006, 10:30 PM) [snapback]383229[/snapback][/div][div class=\'quotemain\'][!--quotec--] Maybe you could try dumping the output into a variable to see if any errors were returned? [code]system("unzip -o xml.zip",$output) echo $output;[/code] [/quote] You'd need to use -p to pipe to stdout, if you use exec instead $output will be an array, you can implode it with "\n" to make it a string again, but if it's php source it wont render to the browser screen, something php does for safety. This way you will have closer control of the archive by bringing it into your process. If you don't want to do this then make sure that the archive is being addressed correctly and then know where the unzipped file is being written to, maybe you just lost it
  2. Not exactly what I was looking for I'm afraid, I too have written several socket servers and clients in my time. Java's Socket Channel and Server Socket Channel are abstractions of the standard socket libraries, both of which contain inbuilt methods for selectability. I guess you have to know what the Java's .nio library is capable of, cause it's a bit difficult to explain. Basically it means that apparently thousands of socket connections can be made on one or a few threads, instead of a connection/thread. The ServerSocketChannel can select a SocketChannel based on readiness and have it process the request. There's more to it but that's the bit I like.
  3. I've been looking at Java (just research purposes!) recently, especially at the .nio library which has this package called socketchannels, which is cool. Used with channelselectors and managers and all that you can have an application run several socket servers at once and select the most unused one at each request, more or less. What I want to know is, has anyone heard, seen, though about doing this in PHP, I understand that it would only work for CLI or CGI, but still, COOL!
  4. well it's only been 18 months, i was wondering what was happening on this front. Any news?
  5. REQ Move to Core PHP Hacking pls
  6. Hi, I was wondering any anyone out there had an experience in getting memory usage for a request. I had a look at apd and it isn't the go (CGI only, for one thing). I was hoping for something that I can start at the begining of the script and at the end run a bunch of methods that can tell me things like how much memory the server used to perform the request and where. I get the feeling that it would need a PHP extension to do this as the Zend engine doesn't expose that kind of thing. Anybody?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.