note 83148 added to features.commandline

From: Date: Tue, 13 May 2008 00:08:20 +0000
Subject: note 83148 added to features.commandline
Groups: php.notes 
Request: Send a blank email to php-notes+get-139321@lists.php.net to get a copy of this message
An informational post in the hope that others might save some frustration: (Keywords: mod_rewrite, rewritemap, extension not present ) After upgrading from 5.0.x -> 5.2.5 -> 5.2.6 my rewritemaps in apache (PHP scripts loaded through httpd.conf) became useless. These use PHPCLI to execute. I got the error: Extension 'inputfilenamehere.php' not present. First I had the --q param, (-q caused errors back in 2005 when the server was set up), removed this, replaced with -q, didn't work. When editing the bashline options in the file, cli would sporadically give me either: -bash: ./inputfilenamehere.php: /usr/bin/php^M: bad interpreter: No such file or directory or an error along the lines of: Cannot find the input file: *blankspacehere* After creating a new .php file and typing the bashline manually then copying the text from one of the broken files into the new one, everything worked. See also these posts for somewhat similar errors: goalain eat gmail dont com 21-Aug-2006 09:20 If your php script doesn't run with shebang (#!/usr/bin/php)..... && db at digitalmediacreation dot ch 22-Feb-2005 08:49 A very important point missing... ---- Server IP: 62.73.196.231 Probable Submitter: 148.122.219.104 ---- Manual Page -- http://www.php.net/manual/en/features.commandline.php Edit -- https://master.php.net/note/edit/83148 Del: integrated -- https://master.php.net/note/delete/83148/integrated Del: useless -- https://master.php.net/note/delete/83148/useless Del: bad code -- https://master.php.net/note/delete/83148/bad+code Del: spam -- https://master.php.net/note/delete/83148/spam Del: non-english -- https://master.php.net/note/delete/83148/non-english Del: in docs -- https://master.php.net/note/delete/83148/in+docs Del: other reasons-- https://master.php.net/note/delete/83148 Reject -- https://master.php.net/note/reject/83148 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139321) next »