El lun, 09-08-2004 a las 13:00, Edgard Pineda Leone. escribió: [...]
> Deja de funcionar los parámetros... lo que me pasa es que solo el primer > parametro pesca, y si pongo mas de uno ninguno funciona.... > Incluso, si los pongo al reves: > #!/usr/bin/php -q -c/home/proy/devel > <?php > print "hola!!"; > ?> > > al ejecutarlo me sale: > Error in argument 1, char 3: option not found > Error in argument 1, char 4: option not found - > Error in argument 1, char 3: option not found > Usage: php [-q] [-h] [-s [-v] [-i] [-f <file>] | {<file> [args...]} > -q Quiet-mode. Suppress HTTP Header output. > -s Display colour syntax highlighted source. > -f <file> Parse <file>. Implies `-q' > -v Version number > -C Do not chdir to the script's directory > -c <path> Look for php.ini file in this directory > -a Run interactively > -d foo[=bar] Define INI entry foo with value 'bar' > -e Generate extended information for debugger/profiler > -z <file> Load Zend extension <file>. > -l Syntax check only (lint) > -m Show compiled in modules > -i PHP information > -h This help > > > :( snif > > esta última llamada si la hago directamente desde la linea de comando si > funciona: > > /usr/bin/php -q -c /home/proy/devel prueba > hola!! podrias probar con #!/usr/bin/php -q -c /home/proy/devel si ejecutas 'php -h' sale claramente que entre '-c' y el directorio que le sigue debe ir un espacio... -- Ricardo Mun~oz A. Usuario Linux #182825 (counter.li.org)