If you only want the associative array, just use mysql_fetch_array($result). If
you're using the constant MYSQL_ASSOC, uppercase it, and don't quote it.
Although the table con_inf in db sbwresearch contains 3 records with
username as the first column, the following short script generates a
One would need to check the db to see if the operation had already been performed, so
as not to do it again.
um , lets say a form calls its own page , does some db operations and then returns to
its former self ,
how do you get it to not perform said db operations on refresh?
i.e the data is
I think this is what you're looking for. It's a script written by Rasmus.
http://www.php-faq.com/faq.php#39
I wonder how I can send a POST-command to a server, via a PHP-script instead
of a form.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
-Original Message-
From: Björne [mailto:[EMAIL PROTECTED]]
Subject: [PHP] Using the fsockopen ()-function
-
$sp = fsockopen ( www.php.net, 80, $errno, $errstr, 25 ); if ( !$sp ) {
die ( $errno . : . $errstr );
}
else {
fputs ( $sp, POST /page.php HTTP/1.1\n );
What I do is:
input type=checkbox name=check[] value=Box 1Box 1BR
input type=checkbox name=check[] value=Box 2Box 2BR
input type=checkbox name=check[] value=Box 3Box 3BR
input type=checkbox name=check[] value=Box 4Box 4BR
input type=checkbox name=check[] value=Box 5Box 5BR
Then in the action
http://www.php.net/manual/en/functions.arguments.php#functions.variable-arg-list
-Original Message-
From: charlesk [mailto:[EMAIL PROTECTED]]
What does the function look like that it can take unlimited arguments?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Read the first user note at the bottom of this manual page:
http://www.php.net/manual/en/function.htmlentities.php
-Original Message-
Subject: [PHP] How to echo the /n, /r, etc... to the HTML display?
So, you see, if I use the PHP function, nl2br(), that took care of the cr and
And I write those as (true == $PHP_MAIL_FORM) so the parser will catch the missing
second equal sign.
This won't parse: (true = $PHP_MAIL_FORM)
Edward R. Bailey wrote:
if ($PHP_MAIL_FORM=true){
should probably be
if ($PHP_MAIL_FORM==true){
--
PHP General Mailing List (http://www.php.net/)
Me thinks you need to have file privileges. See
http://www.mysql.com/doc/P/r/Privileges_provided.html
-Original Message-
From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]]
the current problem at hand of getting the :
error:Access denied for user: 'mjimm@localhost' (Using
password:
I figured this one out, so I thought I'd put it in the archives ...
I just spent a few hours pulling my hair out because the mail sent by mail() was
coming from 'unprivileged user' on my freebsd box. It worked fine for another site on
the same box. It turned out that I has mistakenly
Always use htmlspecialchars() on form value fields and any data you put into the
title tags.
-Original Message-
From: Steven Walker [mailto:[EMAIL PROTECTED]]
?$name = Steven Walker?
form name=form1 method=post action=infocollect.php
input type=text name=name value=?echo
Look here:
http://www.zend.com/apps.php?CID=38
-Original Message-
From: Administration@myclassguide [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 5:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] links manager
Hi
Anybody know of any good scripts for creating a directory
How about:
return $current_page_name[count($current_page_name)-1];
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Can anyone give my puny mind an explanation as to why the following
function only returns the value Array ?
#
What I do is use templates to separate the html from the php. So I end up with (at
least) 2 files per page, one the template; the other the html. If you have tables,
then you need templates for the rows. My model is basically:
If (POST == $HTTP_SERVER_VARS['REQUEST_METHOD']) {
// do data
This tutorial was my introduction to the concept, but you can
find this
information in a hundred other places:
http://hotwiredlycoscom/webmonkey/programming/php/tutorials/tutorial4html
I'd recommend that tutorial only as a guideline for using mySQL and php Don't try to
use the
I don't really remember the tutorial very well I thought it
did a fine job of explaining some of the basics I spent a few hours
with it and felt pretty good However, I agree that it's not a good
intro to PHP's basic features
I stumbled on php a few years ago, and that was my intro
Change the grant to:
grant all on * to clark@localhost identified by 'clark';
Then do a:
flush privileges;
I am trying to connect to the database like this:
$db=mysql_pconnect(localhost, clark, clark)
while in mysql do the following:
grant all on * to clark identified by 'clark';
Could be several things ...
else {
session_register(user_auth_level);
$auth_select = select account_admin_level from account_details where
username='$login_username';
Perhaps echo the sql statement here so you can see what you're trying to do.
$run_auth_select = mysql_query($auth_select);
?php
add a session_start() here
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
}
else {
$_SESSION['count']++;
}
echo $count;
?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Read the manual about magic_quotes_gpc and addslashes()
I prefer to add slashes myself, that way I can verify input lengths but it
has the risk that I might miss a field. The trouble with magic_quotes_gpc is
that if you have to re-display a variable you have to stripslashes() first.
-
- Original Message -
From: Andy [EMAIL PROTECTED]
Subject: [PHP] which rights to set for dirs containing uploaded files?
I am wondering which right I should set for a directory where users can
upload pictures. What would be a secure way? Currenly I did set the rights
to 777 which
How about:
ALTER table auto_increment=0
-Original Message-
From: Claudiu [mailto:[EMAIL PROTECTED]]
I wish it was that simple...
No.. It doesn't work this way...
On Tue, 12 Mar 2002, Rick Emery wrote:
your query is: DELETE FROM mytable;
-Original Message-
First, change the names of your include files to something.inc.php so that no-one can
download the files and get thte source, should their names become known.
Second, you either must use session_register or $_SESSION['variablename'] and not mix
their use.
So instead of:
$authenticated_user =
It's not $PHP_SELF that's the issue here -- well it was probably blank because either
register_globals is off or you were in a function and didn't global it. The real
trouble is that. IE v6.0 is forgiving and if the action= is blank sends the
request to the current page. So you feel comfy
I use webalizer. www.mrunix.net
-Original Message-
From: karthikeyan [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 18, 2002 2:31 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Website STATISTICS
Hi,
Anybody knows any good open source website statistics tool
with graph and
Ob_end_clean is clearing the buffer and not sending any data to the browser. Use
ob_flush or ob_end_flush(). Output buffereing will take care of ordering the headers
so they'll still work even though the include may still be sending some output.
-Original Message-
From: Ian Wayne
I've been working on that at http://www.php-faq.com/ Want to help?
-Original Message-
From: James Taylor [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 22, 2002 2:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] FAQ
Has anyone given any thought to possibly maintaining a FAQ
$i = 1;
foreach ($months) {
// do some things
$i++;
}
-Original Message-
From: Erik Price [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 9:49 AM
I have a foreach loop, where I execute some commands for each
element in
a certain array. One thing I would like to
In my opinion, you should always single quote everything, including numerics. Why?
Say you have a:
$sql = Delete from table where id=$id;
where id is expected to be numeric.
What if the variable id ends up containing:
7 or id0
So the sql would end up as
$sql = Delete from table where id=7
You should use $HTTP_POST_VARS (or $_POST) all of the time. There's security risks in
using register_globals. It's not risky in all cases. But register_globals will allow
arbitrary variables to be added to into the name space of your script by simply
putting them on the uri. Code not
I just did this on a Linux box running Red Hat 7.2 last Friday. I used several
sources on the web and wrote up my exact steps and posted them at
http://www.php-faq.com/as400.html The other sources are quoted in that document.
Keep in mind, it's not the final version of the document, and I'd
after you read this web page (take you no more than 15 minutes), you
should consider browsing the actual HTTP spec, though it's pretty
technical and is very long.
I've html'd the RFC2616 for easier reading and you can find it at
http://www.php-faq.com/httpintro.php
--
PHP General Mailing
-Original Message-
From: Todd Fernandes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 3:07 PM
The way I have it working now is that I check to see if
$PHP_AUTH_USER is
set, and if it is, I send them to the page that is a
directory down behind
the .htaccess file.
if ($lastname=) {
$insert=no
}
Even though you should use either empty() or isset(), you'd have a parse error if you
wrote that as:
if (=$lastname) {
$insert=no
}
It takes a little time to learn to write the test 'backwards' but if you do the php
parser will help and catch your
Parse error: parse error, unexpected
T_ENCAPSED_AND_WHITESPACE, expecting
T_STRING or T_VARIABLE or T_NUM_STRING in ...
when doing sth like:
$name = My $row['name'];
You have to wrap array references in curly braces within double quoted strings. Proper
form is:
$name = My
%htpasswd --help
Usage:
htpasswd [-cmdps] passwordfile username
htpasswd -b[cmdps] passwordfile username password
htpasswd -n[mdps] username
htpasswd -nb[mdps] username password
-c Create a new file.
-n Don't update file; display results on stdout.
-m Force
-Original Message-
From: Hugo Wetterberg [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 02, 2002 1:12 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] $name = My $row['name'] not longer possible?
It is possible to use arrays within strings, just skip ''.
Write
$name=My
-Original Message-
From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 09, 2002 1:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Postal / Zip Code Proximity Search
I don't know what you mean by straight line. AFAIK all of
this will be as the crow flies.
From: Kondwani Spike Mkandawire [mailto:[EMAIL PROTECTED]]
Subject: [PHP] Working under Apache 1.3 but not Under IIS
The function shown below only functions with my
Apache on WinNT... I have tried it on my local
Server (thats the one running the Apache and
it works perfectly)... I am
I found the points file here:
ftp://ftp.census.gov/pub/tiger/pts/geoex.zip
Sorry, I was wrong here. Those aren't the right files, and it's hard to find the
correct ones. Should I ever do that, I'll post a correct link.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
From: Varsha Agarwal [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 4:30 PM
I thought it will ask some user name and
password thing but it just displays me the string
text to send if user hits cancel.
This is the code:
?php
header(WWW-Authenticate: Basic realm=\My
A couple projects that I have thought of doing at are quite large would be:
1. A network monitor, like Big Brother, but written in php. Completely db driven,
with an easy to use web interfaces for monitoring/adding systems and has uptime
graphs, etc. It can be quite complex if you try to add
From: gilles [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002 1:19 PM
Subject: [PHP] outputting a pdf file to IE browser? POST/GET
method bug or not?
?
error_reporting(E_ALL);
session_start();
if (!isset($_SESSION['download'])) {
@$_SESSION['download'] =
From: Dean Ouellette [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 9:43 AM
Subject: [PHP] Newbie getting close, form submission
I am a complete newbie, search the web for examples right now and use
them.
The host has php 3.0.
^
That's really old, you
From: Dean Ouellette [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 10:56 AM
Subject: RE: [PHP] Newbie getting close, form submission
$Message = $HTTP_POST_VARS['Message']; // should single quote
associative array indexes
if (isset($HTTP_POST_VARS['Header'])) {
This is 78
From: Vinod Palan [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 1:41 PM
Subject: [PHP] dbf Help
I have already php installed on linux running with mysql enabled.
Now I wanted to read dbf files and I came to know that we
need to install
php with
-Original Message-
From: Chris Edwards [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 1:11 PM
Subject: [PHP] stores / ecommerce
What are some good e-commerce stores written out there for
PHP and mySQL??
http://marc.theaimsgroup.com/?l=php-generalm=101839857008918w=2
--
From: Matt Babineau [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 3:59 PM
Subject: [PHP] What does register_globals do?
I have never had a clear understanding about what this does,
the php.ini
has an explanation but being newer to PHP I don't understand it very
well. Could
From: Martin Clifford [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 4:21 PM
Subject: Re: [PHP] What does register_globals do?
My way of thinking about is:
With register_globals ON, all variables defined are available
anywhere in the script (with the exception of functions and
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 12:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: PHP Security Advisory: Vulnerability
in PHP versions 4.2.0
I don't know how to appy patches to the PHP software. I just finish
upgrading the website to
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 24, 2002 2:53 PM
Subject: Re: [PHP] Running ./configure multiple times
Yes, it is pretty safe to run ./configure more than once.
The 1st time, it
create the config.cache and so on. The 2nd time, it use the
-Original Message-
From: ctan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 11:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP] 'Previous' 1, 2, 3, 4, etc. 'Next'
I seem to have a problem getting the page to display beyond
the limit if a
page, i.e. if the limit if 10
From: Nathan Cook [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 12:34 PM
Subject: [PHP] New way to make select boxes auto select
You may already be doing it like this, but I think I found a
new way to
make select boxes auto-select (what data they put in) a lot
easier. All
From: Nathan Cook [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 25, 2002 2:52 PM
Subject: Re: [PHP] New way to make select boxes auto select
How are you able to quickly and painlessly determine which
key gets the
selected value, from form submission data, when building the
initial
-Original Message-
From: Carlos Fernando Scheidecker Antunes
[mailto:[EMAIL PROTECTED]]
function SearchOrders() {
global $Orders;
global $HTTP_POST_VARS;
$index = count($HTTP_POST_VARS);
for($i=1; $i = $index; $i++) {
The trouble is here . You should be
Look at the Zend Encoder. It's not free, but there is a free trial available.
http://www.zend.com/store/products/zend-encoder.php
-Original Message-
From: Udo Giacomozzi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 07, 2002 9:36 AM
Subject: [PHP] copy protection
Has somebody
-Original Message-
From: Varsha Agarwal [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 29, 2002 4:27 PM
To: Dennis Moore; [EMAIL PROTECTED]
Subject: Re: [PHP] Help Please
Hi,
I did not find any print or echo stetement in the
sample example before hearder or setcookie function.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 2:54 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Readdir
New To Php so please bear with me... :)
I used the readdir function to read the files listed on a
Apache server. And
it worked fine. Now I would
From: YC Nyon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 01, 2002 12:59 PM
Subject: [PHP] Protect PHP coding
There is the PHP Obfuscator/Obscurer: http://pobs.mywalhalla.net/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
From: Henry [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 09, 2002 6:00 AM
Subject: [PHP] Can I assign to $_POST legitimately
I can do it but is it legit?
$_POST['name']='henry';
within a php script?
if $_POST['name'] is not set. The clearly $_POST['name'] was
not posted!!
Yes,
Here's some Linux ones that satisfy this requirement:
1. Zend IDE: Nice, but $$$ is the big inhibiting factor.
There's a Zend Studio for-non-commercial use version available for
free. It's based on version 2.0 of the product, fully functional.
I would have to say that Zend Studio is
From: Rahul [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 13, 2002 8:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Creating a zip file using php
Hi
I want to create a zip file using php. Can this be done?
If anybody has a code snippet, for this, or any guidelines,
please send it
-Original Message-
From: ed [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 14, 2002 1:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] addslashes() and stripslashes()
Is it a good idea to always use addslashes() on a
value gathered from a text field or textarea?
Yes, always.
From: Ing. Rajesh Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] How to show data in one row from two rows from
the database
Hi everybody
What I wrote in the subject may look complicated so I added a
html file. It
From: Jay Blanchard [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 1:19 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] include opens source, but it shouldn't
[snip]
Only on demand.
I'd like to define the variable without showing the file
$var=include();
do something
From: Sebastian Marcu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 2:32 PM
Subject: [PHP] Problem with Testing if the user has an
account in my database
For some reason though it isn't working right and
keeps telling me that the 'Email' address is already
taken even
-Original Message-
From: Mike [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 15, 2002 2:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Can anyone help me out? I am really getting frustrated!
Hello all,
I am very confused. This script that I have been working on
for a while
From: Tim Fountain [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 16, 2002 7:51 AM
Subject: [PHP] Array query - finding the key for a value
This may be a silly question, but I'm used to being able to find PHP
functions to do whatever I want, but I can't find one to do this!
If I have
I have a calendar application that shows events in a month. I want to add the ability
to have re-occuring events. I've been thinking about how to do that, but it's not
seeming to be too easy.
Say, I have a table of re-occuring events:
eventId int
eventName varchar
eventStartDate date
From: Charlotte [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 8:04 AM
To: [EMAIL PROTECTED]
Subject: [PHP] check unread messages in a forum
I have made a forum in PHP, and the users are logged in using
cookies. I
want all new threads (and if there are new replies in an old
From: Jesse Lawrence [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 9:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] strange error message when trying to start apache
Everything appeared to go smoothly, except when
I try to start up Apache, I get the following error
message:
However.. you think it might be not sure that this workes
for every browser?
PUh... thats bad. Do u have examples for that? It workes
with IE on PC.
Well, the HTTP 1.1 spec says it shouldn't be set when it's typed into the address
line. That happens often enough that it can't be relied
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 27, 2002 11:08 AM
Subject: [PHP] flaking out on foreach
Why is this code:
?php
$bob=array(1,2,3,5,6);
foreach($bob as $foo);
From: Petre Agenbag [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 8:17 AM
To: Petre Agenbag
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] Stepping through an array more than once
Actually, it's not accurate for me to say stepping through an array
more than once, as I want to
I have a page the will print a telephone listing in pdf (using pdflib and inline pdf)
by POSTing the requested orientation and papersize to a second page. I've found that I
have to post to a second page because IE seems to cache a response, and if I post to
the same page, I can never get the
GET solved it.
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 28, 2002 2:44 PM
To: Matt Schroebel
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PDF POST, but refresh is GET
Sounds like an IE bug to me. If it knows there is POST data
From: Hendråwan Rinäldi [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 5:44 AM
Subject: [PHP] PHP_AUTH_USER
anyone can help me what is the script for log out
WWW-authenticate
You can't log out of http authentication. Close the browser is it. Not very secure,
eh. Use a
From: Stas Maximov [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 8:02 AM
To: Matt Schroebel
Cc: PHP General
Subject: Re: [PHP] PHP_AUTH_USER
You can't log out of http authentication. Close the
browser is it. Not
very secure, eh. Use a session based login method
From: R'twick Niceorgaw [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 10:32 AM
Subject: [PHP] help with installation
Sure I'm missing some thing silly here but its monday morning :)
I have just installed php 4.2.3 with apache 1.3.26.
I have all loadmodule/addmodule as well
From: OrangeHairedBoy [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 09, 2002 12:41 PM
Subject: [PHP] PHP Source files
I'm wondering if anyone knows where I can find information
about how PHP
parser processes commands like:
$a=$b+$c;
if ($b $a) {}
(Ones with operators)
-Original Message-
From: Erwin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 11:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Displaying PDF file
Joseph Szobody wrote:
Thanks Erwin, that helps but I'm still not getting it to work.
Should I still use the
From: andy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 7:29 AM
Subject: [PHP] freetype - could not open font problem
I am trying to use freetype, but do always get the message
Warning: Could not find/open font in test.php on line 18
The font is available and ok. I
-Original Message-
From: Michael F. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 24, 2002 12:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Jpeg resize quality problem
Hello,
I have a php script which resizes a jpeg file. I use
ImageCopyResized and
ImageJPEG
Caveat: Don't forget to escape user input before sending to SQL. Those samples leave
that part to your imagination. Bad guys might take advantage of that :)
http://www.google.com/search?q=php+mysql+user+authenticationb
tnG=Google+Search
First hit's a winner :)
--
PHP General
If you are now accessing remotely, you'll need remote privileges for the user, not
just user@localhost. Could also be the db name is incorrect.
-Original Message-
From: John Vanderbeck [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 2:59 PM
He has given me the
account and
You have to check for a db result with either $count = mysql_num_rows($q_updateresult)
or
if ($row = mysql_fetch_array($q_updateresult)).
mysql_query returns a 1 or 0 to indicate if the query was sucessful. One might
typically query a db before inserting a record to make sure it's not there
the man page for header() says look here:
http://www.w3.org/Protocols/rfc2616/rfc2616
From: Christian Dechery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 9:33 AM
where can I find reference on these header stuff?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
or even try
input type=text name=name[]
input type=text name=name[]
This should AFAIK result in an Array, but I'm not sure if
empty fields are put in.
You will get the empty fields except for checkboxes. For checkboxes only the checked
elements come through so you need values that
I would recommend:
title?php echo htmlspecialchars($name); ? is logged in/title
that way you won't get burned by quotes, etc ...
From: Tarrant Costelloe [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 7:59 AM
To: '[EMAIL PROTECTED]'
I want the the secure page to hold the users name
There are some user notes under that manual page that might be of use to you.
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 3:17 PM
For some reason that doesn't provoke a Pop-up. Maybe this is
because I am on an IIS server. Any Ideas?
What is the best way to delete an element from an array?
I tried using unset(), and it didn't work.
unset works with arrary elements, but it must be a global variable and not passed in.
Try the code below to see the results.
?php
// deletes an element of global array
function
php_value safe_mode 1
php_value max_execution_time 15
You need to also set the AllowOverride option in apache so that apache looks into the
.htaccess file.
http://httpd.apache.org/docs/misc/FAQ.html#htaccess-work
I heard that you can modify PHP settings with the .htaccess
file for Apache.
I've never done it but here it is:
http://conf.php.net/pres/index.php?p=slides%2Fintroid=ac2
-Original Message-
From: ryan.barnett1 [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 10:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php FTP
Hi there,
I would like to
NT to fix it. Damn, damn, and double-damn!
Cheers - Miles
At 10:26 AM 4/25/01 -0400, Matt Schroebel wrote:
I've never done it but here it is:
http://conf.php.net/pres/index.php?p=slides%2Fintroid=ac2
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
You can find a function that does that at http://www.zend.com called Get Title Tag in
the Code Gallery under the HTML catagory.
-Original Message-
From: Matthew Ralston [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 9:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Get the
$PHP_AUTH_USER= ought to do it.
From: Jochen Kaechelin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 4:30 AM
Is it possible to unset $PHP_AUTH_USER and $PHP_AUTH_PW after
a successfull '.htaccess-login'?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
You might want to forget the exec and write direct to the file as in this code gallery
item:
http://www.zend.com/codex.php?id=521single=1
From: Joseph Koenig [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 1:40 PM
I'm attempting to streamline my work by writing a script that
$PHP_AUTH_USER = ;
$PHP_AUTH_PW = ;
Ought to do it.
From: Thomas Edison Jr. [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 8:39 AM
To: [EMAIL PROTECTED]
Subject: [PHP] HTTP authentication : logout!!!
Now i woul like to create a logout link after clicking
on which, whenever you
Try:
echo($GLOBALS[$i]);
Or
echo {$GLOBALS[$i]};
This times it's the array in the double quoted strings ...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
-Original Message-
From: Simon Dedeyne [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 10, 2003 9:03 AM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Mysql/php database performance question
So I think I have to reformulate the question: which is
better 5 varchar columns of size 50 or
1 - 100 of 134 matches
Mail list logo