[PHP] mail() Problem
Hi. I am very new to this group and this is my first request for help so please be patient. when I try to use the mail() function in a PHP based webpage I get the following error: Fatal error: Call to undefined function: mail() in on line I have tried changing some mail config details in php.ini. For instance, the path to sendmail used to be: "/usr/lib" and I have changed it to: "/usr/lib/sendmail -t -i". The permissions on sendmail are 555, owner is root and group is other. I guess you could say I am well and truly clutching at straws now!! Has anyone else ever had this problem? If so how was it resolved? Mary-Anne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Accessible HTML - OT
Nested tables are the absolute worst thing you can do! A screen reader is able to tab to a table and tab within a table but once you begin to have tables within tables, UGH! To quote accessibility guru Joe Clark; "With nested tables, a screen reader user ends up working from within a maze formed by one table within another". All you coders out there know how hard it is to code nested tables and how confusing it gets right? Imagine trying to reverse engineer this jumbled mess with nothing but audio to go on! Matthew Weier O'Phinney wrote, On 10/05/05 01:59 AM: * Mikey <[EMAIL PROTECTED]>: I have just come back from the client visit and one of the issues that arose was over the use of accessible markup, more specifically the use of tables versus the use of layers. Now, my long held belief was that div/layers were added to the spec so that designers could separate presentation markup from content - that is, use positioned layers for laying out content, use tables for tables of data as they were originally intended. However, my client seemed adamant that it was the other way around and that the use of tables was preferred owing to browser compatibility issues. Now, I have just had a look around w3 and have found some inferences that support my view but nothing that states clearly in either direction. Does anyone on this list have a definitive answer for this one? You have it correct, theoretically, regarding accessibility. Tables should be used for tabular data, divs for presentation and layout. However, many people confuse accessibility with consistency; they want a look-and-feel that works the same no matter what the browser. (Why they feel this is accessibility is anybody's guess, but I've seen it a number of times). In this latter arena, on a practical level, tables are typically your best bet. I've done a lot of tableless and table-based layouts, and the unfortunate fact of the matter is it's a lot easier to create a layout that is consistent cross-browser and cross-platform using tables. Until IE supports the CSS2 'display: table-*' elements (which is the easiest way of creating columns of the same height), this will continue to be the case. Now, this does not mean you should create a bunch of nested tables for the layout. I find that a simple skeleton made of a table with a few columns can create the basic page layout, and then I use as much CSS as I can within (unordered lists for navigation menus, floats to position image/caption pairs, etc.). This combines some of the best of both worlds, and creates a fairly accessible page at the same time. As in all things, it's a matter of balance. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Accessible HTML - OT
I was under the belief that tables are very bad for accessibility. I once attended a conference on accessibility and standards and witnessed a blind person attempting to read a website that had it's information laid out in a table with a screen reader. It was awful and shamed me into never using tables in my web design again (where possible of course). Check out Joe Clarkes website: http://joeclark.org. Joe is an expert in web accessibility issues. Mikey wrote, On 10/05/05 12:40 AM: Hiya! I have just come back from the client visit and one of the issues that arose was over the use of accessible markup, more specifically the use of tables versus the use of layers. Now, my long held belief was that div/layers were added to the spec so that designers could separate presentation markup from content - that is, use positioned layers for laying out content, use tables for tables of data as they were originally intended. However, my client seemed adamant that it was the other way around and that the use of tables was preferred owing to browser compatibility issues. Now, I have just had a look around w3 and have found some inferences that support my view but nothing that states clearly in either direction. Does anyone on this list have a definitive answer for this one? TIA, Mikey -- The revolution will not be sent as an e-mail attachment. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] While and echoing HTML
oh, and the i++ should be inside the while loop and there is also a missing semi colon after the echo, ie; $i=0; while ($i < $num){ $product_type=mysql_result($result,$i,"product_type_detail"); echo ""; $i++ ; } Mark Sargent wrote, On 10/05/05 02:23 PM: Hi All, this page, http://www.freewebmasterhelp.com/tutorials/phpmysql/5 has the below code, $first=mysql_result($result,$i,"first"); $last=mysql_result($result,$i,"last"); $phone=mysql_result($result,$i,"phone"); $mobile=mysql_result($result,$i,"mobile"); $fax=mysql_result($result,$i,"fax"); $email=mysql_result($result,$i,"email"); $web=mysql_result($result,$i,"web"); ?> E-mail Website echo ""; which I basically understand, except the html generation. I am trying to create something similiar, although, I think there are some errors in even perhaps my logic..? Jumbo Status $db = mysql_connect("localhost", "root", "grunger"); mysql_select_db("status",$db); $result = mysql_query("SELECT ProductTypes.product_type_detail FROM ProductTypes",$db); $myrow = mysql_fetch_array($result); $num = mysql_num_rows($result); ?> Product Type $i=0; while ($i < $num){ $product_type=mysql_result($result,$i,"product_type_detail"); echo "" } $i++ ?> I get the folowing error, *Parse error*: parse error, unexpected '}', expecting ',' or ';' in */var/www/html/products.php* on line *20 * which is the $i++ section. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] While and echoing HTML
Hi Mark, As far as I can see the only problem is that you have forgotten to add a semicolon after the i++ Cheers, Mary-Anne Mark Sargent wrote, On 10/05/05 02:23 PM: Hi All, this page, http://www.freewebmasterhelp.com/tutorials/phpmysql/5 has the below code, $first=mysql_result($result,$i,"first"); $last=mysql_result($result,$i,"last"); $phone=mysql_result($result,$i,"phone"); $mobile=mysql_result($result,$i,"mobile"); $fax=mysql_result($result,$i,"fax"); $email=mysql_result($result,$i,"email"); $web=mysql_result($result,$i,"web"); ?> E-mail Website echo ""; which I basically understand, except the html generation. I am trying to create something similiar, although, I think there are some errors in even perhaps my logic..? Jumbo Status $db = mysql_connect("localhost", "root", "grunger"); mysql_select_db("status",$db); $result = mysql_query("SELECT ProductTypes.product_type_detail FROM ProductTypes",$db); $myrow = mysql_fetch_array($result); $num = mysql_num_rows($result); ?> Product Type $i=0; while ($i < $num){ $product_type=mysql_result($result,$i,"product_type_detail"); echo "" } $i++ ?> I get the folowing error, *Parse error*: parse error, unexpected '}', expecting ',' or ';' in */var/www/html/products.php* on line *20 * which is the $i++ section. Cheers. Mark Sargent. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: hey dip shit
This is a perfect example of the reason why you should lock your screen when you are away from your desk!! Jason Motes wrote, On 18/05/05 07:53 AM: Sorry for this post. A coworker was messing around with my computer and sent it. Please direct all flames to [EMAIL PROTECTED] Sorry!! Jason Motes wrote: HAH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP noobie
I've used Cutenews before and found it to be ok: http://www.cutephp.com/ Bob Stia wrote, On 29/07/05 08:47 AM: Hello PHP list First allow me to apologize if this is the wrong place for this and direct me to the proper place. (be nice now!) I know nothing about PHP and have read at least 100 faqs and googled for hours. I don't even know some of the basics. Allow me to explain. I am the webmaster for a small web site for a Florida car club. The members have been asking if they could post info about events, communicate community wide, maybe post their own Classified ads, etc, I would like to comply with their wishes for an email/blog kind of thing but don't have the foggiest notion where to begin. The googling/faq's don't help me a bit and appears to be pretty complicated. I don't even know the basics. I really have no desire to go into a steep learning curve to accomplish what should be a pretty simple thing. I need simple and easy. I have composed in straight html (not that much,but enough) and with several GUI's. (all open source Linux based) I compose on my system and then simply upload to the site with FTP. I have found a few PHP packages but are not sure what they do. They require PHP, MySQL or Postgres, and Apache. Do I really need to install Apache? (The site is hosted by a commercial remote ISP as a courtesy/good will thing and I think they support PHP but do not wish to place any burden on them to support the site) Do I really need a data base? Please be patient and point the old guy in the right direction. Thanks, Bob S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php