Re: [PHP] your philosophy on php-design

2002-05-30 Thread Mike Gohlke
Wilbert, On one site as an experiment, I decided to put each frame (I know you don't want to use them...read on) into a single .php. It decides what to do via a switch on $act. Consequently, it's simple to keep it consistent (menu, submenu, footer, etc.). Add item link http://www.pdd.nl >[EMA

Re: [PHP] Intermediate "Searching..." screen.

2002-05-29 Thread Mike Gohlke
As stated elsewhere, this is somewhat similar to what you need. (btw, NOT tested for syntax errors) document.location='$PHP_SELF?finishedquery=$searchquery;"); } else { showsearch($finishedquery); } ?> Jeff Bearer wrote: >I have a part of my site that searches a large database and sometimes

Re: [PHP] $HTTP_SERVER_VARS

2002-05-05 Thread Mike Gohlke
Kyle, Here's a quote I found on Usenet: http://groups.google.com/groups?selm=aec2ace8.0204180402.4c562696%40posting.google.com&output=gplain --- paste --- I think I found out what this HTTP_WEFERER is all about... I was working on a perl script having this problem. Some PCs (Client) running that

Re: [PHP] rather a mysql question

2002-05-03 Thread Mike Gohlke
Depending on your OS, there's a good possibility that the OS is caching HD data. So instead of mysql reading directly from disk, it's getting it from the memory cache. Depending on how heavily your server is used, wait 10 or 15 mins (to let the memory cache clear out) and try it again. Mike.

Re: [PHP] Writing Cross DB application

2002-04-15 Thread Mike Gohlke
ADOdb is probably your best bet for this. http://php.weblogs.com/ADODB Mike... Arcadius A. wrote: >Hello ! >I'm planning to write a database application for MySQL, and then port it to >PostrgeSQL. >Is there any library or class that could help me to write/maintain just one >source code for bot

Re: [PHP] Posting with script tags, or a plea not to

2002-04-12 Thread Mike Gohlke
Barry C. Hawkins wrote: Barry & Rasmus (you already figured this out, I'm sure), That's the problem, it's there but the browser is ignoring the tag as unknown (just as it should). The only way Earthlink can fix that is to do an inline change of < to < and > to > when using the webmail side.

Re: [PHP] popen(); problem, the function don`t finds the command......

2002-04-11 Thread Mike Gohlke
Hermann Bier wrote: Hermann, Even in CLI scripts, you must enclose the php script in delimiters. > Hi!! > > i`ve wrote a little script to run under shell, so this script: > #!/usr/bin/php > $saslpasswd = "/usr/sbin/saslpasswd -p $username"; > $saslproc = popen($saslpasswd,"w"); > fputs($saslpr

Re: [PHP] Assigning the contents of a file to a variable

2002-04-11 Thread Mike Gohlke
Edward R. Bailey wrote: >Hi, > >I am trying to create an html automatic response email to users that >fill out a form. > >Workflow - > >1. User fills out form and selects submit >2. The contents of the form are then mailed to a secretary for record >keeping >3. (Where the problem is) An html bas

Re: [PHP] Adding "a" in "try.jpg"! SOLVED!!

2002-04-10 Thread Mike Gohlke
T., Here's what you want in one simple line. It works with multiple periods, spaces, whatever (I've tested it). It's best to use the PCRE functions since they are binary safe, but eregi_replace also works fine (but preg_replace would be better). preg_replace("/(.*)(\..*)/","$1a$2",$your_sear

Re: [PHP] Again, and Again, and AGAIN!

2002-03-20 Thread Mike Gohlke
Are you hitting enter while in one of the fields or clicking the submit button. I've seen versions of IE that would not set the submit button if enter was used. Personally, I would check for isset($username) && isset($password). Mike... (Sorry for the very late reply, etc. I've been dealin

Re: [PHP] Again, and Again, and AGAIN!

2002-03-16 Thread Mike Gohlke
Dr. Shim wrote: >I've tried repediately to have a PHP script validate a form when the form is >submitted. I'm quite new to PHP, and I'd really appreciate the help anybody >could give me. I've been stuck on this problem far to long. > >I have a form (here's the code): > > > Username: > > The sh