RE: [PHP] Re: [PHP-DB] Cross site authentication

2001-09-19 Thread Hoover, Josh
A combonation of IP restriction and basic authentication over SSL, while not ideal, would probably be better than most alternatives I can think of. Josh Hoover KnowledgeStorm, Inc. [EMAIL PROTECTED] Searching for a new IT solution for your company? Need to improve your product marketing? Visit

RE: [PHP] re: array question

2001-09-18 Thread Hoover, Josh
If you want to store all the values in the array in one variable (just as a string with delimiters maybe?) Try this: foreach ($array as $value) { $temp .= $value . "|"; } Josh Hoover KnowledgeStorm, Inc. [EMAIL PROTECTED] Searching for a new IT solution for your company? Need to improve

RE: [PHP] Handling sessions between servers?

2001-09-17 Thread Hoover, Josh
You can use NFS shares, but I've read that it is too slow for most situations. My suggestion would be to use a database and use a custom PHP session handler. A really good tutorial (including working code) on how to write custom PHP session handlers utilizing a database can be found at the follo

RE: [PHP] PHP on Win NT , IIS

2001-08-28 Thread Hoover, Josh
> What web server is better on NT with PHP? I'm sure everyone has their own opinion, but if you're using NT, then you're probably just as well using IIS until Apache 2.0 has a final release out. > What PHP installation mode performs better i.e. CGI, SAPI > Module , build or > not build etc ?

RE: [PHP] Re: PHP and SOAP/XML-RPC

2001-08-27 Thread Hoover, Josh
Checkout the following list of SOAP implementations: http://www.soapware.org/directory/4/implementations You should find at least two implementations for PHP there. Josh Hoover KnowledgeStorm, Inc. [EMAIL PROTECTED] Searching for a new IT solution for your company? Need to improve your produ

RE: [PHP] FTP

2001-07-26 Thread Hoover, Josh
You could try this for the sake of simplicity: $fp = fopen ("ftp://user:[EMAIL PROTECTED]/";, "w"); http://www.php.net/manual/en/function.fopen.php Josh Hoover KnowledgeStorm, Inc. [EMAIL PROTECTED] Searching for a new IT solution for your company? Need to improve your product marketing? Visi

RE: [PHP] sql query successful

2001-07-18 Thread Hoover, Josh
I believe you should use the error function for the database you're using to check for failed queries. If you're using MySQL (which it appears that you are), you would do something like this: $sql = mysql_query("SELECT * FROM table ORDER BY rand()"); if(mysql_error()) echo "SQL not exec

RE: [PHP] Getting extensions to load in Win32

2001-07-09 Thread Hoover, Josh
Michael, First, try running php.exe from the command line. When you do that, it will probably give you a message about not being able to find certain dll's it needs. I believe most, if not all, of the dlls you need are in your PHP directory under a dll directory. The best thing to do is to add

RE: [PHP] A universal Database Class

2001-05-17 Thread Hoover, Josh
There are several database abstraction classes out there. There are three that come to my mind right away: ADODB - http://php.weblogs.com/ADODB Metabase - http://phpclasses.upperdesign.com/browse.html/package/20/ PearDB - Not sure of the URL, but you can look in the PEAR directory of a PHP inst

RE: [PHP] PHP4 and MySQL on Macintosh

2001-05-14 Thread Hoover, Josh
Andy, I believe you can run PHP on Mac OS with the use of WebTen by Tenon (http://www.tenon.com/products/webten/). MySQL does not run on Mac OS. You can run both PHP 4 and MySQL on Mac OS X. Since it sounds like you're a Mac developer, I would suggest you check out the AMP mailing list which i

RE: [PHP] Unix file vs. Mac file formats

2001-05-09 Thread Hoover, Josh
PHP at least used to execute Mac formatted files, but it sounds like people are definitely having some serious problems with 4.0.5 with Mac formatted files. The problems I had expereinced with Mac files with PHP was that PHP would report line numbers incorrectly on parse errors, etc. This was be

RE: [PHP] Script invocation similar to ASP <%= %>

2001-05-04 Thread Hoover, Josh
I believe you want something like this: ... For the short cut syntax on echo checkout: http://www.php.net/manual/en/function.echo.php This assumes that you have shortags on in your php.ini file. Josh Hoover KnowledgeStorm, Inc. [EMAIL PROTECTED] Searching for a new IT solut

RE: [PHP] Are calling COM applications a trojan?

2001-04-11 Thread Hoover, Josh
>And, I read a book saying that you can open a word document on the client >side and insert words in it. Are you sure this was done on the client side and not on the server side? Here is a common example used to show a simple use of COM and PHP: $word=new COM("word.application") or die("Cannot s

RE: [PHP] How to convert '2001032018' -> '2001 03 20 18' ? (Fomating Date)

2001-03-20 Thread Hoover, Josh
You could try this: function convertTimeStamp($yourTimeStamp) { $strTime[0] = substr($yourTimeStamp, 0,4); $strTime[1] = substr($yourTimeStamp, 4,2); $strTime[2] = substr($yourTimeStamp, 6,2); $strTime[3] = substr($yourTimeStamp, 8,2); return $strTime; }

RE: [PHP] Text and formating

2001-03-07 Thread Hoover, Josh
You need to do a str_replace() on any fields that need to have breaks in them. Try something like this: echo str_replace ("\n", "", $fieldvariable) Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm a

RE: [PHP] passing variables

2001-03-06 Thread Hoover, Josh
Do you mean you want them to be able to say how long a text field should be? If so, try this: for ($i=0; $i < $fields; $i++) { $fieldName = "field$i"; echo "\n"; } $size would be a form parameter that you allow the user to set along with the field name and value. Josh Hoover K

RE: [PHP] Auto Prepend/Append

2001-03-06 Thread Hoover, Josh
Chris, Try putting php_value auto_prepend_file "foo.php" in your httpd.conf file. Once you put this in the conf file for Apache, restart Apache and see if the changes take place. That should do what you want it to. Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution f

RE: [PHP] help parsing data files

2001-03-02 Thread Hoover, Josh
Try putting this in your config in place of what you currently have: AddType application/x-httpd-php phtml AddType application/x-httpd-php php AddType application/x-httpd-php php3 AddType application/x-httpd-php data Then restart Apache and see if that does it for you. Josh Hoover KnowledgeStor

RE: [PHP] Hiding php Code

2001-03-01 Thread Hoover, Josh
If you don't want the admin or web server user to see your code, you may want to consider Zend's Encode product (http://www.zend.com/zend/products.php#encoder) which encodes your PHP code for you. BUT, this can be rather expensive (depending on your use) and you probably still need your Administr

RE: [PHP] Odd PHP/MySQL Question

2001-03-01 Thread Hoover, Josh
You could try something like this: SELECT year, count(studentID) FROM students GROUP BY year ...where studentID is the primary key column/field in your students table. Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Vi

RE: [PHP] PHP / Filemaker?

2001-02-23 Thread Hoover, Josh
Someone said it already, ODBC would be the best way to go. BUT, keep in mind that ODBC support in FileMaker is not by any means complete. Also remember that FileMaker is always going to be your bottleneck - not PHP. I would suggest looking at MySQL (http://www.mysql.com/) and/or PostgreSQL (htt

RE: [PHP] trouble getting .php3 files to work in php4.0.4pl1 (static)

2001-02-23 Thread Hoover, Josh
Do you mean that index.php3 does not work when you access that page as the index for the directory (http://youripaddress/) or that when you specifically call index.php3 (http://youripaddress/index.php3), it wants to download the script in your browser? Thanks, Josh Hoover KnowledgeStorm, Inc. S

RE: [PHP] trouble getting .php3 files to work in php4.0.4pl1 (static)

2001-02-23 Thread Hoover, Josh
Try doing this in your httpd.conf (replacing what you have now): AddType application/x-httpd-php .php AddType application/x-httpd-php .php3 AddType application/x-httpd-php-source .phps Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your produ

RE: [PHP] Help me! What is wrong?

2001-02-20 Thread Hoover, Josh
I think this might be a problem... AddModule mod_php3.c Shouldn't the be say PHP3 rather than SSL? Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledgestorm.com to lear

RE: [PHP] Header ("location: test.php");

2001-02-20 Thread Hoover, Josh
The answer is yes, you need to pass along your form variables. You could do this with the following: Hope that helps you out some. Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowledg

RE: [PHP] counting files

2001-02-16 Thread Hoover, Josh
Try this bit of code and see if it works. (I don't know if there's a less taxing (on the server) way to get a count of files in a directory or not.) $myDirectory = dir("yourdirectory"); while($entry=$myDirectory->read()) { $filecount++; } $myDirectory->close(); $number = rand(1, $filecount

RE: [PHP] PHP Editors

2001-02-16 Thread Hoover, Josh
I think BBEdit can get that percentage because so many people doing web development use Macs. Even though the overall marketshare for Macs is small, there is a high concentration in the web/graphics development areas. Still, those numbers Allaire shows seem a bit out of whack to me too :) Josh H

RE: [PHP] How to make text BOLD (OFF: Netscape issues)

2001-02-16 Thread Hoover, Josh
Speaking of stylesheets, has anyone had problems with Netscape 4.x, stylesheets, and javascript breaking HTML tags every 4K characters? It seems like Netscape 4.x puts a newline character after 4K characters when using stylesheets and javascript. Has anyone else seen this behavior? An example o

RE: [PHP] validating an e-mail address entry

2001-02-16 Thread Hoover, Josh
Sorry about that last E-mail! Here is what I meant: if (preg_match ("/(@.*@)|(\.\.)|(@\.)|(\.@)|(^\.)/", $emailaddress) || preg_match ("/^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$/",$emailaddr ess)) { print "That is a valid e-mail.\n"; } else { print "Not a va

RE: [PHP] validating an e-mail address entry

2001-02-16 Thread Hoover, Josh
Hi Don, Saw this on the PHP list archive: > -Original Message- > From: Don [mailto:[EMAIL PROTECTED]] > Sent: Friday, February 16, 2001 10:51 AM > To: php list > Subject: [PHP] validating an e-mail address entry > > > Does anyone know of a way to validate an e-mail address that > was

RE: [PHP] How to make text BOLD

2001-02-16 Thread Hoover, Josh
Could you send an example of how you're using the bold/strong tags in your PHP code? If we see it, we can probably help you out better :) Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit KnowledgeStorm at www.knowl