Thanks for the site...it answered my question, actually.
I was not aware that an auto_increment must be not null. And am I correct
that when it says it must be a "key", it means that it must be either
Primary or Unique?
That I did not know.
Anyway, it's working now :)
--
Plutarck
Should be
To my knowledge, though I haven't done any testing with microtime, heredoc
is as faster as using single quotes.
Since the only thing PHP looks for is the characters that were present at
the very begining on the string, there should certainly be no slowdowns at
all.
If it's not that way, I
Thanks for your thoughts. I don't believe it can be as fast as single
quotes, simply because it does variable interpolation, and that's why
printing doubly quoted strings are slower than singles, hence i would think
here docs would be slower as well...but nothing so great that i would to
worry
I'm sorry, I was mistaken. I was thinking that it did not perform variable
interpolation for some reason, but of course in fact it does.
So switch my comment around to say that here doc is about as fast as double
quotes.
I'd test it with microtime, but on windows the "it finished before it
Yesterday I posted a HELP message without any code as a reference. A member of this
list suggests me to post something so here is the story:
The idea is to compare two arrays and substitute information when necessary. I have to
use PHP3 and PHPLIB templates.
This is my today table showing my
Hello friends,
For those who are not allergic to newbie questions:
I want to make a button for a web page from a background gif and a
string. Till here nothing unusual. I used the example from the php
manual and it works like a breeze.
?php
Header("Content-type: image/gif");
On Friday 06 April 2001 16:42, you wrote:
How do I find out if a string is contained in a string. I just need
true/false.
strstr()?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
This is JohnC IMHO, I compaired tri-word groupings here and in his plan
and got a good match.
On Friday 06 April 2001 22:47, you wrote:
Hi,
Does anyone know if and what the limit is of bcc that can be used in
the mail() function? Hundreds, thousands?
If you wonder about approaching such a limit you'll be better off with a
real mailinglist manager (mailman, listar, ezmlm, ...)
--
Hello !
I want to write a small script to decrypt/encrypt/sign emails with the
X509-protocoll.
Does anybody know, where to get information about this protocoll ?
Does anybody has some examples how to use it in php ? Any
ready-to-go-code ?
Any help is welcome !
Martin
--
PHP General
php-general Digest 7 Apr 2001 12:32:53 - Issue 613
Topics (messages 47527 through 47557):
Re: Nearly all (1755) PHP functions in a text file
47527 by: Plutarck
HELP!! comparing arrays
47528 by: paula
47542 by: Yasuo Ohgaki
Re: Print or Echo.
47529 by:
If you are talking about PHP on UNIX, I think the default is
/usr/local/lib/php/extensions/no-debug-non-zts-version
For windows, I don't know.
Regards,
--
Yasuo Ohgaki
"Lindsay Adams" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Okay, you may call me an
Hi,
I'm doing file uploads through PHP and now have a need to retrieve and store
the original fully qualified directory path name used for the upload. For
example if the user copied image file sample.jpg from c:\temp I need to
retrieve and store the c:\temp\ in addition to the sample.jpg that I
urldecode($string)
On Sat, 7 Apr 2001, Victor wrote:
Hello friends,
For those who are not allergic to newbie questions:
I want to make a button for a web page from a background gif and a
string. Till here nothing unusual. I used the example from the php
manual and it works like a breeze.
I'm doing file uploads through PHP and now have a need to retrieve and store
the original fully qualified directory path name used for the upload. For
example if the user copied image file sample.jpg from c:\temp I need to
retrieve and store the c:\temp\ in addition to the sample.jpg that I
Hallo
I am downloading a HTML-File with PHP4.0.5RC1 and I want to change the
useragent-ID from PHP, which will be sent to the webserver where the
HTML-File is.
I am using PHP4.0.5RC1 with NT.
Do you have any ideas ?
--
Markus Wagner
email: [EMAIL PROTECTED]
Hobby: 747 Jumbo-Jet,
So sprach Costas am Wed, Apr 04, 2001 at 02:07:54PM +0100:
Is there an equivalent in PHP of the following code:
equivalent of asp's %= strTest %
Uhm - what does this strange line do??
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:
PHP does have an equivelent, as shown by Shaun :
?=$var?
Things to keep in mind :
1. Is PHP4+ specific
2. Won't work if short_open_tag setting is off (in php.ini)
- One reason to turn this off, to enable XML support
3. Doesn't follow up-and-coming PEAR coding standards
And as
Is it possible to be able to query the DB find the lowest numebr in the
table and then display it on the page.
TIA
George
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list
SELECT * FROM table ORDER BY number LIMIT 1
--Joe
On Sat, Apr 07, 2001 at 05:36:04PM +0100, george wrote:
Is it possible to be able to query the DB find the lowest numebr in the
table and then display it on the page.
TIA
George
--
PHP General Mailing List
PRE-QULIFIED NETWORK MARKETER LEADS FOR YOUR BUSINESS!
SALE PRICES ALL THIS WEEK!
SHARE WITH YOUR ENTIRE DOWNLINE FOR GUARANTEED SUCCESS!
CHECK OUT OUR SITE AND LET US KNOW WHAT WE CAN DO TO HELP YOU SUCCEED!!
http://www.geocities.com/betterleadsthanever
Yes yes I'm a zealot. :)
If the people defining the PEAR standards really were that interested in
standards,
why include alternate ways of doing something? ?=$blah;?
And if the 'short tag' method is useful enough for people, why 'exclude' it
from a standard? This notion of 'PEAR standards'
Hi folks!
have anyone already used FastTemplate over php4 (with the necessary
patches applied) ?
I am facing error when using dymanic macros, have anyone experienced any
problem ?
Thanks a lot for your help!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
Have a look here :
http://www.php.net/manual/en/pear.standards.php
Regarding ?= : the PEAR example was just part of it as it relates to
short_tags, not ?= specifically.
http://www.php.net/manual/en/configuration.php#ini.short-open-tag
Regards,
Philip
On Sat, 7 Apr 2001, Michael Kimsal
Hi!
Is there any limit on the number of recepients that a
bcc or a cc field email can be sent to?
I have a loop which extracts arounf 400 emails from
the database and then sends it as email to all the 400
recepients but the script fails and I get a mysql
error.
SO is there any limit on the
Hello... I have a problem with some special chars I created some kind of
editor for text files but chars like " get a \ in front everytime you
send it here is my code:
form action="self.html" enctype="text/plain"
textarea name="text" cols="80" rows="15" wrap=off
?=$text?
/textareabr
look in your php.ini for the setting of magic_quotes
if on, then php will automatically escape quotes for you once you've
submitted data...you can turn it off, and then addslashes right before you
enter your info into a database, or leave it on and stripslashes where
appropriate.
-jack
Hi,
I would like to display a list of products from a MySQL database in 3
columns. as shown below:
Product A Product D Product G
Product B Product E Product H
Product C Product F
The problem I have is I don't know how many products there will be, so
I can't just print
Hi,
I would like to display a list of products from a MySQL database in 3
columns. as shown below:
Product A Product D Product G
Product B Product E Product H
Product C Product F
The problem I have is I don't know how many products there will be, so
I can't just print
You don't need to count...in your loop you can do something like this:
if($current_pos%3==0){ //then you're at a multiple of three
//code to start new column here
}
-jack
-Original Message-
From: DRN [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 07, 2001 2:55 PM
To: [EMAIL
look here
http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
-jack
-Original Message-
From: Mon Akira [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 07, 2001 3:03 PM
To: "Jack Dempsey"
Subject: Re: [PHP] Char Problem
On my server I cant change anything on the
Assuming your items are in an array
$items =array() //assume a bunch of items in this array
For($i = 0; $i (count($items)/3); $i +=1){
printf("%s\t%s\t%s",$items[$i],$items[$i+3],$items[$i+6]);
}
Should print 3 columns of tab separated text.
Note: typed this quickly, untested, but the theory
On my server I cant change anything on the php.ini is there any way how
to solve this problem in the code?
No. This setting cannot be set within the script but can be with .htaccess
with the following :
php_flag magic_quotes_gpc off
And be sure to have a look here (see user comments
I don't know why your query isn't working, but why aren't you using
phpMyAdmin's add field section?
Browse the tables definition page, and underneath the column descriptsion,
is a line that says Add new fields [textbox: #][popup:At End of
Database][button: Go]
That brings up a fully functional
jon Sat Apr 7 11:22:27 2001 EDT
Modified files:
/php4/ext/ypyp.c
Log:
Fix compilation (strict compilers require constant initializers).
Index: php4/ext/yp/yp.c
diff -u php4/ext/yp/yp.c:1.19 php4/ext/yp/yp.c:1.20
--- php4/ext/yp/yp.c:1.19
are you sure? have you looked here -
http://www.php.net/manual/en/function.set-magic-quotes-runtime.php
maybe i'm misinterpreting it, but it seems to do just what he wants...
-jack
-Original Message-
From: Philip Olson [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 07, 2001 3:23
At 20:45 7/4/2001 +0200, you wrote:
Hello... I have a problem with some special chars I created some kind of
editor for text files but chars like " get a \ in front everytime you
send it here is my code:
form action="self.html" enctype="text/plain"
textarea name="text" cols="80"
How do you get PHP to run at a script, like at a telnet prompt?
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
At 05:32 PM 4/7/2001, Joseph Bannon wrote:
you must compile php as a CGI executable. :-) see the man
~kurth
How do you get PHP to run at a script, like at a telnet prompt?
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Does PHP allow you to add methods to a class outside the class definition?
This seems not to be straightforward since class prototypes are not allowed.
For instance, what I'm trying to do is add a method to the DB class (in
PEAR) that will do a database query, test if the result is an
Martin.
"Martin Thoma" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I want to write a small script to decrypt/encrypt/sign emails with the
X509-protocoll.
Does anybody know, where to get information about this protocoll ?
As far as I'm aware, X509 is just
From: Dean Hall [mailto:[EMAIL PROTECTED]]
Sent: Saturday, April 07, 2001 2:57 PM
Martin.
"Martin Thoma" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I want to write a small script to decrypt/encrypt/sign
emails with the
X509-protocoll.
Does
I have some problems with the PEAR "standards", and I'm wondering what
others have to say about what the PHP developers are doing to overcome PHP's
obvious shortcomings.
bitch
moan
It seems that one obvious improvement to be made to PHP would be the
implementation of real namespaces. It seems
"Dhaval Desai" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!
Is there any limit on the number of recepients that a
bcc or a cc field email can be sent to?
I have a loop which extracts arounf 400 emails from
the database and then sends it as email to
If the people defining the PEAR standards really were that interested in
standards, why include alternate ways of doing something? ?=$blah;?
And if the 'short tag' method is useful enough for people, why 'exclude'
it
from a standard? This notion of 'PEAR standards' does irk me some,
"Michael Kimsal" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm not sure why XML is an issue. Does XML use the ? in it's syntax? XML
tags are, to my knowledge, of the blahblah/ style. Am I missing
something? I admit it's been a bit since I've gotten
sniper Sat Apr 7 14:46:43 2001 EDT
Modified files:
/php4/ext/standard file.c
Log:
ws pollution removed.
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.149 php4/ext/standard/file.c:1.150
--- php4/ext/standard/file.c:1.149 Fri Mar 23
On Sat, 7 Apr 2001, Dean Hall wrote:
"Michael Kimsal" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm not sure why XML is an issue. Does XML use the ? in it's syntax? XML
tags are, to my knowledge, of the blahblah/ style. Am I missing
something?
Is there any limit on the number of recepients that a
bcc or a cc field email can be sent to?
I have a loop which extracts arounf 400 emails from
the database and then sends it as email to all the 400
recepients but the script fails and I get a mysql
error.
SO is there any limit on the number
The older look was neat to show off to people re: pop up menus, etc.,
but this is
a real speed demon, and will be much more useful for searching around.
Speaking of which - there used to be a little HOWTO for doing those kind of
popups - does anyone know where it has gone to?
regards,
jaxon
The older look was neat to show off to people re: pop up menus, etc.,
but this is
a real speed demon, and will be much more useful for searching around.
Speaking of which - there used to be a little HOWTO for doing those kind of
popups - does anyone know where it has gone to?
regards,
jaxon
I'm pretty sure you can make php use the asp style % though too, not sure if
that's for short tags, regular tags or both, I know it's in the config
though, anyone know?
Shaun
On Saturday 07 April 2001 18:46, Michael Kimsal wrote:
On Sat, 7 Apr 2001, Dean Hall wrote:
"Michael Kimsal"
(Reply to your TOFU:)
"shaun" [EMAIL PROTECTED] wrote in message 01040817181702.01567@box">news:01040817181702.01567@box...
I'm pretty sure you can make php use the asp style % though too, not sure
if
that's for short tags, regular tags or both, I know it's in the config
though, anyone know?
Stupid me. Just extend the class.
Now the real question:
Is there any dynamic binding in PHP? Can I override a method in a subclass?
Dean.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Lindsay Adams [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
| Assuming your items are in an array
| $items =array() //assume a bunch of items in this array
| For($i = 0; $i (count($items)/3); $i +=1){
|
Waht might be the most secure method to check,
if a certain page was reached by submitting a form
instead of typing the adress directly?
I read, the the $HTTP_REFERER may be changed, e.g.
when WEBWASHER or other programs are in use!
Pleas help!
Thanx
--
Jochen Kaechelin - Ihr WEBberater
First thanks to all the ideas for reading one word from a file, but I
hit another snag.
Here is what I am trying to accomplish. I have a text file
(questionFile.txt) and it contains questions that can be arranged like:
1. Question One
A1. Question OneA
C. Question Three
For this email, I will
This code won't set a cookie. I took the time part from a past
post to set the time for wy ahead. I must be doing it wrong
though:
$time = time();
$cookie_name = "auth";
$cookie_value = "ok";
$cookie_expire = "$time*3";
$cookie_domain = "";
setcookie($cookie_name, $cookie_value,
"Jochen Kaechelin" [EMAIL PROTECTED] wrote in message
NFBBLHGFAKNLFNPOHMPHOEKLCFAA.jk@intern">news:NFBBLHGFAKNLFNPOHMPHOEKLCFAA.jk@intern...
Waht might be the most secure method to check,
if a certain page was reached by submitting a form
instead of typing the adress directly?
Well, the
php-general Digest 8 Apr 2001 00:43:26 - Issue 614
Topics (messages 47558 through 47605):
Re: Extension_dir in php.ini?
47558 by: Yasuo Ohgaki
possible to get the fully qualified path name for file updloads?
47559 by: Andre Bajew
47561 by: Rasmus Lerdorf
Re: text
has anyone gotten php to compile with gd 2.0? i know gd 2.0 is still in
beta, but i was able to compile and install it without any problems. when
compiling php, however, i end up with some error in regards to the libmysql
extension. if i switch back to gd 1.8, all works fine.
-jr
--
PHP
jon Sat Apr 7 18:13:08 2001 EDT
Modified files:
/php4/ext/imap php_imap.c
Log:
Use tabs instead of spaces.
Index: php4/ext/imap/php_imap.c
diff -u php4/ext/imap/php_imap.c:1.63 php4/ext/imap/php_imap.c:1.64
--- php4/ext/imap/php_imap.c:1.63
the method i gave you will do this..if you use the if clause i showed
and work with it for more than a minute you'll see how you can test to see
if you should add an /tdtd to your data, and this will let you make your
columns.play with it and you'll see..
-jack
-Original
Open Source Project Announcement...
I have started an open source project to build a module for
PHP4 that will allow direct calls to Tuxedo services from
the PHP script, the project name is php-tuxedo.
Think about it for a second... The ability from inside a
PHP web page to directly call
I've been having large problems with this so I decided to ask you guys(and gals ^_^).
I have a textarea where you can type your text and it is saved to a file. Then another
script includes that. Unfortunately I can't find a way for the textarea to wrap the
text, or make it so it shows it they
""Dean Hall"" [EMAIL PROTECTED] wrote in message
9ao8dc$s6t$[EMAIL PROTECTED]">news:9ao8dc$s6t$[EMAIL PROTECTED]...
Stupid me. Just extend the class.
Now the real question:
Is there any dynamic binding in PHP?
You can do simlar thing with Variable Function.
For example.
class foo {
var
Read FAQ. Description is in there.
Regards,
--
Yasuo Ohgaki
"jaxon" [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
The older look was neat to show off to people re: pop up menus, etc.,
but this is
a real speed demon, and will be much more useful for
one thing that would help is to str_replace("\n", "br");
I think textarea has a wrap attribute doesn't it?
On Wednesday 04 April 2001 13:20, Chris Anderson wrote:
I've been having large problems with this so I decided to ask you guys(and
gals ^_^). I have a textarea where you can type your
"shaun" [EMAIL PROTECTED] wrote :
I'm pretty sure you can make php use the asp style % though too, not
sure if that's for short tags, regular tags or both, I know it's in
the config though, anyone know?
Info related to the above can be seen here :
I think you might wanna check if $cookie is set, not $cookie[0], if that
doesn't work just check if $cookie[0] = 0
-Shaun
On Saturday 07 April 2001 21:10, matt thompson wrote:
hey,
i'm designing a small shopping cart w/ cookies where the cookie is used as
an array (the array id being the
I guess this one is quite interesting...
http://www.sitepointforums.com/showthread.php?threadid=19417
and the battle begins...
-km
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the
Or better yet, use nl2br() :
http://www.php.net/manual/en/function.nl2br.php
Regarding the html WRAP attribute, this little tutorial looks
interesting :
http://www.web-wise-wizard.com/html-tutorials/
html-form-forms-textarea-wrap.html
(note: it's one link, had to
There really isn't a way to be truly sure. You might not even need to be in
the first place.
If for instance you have a login page that will display an error message ff
the login data was invalid, but if someone just typed in the address to the
login page you don't want to show that error
As long as PEAR standars are enforced ONLY for the PEAR library, then it's
ok. It makes it alot easier to read such code if all of it's contents use
the same style.
But when they try to reach over and make all applications do it, then it's
too far. But I don't see them trying to do that.
When
I'm wondering if there is any sure way for PHP to determine whether an
uploaded file is definitely an image file.
I have a script that checks for size and mime type ('image/png' or
'image/jpeg'). The script works fine, but I've heard that it is possible
to add those mime type headers to files
Bah. No matter how fast I read, by the time I get to the end of a page a new
page has filled with comments.
I'd say something witty about TIMTOWTDI, microwaves, and what a drunk
sorrority girl has in common with R2D2, but I can't get to the end of the
friggin' thread! It never ends! *cries*
--
The problem is that it is too far in the future.
Your cookie is set to expire in the year 2280. You think that's a little
overkill?
And it runs into the UNIX-style Y2K problem which is...um...13 years from
now? Well anyway...
Make your cookie's expire time a little more reasonable. Like 5
php-4.0.4pl1 compiled with --with-t1lib alternatively segfaults or
gives error messages, depending on where you call ImagePsText(). This
is the warning:
[Sun Apr 8 06:16:57 2001] [error] PHP Warning: libt1 returned error 11 in
/var/www/larsi/lib/chart.php on line 493
And this is what apache
And if the 'short tag' method is useful enough for people, why 'exclude'
it from a standard?
Because no matter what installation of PHP you have, this works:
?php echo $var; ?
But this:
?=$var?
Or this:
? echo $var; ?
Or this:
% echo $var; %
...is made invalid if short_tags are disabled
Well.. I forgot to warn that read it "only" when you've free time.
Having read though all those made me feel sick, and wanted to stop
programming for a year. He he.
-km
- Original Message -
From: "Plutarck" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, April 08, 2001 10:54 AM
I'm trying to compile PHP version 4.0.4pl1 (module and/or cgi) on my windows
98 system using Microsoft Visuall C++, and I have two "little" problems.
For one thing, doing anything like this in my DOS prompt:
./configure
./configure --with-mysql
configure
/configure
et al
...returns:
Bad
I have a remote php script on a remote server that I need to submit
information to. Does PHP have the ability for me to submit information
remotely?
J
Say I'm Hot! - Post Your Picture!
http://www.sayimhot.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
[EMAIL PROTECTED] (Lars Magne Ingebrigtsen) writes:
php-4.0.4pl1 compiled with --with-t1lib alternatively segfaults or
gives error messages, depending on where you call ImagePsText().
I don't know anything about php's internals, but since 4.0.3 worked,
and 4.0.4pl1 didn't I just compared the
Hi!
i have php as an apache mod. i want to exec lynx from php. but when i have
typed the following command
exec("lynx http://mywebsite.com");
OR
passthru("lynx http://mywebsite.com");
it simply does not show any output, just a blank page. I think its the prb
of permission. Please help me
This is exactly what I sent you.
You have to realize that you can't print down one column, and then start a
new one.
You have to print across, left to right before you go down.
You have to modify the print statement to put it into a table, but that is
easy:
Print should be:
You can use fopen/fread to open the script remotely.
Just append the query string onto the url something like this:
www.example.com/example.php?var1=var
...and example.php will have $var1 with the value "var". That's basically
like using GET on a form.
I believe that's what you wanted to do?
Most likely, lynx is not in the PATH of the user that the webserver is
running as, and may not have permission, if it was.
Try telneting in and finding the absolute pathname to lynx, and user that in
your exec statement and see what happens. Might also help if you redirected
stderr to a file so
same results. certain items don't immediately show up in the cart until i
add numerous other items. it's funny, because some items show up all the
time, regardless of what order, etc. they're placed in the cart. very
weird.
thanks for your help though!
"shaun" [EMAIL PROTECTED] wrote in
87 matches
Mail list logo