[PHP] lists, email, 1 each

2011-01-15 Thread kbailey
ok, my site uses the Cpanel. Cpanel does NOT like creating forwarding  
aliases with multiple TO address'. I want to make a bone butt simple  
list using a php script, and this must accept a file with 2 email  
address' in it. Any advice?




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] query strings and other delights

2011-01-13 Thread kbailey
I have circumstances which cause me to investigate get strings and  
such, and wish to start a thread discussing such matters. This relates  
to a cluster of functions iin php such as public array  
HttpQueryString::toArray ( void ) and it's bretherin and sisterin and  
otherin.


Being new to php, come here of the snake charming schhuol of python, I  
find there are rather interesting properties to h ow you get things  
done in this big tent.

SO; presume I want to send a querym, where there is a format:
http://www.foo.org/item1/delivery.php?item=namecode=DATA

we need to extract the string, bust it up, toss everything into a  
structure with data keyed with keywords, and march on. (I would have  
called that structure a dictionary, but that's under a different tent  
with the snake charmers).



I need to come up to speed with GET method and closely relating  
functions in php, Let's discuss this, and are there any good links to  
offer on the subject to pages of much interest and clue? Clue glue is  
in generous supply, but the feathers themselves are pretty scarce,  
snakes not having any.


Your turn! :-D

-kirk



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: query strings and other delights

2011-01-13 Thread kbailey
...Holy cow... nothing to extract the query string, it's automatically  
part of the environment. So I just do work with the $_GET string, it's  
in there already... yikes.



Quoting Nathan Rixham nrix...@gmail.com:


kbai...@howlermonkey.net wrote:

Your turn! :-D


  $_GET

and if you do post.. (can you guess?)

  $_POST

usage:
  http://www.foo.org/item1/delivery.php?item=namecode=DATA

?php

 $_GET['item']; // == name
 $_GET['code']; // == DATA

OK, so $_GET is an array keyed to keywords; plug in the key, out comes  
the value. What if I just want the entire string?




Best,

Nathan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php







--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: query strings and other delights

2011-01-13 Thread kbailey
Cool. SO, now it's in a string, I can chop, slice, dice, make  
gazillions of steak fries, and drive on. So, now we can munch a  
webpage with a query string as a KEY to unlock access to it, and use  
DIE to stop the process if it is not there, or is the correct key, so  
far making sense?




Quoting Nathan Rixham nrix...@gmail.com:


kbai...@howlermonkey.net wrote:
...Holy cow... nothing to extract the query string, it's  
automatically part of the environment. So I just do work with the  
$_GET string, it's in there already... yikes.


yup

OK, so $_GET is an array keyed to keywords; plug in the key, out  
comes the value. What if I just want the entire string?


$_SERVER['QUERY_STRING']






--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php