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
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
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
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 ?
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
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
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
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
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
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 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.
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
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;
}
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
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
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
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?
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
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
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)
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
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
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
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
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,
25 matches
Mail list logo