[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

[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: ? $fp=popen(cat,r); $str=fgets($fp); print $str; ? The result I am getting looks like this: (which is correct) sender_name=zedleon[EMAIL PROTECTED]sender_msg=This+is+a +testSubmit=Submit What I need to do now

[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: ? $fp=popen(cat,r); $str=fgets($fp); print $str; ? The result I am getting looks like this: (which is correct) sender_name=zedleon[EMAIL PROTECTED]sender_msg=This+is+a +testSubmit=Submit What I need to do now

[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] 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] wrote in message news:[EMAIL PROTECTED

[PHP] Re: php script running as a cgi

2006-01-16 Thread zedleon
/h1 p align=centerYour secret message has been sent./p; ? 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 seems to be working except for one major problem. the cgi script is not finding

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 executes fine, just doesn't get the variables

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 would be easy. Did you put the semi-colon

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 getting emply results from print_r Array ( ) Don't know

[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? Any

[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 PROTECTED] Has anybody had any experience in resolving

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

2005-08-17 Thread zedleon
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. Any guidance here would really be appreciatedand...go easy on me...I am new to PHP Thanks before hand... zedleon -- PHP General Mailing List (http

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

2005-08-17 Thread zedleon
values? -Good Luck On Aug 17, 2005, at 12:15 PM, zedleon wrote: I previously built a sticky form with dynamic checkbox array's. The form works beautifully thanks to help from Jochem Mass and Kathleen Ballard. I now have a slightly different problem...I have built an email

[PHP] Help Building Dynamic Checkboxes

2005-08-12 Thread zedleon
'input name=gmev[] type=checkbox id=gmev',$checked,'/December 9th'; ? thanks zedleon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[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 input name=gmev[] type=checkbox id=gmev value=September 9th/th PHP

[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. form action=/testarray.php method=post pEvent Name: input type=text name=name size=30 //p pWeek Days/p input type=checkbox name=weekdays[]