[PHP]IE6 back button problems

2003-07-28 Thread Jim McNeely
Here's a puzzler, I've searched the archives and couldn't find a 
satisfactory answer, and it would be nice to have one in the archives.

I'm working on a web app that draws a search screen with fields coming 
from settings in a database.

When you do the search, it works fine, but in IE 6 on WinXP when you 
hit the back button it loses the user's form field entries. This is not 
true of IE 5 on the mac, Safari, etc. I've tried all kinds of tweaks to 
the settings in IE6's internet options to no avail.

However, I think it is too simplistic to say that it is just the 
browser, because IE6 maintains form field entries when using the back 
button on some sites, like google.

All pages in the web app force a refresh by sending these headers:
##Header Info to force refresh
  header( Last-Modified:  .
gmdate( D, d M Y H:i:s,
   filemtime( $_SERVER['SCRIPT_FILENAME'] ) ) .
 GMT);
  header(Cache-Control: no-store, no-cache, must-revalidate);
  header(Cache-Control: post-check=0, precheck=0, false);
  header(Pragma: no-cache);
##
I've tried commenting out some or all of these to no avail, it still 
loses the user's form fields.

HOWEVER, I also tried setting a test session variable to something in 
the search results page, and when you hit the back button in IE6 if you 
echo that variable on the search page it echoes the NEW value; other 
browsers it does NOT. So IE6 is requerying for the page without resort 
to a cache, while the others are using cached pages. All the header 
code hooie doesn't seem to affect any of this when you are talking 
about the back button.

TIA

Jim McNeely

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] arguments against moving site from Linux/Apache/PHP server to Windows/IIS/PHP needed

2003-07-24 Thread Jim McNeely
If you have to move to Windows, at least use Apache. I note in my 
server access logs on my Windows test machine that people are trying to 
hack in every day and I have a very obscure site just to test my own 
clients' web apps. It always looks like some kind of super long url 
trying to do some kind of vbscript or something. Apache of course just 
spits it right out. I can't even IMAGINE having a real IIS machine open 
to the internet for a real site. Its just not done. Don't let them, you 
are their last hope; they know not what they do!

Which opens to the notion that Apache isn't really meant for windows, 
and Linux or OS X or BSD or ANY unix is simply more stable and secure. 
It makes business sense to use them because over the long haul you are 
going to spend less time cleaning up after hackers, less time cleaning 
up after crashes, etc. It is pure lunacy to go from a successful linux 
site to a windows IIS site. It will not be as successful.

That said, with my low volume site, apache on windows server 2003 and 
even win XP professional have run very nicely. That might be a nice 
compromise for them.

HTH

Jim McNeely
Envision Data
Custom, intuitive, practical software for your business.
[EMAIL PROTECTED]
http://www.envisiondata.com
(940)383-0907
On Wednesday, July 23, 2003, at 02:13 PM, Chris W. Parker wrote:

Chris Shiflett mailto:[EMAIL PROTECTED]
on Wednesday, July 23, 2003 8:27 AM said:
...the Gartner
Group (suits typically respect their opinion) has recommended that it
not be used in production
(http://www3.gartner.com/DisplayDocument?doc_cd=101034).
Interesting.

If you receive pressure to move away from Linux (a server OS) to
Windows (a desktop OS) for use as a server
References? AFAIK, this is not true.

Win2k server and up (advanced server, datacenter server) are meant for
high availability, especially datacenter server.


Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] php arrays into flash

2003-07-07 Thread Jim McNeely
I know a lot more about php than about flash (which is probably sad) 
but does anyone know how to take info in an array and pass it into an 
array in flash? I think they have arrays, but the only thing I can seem 
to find in flash to get info from php is the loadvariable actionscript 
step. I looked around via google and I couldn't find anything within a 
reasonable time that seemed to answer this question.

TIA

Jim McNeely
Envision Data
[EMAIL PROTECTED]
http://www.envisiondata.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Installation for OS X

2003-07-01 Thread Jim McNeely
check out

http://www.serverlogistics.com/software.php

great binaries for lots of open source OSX with real install packages 
and such from Aaron Faby.

HTH

Jim McNeely
Envision Data
Custom, intuitive, practical software for your business.
[EMAIL PROTECTED]
http://www.envisiondata.com
On Tuesday, July 1, 2003, at 07:01  AM, Didier McGillis wrote:

Went there and couldnt find the download, did he move it.

From: Larry E. Ullman [EMAIL PROTECTED]
To: Rodney Davis [EMAIL PROTECTED]
CC: PHP-General [EMAIL PROTECTED]
Subject: Re: [PHP] Installation for OS X
Date: Mon, 30 Jun 2003 20:26:38 -0400
Does anyone know of a good installation kit like FoxServ, phpTriad, 
etc for
Mac OS X?  I want a quick solution for adding MySQL, GD, phpLib 
support for
my mac.
Follow Marc's instructions at 
http://www.entropy.ch/software/macosx/php/
He provides a compiled version of PHP that includes MySQL support, 
GD, and much, much more.

Larry

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Synchronize MYSQL

2003-06-20 Thread Jim McNeely
From Paul Dubois's MySQL book:

If you are dumping a database so that you can transfer the database to 
another server:
(on the unix command line or in a shell script)

% mysqladmin -h boa.snake.net create samp_db
% mysqldump samp_db | mysql -h boa.snake.net samp_db
the first command obviously creates the db, the second dumps the data 
to it. You can also take the update log which records deletes, inserts, 
updates, etc. as SQL statements, and pipe those to another MySQL server 
in a similar manner.

HTH

Jim McNeely
Envision Data
Custom, intuitive, practical software for your business.
[EMAIL PROTECTED]
http://www.envisiondata.com
On Friday, June 20, 2003, at 07:00  AM, John W. Holmes wrote:

khuram noman wrote:
Dear Members
How to Synchronize two MYSQL databases in php
Thanks
khuram noman
Don't use PHP, just use the replication that's already built into 
MySQL.

--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

PHP|Architect: A magazine for PHP Professionals  www.phparch.com





--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: php editor?

2003-06-16 Thread Jim McNeely
on mac OS X, BBEdit color codes php, perl, shell scripts, SQL, and 
HTML, and does regular expression searches/replaces etc. across 
multiple files and also cleans the dishes. Its definitely my favorite 
text editor.

jim mcneely

On Monday, June 16, 2003, at 10:49  AM, James Hatridge wrote:

Hi John et al,,
On Sunday 15 June 2003 02:09, John Nichel wrote:
Linux I  use Quanta.
Do you know how (or if) to get Quanta to color code PHP like it does 
html? If
I could get that then Quanta would be almost perfit.

Thanks

JIM

--
Jim Hatridge
Linux User #88484
--
 BayerWulf
   Linux System # 129656
 The Recycled Beowulf Project
  Looking for throw-away or obsolete computers and parts
   to recycle into a Linux super computer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Re: Using register_globals

2003-06-12 Thread Jim McNeely
I'm a bit of a neophyte with php, and I've read through lots of prior 
posts and the php.net online docs, but some of this is still not 
registering in my head. TIA for your patience.

I've got a script I include at the head of each of my scripts that 
checks $_POST['username'] and $_POST['password'] against a database, 
and exits to an error page if it doesn't check out. Every link is a 
post where it passes these two values. So if you open any page in the 
whole thing it has to have the actual value of a real username and 
password or it exits to an error page asking for these values.

This seems to have been working fine, but when I installed a newer 
version of php it started making noise about register globals being 
off. Upon further reading, it seems SESSIONS are insecure, COOKIES are 
insecure, POSTS and GETS are insecure. It seems to me that you would 
have to write some exceptionally stupid code for these things to be 
really openly insecure, so I must be missing something.

After a point it seems like if you leave your machine off or disconnect 
it from the network that would be the most secure but you have to pass 
this info somehow. What is the accepted practice for passing user info 
into variables?

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP] Mail - mime question

2003-05-30 Thread Jim McNeely
I've come a long way with many google searches an I almost have this 
working, so have mercy!!!

So what am I missing here?
I'm doing a Mail_mime class smtp mail from php using PEAR. It needs to 
have text and html versions which is why I'm using this. It is sending 
out the email OK, but when I get the mail, I get this as the body of 
the email:

--=_026291a5f21535a06900e25d87a7070a
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Text email simple dimple
--=_026291a5f21535a06900e25d87a7070a
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
htmlbodybHTMLb version of email/body/html
--=_026291a5f21535a06900e25d87a7070a--
TIA...

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php