Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-02-2006, 07:24 AM   #1
LQ Newbie
Registered: Feb 2006
Posts: 2

Rep: Reputation: 0
Pass argument between php scripts


I am calling a php script from another php script.
If the called routine is expecting one argument,
the following line of code will work to pick it up:


Now, if I'm sending an array, it won't. How do I pick up an array in the called routine?
Old 02-03-2006, 03:53 PM   #2
Senior Member
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I would suggest using $_GET or $_POST rather than $HTTP_SERVER_VARS['QUERY_STRING']
Obviously, the query_string is a string, not an array, and thus will break if trying to pass it an array.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
pass "startx" argument while running runlevel 5? kpachopoulos Linux - General 2 07-03-2005 10:29 AM
How to pass an argument to DHCPCD ? shazam75 Linux - Networking 3 02-27-2005 11:34 AM
PHP pass argument to shell script monzter Programming 2 08-14-2004 07:16 AM
Indicating external argument into loops in SCRIPTs linsson Programming 7 07-28-2004 01:55 PM
pass parameters to shell scripts ? qwijibow Linux - Newbie 2 08-07-2003 08:27 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration