LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
Pass argument between php scripts


Hello

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:

$my_par = $HTTP_SERVER_VARS['QUERY_STRING'];

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, 02:53 PM   #2
bulliver
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.
 
  


Reply


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 09:29 AM
How to pass an argument to DHCPCD ? shazam75 Linux - Networking 3 02-27-2005 10:34 AM
PHP pass argument to shell script monzter Programming 2 08-14-2004 06:16 AM
Indicating external argument into loops in SCRIPTs linsson Programming 7 07-28-2004 12:55 PM
pass parameters to shell scripts ? qwijibow Linux - Newbie 2 08-07-2003 07:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 AM.

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