Re: [PHP] Spell checker?
http://www.php.net/manual/en/ref.pspell.php There's also aspell which is deprecated. Kristi - Original Message - From: "Nik Gare" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, January 18, 2001 9:12 AM Subject: [PHP] Spell checker? > Hi, > I have a site which will be updated periodically by someone else, so have > made some forms with textareas for them to upload the text into the MySQL > database. I was wondering if there is a PHP function/class which could > spell check these forms? > > TTFN > Nik > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Array help needed
I wouldn't call it a php standard. I personally feel that readability is far more important than following anything that 'appears' to be standard. I use a format such as this for everything I name: If one word, lowercase, if more than one word: $userSelectedDate or displayCalendar(). So basically everything starts with a lowercase word and all words after that are capitalized at the beginning. Just my two cents. Kristi - Original Message - > I know my use of caps or not in this example sucks. I usually always > use Caps On Each Word for my var names, but I am trying to switch to > what appears to be the php standard, lower case everywhere. Sorry > about that... > > > > > Rick Widmer > Internet Marketing Specialists > http://www.developersdesk.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Spell checker?
Plain Text Dictionary: http://www.mso.anu.edu.au/~ralph/OPTED/ Word list: http://www.antionline.com/archives/text/word-lists/ I just found these by searching through Google you may find better. Kristi - Original Message - From: "Nik Gare" <[EMAIL PROTECTED]> To: "PHP User Group" <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 8:10 AM Subject: Re: [PHP] Spell checker? > In article <[EMAIL PROTECTED]>, >Brandon Orther <[EMAIL PROTECTED]> wrote: > > Check here, I have never messed with it just ran into it the other day. > > I hope it helps. > > > http://www.php.net/manual/en/ref.pspell.php > > Sort of. Thanks go to Kristi as well for spotting this, PHP has so many > bult in functions already! > The only problem is that the site host doesn't have this functionality > installed, and as its a free host, I won't bother asking them. What I > will probably have to do is make my own function/class using a great big > list of words. Does anyone know where I could find a text list of every > word in the English language ;-) > > Thanks, > Nik > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Please: XTemplate help?
require "xtpl.p"; //include XTemplate engine //don't need this - wrong. > require "html.xtpl"; //html layout file with field names e.g. {firstfield} You need to create a new instance of the Xtemplate class so: //assign the new instance to a variable name you'll use - I called it $template //and I specified which "html layout file" to use. $template = new Xtemplate("html.tpl"); // I name them tpl not xtpl *shrug* while($row = mysql_fetch_array($result)) { $template->assign("FIELD1", $row[fieldname]); //FIELD1 being the name you're going to use in the layout file by {FIELD1} //$row being the name of the array you fetched, field name being the fieldname in the database $template->assign("FIELD2", $row[fieldname2]); $template->parse("main");//replace {field} with matching result row element $template->out("main");` //send final html page to browser } Kristi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Please: XTemplate help?
while ( $rowData = mysql_fetch_array($result)) { list($fieldName, $fieldValue) = each($rowData); $template->assign("$fieldName", $fieldValue); } - Original Message - From: "Jaxon" <[EMAIL PROTECTED]> To: "Kristi Russell" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 2:03 PM Subject: Re: [PHP] Please: XTemplate help? > Kristi, > > That makes more sense, thanks, but one problem - I don't want to have to do: > > $template->assign("FIELD2", $row[fieldname2]); > > If I've already called mysql_fetch_array, then I have an array like this: > > field1:field1_data > field2:field2_data > field3:field3 data > > Is there any way to use the array itself as the assignment, or tell > XTemplate to do so? That way I can use one file to generate pages from > different templates. > > Regards, > Jaxon > > > On 1/20/01 12:26 PM, "Kristi Russell" <[EMAIL PROTECTED]> wrote: > > > require "xtpl.p"; //include XTemplate engine > > > > //don't need this - wrong. > >> require "html.xtpl"; //html layout file with field names e.g. {firstfield} > > > > You need to create a new instance of the Xtemplate class so: > > //assign the new instance to a variable name you'll use - I called it > > $template > > //and I specified which "html layout file" to use. > > > > $template = new Xtemplate("html.tpl"); // I name them tpl not xtpl *shrug* > > > > while($row = mysql_fetch_array($result)) > > { > > $template->assign("FIELD1", $row[fieldname]); > > //FIELD1 being the name you're going to use in the layout file by > > {FIELD1} > > //$row being the name of the array you fetched, field name being the > > fieldname in the database > > > > $template->assign("FIELD2", $row[fieldname2]); > > > > $template->parse("main");//replace {field} with matching result row > > element > > $template->out("main");` //send final html page to browser > > } > > > > > > > > Kristi > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sending a mail in HTML format
Nothing special, just add at the beginning of what you're trying to send as HTML. Always worked for me? Kristi - Original Message - From: "Pascal Clerin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 8:46 PM Subject: [PHP] Sending a mail in HTML format > Hello, > > I want to send a mail in HTML format with the mail() function. > I have tried to send html stuff in the message parameter, but when I read it > in my hotmail account, I just see the html code and not what the html is > supposed to show. > I suppose that it is necessary to send some additional headers to specify that > the mail is in html format. > Thanks for your help. > > Pascal > > > Get free email and a permanent address at http://www.netaddress.com/?N=1 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Cookies...
time()+86400? - Original Message - From: "WreckRman2" <[EMAIL PROTECTED]> To: "'Php-General@Lists. Php. Net'" <[EMAIL PROTECTED]> Sent: Saturday, January 20, 2001 4:56 PM Subject: [PHP] Cookies... > > Currently my cookie expires in 1 hour, How can I make it expire in 1 day? > > setcookie("MemberLogin",$value,time()+3600); /* expire in 1 hour */ > setcookie("MemberLogin",$value,time()+3600,"/",".combatfs.com",1); > > WreckRman2 > Combat Flight Center > http://www.combatfs.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Looking for a web host provider
Check out www.webintellects.com. To date, I haven't had any problems and the service is $18.95 a month. 200MB of diskspace, 50 user accounts, PHP4, MySQL, domain name hosting, etc. Kristi - Original Message - From: "Pascal Clerin" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 21, 2001 12:15 PM Subject: [PHP] Looking for a web host provider > Hello > > I am bored with my web host provider (www.linuwebhost.com) because it becomes unreachable several times a month (since 5 this morning I am not able to access my site...). > In fact I need a good web host provider where I can host my site, with PHP(3 or 4), MySQL, 50MB, and more features as mail, php modules etc... that can support 300 users a day accessing a site with a lot of MySQL requests (I doubt that a server that hosts 250 domains and has 512 MB will serve me, or not?). > > Suppose that it could be possible to find that for good price (what is a good price?). > > Thanks for any suggestions. > > Pascal > -- > ___ > Get your free email from http://www.graffiti.net > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mysql_fetch_array strangeness
each() assigns four elements... (0 = index), (1 = value), (key = index), (value = value) You are concerned with key and value. So: list ($fieldname, $value) = each($row) You may not be using $value but you still need to assign the data to a variable. Or list will only assign $fieldname the numerical index and not the char index. At least that's from what I understand. Anyone, please feel free to correct me. Kristi Beware of the false gods we sometimes worship--money, power and fame--for they are all fleeting, especially in death and often in mortality. -Anonymous - Original Message - From: "Jaxon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 21, 2001 8:07 PM Subject: [PHP] mysql_fetch_array strangeness > Hi, > > I'm trying to echo out the field names used as key values in a > mysql_fetch_array: > > $link_id = mysql_connect("localhost", "root", $pass); > > mysql_select_db("database", $link_id); > > $result = mysql_query("select * from lists where id = 1", $link_id); > > $rowData = mysql_fetch_array($result); > > while (list($fieldName) = each($rowData)) > { echo "$fieldName,"; } > > I'm expecting to get this: > > id,listname,joinconfirm,leaveconfirm,homepage,author,canjoin,bannedemails,de > scription,subject,masteremail, > > but instead getting this: > > 0,id,1,listname,2,joinconfirm,3,leaveconfirm,4,homepage,5,author,6,canjoin,7 > ,bannedemails,8,description,9,subject,10,masteremail, > > Why are the index numbers for the array showing up? From the docs, > mysql_fetch_array should create an array of field names to field values...? > To make things worse, if I also echo the data: > > while (list($fieldName, $fieldValue) = each($rowData)) > { echo "$fieldName,$fieldValue," ;} > > Then a value is echoed after both the index number and the field value, eg: > > 0,1,id,1,1,testlist,listname,testlist, etc... > > What am I doing wrong? > > Regards, > Jaxon > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] mysql_fetch_array strangeness
each() assigns four elements... (0 = index), (1 = value), (key = index), (value = value) You are concerned with key and value. So: list ($fieldname, $value) = each($row) You may not be using $value but you still need to assign the data to a variable. Or list will only assign $fieldname the numerical index and not the char index. At least that's from what I understand. Anyone, please feel free to correct me. Kristi Beware of the false gods we sometimes worship--money, power and fame--for they are all fleeting, especially in death and often in mortality. -Anonymous - Original Message - From: "Jaxon" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, January 21, 2001 8:07 PM Subject: [PHP] mysql_fetch_array strangeness > Hi, > > I'm trying to echo out the field names used as key values in a > mysql_fetch_array: > > $link_id = mysql_connect("localhost", "root", $pass); > > mysql_select_db("database", $link_id); > > $result = mysql_query("select * from lists where id = 1", $link_id); > > $rowData = mysql_fetch_array($result); > > while (list($fieldName) = each($rowData)) > { echo "$fieldName,"; } > > I'm expecting to get this: > > id,listname,joinconfirm,leaveconfirm,homepage,author,canjoin,bannedemails,de > scription,subject,masteremail, > > but instead getting this: > > 0,id,1,listname,2,joinconfirm,3,leaveconfirm,4,homepage,5,author,6,canjoin,7 > ,bannedemails,8,description,9,subject,10,masteremail, > > Why are the index numbers for the array showing up? From the docs, > mysql_fetch_array should create an array of field names to field values...? > To make things worse, if I also echo the data: > > while (list($fieldName, $fieldValue) = each($rowData)) > { echo "$fieldName,$fieldValue," ;} > > Then a value is echoed after both the index number and the field value, eg: > > 0,1,id,1,1,testlist,listname,testlist, etc... > > What am I doing wrong? > > Regards, > Jaxon > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]