[PHP] Clearing pipe stream and a few other issues.

2006-02-16 Thread zedleon
ok, I'm not sure how to explain this but here goes.. I have a php script being used as a cgi to get around certain permission issues. Its not what I wanted but is basically working. Running through the cgi-bin has been much more difficult however, for example, 1. I need to clear or reset the stre

[PHP] Converting piped data to values from html to phpcgi

2006-02-13 Thread zedleon
I am using php as a cgi. The data from my html is piped through stdin using this code: The result I am getting looks like this: (which is correct) sender_name=zedleon&[EMAIL PROTECTED]&sender_msg=This+is+a +test&Submit=Submit What I need to do now is to convert the piped str

[PHP] Converting piped data from stdin to phpcgi

2006-02-13 Thread zedleon
I am using php as a cgi. The data from my html is piped through stdin using this code: The result I am getting looks like this: (which is correct) sender_name=zedleon&[EMAIL PROTECTED]&sender_msg=This+is+a +test&Submit=Submit What I need to do now is to convert the piped str

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Thanks for the help John...That's more information than I had before.. I will keep working at it.. Zed "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zedleon wrote: > > Thank you -- brain freeze.. > > > > I am gettin

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Thank you -- brain freeze.. I am getting emply results from print_r Array ( ) "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zedleon wrote: > > I am getting a parse error, unexpected T_VARIABLE > > > > you would think this w

Re: [PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
I am getting a parse error, unexpected T_VARIABLE you would think this would be easy. zed "John Nichel" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > zedleon wrote: > > here is the php code i am using as a cgi in the cgi-bin > > This form exec

[PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
!/usr/local/bin/php -q Thank You, $sender_name Your secret message has been sent."; ?> ""zedleon"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am running a php script as a cgi so to be able to run under my user name. > The script see

[PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
Let me ask this... What is the proper way to configure a php script to run as a cgi? What items need to be included (i.e. header info, content type, etc ) for the cgi to find the variables sent from the html form? anybody? zed ""zedleon"" <[EMAIL PROTECTED]> wr

[PHP] php script running as a cgi

2006-01-16 Thread zedleon
I am running a php script as a cgi so to be able to run under my user name. The script seems to be working except for one major problem. the cgi script is not finding the variables passed by the html form... Any suggestions on how to make this work? Any help is greatly appreciated - zed --

[PHP] Help getting PHP and GPG to work

2006-01-09 Thread zedleon
Has anybody had success using PHP and GPG to send encripted email from a form? Seems like people avoid this issue like the plague. Very little is written about it. I am trying to get a script to work that was written in the book "php essentials" by Julie Meloni. Am I barking up the wrong tree? An

[PHP] Re: failed to open stream warning

2006-01-04 Thread zedleon
I just corrected the code...I had it correct but posted it in correctly. $fp = fopen("home/path/temp" "w+"); puts($fp, $msg); fclose($fp); Still getting the same warning... Thanks ""zedleon"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL

Re: [PHP] Help correcting a form mailer problem...

2005-08-17 Thread zedleon
ata that your expecting > from the form for some reason. Maybe $_POST['gmev'] is an array of > null values? > > -Good Luck > > On Aug 17, 2005, at 12:15 PM, zedleon wrote: > > > I previously built a sticky form with dynamic checkbox > > array's.

[PHP] Help correcting a form mailer problem...

2005-08-17 Thread zedleon
have registered for the: on Good Morning East Valley Event." I am missing the value of the variable even though I am receiving all the instances of the variables from the checkboxes. When they are selected, they are present. I really don't know what to do about correcting the problem. An

[PHP] Help Building Dynamic Checkboxes

2005-08-12 Thread zedleon
27; checked="checked"'; } else { $checked = ''; } echo 'October 14th'; if ($gmev) { $checked = ' checked="checked"'; } else { $checked = ''; } echo 'November 11th'; if ($gmev) { $checked = ' checked="checked&

[PHP] making checkbox's and radio buttons sticky

2005-08-11 Thread zedleon
I am new to php and am in need of some guidance I am building a sticky form and am having trouble bringing in the data fields for checkbox's and radio button's. Any help on how to do this would be appreciated HTML form sample PHP am I on the right track here? zed -- PHP General Mailing Lis

[PHP] can't find the parser error

2005-08-03 Thread zedleon
I am having trouble finding the parser error in this small test script. Any help would be appreciated I am pulling in an array from this html form. Event Name: Week Days S M T W T F S testarray.php You want to add an event called {$_POST['name']} which takes place on: "; if (is_ar