Welcome to dbForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

PHP 4.3.8: $_SERVER['argv'] missing

 
   Database Forums (Home) -> PHP RSS
Next:  Arithmetic overflow  
Author Message
steve




Joined: Jan 06, 2004
Posts: 660



(Msg. 1) Posted: Tue Sep 28, 2004 6:54 pm
Post subject: PHP 4.3.8: $_SERVER['argv'] missing

PHP 4.3.8: $_SERVER['argv'] does not return any values. Did not change anything in php.ini.

Any ideas. Running from command line (CLI), Win Apache.

 >> Stay informed about: PHP 4.3.8: $_SERVER['argv'] missing 
Back to top
Login to vote
Stefan Hegenbart

External


Since: Sep 12, 2004
Posts: 1



(Msg. 2) Posted: Wed Sep 29, 2004 4:23 pm
Post subject: Re: PHP 4.3.8: =?windows-1252?Q?=24=5FSERVER=5B=92argv=92=5D [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

steve wrote:

 > PHP 4.3.8: $_SERVER[’argv’] does not return any values. Did not change
 > anything in php.ini.
 >
 > Any ideas. Running from command line (CLI), Win Apache.
 > ..Also tried to enable $argc, $argv parameters directly (via php.ini)
 > with no success either.
 >

do not use the $_SERVER on CLI as this will not be filled like when you
use a webserver.

just use $argv[1] .. $argv[2] .. and so on.

you should also consider taking a look at you string delimiters. the
correct way to note an array variable is not with backticks but:
$_SERVER['var'] or $_SERVER["var"]

regards
sh

--
"The goal of Computer Science is to build something that will last at
least until we've finished building it." -- unknown<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: PHP 4.3.8: $_SERVER['argv'] missing 
Back to top
Login to vote
steve




Joined: Jan 06, 2004
Posts: 660



(Msg. 3) Posted: Wed Sep 29, 2004 4:33 pm
Post subject: [Login to view extended thread Info.]

Thanks, Stefan. But no go.

I try:
print_r ($argv);
from cli and it does not work.

I could do $_SERVER.... in previous versions (although as you said it should not have worked but it did).
 >> Stay informed about: PHP 4.3.8: $_SERVER['argv'] missing 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
$_server[php_self] - hi all i'm having issues with this returned function. I can get it to delete a database but i really want it to grab the stateselect extention and grab all the cities related to that state. I wanted to contain this on one page instead of going over..

use of $_SERVER['DOCUMENT_ROOT']. - I'm working on a large intranet group site with a lot of pages, file types, folders, subfolders, etc. I am using the include ('../includes/file.php') , but I would like to have a single snippet that will work for all .php/.html pages in all..

PHP_SELF, $_SERVER, etc - Hello news group, This is a dumb question. Sorry. I would like to pass the name of the "page", along with some $_REQUEST variables. I used the $_REQUEST to send and image name (with path) to a page that displays the image referred to in the...

$_SERVER variables under IIS6 - Why is it that IIS6 does not provide all the $_SERVER variables, otherwise available underApache ? Examples being, SERVER_ADDR, SERVER_PORT ... Is there any way to declare server variables under IIS ? Thanks

$_SERVER['PHP_SELF'] Question - I am attempting to use the below Select Form Element to allow users to change the category of data being viewed in a subsequent SQL statement. My problem is, from where I am at, what is my next step to be able to do an "if then else" loop ba...
   Database Forums (Home) -> PHP All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]