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

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

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? Visit

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

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

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

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

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

2001-05-04 Thread Hoover, Josh
I believe you want something like this: ? $PAGE_TITLE = My Page; ? html head title ?=$PAGE_TITLE? /title /head ... /html 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.

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

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", "BR", $fieldvariable) Josh Hoover KnowledgeStorm, Inc. Searching for a new IT solution for your company? Need to improve your product marketing? Visit

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 "trtdinput type=text name=\"$fieldName\" value=\"${$fieldName}\" size=\"$size\"\n"; } $size would be a form

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

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?

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

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

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: ?php $formVars = ""; //Use $HTTP_GET_VARS if form is a get type while(list($name,$value)=each($HTTP_POST_VARS)) { $formVars .= $name . "=" . $value . ""; } if($submit == 2)

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

2001-02-20 Thread Hoover, Josh
I think this might be a problem... IfDefine SSL AddModule mod_php3.c /IfDefine Shouldn't the IfDefine SSL 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

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.BR\n"; } else { print "Not a

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

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

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,