On 22-09-2012 12:34, Ashickur Rahman Noor wrote:
Hi all
I need some help to understand a code. The code is like this
$result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL);
if($row = mysql_fetch_array($result))
{
foreach($row as $key =$value){
On Sat, 2012-09-22 at 13:13 +0200, Maciek Sokolewicz wrote:
On 22-09-2012 12:34, Ashickur Rahman Noor wrote:
Hi all
I need some help to understand a code. The code is like this
$result = mysql_query($sSQL) or die(err: . mysql_error().$sSQL);
if($row =
Hi Ashley
I am updating some one code. Thanks for the notify.
Thanks to all. Now I get that.
--
Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck
2048R/89C932E1 http://goo.gl/TkP5U
Coordinator - Public Relation Cell, FOSS Bangladesh
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote:
Hi Ashley
I am updating some one code. Thanks for the notify.
Thanks to all. Now I get that.
--
Dedicated Linux Forum in Bangladesh http://goo.gl/238Ck
2048R/89C932E1
Op 22 sep. 2012 13:47 schreef Ashley Sheridan a...@ashleysheridan.co.uk
het volgende:
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote:
Hi Ashley
I am updating some one code. Thanks for the notify.
Thanks to all. Now I get that.
.
-Mensagem original-
De: Matijn Woudt [mailto:tijn...@gmail.com]
Enviada em: sábado, 22 de setembro de 2012 11:02
Para: a...@ashleysheridan.co.uk
Cc: Ashickur Rahman Noor; PHP List
Assunto: Re: [PHP] Re: Need help to understand a code
Op 22 sep. 2012 13:47 schreef Ashley Sheridan
;
[...]
And, of course, never ever use * in SQL queries.
Samuel.
-Mensagem original-
De: Matijn Woudt [mailto:tijn...@gmail.com]
Enviada em: sábado, 22 de setembro de 2012 11:02
Para: a...@ashleysheridan.co.uk
Cc: Ashickur Rahman Noor; PHP List
Assunto: Re: [PHP] Re: Need help to understand
On 22-09-2012 16:19, Samuel Lopes Grigolato wrote:
+1 to bad maintainability of the code.
As a suggestion, one better solution could be something like:
[...]
class Entity {
public $id;
public $name;
}
[...]
$entity = new Entity();
foreach [...]
$entity-$$key = $value;
[...]
] Re: Need help to understand a code
Op 22 sep. 2012 13:47 schreef Ashley Sheridan
a...@ashleysheridan.co.uk het volgende:
On Sat, 2012-09-22 at 17:43 +0600, Ashickur Rahman Noor wrote:
Hi Ashley
I am updating some one code. Thanks for the notify.
Thanks to all. Now I get
2012 11:52
Para: Samuel Lopes Grigolato; 'PHP List'
Assunto: Re: RES: [PHP] Re: Need help to understand a code
Samuel Lopes Grigolato samuel.grigol...@gmail.com wrote:
+1 to bad maintainability of the code.
As a suggestion, one better solution could be something like
setembro de 2012 12:35
Para: Samuel Lopes Grigolato
Cc: 'PHP List'
Assunto: Re: RES: RES: [PHP] Re: Need help to understand a code
On Sat, 2012-09-22 at 12:12 -0300, Samuel Lopes Grigolato wrote:
I disagree with you Ashley, some arguments can be found here:
http://sqlblog.com/blogs/aaron_bertrand
CC to php-general.
thanks
On Mon, Aug 20, 2012 at 4:06 PM, Laruence larue...@php.net wrote:
Hi:
Yaf (http://pecl.php.net/yaf) is a PHP MVC framework, which is
build as a PHP extension.
It could be considered as the fastest PHP framework for
Terion Miller wrote:
Hello All,
I am having problems resolving errors with some images causing the Undefined
variable and getting property of non-object errors, I am trying to make a
copy function so that an order can be viewed then resubmitted as a new order
with minimal changes if needed.
Rahat Bashir schrieb:
Hi Experts,
EID Mubarak to all.
I need your help on writing a MySQL query.
Scenario:
CREATE TABLE transaction
(
`id` int NOT NULL ATUTO INCREMENT,
`date` datetime NOT NULL,
`withdrawn` double (12,2) NULL,
`deposit` double (12,2) NULL
);
SELECT * FROM transaction;
id
While we can point you in the right direction we can't build your project
for you. You cover such a wide range of topics it's like you're trying to
write a huge project but don't know actually how to use PHP. My
recomendation is to go get a good PHP book, there's been a lot of discussion
Sancar Saran wrote:
Beatiful web design one of the best webs site design books also this kind
of
books wery hard to find (because most of them try to teach you html tag by
tag).
You may look some other photoshop books for generating images.
And of course practice makes perfect
As a
modify_values2.php
++
?php
include(connect.php);
$sql = Select * from leaderboard ;
$result = mysql_query($sql);
You'll want to do something like:
$id = mysql_real_escape_string($_GET['id']);
$sql = Select *
* Bruce Gilbert [EMAIL PROTECTED]:
Hello,
I am getting this on the following code, and I am not sure what is
causing the error and need some pros to take a look at it for me.
the error is:
Parse error: parse error, unexpected '{' in
Matthew Weier O'Phinney wrote:
* Bruce Gilbert [EMAIL PROTECTED]:
Hello,
I am getting this on the following code, and I am not sure what is
causing the error and need some pros to take a look at it for me.
the error is:
Parse error: parse error, unexpected '{' in
* Jochem Maas [EMAIL PROTECTED] :
Matthew Weier O'Phinney wrote:
* Bruce Gilbert [EMAIL PROTECTED] :
I am getting this on the following code, and I am not sure what is
causing the error and need some pros to take a look at it for me.
the error is:
Parse error: parse error,
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info. Not anything about MySQL, but
I
didn't see anything that looked obviously wrong, though I don't understand
i recently met samekind of problem, could you pls specify the
OS, Apache, Php and MySQL vesrions you are using?
vk
On 7/18/05, Mark Rees [EMAIL PROTECTED] wrote:
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I added the following to the top of my script:
?php
Quoting Linda H [EMAIL PROTECTED]:
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info.
In addition to the other excellent suggestions so far, make sure
(looking at the phpinfo page, under Configuration File Path) that
your
For those who didn't join this thread at the beginning, I'm running MySQL
4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system.
I installed in the sequence - MySQL, then Apache, then PHP. MySQL was
running when the others were installed (which is what the book I am using
seemed to
Linda H [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
For those who didn't join this thread at the beginning, I'm running MySQL
4.0.21, Apache 2.0.52 and PHP 5.0.2 on a Windows XP system.
I installed in the sequence - MySQL, then Apache, then PHP. MySQL was
running when the others
Thanks for the advice, Matt, but it doesn't seem to solve my problem.
php.ini is in the C:Program Files/WINDOWS directory and error_reporting was
set to E_ALL.
I found php5ts.dll in the WINDOWS/system32 directory. I copied it to
WINDOWS/system, just in case. My install instructions said to
Try this just for kicks:
?
aslkdjfalsd;
?
See if this will output errors. It's rather hard to debug without error
messages ;)
If I remember correctly, isn't php.ini supposed to be in c:/PHP?
Linda H wrote:
Thanks for the advice, Matt, but it doesn't seem to solve my problem.
php.ini is
Try this just for kicks:
?
aslkdjfalsd;
?
Nope - nothing :-(
See if this will output errors. It's rather hard to debug without error
messages ;)
No kidding!
If I remember correctly, isn't php.ini supposed to be in c:/PHP?
It came in c:/php5 as php.ini-recommended. My instructions
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info. Not anything about MySQL, but I
didn't see anything that looked obviously wrong, though I don't understand
a lot of it.
I ried reinstalling MySQL, Apache, and PHP. No change.
You should definitely see a listing for MySQL in phpinfo()...
What order did you install MySQL/PHP/Apache?
Linda H wrote:
I added the following to the top of my script:
?php
echo phpinfo();
?
Got all sorts of environment and path info. Not anything about MySQL,
but I didn't see anything
Torsten Rosenberger wrote:
Hello
is there a way to parse the named.conf file with preg_match_all to get
back an array which looks like
[options][directory] = '/var/lib/named'
[options][forwoarder] = '192.168.0.2'
[zone][mydomain.com][type] = 'master'
[zone][mydomain.com][notify] = 'yes'
and the named.conf looks like.?
options {
# The directory statement defines the name server's working directory
directory /var/lib/named;
# Write dump and statistics file to the log subdirectory. The
# pathenames are relative to the chroot jail.
dump-file
Use ?php ? if you are implementing php. I think that you can predefine
what scriptlanguage to use, and therefore ? ? can be used.
/Peter
Suneel [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
Hi to all
any one Could tell me any diffrence between ?php ? and ? ?.
And
Please ignor...
I got it...
alex
On Thu, 30 Sep 2004 16:22:02 -0500, Alex Hogan [EMAIL PROTECTED] wrote:
I have a series of questions that are multiple choice. Some of the
questions have multiple answers to them.
Those questions have answers that are indicated by a checkbox that is
Also, forgot to ask if there are any specific settings that need to be
set within php for it to work.
On Thu, 23 Sep 2004 09:55:32 -0400, GH [EMAIL PROTECTED] wrote:
I am new to php and xml and would like to know how I can set a
variable (i.e $terror_threat_level) equal to the value of
From: GH [EMAIL PROTECTED]
I am new to php and xml and would like to know how I can set a
variable (i.e $terror_threat_level) equal to the value of
Threat_Advisory's Condition in the following that is available at
http://www.dhs.gov/dhspublic/getAdvisoryCondition ...
?xml version=1.0
As John noted at the end... I do not have control over the format of
the XML... but thanks I will try... BTW i am using PHP4 is
SimpleXML able to be used and if so how?
Sorry for the newbie question
On Thu, 23 Sep 2004 10:44:31 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: GH [EMAIL
I am new to php and xml and would like to know how I can set a
variable (i.e $terror_threat_level) equal to the value of
Threat_Advisory's Condition in the following that is available at
http://www.dhs.gov/dhspublic/getAdvisoryCondition ...
?xml version=1.0 encoding=UTF-8 ?
From: GH [EMAIL PROTECTED]
BTW i am using PHP4 is
SimpleXML able to be used and if so how?
No, SimpleXML is for PHP5 only. You're probably better off using the regular
expression method rather than loading an entire XML solution for such a
small bit of code...
---John Holmes...
--
PHP General
Sounds good... from that RegExpression what exactly is that returning?
just the value in the quotes?
Thanks
Gary
On Thu, 23 Sep 2004 11:11:16 -0400, John Holmes
[EMAIL PROTECTED] wrote:
From: GH [EMAIL PROTECTED]
BTW i am using PHP4 is
SimpleXML able to be used and if so how?
No,
As John noted at the end... I do not have control over the format of
the XML... but thanks I will try... BTW i am using PHP4 is
SimpleXML able to be used and if so how?
I would just use John's regex idea, I am guessing (i could be wrong
though, I have been many times before) that the
Afzal Hussain ) wrote:
Sir,
I am afzal hussain from bangladesh. Acually i am getting some problem using session in
php. This is the sample code that i have written,
session_start();
//$vbl=This variable is registered;
//session_register('vbl');
$_SESSION['vb1'] = This variable is registered;
1.You must call session_start before making a HTML for
client.
2.Please use if (!session_is_registered('vb1'))
session_register('vb1');
--- S. Kang [EMAIL PROTECTED] wrote:
Afzal Hussain ) wrote:
Sir,
I am afzal hussain from bangladesh. Acually i am
getting
On 09 April 2004 16:39, Strogg wrote:
[snip original problem for which a fix has been posted]
$taxrate = 0.175; //local tax rate in UK is 17.5%
You should note that UK VAT is always rounded *down*, so that this:
$totalamount = $totalamount * (1 + $taxrate);
should be something like:
This the script that is falling over.
It calculates everything correct until the amount reaches £1,000, and then
it falls over and reads only the 1 before the comma, and then outputs the
price to be paid as £1.18 (£1 + the taxrate (0.175 rounded up))
?
echo pOrder Processed at ;
echo
Strogg wrote:
This the script that is falling over.
It calculates everything correct until the amount reaches £1,000, and then
it falls over and reads only the 1 before the comma, and then outputs the
price to be paid as £1.18 (£1 + the taxrate (0.175 rounded up))
?
echo pOrder Processed at
Kristers Hotmail wrote:
Hi!!
When i send data from a form and there is some special characters like ' \ php seems to add an extra \ before every special character in the transfer from the form to the point when I put the data in the .txt file where i store it.
It is a guestbook I'm using the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
hello all i need help to enter one variable in a cookie and then retreive it back
later, i know this probably sounds dumb to most but this is really the first time
ive tried working with cookies so please bear with me, thanks for any
?php echo $_SERVER['REMOTE_ADDR']; ?
Mba wrote:
How could I use this php code,
?php print($REMOTE_ADDR); ?
in order to show the ip in a web page?
thanks
-
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
--
PHP General Mailing List (http://www.php.net/)
Well, try only the toplevel domain... For example, I have like
hns345667dsvdtrt34.telia.com, I doubt that is registred, but telia.com sure
is... I hope.. :S
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
Dan Anderson [EMAIL PROTECTED] skrev i meddelandet
news:[EMAIL PROTECTED]
I
I have a section of my script where I call gethostbyname($hostname) .
For some host names that are not registered (according to register.com)
I am still getting an IP address returned?
What is happening?
Well, try only the toplevel domain... For example, I have like
Ok, I was wrong about top level stuff... My point was that you don't
register every box at like register.com, you only register secondlevel..
Register.com only checks second level (I guess), while php queries the name
on some dns server, which gives php another dns server and so on, until it
finds
BIND9 isn't the only game in town... Here's something from bugtraq
Worth noting (although a bit OT for php-general) that versign mananged to
introduce a nice little XSS w/ this- see full-disclosure list for details
-Evan
-- Forwarded Message --
Subject: Re: Verisign
* Thus wrote Jennifer Goodie ([EMAIL PROTECTED]):
I have a section of my script where I call gethostbyname($hostname) .
For some host names that are not registered (according to register.com)
I am still getting an IP address returned?
What is happening?
Well, try only the
I see a couple have tried my poll.
Please ask and I will send that php file...
Gloria
Gloria L. McMillan wrote:
Hi, all!
I have a working database at:
http://dakotacom.net/~glomc/forms/CAT.html
It does send info to the database, but only shows [ at the upper left of screen
when it
to do.Could you please give me more advice.
thanx in Advance
Angelo
- Original Message -
From: James Rodenkirch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 21, 2003 6:27 PM
Subject: [PHP] Re: need help with MySQL full text searching
You need to use mysql 4.0.10-gamma for full
On Tuesday 22 July 2003 15:46, Angelo Zanetti wrote:
Hi James so what you are saying is that if I am not running mysql
4.0.10-gamma then the full text search wont work.
Strange because if I run the full text search on both full text indexed
fields I get the correct resultset, however I only
You need to use mysql 4.0.10-gamma for full text searching to work
Angelo Zanetti wrote:
Hi
I have a table which contains 3 fields (ID, Title, Abstract) the title and abstract fields have been fulltext indexes like this:
ALTER TABLE biblio ADD FULLTEXT (title,abstract);
that worked fine,
Well, worked nicely for me...
Can you tell me where you can fetch this kind of information?
--
[Win2000 | Apache/1.3.23]
[PHP/4.2.3 | MySQL/3.23.53]
Ivo Fokkema
PHP MySQL programmer
Leiden University Medical Centre
Netherlands
Suhas Pharkute [EMAIL PROTECTED] wrote in message
news:[EMAIL
Suhas Pharkute wrote:
http://sspsoft.com/test/ip2ll.php (in case if you cannot get it, please
click on http://ns1.webhostdns.us and then click on the website link.)
which should identify your Country, State, City. Please click on one of the
buttons to provide feedback.
I'm in London, England
and
All I got was Error
-Original Message-
From: Peter Clarke [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 17, 2003 7:14 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Need Help: Please click on Test Link
Suhas Pharkute wrote:
http://sspsoft.com/test/ip2ll.php (in case if you cannot get
you probably cant ge this to work in PHP. try creating a temporary table
-shiva
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hi i'm trying to get this sql query to work, i'm trying to update and
select at the same time, i'm not even sure if this is even possible
update
you probably cant ge this to work in MySQL. try creating a temporary table
Shivanischal A [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
you probably cant ge this to work in PHP. try creating a temporary table
-shiva
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Shien Hang Low [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
From: Gabor Hojtsy [EMAIL PROTECTED]
To: Shien Hang Low [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: need help on coding
Date: Sun, 15 Jun 2003 12:26:53 +0200
Please ask support questions at [EMAIL
you need to quote in your code.
Thomas
On Sun, 15 Jun 2003 17:01:03 + [EMAIL PROTECTED] (Shien Hang Low) wrote:
From: Gabor Hojtsy [EMAIL PROTECTED]
To: Shien Hang Low [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
Subject: Re: need help on coding
Date: Sun, 15 Jun 2003 12:26:53 +0200
Shien Hang Low [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
problem :
code :
?
$data= message;
echo $data;
?
output :
message
---
if i want the output to be :
message
i try to used the below code but fail:
?
$data = message;
echo
I will send my whole php file to anybpody willing to help me display this one long
answer
question.
Some previous helpers added some stuff that isn't being used, but I don't know how to
get
rid of it.
Gloria
Gloria L. McMillan wrote:
Hi, again!
I did not see my question as yet so I will
You seem to be missing your last bracket for the while loop that you started
to state the end of the block.
Ben C. [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I have a subscription service and am trying to not allow the buyer to
proceed purchasing another subscription if one of
function make_alphanum($string_val) {
return eregi_replace([^[:alnum:]], , $string_val);
}
strips everything except ALPHA and NUM Chars
Joel
Kenn Murrah [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Greetings.
I'm out of my league here, not knowing enough about regular
Thanks ... one more thing: is there a way to modify this to allow a period
(dot) to included, as well as the alha and num characters?
once again, thanks.
function make_alphanum($string_val) {
return eregi_replace([^[:alnum:]], , $string_val);
}
strips everything except ALPHA and NUM
eregi_replace([^[:alnum:].], , $string_val);
notice the period after the first closing brace.
Kenn Murrah [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks ... one more thing: is there a way to modify this to allow a
period
(dot) to included, as well as the alha and num
That's fixed. Thanks.
Now, another problem. The data I capture in a form (web page 1) are not
received by the PHP page (web page 2). Is there something different with the
previous version of PHP?
Thanks to all of you for your help.
Jean-Louis
-Original Message-
From:
set register_globals=on in php.ini or use $_POST/$_GET super global array
- Original Message -
From: LeTortorec, Jean-Louis [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 12:14 PM
Subject: [PHP] RE: Need help with ? vs. php?
That's fixed. Thanks.
Now, another
That's fixed. Thanks.
Now, another problem. The data I capture in a form (web page 1) are
not
received by the PHP page (web page 2). Is there something different
with
the
previous version of PHP?
Register_globals
---John W. Holmes...
PHP Architect - A monthly magazine for PHP
Don't know if anyone said it, but you do not need to use php?, it's invalid
AFAIK... just probably as they said, set short_tags=On in php.ini or
something similar...
Jean-Louis Letortorec [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello everyone,
I've installed the Apache v2.0.44
Hmmm... I guess no one is doing this??? Seems fairly common.
Thanks!
Shawn
Shawn McKenzie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I have a form and I want the user to be able to enter html in a text area.
This will then be stored in an array in a
On Tuesday 11 February 2003 07:03, Shawn McKenzie wrote:
Hmmm... I guess no one is doing this??? Seems fairly common.
Patience. You should allow 1 day to give every list subscriber a chance to
read your post.
Shawn McKenzie [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
check your sql-statement!
Thkiat wrote:
Can someone tell me what should I do to solve this problem?
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result
resource in /home/epcc/public_html/exoops/class/database/mysql.php on line
134
Warning: mysql_fetch_row(): supplied
Show us your code...we can't read your mind.
- Original Message - Thkiat wrote:
Can someone tell me what should I do to solve this problem?
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result
resource in /home/epcc/public_html/exoops/class/database/mysql.php on
- Original Message - Thkiat wrote:
Can someone tell me what should I do to solve this problem?
Of course...
Warning: mysql_fetch_row(): supplied argument is not a valid MySQL
result
resource in /home/epcc/public_html/exoops/class/database/mysql.php on
line
134
Fix your problem
Hi
\ is the escape character:
$real_path=$real_path.\DefaultFld\SubFld\;
should be
$real_path=$real_path.\\DefaultFld\\SubFld\\;
or
$real_path .= \\DefaultFld\\SubFld\\;
if you want to shorten it.
Ppf wrote:
Hi All:
I am trying to generate the directory path dynamically
to save the Uploaded
Check out FFL on Sourceforge.net. Currently, it is
still a standalone PHP app, but in the near/coming
soon future they are going to have it as a PHPWebsite
Module.
That is nice for me, since I have just converted to
PHPWebsite (would have used nuke, but it pissed me off
when it wouldn't let me do
Karl --
Before you go reinventing the wheel , you might check
http://freshmeat.net ... of course there is nothing actually wrong with
reinventing the wheel *grin*
David Jackson
Karl James wrote:
Hello people
Im in need help with creating a system where it will let me
Add/drop players off a
Received fro Yves le duaron :
Try this for example ;
'.$pattern.([^]*)?(\/)?(?(2)|(.*)?\/.$pattern.)'siU
Please notice the U (ungreedy) to enhance the speed.
This also match empty tags ...
Sorry I have no login to send this to the mailing list, do this for me
please !
Baroiller
Like noone seems to find something usefull to help me.. I've done the work
myself :)
I've tried this :
$eregstr=/style[^]*([^]|[^\/]|\/[^style]|\/style[^])*\/style[^]*
/msi;
$data=preg_match_all($eregstr,$str,$matches);
$str=preg_replace($eregstr,,$str);
Hi David,.
Http authentication is probly not what you would want to
use. Especially if you want to program in timeouts, you
would be better off using session based login variables.
Cookies are even better with an encrypted pasword that has a
windows of time that you have to goto other
Hi,
a simple question.. :)
how do you do ?
You can use 2 methods :
with a .htaccess file on your webserver, updated with your table fields
or a direct authentification with http headers and a little bit of php...
Tell me more? may be I could help you.
Regards,
P.E. Baroiller
Davy Obdam [EMAIL
.
-Original Message-
From: BAROILLER [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED];
[EMAIL PROTECTED] [EMAIL PROTECTED]; [EMAIL PROTECTED]
[EMAIL PROTECTED]
Date: Wednesday, October 16, 2002 2:15 AM
Subject: [PHP] Re: Need help with HTTP-Authentication
Hi,
a simple question.. :)
how do you
Http authentication is probly not what you would want to use. Especially
if you want to program in timeouts, you would be better off using session
based login variables. Cookies are even better with an encrypted pasword
that has a windows of time that you have to goto other pages to renew.
as each one I want to delete will be the smallest ID number
(as it grows with each message added to it).
I think you mean the lowest ID in the table and I suppose you're looking for
a MySQL query. As of MySQL version 4 (currently in development) you can use
delete from tablename where id in
to do a comparison between two values / variables, you have to use ==
instead of =
= is an assignment while == is a comparison operator
if($row['gid'] == 0)
{
$rat = 110;
}
elseif($row['gid'] == 1)
{
$rat = 9.5;
}
else
{
$rat = 6.6;
}
--
PHP General Mailing List
From: B.C. Lance [EMAIL PROTECTED]
Sent: Sunday, August 11, 2002 9:53 AM
Subject: [PHP] Re: need help
to do a comparison between two values / variables, you have to use ==
instead of =
= is an assignment while == is a comparison operator
if($row['gid'] == 0)
I write these this way so
From: B.C. Lance [EMAIL PROTECTED]
Sent: Sunday, August 11, 2002 10:17 AM
Subject: Re: [PHP] Re: need help
snip
Matt wrote:
if(0 == $row['gid'])
/snip
ahhh. let the parser do the check. works great if you are not comparing
with 2 variables :)
in fact, another way to avoid
Aug 2002 15:46:57 +1000
To: Monty [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Need Help with register_globals OFF
Anyone want to share any tips on how to deal with form vars passed to a
script with register_globals turned off? Do you simply refer to them
directly with $_GET
Well, I just upgraded a number of PHP scripts to function with
register_globals turned off, and now better understand what's required to
work with variables more securely.
I wanted to share that the extract() command turned out to be a big help.
Using it meant I didn't have to put $_POST[' ']
I would recommend Infinology Smart Consumers:
http://smartconsumers.infinology.com/
You should look at them. I use them and I am very pleased with their
service. Their servers have very fast response times and the give you
plentiful features.
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
have you tried:
http://www.hostrix.com
?
//Elias
Mantas Kriauciunas [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hey php-general,
i want to buy hosting. but i can't find good one for me. maybe
someone could point some links. but this is what i need!
http://ispcheck.com is the place. Listing of many webhostings. Go and see.
Regards,
Andrey
Hey php-general,
i want to buy hosting. but i can't find good one for me. maybe
someone could point some links. but this is what i need!
Storage up to 100MB
normal transfer
on 03/08/02 3:35 PM, Monty ([EMAIL PROTECTED]) wrote:
Well, to answer my own question, I found a decent tutorial on using sessions
with the new register_globals off here:
http://www.wdvl.com/Authoring/Languages/PHP/Maintaining_state/session_variab
les.html
Anyone want to share any tips
Hi,
Tuesday, July 30, 2002, 1:53:50 PM, you wrote:
D This looks good but I just have one question about it if you don't mind,
D what if someone was uploading a gif or a PNG file? can it be made to only
D detect jpgs?
D Thanks in advance
D Deadsam
Try it this way, it will check if it is a jpeg
1 - 100 of 130 matches
Mail list logo