Quote:
argv[0] (equivalent to *argv) contains the command used to execute the program. argv[1] contains the first argument. |
|
i've probably posted this somewhere else in this forum at some point in time but.. a simple image randomization script for message board signatures (yes i probably could have randomized based on a directory list but i was too lazy and didn't know how at the time when i wrote it)
Code:
<?php |
Quote:
Well, I changed the *argv to *(argv+1), and that makes the first question work, but I'm still trying to figure out why the others won't... :scratch: EDIT: Removing the else break; clause did it. The revised code: Code:
#include <stdio.h> |
That's good.
I still don't understand why you wrote *(argv+1) instead of the equivalent, but shorter and easier to understand argv[1]. |
Quote:
Wow, even reading just part of that asm tutorial really solidified these concepts for me quite well! :D |
But the [] operator is designed as a shortcut for pointers treated as arrays.
|
I could show you the code I've written lately, but then I'd have to kill you.
I mean, kill you *sooner* |
I made a really cool PyQt4 animation test:
Code:
#!/usr/bin/python |
Quote:
in one I display a few characters randomly of an MMO I play in the respective forum, in the other I just have a mockup of Schroedinger's cat, randomly one of the two given possibilities ^^ |
a bit of nostalgia
Code:
CLS same program in c++ Code:
#include <iostream> accessable when compiled and placed in the cgi-bin folder by Code:
http://{host}/cgi-bin/pyramid.cgi?{number of colums} Code:
#include <iostream> |
Code:
<?php |
What does it do?
|
its extracts php code from a file ($_GET['file']) into memory from a tarball (on the fly) and executes it with eval()
(requires PEAR and the PEAR archive module) would be invoked by Code:
http://address/{whatevernameyougivethescript}.php?file={fileinarchive} (.php extension assumed) |
xbmc addons
is this thread still alive ?; here is a link to a few of my xbmc addons written in python:
http://hyper.homeftp.net/xbmc/ |
All times are GMT -5. The time now is 04:56 PM. |