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