hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : php command with variable
Reply

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
Forum Jump

php command with variable

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 09-17-2004, 04:04 AM
zagadka zagadka is offline
WHT Addict
 
Join Date: Sep 2001
Posts: 142

php command with variable


hi

in my server(linux)
in ssh
when i say php file.php it works well

but when i say php file.php?variable=something

it doesnot recognise variable
how can i make it to use variable

thanks

Reply With Quote


Sponsored Links
  #2  
Old 09-17-2004, 05:23 AM
woutersteven woutersteven is offline
WHT Addict
 
Join Date: Oct 2002
Location: Hong Kong
Posts: 165
How are you trying to read this variable ?

Regardless of your register_global setting in the php.ini file,
you should read it with

$variable = $_GET['variable'];

Goodluck.

Reply With Quote
  #3  
Old 09-17-2004, 06:01 AM
inimino inimino is offline
Aspiring Evangelist
 
Join Date: Aug 2004
Location: Colorado, US
Posts: 425
php file.php?variable=something

That's not valid command line syntax. Try reading "man php"

Reply With Quote
Sponsored Links
Reply

Related posts from TheWhir.com
Title Type Date Posted
Strategies to Reduce Operating Costs, Avoid Email Blacklisting and Improve Deliverability Webinars 2013-06-06 13:59:25
The Value of Partnerships Part 1: Leveraging an Existing Customer Base Blog 2013-05-28 09:59:22
WHD.india 2013 Web Hosting Events 2013-05-22 13:02:04
InterNetX Launches Server Administration Software Web Hosting News 2011-12-22 22:06:48
The Variable Requirements of Data Center Vendor Selection: Andrew Schaap of Digital Realty Trust Web Hosting News 2011-09-27 15:06:29


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?