On Wednesday 19 March 2003 15:44, Bryan Koschmann - GKT wrote:
> I need to get a php script to print out a list of random characters. This
> is the list:
[snip]
> They would be printed to a maximum of 50 in a row separated by spaces. Can
> anyone give me a pointer as to how to do this? Since the
Hi,
I need to get a php script to print out a list of random characters. This
is the list:
a'
b'
c'
d'
e'
f'
g'
a''
b''
c''
d''
e''
f''
g''
They would be printed to a maximum of 50 in a row separated by spaces. Can
anyone give me a pointer as to how to do this? Since the rand functions
are only
First of all, the example you gave is only using one argument to the MD5 function.
Secondly, if you *want* to seed/salt the MD5 with a key you can use:
http://www.php.net/manual/en/ref.mhash.php
--
Jason k Larson
aka: der Ritter
Dennis Gearon wrote:
The usage of md5() in PHPLIB show TWO arguments,
The usage of md5() in PHPLIB show TWO arguments, a seed and the string. Nothing in the
online manual shows 2 args. What's the dealio?
Line 111 from PHPLIB7.2c - session.inc:
$id = $this->that->ac_newid(md5(uniqid($this->magic)), $this->name);
--
PHP General Mailing List (http://www.php.net/)
You should put this on the postgres general list not here...
I've heard a lot of talk about this lately, though I haven't gotten around to
implementing it yet.. There is also a section in the online postgres docs on
how to do this.
And if you're fast someone just posted a question 2 minutes ag
Helo,
use is_numeric($str) to check whether a string contains all numeric values.
Foong
"Stephen Of Blank Canvas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Everyone,
>
> Does anyone know if it is possible to check the values of a $_GET field
> and see if the submitted data
how do I connect securely to a postgres database on another server / DNS
name / IP?
Some way to do SSL/SSH easily from PHP?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi Everyone,
Does anyone know if it is possible to check the values of a $_GET field
and see if the submitted data is numeric or contains any letters.
What I want to do is allow users to link to a record in a MySQL db using
the record id's and the values of the name field.
www.domain.com/showlis
I've been looking for an answer to this question for ages, but have failed.
Hopefully one of you guys can help.
I'm looking for a way of finding out what the linux server's country is set
to.
I notice there's setlocale(), but I want something more like getlocale(),
which there doesn't seen to be
I have a subscription service and am trying to not allow the buyer to
proceed purchasing another subscription if one of their subscriptions is
over 29 days past due in their payment. I am trying to query each invoice
and checking to see if it is past due more than 29 days, if it is I want a
messag
you can use strtotime()
example, this will subtract 60 days from the variable you assign to it, in
this case it'll subtract it from $lastDate
and go from there.
strtotime("-60 days");
http://www.php.net/manual/en/function.strtotime.php
cheers,
- Sebastian
- Original Message -
From: "Ph
hmm now u are talkin about caching , our systems guy is planning on using
squid as the caching system is this a good idea ?
>= Original Message From Jason Sheets <[EMAIL PROTECTED]> =
>As a note Turck mmcache does optimization and also caches the compiled
>scripts into shared memory. Zend
Regards,
Daniel
On Wed, 19 Mar 2003 13:16, Sebastian wrote:
> unfortunately i am a rookie with perl, can someone help me convert this
> little bit of code to php?
>
> thanks in advanced.
>
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> open(LOADAVG, '/proc/loadavg') or die $1
$lastDate is a unix time stamp in mySql ... how can i list ONLY the users
who have not logged in for 60days?
--
Philip J. Newman.
Head Developer
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
As a note Turck mmcache does optimization and also caches the compiled
scripts into shared memory. Zend also has the Zend Optimizer and Zend
Encoder.
Turck mmcache is available at http://www.turcksoft.com/en/e_mmc.htm
The benchmarking I did with Turck mmcache showed that Turck was a little
over 1
On 18 Mar 2003 18:20:55 -0700, Jason Sheets wrote about "Re: [PHP] Does
PHP run better under any specific unix os?" what the universal translator
turned into this:
>Everyone has at least one OS of choice (mine is FreeBSD and then
>OpenBSD) so you will have to weigh opinions, I would decide what yo
On Tue, 18 Mar 2003 15:59:32 -0700, Kevin Stone wrote about "Re: [PHP] php
and javascript" what the universal translator turned into this:
>- Original Message -
>From: "Antoine" <[EMAIL PROTECTED]>
>To: "php list" <[EMAIL PROTECTED]>
>Sent: Tuesday, March 18, 2003 3:52 PM
>Subject: [PHP] p
On Tue, 18 Mar 2003 23:19:08 +0100, Chris Hayes wrote about "Re: [PHP]
Mail attachment" what the universal translator turned into this:
>It may be that the mail receiver expects some content after you put this in
>the header:
> Content-Type: text/ascii; charset=iso-8859-1\n
>If you're sen
On Tue, 18 Mar 2003 16:19:28 -0500, Tim Thorburn wrote about "[PHP] mass
mail and selected mailings" what the universal translator turned into
this:
>I've just been asked by a client to create a mass mail program in PHP which
>the client can use to send a single message to everyone in it's email
On Wed, 19 Mar 2003 00:39:11 +0100, Ernest E Vogelsinger wrote about "Re:
[PHP] Which is quicker, if-else statements" what the universal translator
turned into this:
>Noticeable? Probably not, except you're timing loops of a million or more
>cycles... but it's clear that the second method needs mo
On Tue, 18 Mar 2003 15:11:02 -0500, Erik Price wrote about "Re: [PHP]
nstalling PHP" what the universal translator turned into this:
>Does the AddType line in httpd.conf so that files ending with the
>extension ".php" are processed by the PHP binary? You should have a
>section in your httpd.con
If the digest is mailed in the correct format, programs like Forte Agent
and Pegasus can split the digest into its seperate messages. Then you can
reply to a message inside the digest like it was a normal message.
It's kinda neat, but not all (read: few) lists support this, so the ones
that don't
> From: Erik Price <[EMAIL PROTECTED]>
> Date: Tue, 18 Mar 2003 16:57:57 -0500
>
> The only tokenizers I have used are the StringTokenizer and
> StreamTokenizer classes in Java. If you want to learn about these, go
> to this web page: http://www.mindview.net/Books/TIJ/ and download the
> book "Th
On Wed, 19 Mar 2003 07:30:20 +1000, Brad Wright wrote about "Re: [PHP]
Using PHP to get a word count of a MSword doc" what the universal
translator turned into this:
>Thanks for the reply Rene,
>
>Any change of a code sample of how u did this?? Im not at all experienced in
>Java.
>
>Thanks again f
> I have a MySQL query that I am sending the results to text boxes in a
> form.
> In the event of a space in the string data, the string is being
truncated
> at
> the first space. Is there a PHP function that can prevent this string
data
> from being truncated in the form.
No, there's no PHP funct
unfortunately i am a rookie with perl, can someone help me convert this
little bit of code to php?
thanks in advanced.
#!/usr/bin/perl
print "Content-type: text/html\n\n";
open(LOADAVG, '/proc/loadavg') or die $1;
while( ) {
$loadavg = substr( $_, 0, 4 );
}
close(LOADAVG);
cheers,
- Sebastian
I have a MySQL query that I am sending the results to text boxes in a form.
In the event of a space in the string data, the string is being truncated at
the first space. Is there a PHP function that can prevent this string data
from being truncated in the form.
If I print the query results or send
> $abytes = explode('.', $ip); // explode the IP string
> $ip = 0;
> foreach ($abytes as $byte) $ip = ($ip << 8) + $byte;
>
> This will give you the valid numeric equivalent of the IP address.
Isn't that what ip2long() does?
Also, the man page on ip2long() has some good notes and code th
Hi people,
I want to setup a shopping cart for an ecom site which sells baby clothese
but I dont know which to pick,
Agora or OSCommerce? any help appreciated, if possible please tell me why
you picked the one you pick too...
.
Reciently I have purchased a larg
Hi people,
I want to setup a shopping cart for an ecom site which sells baby clothese
but I dont know which to pick,
Agora or OSCommerce? any help appreciated, if possible please tell me why
you picked the one you pick too...
FREE HOSTING.
.
Reciently I have purchase
Your hardware will determine your level of performance and in many cases
stability (cheap components like generic ram lower stability and
performance) but I've had no problems running PHP under FreeBSD 4 or
FreeBSD 5 or Slackware Linux and mostly minor problems running under
HP-UX 10/11.
Everyone
test message
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Just wondering. I am trying to decide whether to build a FreeBSD server
or other... open to suggestions
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hiya Brad--
We published a news item on this a few days ago; there's a free WYSIWYG
editor that works both on IE and Mozilla 1.3 called HTMLArea.
You can find it here:
http://www.interactivetools.com/products/htmlarea/reviews.html
(our news item is at http://phparch.com/newsarchive.php?s=htmlar
On Tue, 2003-03-18 at 23:45, Ruo Zhang wrote:
> I use the following headers to force open a download dialog box. However, my
> download files are located in other directories/subdirectories. How can I specify a
> download path in the header? The 'Content-Location' header does not work in this
>
very cool chris!!!
Justin
on 19/03/03 2:27 AM, Chris Hayes ([EMAIL PROTECTED]) wrote:
> At 14:38 18-3-03, you wrote:
>> Ok, I hope this makes sense,
>>
>> When a user 'registers' with our site, I want to generate their personal
>> webpage for them. Currently, I have a webpage where the conten
Hi,
I use the following headers to force open a download dialog box. However, my download
files are located in other directories/subdirectories. How can I specify a download
path in the header? The 'Content-Location' header does not work in this case. Can
someone please help?
header("Content-t
At 23:04 18.03.2003, Will Bown said:
[snip]
>I am having trouble verifying if a user is within a specified I.P. range.
>The idea is that if a user is at a library within an I.P. range like
>231.55.*.* and their I.P. address is 231.55.122.226 a session would b
At 21:02 18.03.2003, Liam Gibbs said:
[snip]
>Is it just as quick to do:
>
>if($r == 0) {
>} else if($r != 0) {
>}
>
>than to do:
>
>if($r == 0) {
>} else {
>}
>
>The reason I like the former method is because, in a large IF-ELSE block,
>it's clear what belo
At 23:52 18-3-2003, you wrote:
I wrote a function to redirect my page to another one. But for some
reason I keep getting an error.
here is the function I made
function js_pointer_login($thepage)
{
echo ' window.location = '$thepage'
';
}
beside the quote thing which others mentioned, please ma
On Tue, 2003-03-18 at 21:14, Scott Fletcher wrote:
> Groan, I meant 'Basic' not 'Base'..
> > I am trying to figure out how to encrypt the data using the base only.
> > The webserver use the base authentication. I have been searching the PHP
> > manual and I only saw base64_encode() but it
- Original Message -
From: "Antoine" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 3:52 PM
Subject: [PHP] php and javascript
> I wrote a function to redirect my page to another one. But for some
> reason I keep getting an error.
> here is the func
It has to do with the fact that you're using single quotes, and
$thepage is not replaced for its value.
I think you'd want to rewrite the function like this (note the \
escaping the "):
function js_pointer_login($thepage)
{
echo " window.location = '$thepage'
";
}
Hope this Helps,
Oscar F.
Ant
Can anyone recommend a package suitable for editing HTML files on a remote
server through a PHP interface? Basically, an online HTML editor.
Cheers in advance,
Brad
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you are trying to include a variable inside a single quoted string.
change the echo line to this.
echo " window.location = '$thepage'>
";
Jim
- Original Message -
From: "Antoine" <[EMAIL PROTECTED]>
To: "php list" <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 2:52 PM
Subject: [PHP]
I wrote a function to redirect my page to another one. But for some
reason I keep getting an error.
here is the function I made
function js_pointer_login($thepage)
{
echo ' window.location = '$thepage'
';
}
--
Antoine <[EMAIL PROTECTED]>
--
PHP General Mailing List (http://www.php.net/
The tokenizer that Erik was referring to is actually a PHP lexer, not a
general tokenizer. Perhaps you would be looking for the strtok() function?
www.php.net/strtok
Brad Wright wrote:
Erik,
thanks, are you able to pint me to some good reference sources on
tokenizer's... i have never come acro
Steve Keller wrote:
Sexist and inappropriate? You would be offended because I insulted geeks?
Actually, it was not so much your comment that offended me, but the fact
that you chose to reprint his.
> If I was a female coder, I would take great offense to these
comments... but maybe that's just
Hi everyone,
I am currently installing mod-rewrite to change all of my URL's from:
www.domain.com/category.php?ID=1
To
www.domain.com/category_name.html
So that they are more search engine friendly. However one problem I face
is that I cannot think of any way to write the session ID which woul
> It may be that the mail receiver expects some content after you put this
in
> the header:
> Content-Type: text/ascii; charset=iso-8859-1\n
> If you're sending plain text, and no special (read: non-western)
> characters, i don't think you need that part.
That was the fix. Yer a goldmine.
At 23:24 18-3-2003, you wrote:
I'm not sure why, but I get an attachment when sending out a mail with the
following (see below). Well, I shouldn't say an attachment, but in Outlook
I get that little paperclip, saying there is an attachment. But when I go
to open the attachment, there is nothing
I'm not sure why, but I get an attachment when sending out a mail with the following
(see below). Well, I shouldn't say an attachment, but in Outlook I get that little
paperclip, saying there is an attachment. But when I go to open the attachment, there
is nothing there.I'm trying to send it to
> If you want clarity, why not:
>
> if($r == 0) {
> ...
> } else { // $r != 0
> }
Hmm. That's a good idea. Yeah, I was sure the else-if method wasn't faster.
I just wasn't sure if it was slower, or if that really mattered. But your
method seems fine, and I have no idea why I didn't think of that.
I am having trouble verifying if a user is within a specified I.P. range.
The idea is that if a user is at a library within an I.P. range like
231.55.*.* and their I.P. address is 231.55.122.226 a session would be
registered for them. See my code below. This works but only for some I.P.'s
in a rang
Thanks Erik, looking now :)
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
--
In wine there is truth, in beer there is strength, in water there are
bacteria
> From: Erik Price <[EMAIL PROTECT
At 3/18/2003 02:30 PM, Pete James wrote:
> Steve and Niels,
>
> I personally don't think that this sort of garbage has any place on this
list. The PHP lists
> are for the promotion and assistance of the PHP community. In our small
ways, we are
> all ambassadors for PHP and should behave as pro
Erik,
thanks, are you able to pint me to some good reference sources on
tokenizer's... i have never come across them before
I have been scouring the web, and am coming up a decided blank. :)
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
Brad Wright wrote:
Thanks for the reply Rene,
Any change of a code sample of how u did this?? Im not at all experienced in
Java.
According to the manual, PHP does have some tokenizer functions:
http://www.php.net/manual/en/ref.tokenizer.php
However, the documentation appears to be lacking as t
Steve and Niels,
I personally don't think that this sort of garbage has any place on this
list. The PHP lists are for the promotion and assistance of the PHP
community. In our small ways, we are all ambassadors for PHP and should
behave as professionals. Having sexist and inappropriate comme
Thanks for the reply Rene,
Any change of a code sample of how u did this?? Im not at all experienced in
Java.
Thanks again for replying
Cheers,
Brad
Nel vino la verità, nella birra la forza, nell'acqua i bacilli
--
In w
Thanks for the tip Erik.
Looks like I'll need to test live on this one -- I've got a win2k/Apache/PHP
setup locally -- output buffering apparently does not work in this
configuration...
I'll look into it on our host company's Linux servers,
--Noah
"Erik Price" <[EMAIL PROTECTED]> wrote
Unless I'm completely mistaken, the BCC field will not show up when the email is
delivered.
Robbert van Andel
===
-Original Message-
From: Tim Thorburn [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 1:19 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mass
Hi,
I've just been asked by a client to create a mass mail program in PHP which
the client can use to send a single message to everyone in it's email
database, but also have the option to select which email address the
message will go to.
I've done a simple script like this before which basica
Thanks, I knew it was something simple but I couldn't find it on the 'Net.
Robbert van Andel
-Original Message-
From: CPT John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 1:14 PM
To: Van Andel, Robbert; [EMAIL PROTECTED]
Subject: Re: [PHP] Mysql Query Question
$
$string = "'" . implode("','",$group) . "'";
$query = "SELECT * FROM table WHERE groupname IN ($string)";
---John Holmes...
- Original Message -
From: "Van Andel, Robbert" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 3:51 PM
Subject: [PHP] Mysql Query Question
Groan, I meant 'Basic' not 'Base'..
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Fellas,
>
> I am trying to figure out how to encrypt the data using the base only.
> The webserver use the base authentication. I have been searching the PHP
> manual an
Hi Fellas,
I am trying to figure out how to encrypt the data using the base only.
The webserver use the base authentication. I have been searching the PHP
manual and I only saw base64_encode() but it is not the right algorithm.
Does anyone know the php function for the Base encryption?
Thank
Kevin Stone wrote:
>
> Logically the if-else construct is faster becuase PHP doesn't have to parse
> and execute the second conditional. An if-elseif construct is ussually
> followed by an else block to describe a default action if no other
> conditions are true. Otherwise you may as well use se
At 3/9/2003 09:11 AM, Niels Andersen wrote:
> LOL
>
> I like PHP, but I also like wet girlies. But the two are not interchangable,
> which is a pitty, becouse sometimes I really could use a wet girl, and I
> only have PHP
If god wanted geeks to procreate, women would be accept C includes.
--
S
I am trying to query a database looking for results that match an array of values I
have set.
The variable array is call group and has about 10 elements. Is there a way that I can
query the database using just $group instead of having to use the following:
SELECT * FROM `table` WHERE groupname
At 3/13/2003 01:05 PM, Christopher J. Crane wrote:
> I am just getting into PDF creation and I am having some issues. Can anyone
> send me a simple script that creates a PDF doc. I would like it to open in
> the browser after creation, not create a file.
Try the EZPDF class. It does just that, ser
At 3/18/2003 11:46 AM, Steve Keller wrote:
> >> for($i = 0; $i < count($users); $i++)
> >> {
> >> for($k = 0; $k < count($grouplines);$k++)
> >> {
> >> $groupline = explode(":", $grouplines[$k]);
> >>
At 3/14/2003 12:53 PM, Ron Petty wrote:
> Here is the code, maybe I am just missing something (this is the part
> where it writes and then opens again...
>> for($i = 0; $i < count($users); $i++)
>> {
>> for($k = 0; $k < count($grouplines);$k++)
>>
All the digest contains is all the normal e-mails all thrown into 1 huge
e-mail. You would recieve about 2 digests per day, instead of 100+ single
e-mails. Although i prefer the single e-mail system...
- Original Message -
From: "Tom Sommer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sen
Hello,
I have a list of users in LDAP. I do a:
$result=ldap_search($ldapconn,"ou=Users,dc=domain,dc=com", "g
idNumber=100");
to find the group of accounts I am looking for. Now what I want to do is
take the uid from each entry and print it out. I have tried using
ldap_get _entries but it
--- Liam Gibbs <[EMAIL PROTECTED]> wrote:
> Is it just as quick to do:
>
> if($r == 0) {
> } else if($r != 0) {
> }
>
> than to do:
>
> if($r == 0) {
> } else {
> }
No. It is (almost) the difference between two conditionals versus one. Both are
fast, however, and you will find it hard to measur
- Original Message -
From: "Charles Kline" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 12:50 PM
Subject: [PHP] strstr() question
> What is the expected return when using strtr() to compare a string to
> an empty string?
>
> example:
>
> $myval = strstr('bob',
Marc Bakker wrote:
Hello all,
I installed PHP, Apache and MySQL. I read the install.txt file that came
with php and changed the default values in php.ini and httpd.conf. When I
restart Apache and type my local website (127.0.0.1/index.php) IE comes with
a 'Save file As' dialog box.
Instead of pa
I'm trying to present a simple SELECT statement "GROUPED" by date.
Ex.
WOUNITSOEMCOMMENTSDATE
123 10MeNotes03/18/2003
456 5 You More Notes 03/18/2003
Total 15
...
I have it working grouping the da
> Is it just as quick to do:
>
> if($r == 0) {
> } else if($r != 0) {
> }
>
> than to do:
>
> if($r == 0) {
> } else {
> }
>
> The reason I like the former method is because, in a large IF-ELSE
> block, it's clear what belongs to what IF and what's going on. But does
> this make it lag? And, if so,
Logically the if-else construct is faster becuase PHP doesn't have to parse
and execute the second conditional. An if-elseif construct is ussually
followed by an else block to describe a default action if no other
conditions are true. Otherwise you may as well use sequential if()
statements becua
Get Foundation Flash MX and Foundation Actionscript from friends of ed.
These are the best for learning Flash.
www.friendsofed.com
Clint
-Original Message-
From: Daniel McCullough [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 18, 2003 2:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Flash b
My wife is a designer, not a technical person. She is learning Flash and
she needs a book to learn and learn quickly how to do some things like click
actions for a project.
Can someone please give me an idea of 2-3 good flash books.
_
Hello all,
I installed PHP, Apache and MySQL. I read the install.txt file that came
with php and changed the default values in php.ini and httpd.conf. When I
restart Apache and type my local website (127.0.0.1/index.php) IE comes with
a 'Save file As' dialog box.
Instead of parsing the php code a
vernon wrote:
I think that maybe I should explain the fist Zip comes from a session, here
I've defined the variable. I use the caluation in the code to get the
distance and then loop the recordset so that the distance is created each
time the record loops through. I have taken many things from
On Tue, 18 Mar 2003 13:44:25 -0500, Miro Kralovic wrote about "[PHP] Call
to undefined function: mssql_pconnect() " what the universal translator
turned into this:
>Hi all.. I'm trying to connect MSSQL2000 Personal Edition from PHP and
>all I'm getting is "Call to undefined function: mssql_pconne
Is it just as quick to do:
if($r == 0) {
} else if($r != 0) {
}
than to do:
if($r == 0) {
} else {
}
The reason I like the former method is because, in a large IF-ELSE block, it's clear
what belongs to what IF and what's going on. But does this make it lag? And, if so, is
it really all that n
What is the expected return when using strtr() to compare a string to
an empty string?
example:
$myval = strstr('bob', '');
Thanks,
Charles
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It is sent twice a day and contains all of the messages sent during that
period. It's so that you don't get 200+ messages a day in your inbox.
Tom Sommer wrote:
What does the mailing list digest contain, compared to a normal
subscription? What is the difference?
--
PHP General Mailing List (
CF High wrote:
Hey all.
I was under the impression that PHP processes all php code first before
handing HTML processing over to the browser.
http://www.php.net/manual/en/ref.outcontrol.php
Erik
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
Bryan Koschmann - GKT wrote:
Hello,
I have gotten used to using .htaccess to protect files/directories, but
now I am looking at a need to authenticate against mysql. I have no
problem actually getting it to authenticate, but I'm wondering what the
simplest way to prevent someone from hitting any
Hey all.
I was under the impression that PHP processes all php code first before
handing HTML processing over to the browser.
It seems that if you call an external function that, say, queries your db
for data and spits out populated formfields, the function is processed
somehow simultaneously wit
i have changed the code to:
//register the session variables
$_SESSION['ses_name'] = mysql_result($result, 0, "User_Name");
$_SESSION['ses_pass'] = mysql_result($result, 0, "User_Password");
$_SESSION['ses_level'] = mysql_result($result, 0, "User_Type");
but if i try to log in again the ses
Hello,
I have gotten used to using .htaccess to protect files/directories, but
now I am looking at a need to authenticate against mysql. I have no
problem actually getting it to authenticate, but I'm wondering what the
simplest way to prevent someone from hitting anything other than the main
page
i have changed the code to:
"Olinux" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> use:
> $_SESSION['ses_name'] = 'something';
> $_SESSION['ses_pass'] = 'something';
> $_SESSION['ses_level'] = 'something';
>
> instead of:
> > session_register("ses_name");
> > session_register("ses_
Vernon wrote:
Use the distance you've calculated as the numeric index of an array,
pointing to
the record that corresponds to that distance.
Can you please expalin this statement? Perhaps a tutorial somewhere?
I could explain it better if you could post the code that you have so
far which ex
Thanks for the informative response, Don.
While a few microseconds saved isn't much, the example I gave was not the
"real_world" situation we're actually dealing with.
We're looping through a roster list of players (e.g. a soccer team) with a
minimum of twenty players on a team. When filling out
> When you say "using php" I'm assuming that this means you are not doing
> the calculation at the database, but rather in your PHP code.
Correct.
> Use the distance you've calculated as the numeric index of an array,
pointing to
> the record that corresponds to that distance.
Can you please exp
Hi all.. I'm trying to connect MSSQL2000 Personal Edition from PHP and
all I'm getting is "Call to undefined function: mssql_pconnect()" error..
I have installed PHP4.2.2-4, mod_php-4.2.2, php_devel-4.2.2,
freetds0.53-4, php-sybase-ct-4.2.2, I think I also have php_ldap and
php_imap.. restarted
Vernon wrote:
I am calculating distances between to record's zip codes using php and have
a need to sort the recordset by that value. How do I do something like this?
I mean it's not a value in the table that I can use the SQL ORDER BY
statement. I want to be able to have the distances closest to
1 - 100 of 180 matches
Mail list logo