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
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])) {
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]
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
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
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
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
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]
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,
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
10 matches
Mail list logo