php-general Digest 25 Feb 2008 10:08:55 - Issue 5313
Topics (messages 270015 through 270028):
Re: mysql test and error
270015 by: Brady Mitchell
Re: temprorary error
270016 by: Nathan Rixham
270017 by: Shawn McKenzie
270020 by: Wolf
270028 by: Zoltán
Greg Donald wrote:
On 2/22/08, tedd [EMAIL PROTECTED] wrote:
Shouldn't the reason why we ask if be sufficient proof that it is?
I don't believe having an interrogative nature proves existence in God, no.
I imagine there are a great number of things that don't exist
that we never mention
2008. 02. 24, vasárnap keltezéssel 15.55-kor tedd ezt írta:
At 7:38 PM +0100 2/24/08, Zoltán Németh wrote:
2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt írta:
Hey guys,
Isn't this thread a bit OT?
well, for a php list sure it is... but not the first one, and it
Windows also have something similar to cron
Schedule accessory can also be set to execute some php every xxx
minutes/days etc
For linux it is much easier ,
create file eg cron.txt that has this content
#===
* 1 * * * /home/user/cleanUpDB.php
On Feb 25, 2008, at 5:37 AM, Rob Gould wrote:
I've got 2 tables. One table which contains a series of barcodes
assigned to product id #'s, and another table with JUST product id
#'s.
I need to somehow transfer all the barcodes from the first table
into the second table, but only where
On 25/02/2008, Rob Gould [EMAIL PROTECTED] wrote:
I've got 2 tables. One table which contains a series of barcodes assigned to
product id #'s, and another table with JUST product id #'s.
I need to somehow transfer all the barcodes from the first table into the
second table, but only where
create file eg cron.txt
Or if your version of crontab supports it (not all do) then you can use:
crontab -e
And to get the manual page, you can do this:
man 5 crontab
--
Richard Heyes
http://www.phpguru.org
Free PHP and Javascript code
--
PHP General Mailing List (http://www.php.net/)
To
i have text file and a table created with
create table word(
id int not null auto_increment primary key,
word varchar(50),
definition text
)
the text contain list of words but not really in specific format
word, some text definition
word, some text definition, some text definition, etc
i want
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote:
Robert Cummings wrote:
On Sun, 2008-02-24 at 15:55 -0500, tedd wrote:
At 7:38 PM +0100 2/24/08, Zoltán Németh wrote:
2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt írta:
Hey guys,
Isn't this thread a bit OT?
At 8:50 PM -0600 2/24/08, Larry Garfield wrote:
Design patterns are just that: A formalization of various common patterns that
come up over and over in programming. Ever get the feeling wow, I know I've
written something kinda like this at least three times now? That means it's
probably a
On Mon, 2008-02-25 at 09:28 -0500, tedd wrote:
At 8:49 AM -0500 2/25/08, Robert Cummings wrote:
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote:
[can you resist?]
No I can't resist. It would be tantamount to agreeing with you. Since I
disagree with you I feel compelled to
Robert Cummings [EMAIL PROTECTED] wrote:
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote:
Robert Cummings wrote:
On Sun, 2008-02-24 at 15:55 -0500, tedd wrote:
At 7:38 PM +0100 2/24/08, Zoltán Németh wrote:
2008. 02. 24, vasárnap keltezéssel 09.59-kor Mary Anderson ezt
At 8:49 AM -0500 2/25/08, Robert Cummings wrote:
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote:
[can you resist?]
No I can't resist. It would be tantamount to agreeing with you. Since I
disagree with you I feel compelled to answer your direct reference to
me. There are plenty of
Actually thats exactly what design patterns were created for. You come up
with a basic structure and then modify it as needed for other projects. I
mean, the objects/structures/whatever may change, but the patterns of logic
you use will often be the same or only require minor adjustments. Its a
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 24, 2008 4:57 AM
To: Andrés Robinet
Cc: php-general@lists.php.net
Subject: RE: [PHP] Re: temporary error
On Sun, 2008-02-24 at 03:34 -0500, Andrés Robinet wrote:
-Original Message-
Robert Cummings [EMAIL PROTECTED] wrote:
On Mon, 2008-02-25 at 09:28 -0500, tedd wrote:
At 8:49 AM -0500 2/25/08, Robert Cummings wrote:
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote:
[can you resist?]
No I can't resist. It would be tantamount to agreeing with
On Mon, Feb 25, 2008 at 9:20 AM, tedd [EMAIL PROTECTED] wrote:
At 8:50 PM -0600 2/24/08, Larry Garfield wrote:
Design patterns are just that: A formalization of various common patterns
that
come up over and over in programming. Ever get the feeling wow, I know
I've
written something
Robert Cummings wrote:
On Mon, 2008-02-25 at 09:28 -0500, tedd wrote:
At 8:49 AM -0500 2/25/08, Robert Cummings wrote:
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote:
[can you resist?]
No I can't resist. It would be tantamount to agreeing with you. Since I
disagree with you I feel
On Mon, Feb 25, 2008 at 9:20 AM, tedd [EMAIL PROTECTED] wrote:
At 8:50 PM -0600 2/24/08, Larry Garfield wrote:
Design patterns are just that: A formalization of various common patterns
that
come up over and over in programming. Ever get the feeling wow, I know
I've
written something kinda
On Mon, 2008-02-25 at 14:50 +, Nathan Rixham wrote:
Robert Cummings wrote:
On Mon, 2008-02-25 at 09:28 -0500, tedd wrote:
At 8:49 AM -0500 2/25/08, Robert Cummings wrote:
On Mon, 2008-02-25 at 00:56 +, Nathan Rixham wrote:
[can you resist?]
No I can't resist. It would be
On Sat, Feb 23, 2008 at 4:58 AM, Larry Garfield [EMAIL PROTECTED] wrote:
Um. Palm OS Garnet (what every remotely modern Treo runs) is completely
incapable of running multiple simultaneous processes without hacking the OS
beyond recognition. It is an absolutely horrid concept for a server,
I agree, that head first book is fantabulous. Very well written and easy to
read for a techie book. It makes the usage of design patterns incredibly
easy to understand. But like all things simply understanding the theory
doesn't always equal being able to practice it... that only comes with using
My favourite patterns are the following:
factory
singleton
adaptor
These also happen to be the most common I come across.
Cheers,
Rob.
On Mon, 2008-02-25 at 10:31 -0500, Matty Sarro wrote:
I agree, that head first book is fantabulous. Very well written and easy to
read for a
On Mon, Feb 25, 2008 at 10:38 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
My favourite patterns are the following:
factory
singleton
adaptor
i dont know about any favorites at this time but as far as common,
id say
strategy
adapter
template method (often used in conjunction w/
Robert Cummings schreef:
On Mon, 2008-02-25 at 14:50 +, Nathan Rixham wrote:
ps: I can't believe how long this thread has lasted without anyone
mentioning that the subject line is misspelled.
I notice it everytime a post arrives, but usually the content is
juicier :)
Cheers,
tedd wrote:
At 8:50 PM -0600 2/24/08, Larry Garfield wrote:
Design patterns are just that: A formalization of various common
patterns that
come up over and over in programming. Ever get the feeling wow, I
know I've
written something kinda like this at least three times now? That
means it's
I didn't think Quakers could use computers. Or electricity.
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Feb 25, 2008, at 11:18 AM, Daniel Brown wrote:
I didn't think Quakers could use computers. Or electricity.
That's Amish... Maybe Quakers too... I don't know...
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?
--
PHP General Mailing List
On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote:
I didn't think Quakers could use computers. Or electricity.
You're confusing them with Amish.
Cheers,
Rob.
--
..
| InterJinn Application Framework - http://www.interjinn.com |
Robert Cummings wrote:
On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote:
I didn't think Quakers could use computers. Or electricity.
You're confusing them with Amish.
Cheers,
Rob.
and coldfusion developers
[ps: rob your lucky i keep saving your ass from the dreaded last post]
--
-Original Message-
From: Nathan Rixham [mailto:[EMAIL PROTECTED]
Sent: Monday, February 25, 2008 11:32 AM
To: php-general@lists.php.net
Subject: Re: [PHP] RE: temprorary error
Robert Cummings wrote:
On Mon, 2008-02-25 at 11:18 -0500, Daniel Brown wrote:
I didn't think Quakers
On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes [EMAIL PROTECTED] wrote:
You could also forego the Files bit if you're willing to accept URLs
like this:
/rental.php/property/23425
I was waiting to see if anyone made mention of that while reading
through the thread. I think this is a
Amazing some of the brightest minds on the Internet
communicate on these lists and yet no one can recognize an obvious
SPAM message. ;-P
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?
--
PHP General Mailing List (http://www.php.net/)
To
Daniel Brown wrote:
On Mon, Feb 25, 2008 at 1:39 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote:
Hi,
How can you perform a timed event in PHP; for example:
Count 24 hours and then delete all rows in a database...
Once again, I say verily unto you: RTFM and STFW.
Linux/*nix: cron
On Sun, Feb 24, 2008 at 5:00 PM, hE [EMAIL PROTECTED] wrote:
The following program gave the error:
Parse error: parse error in C:\apache\htdocs\mysqltest.php on line 10
Look at this part of the code:
$result = mysql_query($sql);
if ($result == 0)
echo 'bError ' . mysql_errno() . ': '.
Daniel Brown wrote:
On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes [EMAIL PROTECTED] wrote:
You could also forego the Files bit if you're willing to accept URLs
like this:
/rental.php/property/23425
I was waiting to see if anyone made mention of that while reading
through the thread.
Nathan Rixham wrote:
Daniel Brown wrote:
On Mon, Feb 25, 2008 at 1:39 AM, Zoran Bogdanov
[EMAIL PROTECTED] wrote:
Hi,
How can you perform a timed event in PHP; for example:
Count 24 hours and then delete all rows in a database...
Once again, I say verily unto you: RTFM and STFW.
Hi, I'm working on a site that needs that once the user chooses his
country the question should not be asked again (while the user doesn't
manually delete the cookies in his browser).
The question is asked only in the index.php and the answer is stored
in $_SESSION[pais]. If the user tries to
On Mon, Feb 25, 2008 at 8:35 AM, jeffry s [EMAIL PROTECTED] wrote:
i have text file and a table created with
create table word(
id int not null auto_increment primary key,
word varchar(50),
definition text
)
Look into the PHP function fgetcsv().
--
/Dan
Daniel P. Brown
Senior
Bojan Tesanovic wrote:
Windows also have something similar to cron
Schedule accessory can also be set to execute some php every xxx
minutes/days etc
For linux it is much easier ,
create file eg cron.txt that has this content
#===
* 1 * * *
-Original Message-
From: Daniel Brown [mailto:[EMAIL PROTECTED]
Sent: Monday, February 25, 2008 11:37 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; php-general@lists.php.net
Subject: Re: [PHP] URL modification
On Sat, Feb 23, 2008 at 6:27 AM, Richard Heyes [EMAIL PROTECTED]
On Mon, Feb 25, 2008 at 1:39 AM, Zoran Bogdanov [EMAIL PROTECTED] wrote:
Hi,
How can you perform a timed event in PHP; for example:
Count 24 hours and then delete all rows in a database...
Once again, I say verily unto you: RTFM and STFW.
Linux/*nix: cron
Windows: at
Cron
On Sun, Feb 24, 2008 at 1:53 PM, hE [EMAIL PROTECTED] wrote:
hi to all,
I set up phptriad on my computer running windows xp. When I tried to
test php with the following program I got an error Parse error: parse
error, expecting `','' or `';'' in C:\apache\htdocs\mytest.php on line 10
Perhaps the user doesn't have cookies disabled but often clean them?
Another software could be doing that.
-Mensagem original-
De: Manuel Barros Reyes [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 25 de fevereiro de 2008 13:55
Para: php-general@lists.php.net
Assunto: [PHP] Set
YOu could try reading only the even lines, maybe ther's something...
-Mensagem original-
De: Matty Sarro [mailto:[EMAIL PROTECTED]
Enviada em: segunda-feira, 25 de fevereiro de 2008 13:58
Para: Daniel Brown
Cc: Wolf; [EMAIL PROTECTED] php. net; Shawn McKenzie
Assunto: Re: [PHP] Re:
On Mon, Feb 25, 2008 at 11:54 AM, Manuel Barros Reyes [EMAIL PROTECTED] wrote:
The question is asked only in the index.php and the answer is stored
in $_SESSION[pais]. If the user tries to enter the site once again
and the session variable is still set the question is not asked again
as it
On Mon, Feb 25, 2008 at 11:07 AM, Nathan Nobbe [EMAIL PROTECTED] wrote:
On Mon, Feb 25, 2008 at 10:38 AM, Robert Cummings [EMAIL PROTECTED]
wrote:
My favourite patterns are the following:
factory
singleton
adaptor
i dont know about any favorites at this time but as far as
jeffry s wrote:
i have text file and a table created with
create table word(
id int not null auto_increment primary key,
word varchar(50),
definition text
)
the text contain list of words but not really in specific format
word, some text definition
word, some text definition, some
On Mon, Feb 25, 2008 at 12:06 PM, Eric Butera [EMAIL PROTECTED] wrote:
I'm not going to even say anything. :)
Since we're declaring our love for specifics, I really like the
observer pattern lately for adding a way to add features without
touching the core.
ahh yes, observer is key; i
This is not spam, obviously there's some sort of UNIXy recursive joke here,
we just have to find it.
On Mon, Feb 25, 2008 at 11:40 AM, Daniel Brown [EMAIL PROTECTED] wrote:
Amazing some of the brightest minds on the Internet
communicate on these lists and yet no one can recognize an
Shawn McKenzie wrote:
jeffry s wrote:
i have text file and a table created with
create table word(
id int not null auto_increment primary key,
word varchar(50),
definition text
)
the text contain list of words but not really in specific format
word, some text definition
word, some
It's probably a Ottendorf cipher
http://en.wikipedia.org/wiki/Arnold_Cipher
On Feb 25, 2008, at 11:57 AM, Matty Sarro wrote:
This is not spam, obviously there's some sort of UNIXy recursive
joke here,
we just have to find it.
On Mon, Feb 25, 2008 at 11:40 AM, Daniel Brown [EMAIL
On Fri, Feb 22, 2008 at 9:17 PM, Kista Tucker [EMAIL PROTECTED] wrote:
Oh my gosh!
[snip!]
Kista,
The response you got from Tedd is probably the most accurate and
best advice you could get on this subject.
DO NOT, by any means, attempt to write your own cart. It's
reinventing the
On Sat, Feb 23, 2008 at 10:49 PM, Adil Drissi [EMAIL PROTECTED] wrote:
Hi,
I made an error i was using
unset($_SESSION[sessioname]) instead of
unset($_SESSION). I'm sorry, but anyway, now i want to
give another detail. All the time i was testing with
opera. After testing in firefox and
Hi folks,
I just completed my first reading of Advanced PHP Programming by
George Schlossnagle and was very impressed and thankful for the wealth
of information with examples provided by George.
With that said, there is a chapter dedicated to Authentication using
client-side cookies and
On Mon, 2008-02-25 at 11:57 -0500, Matty Sarro wrote:
This is not spam, obviously there's some sort of UNIXy recursive joke here,
we just have to find it.
On Mon, Feb 25, 2008 at 11:40 AM, Daniel Brown [EMAIL PROTECTED] wrote:
Amazing some of the brightest minds on the Internet
On Mon, 2008-02-25 at 12:28 -0500, Steve Finkelstein wrote:
Hi folks,
I just completed my first reading of Advanced PHP Programming by
George Schlossnagle and was very impressed and thankful for the wealth
of information with examples provided by George.
With that said, there is a chapter
On Mon, Feb 25, 2008 at 12:43 PM, Robert Cummings [EMAIL PROTECTED]
wrote:
On Mon, 2008-02-25 at 12:28 -0500, Steve Finkelstein wrote:
Hi folks,
I just completed my first reading of Advanced PHP Programming by
George Schlossnagle and was very impressed and thankful for the wealth
of
On Mon, Feb 25, 2008 at 12:28 PM, Steve Finkelstein [EMAIL PROTECTED] wrote:
[snip!]
My question to the community is -- I'd like to try something similar
to this approach for an application I'm working on. Although I'm a bit
concerned as in the event of XSS or something of that nature, what
-Original Message-
From: tedd [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 24, 2008 9:09 AM
To: php-general@lists.php.net
Subject: RE: [PHP] Question about PHP Licence and it's future!
Rob (Other Rob that is actually called Andrés)
Yeah, that confused me too. Especially when
On Sat, Feb 23, 2008 at 11:50 PM, Tamer Higazi [EMAIL PROTECTED] wrote:
Hi!
Hi!!!
I have asked myself a question.
And what answer did you get?
After I saw, that SAP will no more
release future Versions of their open source Database MaxDB under
On Sun, Feb 24, 2008 at 10:22 AM, Michal Maras [EMAIL PROTECTED] wrote:
Hi
Thank you for answer, but I do not understand.
How can I use this class Errno after unsuccessful fopen?
I want to get the number, for example 13 if there is not enough permissions
to open file.
It is not
On Fri, Feb 22, 2008 at 9:19 PM, K T Ligesh [EMAIL PROTECTED] wrote:
Hello,
I have a php process running on lighty that should continue even if the
user presses cancel in his browser. The default behavior is that the
web-server will kill the cgi process on user cancellation. Is there
Hey folks,
I just wanna say thanks for whole help you've had give to me. I did
solve my problem with clues you give to me. Now, I have a server exclusively
to my project and I enabled the system command and zip command works fine.
Thanks again,
Petrus Bastos.
On Sat, Feb 23, 2008 at 3:46 AM, Alain Roger [EMAIL PROTECTED] wrote:
Hi,
i have a problem with my animated web flash menu (+images+sounds).
basically my menu in embedded into flash, and each time that i click on menu
link, my flash is playing from start as it is integrated into each PHP
On Sun, Feb 24, 2008 at 8:35 AM, tedd [EMAIL PROTECTED] wrote:
Now, that doesn't mean that you can't patent your idea -- and that's
the best protection I know.
That is, until I finish development of the CodeCondom[TM].
Just cover the electric plugs to every computer of every
[snip]
Design patterns are used to solve common problems to in OOP programming.
[/snip]
It is just not limited to OOP, design patterns are used to solve common
programming problems regardless of methodology. They have come into
vogue with OOP and have been leveraged heavily in that case. Design
On Sat, Feb 23, 2008 at 6:21 AM, Robert Cummings [EMAIL PROTECTED] wrote:
On Fri, 2008-02-22 at 18:13 -0500, tedd wrote:
At 5:27 PM -0500 2/22/08, Robert Cummings wrote:
On Fri, 2008-02-22 at 17:04 -0500, Nathan Nobbe wrote:
and btw; your narratives are are just damned hilarious rob
What is the best or recomended proceedure for making sure that a page is
accessed only via a secure connection?
--
The secret of being miserable is to have the leisure to bother about whether
you are happy or not. The cure is occupation. -- George Bernard Shaw
Rick Pasotto[EMAIL
-Original Message-
From: Daniel Brown [mailto:[EMAIL PROTECTED]
Sent: Monday, February 25, 2008 1:24 PM
To: Andrés Robinet
Cc: tedd; php-general@lists.php.net
Subject: Re: [PHP] Question about PHP Licence and it's future!
On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown [EMAIL
On Feb 25, 2008, at 1:24 PM, Daniel Brown wrote:
On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown [EMAIL PROTECTED]
wrote:
On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet
[EMAIL PROTECTED] wrote:
Thanks for pointing out the *who* instead of *that* :), since I
didn't realized
it until now.
Rick Pasotto wrote:
What is the best or recomended proceedure for making sure that a page
is accessed only via a secure connection?
The guaranteed way is not serving it over an insecure connection.
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Rick Pasotto wrote:
What is the best or recomended proceedure for making sure that a page is
accessed only via a secure connection?
Best is subjective, however I check in $_SERVER['SERVER_PROTOCOL'], also
https will appear in some other $_SERVER vars.
-Shawn
--
PHP General Mailing List
On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown [EMAIL PROTECTED] wrote:
On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet
[EMAIL PROTECTED] wrote:
Thanks for pointing out the *who* instead of *that* :), since I didn't
realized
it until now.
That's realize, Andrés. ;-P
Oh,
I think this is a highly underused built-in
feature.
Agreed. I started to use it on my blog instead of a query string and
pages reported by Google went up.
--
Richard Heyes
http://www.phpguru.org
Free PHP and Javascript code
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
On Mon, Feb 25, 2008 at 12:38 PM, Robert Cummings [EMAIL PROTECTED] wrote:
It is... (S)PAM (P)HP (A)d (M)ail
Damn those recursive acronyms.
--
/Dan
Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?
--
PHP General Mailing List (http://www.php.net/)
To
On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet
[EMAIL PROTECTED] wrote:
Thanks for pointing out the *who* instead of *that* :), since I didn't
realized
it until now.
That's realize, Andrés. ;-P
Rob, Robber, Robot, Robin-Laid-An-Egg
--
/Dan
Daniel P. Brown
Senior Unix Geek
On Mon, 2008-02-25 at 13:24 -0500, Daniel Brown wrote:
On Mon, Feb 25, 2008 at 1:23 PM, Daniel Brown [EMAIL PROTECTED] wrote:
On Mon, Feb 25, 2008 at 12:53 PM, Andrés Robinet
[EMAIL PROTECTED] wrote:
Thanks for pointing out the *who* instead of *that* :), since I didn't
realized
Rick Pasotto [EMAIL PROTECTED] wrote:
What is the best or recomended proceedure for making sure that a page is
accessed only via a secure connection?
Make the server only send over 443 instead of 80...
But if you don't have the ability to change .htaccess or httpd.conf then you
can
On Mon, Feb 25, 2008 at 1:45 PM, Jason Pruim [EMAIL PROTECTED] wrote:
Does that mean we can also subscribe to [EMAIL PROTECTED]
? I've always like the idea of being an outlaw... But the closet I
ever came to that was a speeding ticket when I was 16! :P
Don't worry, J. With everything
On Mon, Feb 25, 2008 at 1:44 PM, Andrés Robinet [EMAIL PROTECTED] wrote:
Oh dear, I think I can't help it! I'll need a good lawyer in order to avoid
life
imprisonment!
But... in order to have a fair court on this trial, only people capable of
quickly repeating tres tristes tigres comen
On Feb 25, 2008, at 1:59 PM, Daniel Brown wrote:
On Mon, Feb 25, 2008 at 1:45 PM, Jason Pruim [EMAIL PROTECTED]
wrote:
Does that mean we can also subscribe to [EMAIL PROTECTED]
? I've always like the idea of being an outlaw... But the closet I
ever came to that was a speeding ticket when I
On Mon, Feb 25, 2008 at 1:40 PM, Rick Pasotto [EMAIL PROTECTED] wrote:
What is the best or recomended proceedure for making sure that a page is
accessed only via a secure connection?
Provided you're running SSL on the standard HTTPS port of 443,
include this at the very top of every file,
Or you can cheat...
$url = $_SERVER['SERVER_NAME'];
header( 'Location:https://'.$url.'');
I think that would cause an infinite loop of redirection...
This would be better
?php
$curPort = $_SERVER['SERVER_PORT'];
$pageTo = $_SERVER['REQUEST_URI'];
if($curPort == 80) {
//
Nope, it works like a charm for me, but I have it in an IF statement checking
to see if the requestor is https or not to begin with.
I actually have it called as a function that passes in the rest of the path of
the file that is being requested, which is called within an included page,
which
Stephen Johnson [EMAIL PROTECTED] wrote:
Or you can cheat...
$url = $_SERVER['SERVER_NAME'];
header( 'Location:https://'.$url.'');
I think that would cause an infinite loop of redirection...
This would be better
?php
$curPort = $_SERVER['SERVER_PORT'];
$pageTo
Hey!
Just a thank you to all who replied to this thread, I will be taking your
suggestion and installing xampp, will post back if I hit any walls.
Thanks again!
Cheers!
R
Never miss a thing. Make
On 25 Feb 2008, at 18:40, Rick Pasotto wrote:
What is the best or recomended proceedure for making sure that a
page is
accessed only via a secure connection?
What web server are you using? In my experience this is best done
there rather than in PHP.
-Stut
--
http://stut.net/
--
PHP
OK.. I was referring to the lack of if checking on your post.. But I should
have assumed that you did it that way.
As long as your validating whether you are secure before you try and go
secure is what I was getting at.
Also, I agree on odd usage of port numbers, most of my stuff runs on
At 11:18 AM -0500 2/25/08, Daniel Brown wrote:
I didn't think Quakers could use computers. Or electricity.
--
/Dan
No, that's the Amish.
Quakers are the one's who make cereal.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com http://earthstones.com
--
PHP
On Mon, Feb 25, 2008 at 2:09 PM, Daniel Brown [EMAIL PROTECTED] wrote:
?
if($_SERVER['SERVER_PORT'] != '443') {
$url = isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] :
$_SERVER['SERVER_NAME'];
header(Location:
Hi folks. I've an odd issue.
If I connect to a MySQL DB using ext/mysql, and for whatever reason the process
dies (uncaught exception, fatal error, etc.) the connection is garbage
collected and closed. If, however, I use ext/mysqli, the connection remains
open forever and just eats up
tedd [EMAIL PROTECTED] wrote:
At 11:18 AM -0500 2/25/08, Daniel Brown wrote:
I didn't think Quakers could use computers. Or electricity.
--
/Dan
No, that's the Amish.
Quakers are the one's who make cereal.
Except for Joseph who run the underground power cable through
At 10:31 AM -0500 2/25/08, Matty Sarro wrote:
Also maybe look at Head First Design Patterns if you are interested in
ever understanding them.
Okay -- thanks for the recommendation -- I just bought it.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones.com
On Mon, Feb 25, 2008 at 3:51 PM, Tamer Higazi [EMAIL PROTECTED] wrote:
Hey Daniel!
Hey, Tamer!
Thanks for your feedback.
My pleasure. However, please keep all replies on-list as the
discussion continues, because this also helps people who are
attempting to find the information on
On Mon, Feb 25, 2008 at 3:07 PM, Larry Garfield [EMAIL PROTECTED] wrote:
Hi folks. I've an odd issue.
Only fair. You're an odd bird, and we're an odd bunch. ;-P
If I connect to a MySQL DB using ext/mysql, and for whatever reason the
process dies (uncaught exception, fatal error,
At 9:51 AM -0500 2/25/08, Eric Butera wrote:
To each their own I guess. Just out of curiosity, are you primarily
writing entire web applications or one off scripts?
If a client can describe it, that's what I do.
As compared to some of the others of this list, I'm just a
script-kiddy. But, I
On Feb 25, 2008, at 4:18 PM, tedd wrote:
At 9:51 AM -0500 2/25/08, Eric Butera wrote:
To each their own I guess. Just out of curiosity, are you primarily
writing entire web applications or one off scripts?
If a client can describe it, that's what I do.
As compared to some of the others of
Can you do web 2.0? Because it just HAS to be web 2.0... anything else
is s last version :)
Yuck - I hate overuse of 'web 2.0' stuff. Don't add features that don't
benefit your users and if you must do fancy stuff then please make sure
your site still works for users without
Dangit, I can only do web1.9.5 :(
I guess I've been deprecated...
On Mon, Feb 25, 2008 at 4:27 PM, Jason Pruim [EMAIL PROTECTED] wrote:
On Feb 25, 2008, at 4:18 PM, tedd wrote:
At 9:51 AM -0500 2/25/08, Eric Butera wrote:
To each their own I guess. Just out of curiosity, are you
1 - 100 of 116 matches
Mail list logo