How do I change the key in an array without having a duplicate key=$value?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I've recently found out that mysql returns blob for both blobs and text
fields. Now, how do I distinguish between the two?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
use mysql_insert_id(). Much more reliable when and if you use the system
with more than one person inserting at the same time.
-Original Message-
From: Christian Ista [mailto:mailing-list;istasofts.com]
Sent: Thursday, October 31, 2002 2:12 PM
To: [EMAIL PROTECTED]
Subject: [PHP]
When retrieving an array from $_POST, which is the right way:
$arrInterests = $_POST[interests[]];
or
$arrInterests = $_POST[interests];
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
: John Meyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 30, 2002 10:29 AM
Subject: [PHP] array question
When retrieving an array from $_POST, which is the right way:
$arrInterests = $_POST[interests[]];
or
$arrInterests = $_POST[interests];
--
PHP General Mailing List
Do I get a cookie for passing this test?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Assuming that I have to for some unknown reason, are there any articles on
storing images in the database and retrieving them?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to speed-up queries, it is suggested that you DO NOT store images
in the
database. Rather, store the images in files and store file names in the
database.
- Original Message -
From: John Meyer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 29, 2002 9:32 PM
Subject: [PHP
how do you configure apache to force all .html pages to go through the php
parser?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
i've just used str_replace for underscores and it's worked wonderfully.
-Original Message-
From: Shawn McKenzie [mailto:nospam;mckenzies.net]
Sent: Monday, October 28, 2002 4:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] preg_replace (underscore)
Why does preg_replace(^\W^,,$str); not
Two ways this is possible:
1. The user has selected an item and hit the submit button, thereby sending
everything to the server and it is working there.
2. The user comes in from a different link, different server, or has a
cookie on their machine.
- Original Message -
From: Morten
You can use ASP with Mysql, as long as you have myodbc installed on your
machine. For me, ASP has been a bit slower, but you can still use it.
- Original Message -
From: liz lynch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, January 28, 2002 7:14 AM
Subject: [PHP] php vs asp
How about croning the job and splitting up the load as you go.
- Original Message -
From: Mostafa Al-Mallawani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 11:23 PM
Subject: [PHP] mailing to 19000 users
hi, does anyone know how to send mail to 19000 users
) as long as they
are basing it on the facts and there particular needs; what I don't like are
advocates (read a**holes) turning this into a heated debate devoid of any
facts or basis in reality. BTW, I use both and have used both. I'm more
concerned with results, not egos.
John Meyer
Q: What do
Is there anyway to determine the pixel width of a string?
--
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]
if (empty($DidSurvey[$p_surveyid])) {
if (is_array($p_answers)){
foreach($p_answers as $value) {
error line-- $sql = INSERT INTO RESULTS(SURVEY_ID, ANSWER_ID) VALUES( .
$p_surveyid . , . $value . );;
At 11:53 PM 8/30/01 +0200, you wrote:
Gary wrote:
Can someone tell me why I am getting an error for the second line below.
It works locally but not live.
?php
$filename = www/name/test/free.txt
$toread = fopen($filename, 'r');
$contents =
It seems to have slipped me little mind, but how do you suppress error messages?
--
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]
Two questions:
1. Can I tell a form to post to itself without specifying the name of the
web page?
2. If I have a function on one page called by another, will this resolve
correctly?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
At 12:07 AM 8/30/01 +0200, you wrote:
So sprach »John Meyer« am 2001-08-29 um 15:57:02 -0700 :
Two questions:
1. Can I tell a form to post to itself without specifying the name of the
web page?
form action=?php echo $PHP_SELF;?
I am getting this error:
Undefined variable: PHP_SELF
At 03:18 PM 8/29/01 -0700, you wrote:
if you are within a function, try doing this first:
global $PHP_SELF;
Tried that, same error.
BTW, FYI:
Apache 1.3.20 (Win32)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
At 07:27 AM 8/28/01 -0700, you wrote:
I have installed PHP CGI 4.0 on my Win 98 machine with
PWS and tried this script that I put in the wwwroot
directory and called test.php3:
?php $myvar = Hello World; echo $myvar; ?
I called the page from my browser like this:
http://localhost/test.php3
Why
At 05:15 PM 8/28/01 +0228, you wrote:
It's actually a recursive acronym, like GNU:
From the manual:
PHP, which stands for 'PHP: Hypertext Preprocessor', is an HTML-embedded
scripting language.
J
Am I making things up, or Did it stand for Perl Hypertext Preprocessor at
one time?
--
PHP
At 01:21 PM 8/27/01 -0700, you wrote:
I keep my web documents in a CVS repository on a Linux box, and use WinCVS
(GNU) to check files in and out on my WinNT desktop. I use ConTEXT
(freeware) for editing. Documentation and help are always available at
php.net and google.com. I have an Apache
At 05:49 PM 8/22/01 +0200, you wrote:
hi!
do you know an easy-to-use-php-counter, which uses mysql to store the data?
gert
Not off hand, but I could probably program one within the day.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
A couple of things:
1. ASP is not dumb. It was just written by Microsoft. Seriously, though
I'd learn both, it would make you much more marketable.
2. First off, create the database. Then ask yourself what are the steps
that you have to go through. What your probably looking at right now
At 03:12 PM 8/22/01 -0400, you wrote:
Hi,
I get an error message which I can't figure out.
Its a Parse error: on line 142 which is the last line of the page containing
absolutly no code. The last line of code is simply /HTML..Did
anyone have a similar experience? Can anyone help me out
At 01:10 AM 8/23/01 +0100, you wrote:
Or is PHP the be-all and end all?
I know its strong points, but what are the WEAK points of PHP?
- seb
PHP isn't default on Microsoft systems
You have to learn a new language for PHP: ASP is basically either VBScript
or JScript around some objects.
To
At 01:29 AM 8/23/01 +0100, you wrote:
Ah ha, but am I better off becoming a PHP guru or a
jackofalltrades-notverygoodatanyofthem kind of person ;-)
I don't know. I've learned both PHP and ASP, and neither of them have
decreased the other in terms of learning.
The fact is, you are going to
At 03:03 PM 8/20/01 -0700, CC Zona wrote:
To test for a valid http address, I open a socket, pass a HEAD or GET
request, and look for a status code in the response headers. What should I
send to an FTP server to do a similar test?
Why not just try and connect to it?
--
PHP General Mailing
At 08:26 PM 8/18/01 -0700, Rasmus Lerdorf wrote:
Files ~ \.inc$
Order allow,deny
Deny from all
BTW, .inc files can include PHP code that is executed, right?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
At 05:14 PM 8/17/01 -0300, Inércia Sensorial Trabalhando wrote:
Hi All,
A friend of mine said his printf is failing when he parses a variable from
a 4.5 mega file. On smaller files, it works fine.
There's a limit on the printf or somewhere else?
Thanks.
Is he throwing the
I'm currently running my site on a win2k server, I'm using PHP for my tag
board. Today a hacker managed to overwrite the text file I was using to
store all the messages, which really isn't that big a surprise considering
the permissions to the folder it is kept in are wide open thanks to my
Instead of posting the code, I'll give you the link:
http://www.phpbuilder.com/columns/bealers2904.php3?page=1
Short and long of it is the subject line.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Could you please give us some error messages, please?
?php
$connect = mysql_connect(localhost,user_name,password);
$select_data = mysql_select_db(ardani_cd_collection);
$query = SELECT * FROM main where description = '$song_title';
$result = mysql_query($query);
while($row =
. I'm sorry, but the latter tactic seems like a jumping
on the bandwagon approach.
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves for all of our
programs crashing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
At 06:27 PM 7/15/01 +0100, sunny AT wde wrote:
i've been looking for an adequate answer all morning in the archives,
fwrite($file, $articletext);
Don't you have to do a fopen beforehand?
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves
=
AddSlashes($value);
}
will the values be changed outside of the loop?
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves for all of our
programs crashing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
, you should be
trying to limit your need of global variables, so that your program can
count on the integrity of the variables.
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves for all of our
programs crashing
--
PHP General Mailing List (http
?
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves for all of our
programs crashing
--
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
mysql_auery($query) or die(echo mysql_error());
By the way, I know this line should be mysql_query
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves for all of our
programs crashing
--
PHP General Mailing List
($fp, $counter . \n);
$counter = $counter +1;
}
fclose ($fp);
?
Is it writing anything out?
--
John Meyer
Programmer
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
a screenshot
on windows machines, as someone else mentioned)
Agreed, but how about only showing a very small image. Large enough for them
to know what it is, but not large enough that saving it would do them much good.
--
John Meyer
[EMAIL PROTECTED]
Programmer
Those who sacrifice liberty
of the graphic, then
require payment before you give the the high res one.
---
John Meyer
[EMAIL PROTECTED]
Programmer
Those who sacrifice liberty for security deserve neither -- Ben Franklin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
On Sun, 24 Jun 2001, David Robley wrote:
On Mon, 25 Jun 2001 12:04, Tim Thorburn wrote:
Hi,
Working on a site that needs some billing information. Once upon a
time done in ASP where we had the option to use the FormatPercent
command - is there an equivalent command within PHP?
At 11:24 AM 6/22/01 -0600, Unni wrote:
Is there a user group in Colorado?
Thanks
If there is one, I'd like to be a part of it.
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves for all of our
programs crashing
--
PHP General Mailing List
At 12:15 PM 6/18/2001 -0700, Rasmus Lerdorf wrote:
We have re-enabled the PHP mailing lists. They are now running from a
temporary machine sitting on the floor of my spare bedroom. A more
permanent home is in the works.
-Rasmus
Does this also refer to the news server?
John Meyer
[EMAIL
Okay, I read about this feature in the php manual. What I can't figure out
is why in the world would anybody want to use this feature? Not to start a
flame war, just would like an explanation of why this feature is useful.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Okay, that makes a little sense, but isn't there some sort of collection
that will do the same thing (coming from vb).
-Original Message-
From: Jason Stechschulte [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 6:38 AM
To: John Meyer
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP
Actually, I picked up htmlkit when it was mentioned in this group and it's
just as good as Visual InterDev, in my opinion.
-Original Message-
From: Jens Nedal [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 13, 2001 6:58 AM
To: Angerer, Chad; 'Simon Garner'; Boget, Chris;
[EMAIL
Here is the code
?php
$connectionid = odbc_connect("usctoday","","");
$resultid = odbc_do($connectionid,"SELECT S_FNAME, S_LNAME, S_BIO FROM
STAFF;");
$numrows = odbc_num_rows($resultid);
for ($i = 1; $i=$numrows;$i++) {
odbc_fetch_row($resultid);
$fname =
Assuming that you do have a primary key, how can you grab the last record
you inserted? Can you use @@IDENTITY, or something like that?
"Christian Reiniger" [EMAIL PROTECTED] wrote in message
01030310383101.00589@chrisbig">news:01030310383101.00589@chrisbig...
On Saturday 03 March 2001 05:16,
Here's my question: why do you want to do this, and is there a better way to
do this, say a hash list or something?
BTW, isn't monday defined as a constant that always equals "blah!" It
always has for me.
-Original Message-
From: Randy Johnson [mailto:[EMAIL PROTECTED]]
Sent:
Interesting, that, since I will be graduating with majors in Computer
Information Systems _and_ Mass Communications, but I still need a graphic
artist.
Does anybody where I can get a good wife? *JK*
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday,
101 - 154 of 154 matches
Mail list logo