LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Nathan Wallace Date: Sat Sep 18 00:57:11 1999 Subject: PHP Knowledge Base Update -- September 17th, 1999
Please remember that you should NOT send questions to me or the PHPKB
mailing list. Unfortunately, I just don't have enough time in my day to
answer them.
After searching the knowledge base, the manual and the mailing list
archives (remember, the chances of you being the first person to ask are
almost zero) please send your questions to the main PHP mailing list:
php3@lists.php.net
Cheers,
Nathan
------------------------------------------------------------
What does "File Upload Error - No Mime boundary found after start of
file" mean?
http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/631
------------------------------------------------------------
Jose de Leon, Rasmus Lerdorf
This error causes the $uploadfile and $uploadfile_size to be undefined,
but $uploadfile_name is defined with the local file name and
$uploadfile_type is properly defined.
There is a one-in-a-million type of issue where if the contents of the
uploaded file magically contains the series of chars used as the mime
separator it is going to fail. Try some other files to see if this is
the problem in your case.
** OTHER RANDOMLY SELECTED PHPKB ENTRIES **
------------------------------------------------------------
Can I use Oracle cursors to do an update query?
http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/192
------------------------------------------------------------
I don't think this is possible with oracle (as of now). i heard that
they want to add "updateable-cursors" in one of the next versions
(oracle9?)..
------------------------------------------------------------
Where can I get a list of all the php3_ settings for Apache?
What configuration settings can I make for PHP in Apache conf or
.htaccess files?
http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/507
------------------------------------------------------------
Just about every directive listed here has a corresponding Apache
httpd.conf directive. Simply prepend php3_ to the start of the directive
names listed here.
http://www.php.net/manual/configuration.php3
There are some that can't be set in the .conf file though. For the
definitive list, have a look at mod_php3.c in the source code.
...or, a shortcut would be server-info, if you compiled Apache with
mod_info.If yes, enable it (search httpd.conf for server-info handler)
and open http://your.server.name/server-info. Go to php3_module section
and there you'll see all the config. settings
available.
...or you can try this on the command line:
httpd -L
...you can see their current values using php_info()
------------------------------------------------------------
How can I get the ordinal for a number (eg: st for 1st, th for 24th) ?
http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/269
------------------------------------------------------------
You can use the date() function in many cases to do this:
http://www.php.net/manual/function.date.php3
If you just want to do it for a number in general then try this
function:
function ordinal($num) {
if ($num>10 && $num<20) {
$r="th";
} else {
switch ($num%10) {
case 1:
$r="st";
break;
case 2:
$r="nd";
break;
case 3:
$r="rd";
break;
default:
$r="th";
break;
}
}
return $r;
}
------------------------------------------------------------
What is the best way to store credit card information?
Should I email credit card information to myself?
http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/272
------------------------------------------------------------
The best way is to store credit card information is in a database and
access those results over a SECURE connection -- either through the Web
or using Secure Shell (SSH). If you e-mail them to yourself unencrypted
then your secure server is USELESS. E-mail is about as secure as
sending credit card numbers on a post card. Encrypt your mail with PGP
or maybe even the mcrypt library and decrypt it when it comes to your
mailbox.
------------------------------------------------------------
How do I setup the GD library with PHP to create dynamic graphics?
http://e-gineer.com/e-gineer/phpkb/view.phtml/qid/138
------------------------------------------------------------
If you use php on unix: you have to compile in support from gd in php.
1. get the source distribution of php and apache
2. get and install the GD library from http://www.boutell.com/gd/
3. read the INSTALL file in the php source dir for instructions
4. make and install php/apache with gd support using :
./configure --with-gd[=DIR] (plus your other configure directives)
Include GD support (DIR is GD's install dir).
| Navigate in group php.kb at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |