Re: [PHP] Includes inside includes

2003-12-21 Thread Website Managers.net
To call the file from anywhere within the document space, try this: include($_SERVER[DOCUMENT_ROOT]./common/setup.inc); Jim - Original Message - From: Robbert van Andel [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 21, 2003 1:41 AM Subject: [PHP] Includes inside

Re: [PHP] [posibleOT] Forcing entering te site thru index.php

2003-12-21 Thread Website Managers.net
Cookies are a possibility but not always functional. Many people have them shut off, or services like WebTV do not support them. Two other possibilities are seccions and POST variables. _SESSIONS_ forma2.php if((!isset($_SESSION[username]) || (!isset($_SESSION[password])) {

Re: [PHP] newbie question about header()

2003-12-21 Thread Website Managers.net
Unless you're using an 'if' statement, the header redirect must be the first line of the page, above any HTML markup. Jim www.websitemanagers.net - Original Message - From: Scott Taylor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 21, 2003 8:04 PM Subject: [PHP]

Re: [PHP] Re: Domain Check script

2003-12-20 Thread Website Managers.net
Try adding $ext onto the end of str_replace like this: $a_query = (str_replace(www., , $a_query)...$_POST[ext]); $a_query = (str_replace(http://;, , $a_query)...$_POST[ext]); Jim - Original Message - From: Cesar Aracena [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December

Re: [PHP] MySQL newsgroup

2003-12-18 Thread Website Managers.net
Yahoo has a very active group for PHP/MySQL. http://groups.yahoo.com/group/php_mysql/ Jim - Original Message - From: Sam Masiello [EMAIL PROTECTED] To: JLake [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 1:56 PM Subject: RE: [PHP] MySQL newsgroup The URL

Re: [PHP] picking up a form name

2003-12-18 Thread Website Managers.net
Give your forms unique names. -- form page -- form name=form1 method=post action=whatever.php form name=form2 method=post action=whatever.php form name=form3 method=post action=whatever.php -- whatever.php -- if ($_POST[form1] == Submit) { do something;} elseif ($_POST[form2] == Submit) { do

Re: [PHP] PHP and MySQL date

2003-12-15 Thread Website Managers.net
If you need to store both date and time, there are several ways to accomplish this. MySQL has built-in date/timestamp options, but those long strings would need to be converted for be human readable. The option I use most is telling PHP what format I want to use and entering it into the

Re: [PHP] PHP IDE?

2003-12-13 Thread Website Managers.net
Some of us prefer the basics. Note Tab Pro www.notetab.com Has syntax highlighting and enough clip book libraries to do just about anything we want. NetCaptor www.netcaptor.com for previewing our work. Jim www.websitemanagers.net - Original Message - From: Jough Jeaux [EMAIL PROTECTED]

Re: [PHP] setting word wrap

2003-12-13 Thread Website Managers.net
Paul What you have entered there is not normal sentence structure. Since none of your characters have spaces between them, the browser has noplace to break into the next line. Try typing normal sentences including spaces and you will see that the browser will break at or near the right edge,

Re: [PHP] Re: PHP Math Question

2003-12-11 Thread Website Managers.net
I like Eric's idea of showing the values and added a form to it so you can select the number of items to show before running the script. ?php if(!$_POST[Submit]) { echo form method=post action=.$_SERVER[PHP_SELF]. Maximum Number to Show: input type=text name=i size=5 value=1 input