I do not think there is really any way around the dual login from the
same browser issue.
As for the auto-logout I have a suggestion. I have the same set-up for
one of my sites. I have a session MySQL database and I track the id of
a user once they login and then that record is updated with a
Why not make it simple?:
// end PHP code ?>
]'
value='true'>
Dan T
On Mar 14, 2005, at 3:58 PM, Jeff Schmidt wrote:
Hello,
I'm beating my head, and can't figure out *WHY* PHP is giving me
this error. The full error text is:
Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE,
exp
Just an update... on a hunch I changed my mysql_connect to
mysql_pconnect. As expected the first one still takes 5 to 10 seconds
and after that subsequent pages load instantly as expected.
Dan T
On Mar 14, 2005, at 3:07 PM, Dan Tappin wrote:
I have a PHP5.x site under development with MySQL
I have a PHP5.x site under development with MySQL 4.1.x. I had the
site running fine and there were no speed issues at all. Everything is
on the same system (a dual G5 Xserve).
Today however the PHP pages with MySQL calls started to take forever to
load. Static html and php files still loade
should teach them their lesson
about mailing list etiquette. If it continues they will simply be
banned from the list.
With free speech you have to live with the odd incident like this.
Dan Tappin (Dan T)
On Mar 9, 2005, at 11:29 AM, Jochem Maas wrote:
Rory Browne wrote:
SPAMMER
From your email
You need to clearer on 'connecting to' .
Do you mean FTP, MySQL etc???
Dan Tappin
On Mar 2, 2005, at 8:54 AM, Frank Arensmeier wrote:
Hello!
Is there anyone who has some experience in connecting to a IBM AS/400
server with PHP? Any ideas where to start?
Rega
The manual detail this issue:
http://ca.php.net/setcookie
You can't see the cookie until you hit the next page. There is no way
view the newly set cookie.
Dan Tappin
On Mar 2, 2005, at 2:18 AM, Tom Whitbread wrote:
I am using a cookie to detect what skin a user wants to display. The
probl
pplied password and compare to you DB.
Dan Tappin (The other Dan T)
On Mar 1, 2005, at 5:09 PM, Rob Tanner wrote:
WE have a number of PHP webpages that access one of several MySql
databases
and while the PHP files that contain the passwords cannot be accessed
via the
web, we are becoming increas
Please note that my name is DAN TAPPIN not DAN TRAINOR
<[EMAIL PROTECTED]>. Although our last names start with the same
letter you will note that the following characters and our email
addresses are different.
Please double check your facts before you open your big fat ranting
mouths
That sounds ugly.
To be honest the real answer will be unpopular but since the old system
is unusable, not maintainable it should be replaced. I think if you
estimated the time / cost to rebuild the system from scratch it would
still be the better than trying to continue with this PITA system.
What about using a simple session database to ensure multiple logins
are not allowed. You can create a session, store the session ID in
mysql. If the same user tries to login again from a different location
i.e. new session ID you can lock them out / log this activity.
You really can't preven
defans.com/test.php I pasted a large part of O'Henry's
"Gift of
the Magi" into the textarea, and it gets repeated, as before.
Thanks for any help,
Elizabeth
-----Original Message-
From: Dan Tappin [mailto:[EMAIL PROTECTED]
Sent: Monday, February 28, 2005 6:59 PM
To: Elizab
You could try:
for ($i = 1; isset( $_POST['qty'.$i] ); $i++)
{
$qty = $_POST['qty'.$i];
$total .= $qty;
echo $qty . '';
}
echo $total;
Dan T
On Feb 24, 2005, at 8:39 AM, Jay Fitzgerald wrote:
I have messed with this for a couple of days and cant get it right.
Maybe
Hello all,
I am running a few Apache 1.3.x / PHP 4.2.3 systems and I would like to
mess around with using PHP from the command line.
I installed PHP from a nice .pkg installer from Tenon (www.tenon.com)
and it runs fine. The problem is that there is no source code on my
system to run a simple
how you're doing it so I could be wrong.)
Just wondering...
- E
"Dan Tappin" <[EMAIL PROTECTED]> wrote:
I have a simple method of creating easy form processing I
thought
I came up with the idea (I am not claiming to be the first) to have
form
elements I want t
recall correctly it either strips them
entirely or turns them into underscores.
-Samuel | http://enetwizard.net
-Original Message-
From: Dan Tappin [mailto:dan@;wavefront.ca]
Sent: Sunday, October 27, 2002 2:20 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Form element names starting with the
I have a simple method of creating easy form processing I thought
I came up with the idea (I am not claiming to be the first) to have form
elements I want to update via MySQL starting with either "-" or "+".
Example:
+name=DAN
[EMAIL PROTECTED]
-notes=
id=1
The first 2 are required and
I am setting a MySQL update page where a user is provided a HTML form to
update with data auto poulated from a MySQL database via PHP.
All the form element work except for TEXTAREA.
No matter what encoding I use (htmlspecial, htmlentities etc) I get the
browser displaying garbeld text.
Example:
--
2 NULL
This is strange... All of my NOT NULL columns result in '' data instead of
NULL but colunms that do not have a NOT NULL constraint do result in NULL!
Dan
> Try this instead:
>
> INSERT INTO table SET required_field =&quo
I have a table where I have specified several columns which I have specified
that NULL values are not allowed.
I have created a PHP based create / update / delete page where users can
update the table.
I have an INSERT script that takes the user input and generates the
following query statement.
I think you want something like this:
SELECT genre, COUNT(*) as count FROM music GROUP BY genre;
Dan
> I am using PHP to maintain a catalog of music and have been just fine with
> it but have run into one thing i want to do and need some advice.
>
> The format of the data is like so:
>
> upc|
ipt... the only thing u
> really need to know is that you have to send ALL the data to the page with
> javascript, then effectively, it's a static HTML page.
>
> Justin French
>
>
>
> on 16/08/02 12:19 AM, Dan Tappin ([EMAIL PROTECTED]) wrote:
>
>> I am lo
I am looking for an example of conditional menus using PHP / mySQL to
populate the options and values of the menus and java to change these
properties with out needing to submit the form to update it.
Here is the best, closest example I could find using a static page:
http://www.webreference.com
This is a follow-up to another thread - [PHP] session.use_trans_sid
I am setting up a login section of my site using sessions. I have the login
working with and without cookies enabled. I do not want to restrict my
users be requiring cookies.
Here is my /login/login.php file which takes the re
> On Saturday 29 June 2002 18:02, Dan Tappin wrote:
>> I am setting up a login section of my site using sessions. I have the
>> login working with and without cookies enabled. I do not want to restrict
>> my users be requiring cookies.
>>
>> The problem is tha
tically parsed before the main
> file. The file is included as if it was called with the include() function,
> so include_path is used.
>
> The special value none disables auto-prepending.
> - Original Message -
> From: "Dan Tappin" <[EMAIL PROTECTED]>
> T
I had seen some where the procedure to add a default file to include in all
pages served in a virtual domain under Apache.
Can anyone point me to a FAQ on this of some keywords that I should search
the Apache site for.
I want to have a PHP file with all my generic functions loaded on every page
>> -Original Message-
>> From: Dan Tappin [mailto:[EMAIL PROTECTED]]
>> Sent: Thursday, March 28, 2002 12:36 PM
>>
>> My only concern is that I am adding another mysql_connect and
>
> Why do it twice? The connection will still be there later in the s
page do I
need to call a closing ob function after my $dbfail code if the connection
is successful and my redirect ob_end_clean(); call is not made?
Any help would be greatly appreciated.
Thanks,
Dan
P.S. Please CC me/the list as I am on Digest Mode :^)
--
Dan Tappin
Wavefront Communications Limite
e the sort order gets lost. In all
cases I have the ORDER BY toc_order which are my 10,20,30,35 values in each
row.
Can anyone shed some light on this issue?
Here is a link for an example:
http://test.oilfiielddepot.com/test
Please CC me as I am on digest mode.
Thanks,
Dan Tappin ([EMAIL
30 matches
Mail list logo