![]() |
|
|||||||
| Register | FAQ | Members List | Downloads | Calendar | Today's Posts | Search | Webmaster Resources | Webmaster Blogs |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
||||
|
bash -> php
In a bash script the information in taken after the following model #!/bin/sh read INFO echo $INFO How to I do this in a php script ? ( taking the info of the client ? ). |
|
|||||
|
do you mean for a PHP script as a shell script to take a variable from console in an interactive way? if so, i don't know - ask on #php on efnet but you can access script shell arguments ($argv) - more help here http://www.phphacks.com/content/view/32/33/
otherwise, if you are talking about the browser and a form submission, PHP can access 2 collections of data: $_GET and $_POST say, they submit a form with a field name=foo value=bar to foo.php, it will translate to: foo.php?foo=bar and be available via $_GET['foo'] with the value of 'bar'. similarly it can be with method=post and go to $_POST['foo']. Last edited by Dimitar Christoff; 08-08-2008 at 02:59 PM. |
![]() |
| Bookmarks |
| Webmaster Resources |
|
• UK WW SEO Tools • Find UK Hosts |
| The Forum Rules |
|
• Forum Rules - MUST READ |
| Site Of the Month |
![]() Nominate site of the month |
|
|
| UK Webmaster World Forums - Internet marketing, web development, domain names, SEO contest and discussuons. |
| Subscribe to our feeds |