>It doesn't do syntax highlighting, but if you need
>that, then you need to learn to code better.
Ha,ha. too funny.
-Original Message-
From: Jim Lucas [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 9:56 AM
To: jeffrey pearson; [EMAIL PROTECTED]
Subject: Re: RE: [PHP] PHP Ed
This article explains four methods for doing this:
http://www.evolt.org/article/Four_ways_to_work_with_hierarchical_data/17
/4047/index.html
-Original Message-
From: phpu [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 20, 2003 7:41 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Subcatego
You might also want to look at these libraries for mssql native support:
http://www.freetds.org
-Original Message-
From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
Sent: Monday, September 22, 2003 9:21 AM
To: [EMAIL PROTECTED]
Subject: [PHP] php with MsSql
I'm creating a site
If I understand you correctly, it seems like you're asking for Adobe's new Enterprise
version of Acrobat. I've had the opportunity to play with it and I was quite
impressed.
http://www.adobe.com/enterprise/main.html
Edward Dudlik
Becoming Digital
www.becomingdigital.com
- Original Messag
> As for redirecting, you cannot force a client to send a POST request to
another
> URL (thankfully). So, you either need to send the POST request yourself
(and
> send the output to the client), or you need to think of another solution
(such
> as using URL variables for everything).
OK, that soun
Hello,
Is it possible to determine a lifetime for the session in the case of a
cookie-less sessions ?
Thanks for your help.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
First I can't find something like mssql.so in extensions folder. BTW, I
also need gd2.so. How could I get them back? Any easy way to connect ms
sql server? I need migrate my site into linux apache server from win 2k
IIS.
Thanks a lot,
Larry
I just took a thorough look at the Session Handling section in the manual. I couldn't
even find any mention of non-cookie session lifetimes. I get the impression they
either die on broswer close or have a fixed lifetime that cannot be changed.
Hopefully someone can prove me wrong, if only for
Dear all;
I have been using Mysql for a long time, but I have a benchmark Q.
Is pgsql , better ? faster ? more reliable than mysql ?
any comment ?
Some people say that php is not for a very big enterprise, banking ,
application !! they said that java or even .NET is better ... I m against
that b
You need to use FreeTDS to connect from Linux to ms sql server.
and you have to recompile php with gd and mssql
(example --with-mssql=/usr/local/freetds )
I did this 2 month ago and it work with me like a charm I\on very heavy load
server.
for any more info , email me back
Nabil
"Larry Li" <[E
It's generally a good idea to post your code so that we can see what's actually
happening. Fortunately, Peter and Andrew were able to give some good tips this time,
but you might not always be so lucky.
I was going to include some of my code but I fear it may just lead to further
confusion. I
As everyone has said osCommerce is a good cart program, but if you need a
serious customized solution then you are going to need to either spend your
time foucsing on that app and get into it, or your going to want to find
something a little less polished and more just foundation, not saying
os
On Wednesday 24 Sep 2003 11:24, nabil wrote:
> Dear all;
>
> I have been using Mysql for a long time, but I have a benchmark Q.
>
> Is pgsql , better ? faster ? more reliable than mysql ?
How long is a piece of string?
> any comment ?
> Some people say that php is not for a very big enterprise, b
Becoming Digital wrote:
I just took a thorough look at the Session Handling section in the manual. I couldn't even find any mention of non-cookie session lifetimes. I get the impression they either die on broswer close or have a fixed lifetime that cannot be changed. Hopefully someone can prove
nabil wrote:
Dear all;
I have been using Mysql for a long time, but I have a benchmark Q.
Is pgsql , better ? faster ? more reliable than mysql ?
Maybe.
any comment ?
Some people say that php is not for a very big enterprise, banking ,
application !! they said that java or even .NET is better .
Thanks for your help, I'v configured ssh, though it's running fine, I'm not
able to connect to my server, it says-
connect: connection to on port 22 refused.
i think this is due to, some firewall. I'll check it out.
in the mean time can you clearify what are verbatim commands!!!
Thnaks for your
I bet you don't indent your code either. And all white characters are
useless too, they only slow interpreter down. Good coder will understand
this at a glimpse:
if($pos_params!=false){$back_url=substr($HTTP_GET_VARS['origin'],0,$pos_params);$back_url_params=substr($HTTP_GET_VARS['origin'],$pos_p
session.gc_maxlifetime integer
session.gc_maxlifetime specifies the number of seconds after which
data will be seen as 'garbage' and cleaned up.
Note: If you are using the default file-based session handler,
your filesystem must keep track of access times (atime). Windows FAT
does
I had been doign interchange back when it first changed names to
Interchange, I havent used it since it was aquired by Redhat, no particular
reason just personal preference.
Here is the link to FreeTrade. I believe the Restoration Hardware site
started with this code, they have since gone bigg
Hi,
I am trying to print the current and next three years in a form. Using the
following code I can only print 2000, 2001, 2002, 2003:
'.date("Y", mktime(0, 0, 0, 0, 0, $i)).'';
} else {
echo ''.date("Y", mktime(0, 0, 0, 0, 0, $i)).'';
}
$i++;
}
?
This will be some misterios error. I would change more configuration
options, namely output log filenames. Well, but this won't help you now.
Are you sure the other apache is not runnig?
Jan Vitek wrote:
Hello,
I installed Apache 2.0.47 with PHP 4.3.3 (as Apache module). Everything worked fine
Hi,
How can i add a leading zero to the first result of this loop so that i get
00, 15, 30, 45?
'.$i.'';
$i+=15;
}
?>
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
$current=date('Y');
for($i=0;$i<4;$i++){
echo $current + $i;
}
Shaun wrote:
Hi,
I am trying to print the current and next three years in a form. Using the
following code I can only print 2000, 2001, 2002, 2003:
'.date("Y", mktime(0, 0, 0, 0, 0, $i)).'';
} else {
e
www.php.net/str_pad
Shaun wrote:
Hi,
How can i add a leading zero to the first result of this loop so that i get
00, 15, 30, 45?
'.$i.'';
$i+=15;
}
?>
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/uns
Hello php-Freaks
I would like to display the number of users that are online on my page.
Scripting that is not the problem... but how can I refresh this number all 2
minutes on a users page?
I don't want to make always a redirect. Isn't the a possibility like
streaming? :-)
Greetings,
Matias from
'.$year.'';
}
?>
Edward Dudlik
Becoming Digital
www.becomingdigital.com
- Original Message -
From: "Shaun" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, 24 September, 2003 08:29
Subject: [PHP] Print current and next three years
Hi,
I am trying to print the current
I checked the PEAR HOMEPAGE but still I don't quite understand what the
project is about.
I am familiar with writing classes and functions.
Now, I can not figure out what the deal is. Does Pear consist of a class
library that comes with the installation?
There is a directory "pear" which is full of
Do your users have to logon? If so, run a count of logged-in users every 2min and use
an IFRAME or Flash movie so that the rest of the page is unaffected.
Edward Dudlik
Becoming Digital
www.becomingdigital.com
- Original Message -
From: "Matias Hohl" <[EMAIL PROTECTED]>
To: <[EMAIL P
[snip]
Hello php-Freaks
I would like to display the number of users that are online on my page.
Scripting that is not the problem... but how can I refresh this number
all 2
minutes on a users page?
I don't want to make always a redirect. Isn't the a possibility like
streaming? :-)
[/snip]
Place a
No, they don't have to login. Does the Netscape Navigator know the
IFRAME-Tag? Can I read values from a DB with Flash?
Thanx
"Becoming Digital" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
Do your users have to logon? If so, run a count of logged-in users every
2min and use
Ok, thanx. I think this is the best way to get a clean result.
But do all the Browsers know the IFRAME-Tag?
"Jay Blanchard" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
[snip]
Hello php-Freaks
I would like to display the number of users that are online on my page.
Scripting th
On Wednesday 24 Sep 2003 13:48, Webmaster wrote:
> I checked the PEAR HOMEPAGE but still I don't quite understand what the
> project is about.
> I am familiar with writing classes and functions.
> Now, I can not figure out what the deal is. Does Pear consist of a class
> library that comes with the
Hopefully someone can help.
I want to create a php script that will...
1. Take a list of URLs separated by commas
2. Covert that to an array
3. Then go through and pull the content from each page in a loop
I am doing this so I can set up a cron job to automatically cache pages with
jpcache.
T
- Original Message -
From: "MIKE YRABEDRA" <[EMAIL PROTECTED]>
> I want to create a php script that will...
>
> 1. Take a list of URLs separated by commas
> 2. Covert that to an array
> 3. Then go through and pull the content from each page in a loop
>
> I am doing this so I can set up a
I love editplus, I love homesite and emacs.
I hate Dreamweaver.
I can read code like that not a problem, but for debugging and layout its
alot easier for me with the returns and tabs. What I do is I have a script
that strips out any space, tabs, carriage returns and then moves the code
into the
On Wed, 2003-09-24 at 08:12, Marek Kilimajer wrote:
> I bet you don't indent your code either. And all white characters are
> useless too, they only slow interpreter down. Good coder will understand
> this at a glimpse:
> if($pos_params!=false){$back_url=substr($HTTP_GET_VARS['origin'],0,$pos_par
* Thus wrote Didier McGillis ([EMAIL PROTECTED]):
> alot easier for me with the returns and tabs. What I do is I have a script
> that strips out any space, tabs, carriage returns and then moves the code
> into the production environment. But really unless you are dealing with
In some cases, f
On Wed, 2003-09-24 at 09:43, Curt Zirzow wrote:
> * Thus wrote Didier McGillis ([EMAIL PROTECTED]):
> > alot easier for me with the returns and tabs. What I do is I have a script
> > that strips out any space, tabs, carriage returns and then moves the code
> > into the production environment. B
* Thus wrote Robert Cummings ([EMAIL PROTECTED]):
> *COUGH* *COUGH* EVERY REAL coder knows that you have to use the
> following brace style for your code to be accepted into the l33t
> hierarchy of [EMAIL PROTECTED]:
>
> if( $pos_params != false )
> {
> $back_url = substr( $HTTP_GET_VARS['orig
On Wed, 2003-09-24 at 09:51, Curt Zirzow wrote:
>
> cat | realprogrammer
>
Dear sir, I am a complete newbie to PHP and have never seen the cat or
realprogrammer programs. Could you please send me detailed documentation
on how each works and where I can find a free copy. Also what does the |
do i
Hi,
> Good coder will understand this at a glimpse:
[snip horrible code]
> if($pos_params!=false)
Assuming it's a boolean, $pos_params is *already* true or false, so testing
it like this is pretty much pointless. It makes more sense (and is much more
readable IMHO) to do something like this:
i
I've dome this recently using a small in
the top right corner.
users_online.php has the tag set.
pete
Matias Hohl wrote:
Hello php-Freaks
I would like to display the number of users that are online on my page.
Scripting that is not the problem... but how can I refresh this number all 2
min
Curt Zirzow wrote:
cat | realprogrammer | in_a_rush
if($p) {
$bu = substr( $_GET['o'], 0, $p );
$bup = substr( $_GET['o'], ++$p );
} else {
$bu = $_GET['o'];
$bup = '';
}
This is a real world example of how real programmer in a rush can
introduce bugs. Original example did not modify $p (
You can use XML-HTTP - works both Mozilla 1.x and I.E. 5.x and write it
to a DIV.
Pete M wrote:
I've dome this recently using a small in
the top right corner.
users_online.php has the tag set.
pete
Matias Hohl wrote:
Hello php-Freaks
I would like to display the number of users that are
Hello srs,
Q 1.
Will the methode __clone() have the posibility of
take arguments It would be usefull to
reinitialize the clone:
age = $age;
$this->owner = $owner;
}
function __clone($owner) {
$this->age = 0;
$this->owner = $owner;
}
}
$molly =
Does xml_HTTP work with Mozilla ??? !
pete
al wrote:
You can use XML-HTTP - works both Mozilla 1.x and I.E. 5.x and write it
to a DIV.
Pete M wrote:
I've dome this recently using a small
in the top right corner.
users_online.php has the tag set.
pete
Matias Hohl wrote:
Hello php
yes.
But it think that only since version 1.1 (latest mozilla version is 1.5rc1)
Pete M wrote:
Does xml_HTTP work with Mozilla ??? !
pete
al wrote:
You can use XML-HTTP - works both Mozilla 1.x and I.E. 5.x and write
it to a DIV.
Pete M wrote:
I've dome this recently using a small
in th
* Thus wrote Jon Haworth ([EMAIL PROTECTED]):
> Hi,
>
> > Good coder will understand this at a glimpse:
>
> [snip horrible code]
>
> > if($pos_params!=false)
um... you rewrote that, his code was:
if( $pos_params != false )
>
> Assuming it's a boolean, $pos_params is *already* true or false,
Jon Haworth wrote:
if($pos_params!=false)
Assuming it's a boolean, $pos_params is *already* true or false, so testing
it like this is pretty much pointless. It makes more sense (and is much more
readable IMHO) to do something like this:
if ($pos_params) {
// something
}
From the futher reading
Maybe use strlen to check the length of the $i then if it's less than 2 do
$i = "0".$i
Quick and dirty, but I've done that trick myself in the past.
C
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: 24 September 2003 12:43
To: Shaun
Cc: [EMAIL PROTECTED]
Subject
Duh
Sorry didn't realise I was replying to a reply to the original message. And
to add insult to injury str_pad looks like it does the job a lot better...
C
-Original Message-
From: Marek Kilimajer [mailto:[EMAIL PROTECTED]
Sent: 24 September 2003 12:43
To: Shaun
Cc: [EMAIL PROTECTED
here you can find example of XML HTTP that will work both I.E & Mozilla
http://webfx.eae.net/dhtml/xmlextras/xmlextras.html
Gal wrote:
yes.
But it think that only since version 1.1 (latest mozilla version is 1.5rc1)
Pete M wrote:
Does xml_HTTP work with Mozilla ??? !
pete
al wrote:
You can
FYI- New to this list but have been a php coder for 2 years.
I know a lot of you out there are going to groan inwardly, but I use
Dreamweaver, mainly because that's what I used since it's inception when I
was writing static sites. I use OSX for my writing platform and occasionally
use BBedit as we
* Thus wrote -- ([EMAIL PROTECTED]):
> Hello srs,
>
> Q 1.
>
> Will the methode __clone() have the posibility of
> take arguments It would be usefull to
> reinitialize the clone:
Wont the clone() not be a clone anymore?
Curt
--
"I used to think I was indecisive, but now I'm not so sure.
I appologize for what may be a newbie-like request, but I have not been
able to find this information in the PHP documentation.
If I were to have a link on an HTML page such as the following:
http://www.foo.com/myscripts/myscript.php?Value1=value&Value2=value
How can I retrieve those values in t
I'm storing some multi-dimensional associative arrays in the file and then
when I need the values somewhere I just include the file and voila my arrays
are defined. Seemed better than looping through arrays writing to a file
and then using the same loop structure to read lines from the file and
as
try this:
\n";
echo 'Value2 = '.$_GET['Value2'];
?>
Jared Steckel wrote:
I appologize for what may be a newbie-like request, but I have not been
able to find this information in the PHP documentation.
If I were to have a link on an HTML page such as the following:
http://www.foo.com/myscri
On Wednesday 24 September 2003 9:47, Gal wrote:
> try this:
>echo 'Value1 = '.$_GET['Value1'];
> echo "\n";
> echo 'Value2 = '.$_GET['Value2'];
> ?>
even better try this:
$value) {
echo "$key = $value";
}
?>
-Jackson
>
> Jared Steckel wrote:
> > I appologize for what may
Hi,
using the folling line fo code i am trying to add some text to an email:
$subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i",
strtotime($booking_start_date));
However the output is:
Booking Commences: 24th September 2003 a09:00
I think the \t is being interpreted as a 'tab', h
You may want to look at Verity's products
http://downloadcenter.verity.com/dlc/index.jsp
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 23, 2003 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Document Management App
Howdy & Good Afternoon!
I am
In article , [EMAIL PROTECTED] says...
> I appologize for what may be a newbie-like request, but I have not been
> able to find this information in the PHP documentation.
>
> If I were to have a link on an HTML page such as the following:
>
> http://www.foo.com/myscripts/myscript.php?Value1=value
Take your result and use sprintf.
$variable_fixed=sprintf("%06s",$variable);
The above code with make $variable 6 digits long and fill all "empty" spaces
with zeros. So if $variable=42, the $variable_fixed with be 42.
Specifically, for your code below, I would say put an if statement after t
On Wed, 24 Sep 2003 11:42:12 +0200
Cranky <[EMAIL PROTECTED]> wrote:
> Hello,
> Is it possible to determine a lifetime for the session in the case
> of a cookie-less sessions ?
>
> Thanks for your help.
>
In my sessions I set an "expire time", which is the current time
(unix timestamp) plus the
$subject .= "\nBooking Commences: ".date("jS F Y")." at ".date("H\:i")
Shaun wrote:
Hi,
using the folling line fo code i am trying to add some text to an email:
$subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i",
strtotime($booking_start_date));
However the output is:
Booking Commen
You are right, the same way as \n is interpreted as a newline. Use
single quotes
Shaun wrote:
Hi,
using the folling line fo code i am trying to add some text to an email:
$subject .= "\nBooking Commences: ".date("jS F Y \a\t H\:i",
strtotime($booking_start_date));
However the output is:
Book
On Wed, 24 Sep 2003 10:34:33 -0400
Kevin Bruce <[EMAIL PROTECTED]> wrote:
> FYI- New to this list but have been a php coder for 2 years.
>
> I know a lot of you out there are going to groan inwardly, but I use
> Dreamweaver, mainly because that's what I used since it's inception when I
> was writ
> Is pgsql , better ? faster ? more reliable than mysql ?
I won't speculate on which one is faster (although I think both camps
would claim ownership of the trump card). But Postgresql does conform
closer to the SQL standard, and there are a number of features available
in it that are not
On Wednesday 24 September 2003 22:43, Shawn McKenzie wrote:
> I'm storing some multi-dimensional associative arrays in the file and then
> when I need the values somewhere I just include the file and voila my
> arrays are defined. Seemed better than looping through arrays writing to a
> file and
Hi John,
My Impression from Jane's mail was that she was thinking of using a PHP
script on the client side and not the server side. Am i correct jane? If
so there would not be security concerns. Obviously as john has so
rightly pointed out php on the server side cannot access local files.
The
IF $int is null and I have a test
If($int < 1) {
//do some foobar
}
will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a
null $int into a zero??
Documentation aint too clear.
Thanks,
Carl.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://ww
From: "Raditha Dissanayake" <[EMAIL PROTECTED]>
> My Impression from Jane's mail was that she was thinking of using a PHP
> script on the client side and not the server side. Am i correct jane? If
> so there would not be security concerns. Obviously as john has so
> rightly pointed out php on the s
On Wed, 24 Sep 2003 10:40:42 -0400 (EDT)
Jared Steckel <[EMAIL PROTECTED]> wrote:
> I appologize for what may be a newbie-like request, but I have not
> been able to find this information in the PHP documentation.
>
> If I were to have a link on an HTML page such as the following:
>
> http://www
In the time you've waited for an answer so far, you could have made
yourself a 3 line script to find out.
Rob.
On Wed, 2003-09-24 at 11:30, Carl Furst wrote:
> IF $int is null and I have a test
>
> If($int < 1) {
> //do some foobar
> }
>
> will $int be evaluated as a zero? IF I cast (int) $int
I just come to do some test this afternoon and here are the results.
Now : '.date('H:i:s');
?>
Reload
And here are the results :
session.use_cookie = 0;
session.gc_maxlifetime = 30; // 30 seconds
session.gc_probability = 100; // 100% => the gc is always called
On page 2, I have :
Array ( [begi
On this listserv I have heard quite a bit of talk about
"accelerators". And I have also seen some advertisements about
"Encryptors" -- letting PHP code be sold in a byte compiled type form so
your clients can't pirate your scripts.
Do these things work? And if they do, can you re
From: "Carl Furst" <[EMAIL PROTECTED]>
> IF $int is null and I have a test
>
> If($int < 1) {
> //do some foobar
> }
>
> will $int be evaluated as a zero? IF I cast (int) $int.. will that turn a
> null $int into a zero??
>
> Documentation aint too clear.
No idea what you're doing here, but you m
Hi,
Why does the following code print '00', surely it should print '08', I'm
baffled!
date("H", mktime(8, 0, 0, 0, 0, 0));
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
select MaeSocio.* from MaeSocio
LEFT JOIN MaeSeguro ON MaeSocio.NroSocio=MaeSeguro.NroSocio
where MaeSeguro.NroSocio is null
MaeSeguro.NroSocio is not null
count(*) MaeSocio = 354000
count(*) MaeSeguro=108000
how i can retype this query?
Jonatan Pugliese
Area Sistemas
ACA - Automovil club A
THE best text/code editor in this planet is BBEdit. No questions about
it. It is a pitty it only runs on Macs. I have used it to write text,
code fortran, pascal, c, c++, html, css and php (among others). It is
great, I love it. Kudos to Bare Bones! Great find/replace utility.
Incredible ad
Thanks:) I'll give BBedit a go for a week and let you know how it turns out.
Yes, Dreamweaver does sucketh much, but it's great for hashing out the page
(WYSIWYG style) then tweeking the code. I Hate (capital H) hand typing
nested tables.* :P
*Hwat the hell do I need typing for, I'm going to be a
Hello list,
I've spent a little time looking to see if this has been done
before, and haven't found it, though I'm certain it has been done. What
I want to do is build a page by first having a selection form. This
select statement will have a number of items within it. When a use
scroll
On Wed, 2003-09-24 at 12:30, Jonatan Pugliese. wrote:
> select MaeSocio.* from MaeSocio
> LEFT JOIN MaeSeguro ON MaeSocio.NroSocio=MaeSeguro.NroSocio
> where MaeSeguro.NroSocio is null
>
> MaeSeguro.NroSocio is not null
>
> count(*) MaeSocio = 354000
> count(*) MaeSeguro=108000
>
> how i can ret
The new Dreamweaver is much better than the previous version.
I still have not found 'the ideal' editor for me and I use several
tools. The one tool that looks like it could become my tool of choice
could be eclipse. because you can build custom editors (plugins) for
anything you need.
Clint
I know we've discussed this numerous times, but I'll chime in again
(mainly because I'm bored).
By far, I have been totally satisfied with UltraEdit. Lightweight, just
about any language you want to edit, user configurable syntax
highlighting (for those into that), handles UNIX / DOS / Mac fil
For me, on Windows, it won't work because Windows won't do anything prior to
1970.
On linux, I get 17 as the result. If I change the year to 2000, then I get
08 on both.
John
"Shaun" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Why does the following code print '00', su
>From the documentation:
http://ca2.php.net/manual/en/function.mktime.php
"Date with year, month and day equal to zero is considered
illegal (otherwise it what be regarded as 30.11.1999, which
would be strange behavior)."
I think the point here to think about is that the date()
Have you considered using multiselect?
Jeremy Russell wrote:
Hello list,
I've spent a little time looking to see if this has been done
before, and haven't found it, though I'm certain it has been done. What
I want to do is build a page by first having a selection form. This
select state
Yes, that would probably work just as well, but I still am having
trouble seeing how to handle things, without having 1000 if's.
I now I probably need an array of the list items and then remove the
item from the array when it is selected but that's as far as I've been
able to think it through.
>
Hi all,
Am having a bit of a problem understanding this, can anybody tell me where
i'm going wrong please?
Basically trying to limit the "vote" to just 1 per person, first am checking
if the the person with username has voted, if that comes back as false then
am checking his ip (because i dont kno
You might try to perform bother queries first then check then by
If ($result1 || $result2) {
echo "You have already voted";
} else {
...
}
This means that if either the username or ip or both exists in the db,
then the user is denied...
Hope this is along the lines of what your needing
On Wed, Sep 24, 2003 at 01:04:45PM -0400, Kevin Bruce wrote:
:
: Thanks:) I'll give BBedit a go for a week and let you know how it turns out.
: Yes, Dreamweaver does sucketh much, but it's great for hashing out the page
: (WYSIWYG style) then tweeking the code. I Hate (capital H) hand typing
: nes
From: "Ryan A" <[EMAIL PROTECTED]>
> Basically trying to limit the "vote" to just 1 per person, first am
checking
> if the the person with username has voted, if that comes back as false
then
> am checking his ip (because i dont know if the person changed his
username
> and is trying to vote agai
--- Stephan Becker <[EMAIL PROTECTED]> wrote:
> With perl there is a CPAN modul that could act as a HTTPclient to
> handle such HTTP issues properly.
With PHP, there is PEAR:
http://pear.php.net/package/HTTP
http://pear.php.net/package/HTTP_Client
http://pear.php.net/package/HTTP_Request
Or, you
Hi,
Another way to restrict them to one vote is to set a cookie. Although not
completely full-proof, its a method I've seen a lot of them use.
-Dan Joseph
> -Original Message-
> From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, September 24, 2003 1:54 PM
> To
BENARD Jean-philippe wrote:
[ snip ]
Is there something to do in order that when I use
xxx_cl_app->ExecuteQuery(), there's a function ExecuteQuery() in
xxx_cl_app that do something like this :
(xxx_cl_app.php)
function ExecuteQuery(x,y) {
$tmpResult = [herited_class]->ExecuteQuery(x,y);
* Thus wrote Shaun ([EMAIL PROTECTED]):
> Hi,
>
> Why does the following code print '00', surely it should print '08', I'm
> baffled!
>
> date("H", mktime(8, 0, 0, 0, 0, 0));
kinda wierd, I say blame it on the y1969 bug.
make sure your day and month don't go backwards, that seems to be
what t
* Thus wrote Dan Anderson ([EMAIL PROTECTED]):
> On Wed, 2003-09-24 at 12:30, Jonatan Pugliese. wrote:
> > select MaeSocio.* from MaeSocio
> > LEFT JOIN MaeSeguro ON MaeSocio.NroSocio=MaeSeguro.NroSocio
> > where MaeSeguro.NroSocio is null
> >
> > MaeSeguro.NroSocio is not null
> >
> > count(*) M
Hey John,
Thanks for replying.
> Just get rid of the check for IP address. All you're going to do is
restrict
> a bunch of people that actually haven't voted just because they have the
> same IP address as someone else. Some ISPs have it so that all requests
look
> like they are coming from the sa
You could take it further and only allow one vote per user and then log
their IP address as well.
There won't be many people who are determined to sway the vote by going
through the hassle of creating a new user and then voting again. But there
may be some. You can weed these out by looking throug
Daevid Vincent wrote:
I have a script on all my client machines that checks into a master server
to dump statistical information into a mysql database. That works great
(using $_GET and an encrypted string). However, now I'd like to have the
client check in to the master and see if it needs any up
1 - 100 of 162 matches
Mail list logo