Re: [PHP] import Excel file into PostgreSQL

2007-08-07 Thread Chris
Alain Roger wrote: HI, I would like to know the best and fastest way how to import some colums contents from Excel file to PostgreSQL database. how can i do that ? I mean some columns of Excel should be imported into a particular table and some others into another table. If it's a proper

[PHP] need mysql_ping when using mysql_pconnect?

2007-08-07 Thread lists
Hi, Just becasue you create a persistent connection it can still go down, can't it? So therefore using mysql_ping inside of scripts with plenty of idle time is useful? /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Thoughts about music library

2007-08-07 Thread Colin Guthrie
Børge Holen wrote: On Monday 06 August 2007 23:39, Colin Guthrie wrote: Børge Holen wrote: I'm building an web interface for my music collection. I'd have a quick look at mp3act. It does pretty much what you want I think. yes, but where is the fun in that? ;D and if something irritate me,

[PHP] Object reference into variable?

2007-08-07 Thread GMail
Hello, I have a question (what a surprise :-) ) I browsed the archives, but didn't find what I'm looking for. I have an object instance stored in some variable (like $myobject). I want to save this instance into another variable (like $tempobject). I thought, this will be the way: $myobject

[PHP] Re: Object reference into variable?

2007-08-07 Thread Hamza Saglam
You may find the following article interesting. It talks about object cloning, which I think what you are after... http://www.phpfreaks.com/phpmanual/page/language.oop5.cloning.html Regards, Hamza. Sándor Tamás (GMail) [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, I

[PHP] Re: Object reference into variable?

2007-08-07 Thread GMail
I forgot to tell you that I have to use PHP4.2 because of my web provider. Anything besides of _clone? SanTa - Original Message - From: Hamza Saglam To: Sándor Tamás (GMail) Sent: Tuesday, August 07, 2007 10:49 AM Subject: Re: Object reference into variable? You may find

Re: [PHP] How to implement a plugin system?

2007-08-07 Thread Hamza Saglam
Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 8/6/07, Stut [EMAIL PROTECTED] wrote: Hamza Saglam wrote: Thanks for your response. However I am looking for something a bit more comprehensive :) I could do it as you suggested if I had only a few plugins. As I

[PHP] Re: Object reference into variable?

2007-08-07 Thread Hamza Saglam
I strongly suggest you put some pressure on you web provider to at least upgrade it to the 4.4.7, as 4.2 is way too old to be secure :) Unfortunately I don't know how this could be accomplished in PHP4, but a quick google query returned these:

Re: [PHP] mail problem - deadline!!!!!

2007-08-07 Thread Tijnema
On 8/7/07, Luc [EMAIL PROTECTED] wrote: Good evening list, i'm having a strange mail problem: i have 2 contact-forms on a site, where 1 get's send to the e-mail account and the other doesn't. I've tested them both on my remote server and they work, but when i upload them to the

[PHP] Articles or News Management Systems

2007-08-07 Thread Sancar Saran
Hello List, I'm going to add some kind of articles system into my cms. General aim of this articles system have unlimited branches (or sub categories), each branch may own editors or writers. I'm looking for current imlementations of this kind of systems. Does anyone suggest a system to have

Re: [PHP] How to implement a plugin system?

2007-08-07 Thread Guillaume Theoret
A couple of months ago I asked pretty much the same question on this list because I was doing the same thing. This is how we implemented our system. For starters, we rolled our own MVC framework. It's pretty much a standard MVC framework, very rails inspired but much more lightweight than Cake

Re: [PHP] Re: Object reference into variable?

2007-08-07 Thread Larry Garfield
Get a new web host that offers PHP 5.2. Anything older than that is a dead end that is about to be retired[1]. There's a nice big list of 5.2-ready web hosts available, too[2]. [1] http://www.php.net/index.php#2007-07-13-1 [2] http://gophp5.org/ On Tuesday 07 August 2007, Sándor Tamás wrote:

[PHP] OT A public apology to Larry Garfield

2007-08-07 Thread tedd
Hi gang: In the long winded debate over copyright infringement vs thievery, I made an unkind and untrue inference re Larry Garfield. So, as a matter of public apology, I hereby apologize to Larry publicly for my heated remark. I'm sorry Larry. As a point of notice, Larry has graciously

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 10:23 -0400, tedd wrote: Hi gang: In the long winded debate over copyright infringement vs thievery, I made an unkind and untrue inference re Larry Garfield. So, as a matter of public apology, I hereby apologize to Larry publicly for my heated remark. I'm sorry

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Daniel Brown
On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 10:23 -0400, tedd wrote: Hi gang: In the long winded debate over copyright infringement vs thievery, I made an unkind and untrue inference re Larry Garfield. So, as a matter of public apology, I hereby apologize

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread tedd
At 10:31 AM -0400 8/7/07, Robert Cummings wrote: On Tue, 2007-08-07 at 10:23 -0400, tedd wrote: Hi gang: In the long winded debate over copyright infringement vs thievery, I made an unkind and untrue inference re Larry Garfield. So, as a matter of public apology, I hereby apologize to

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread tedd
At 10:36 AM -0400 8/7/07, Daniel Brown wrote: As a matter of public record, I hereby move that we reject Tedd's formal apology due to grammatical errors in construct. ;-P -- Daniel P. Brown You know you guys are going to keep this up until I have to apologize to everyone for the things

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread David Giragosian
On 8/7/07, tedd [EMAIL PROTECTED] wrote: At 10:36 AM -0400 8/7/07, Daniel Brown wrote: As a matter of public record, I hereby move that we reject Tedd's formal apology due to grammatical errors in construct. ;-P -- Daniel P. Brown You know you guys are going to keep this up until

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 10:50 -0400, tedd wrote: At 10:31 AM -0400 8/7/07, Robert Cummings wrote: On Tue, 2007-08-07 at 10:23 -0400, tedd wrote: Hi gang: In the long winded debate over copyright infringement vs thievery, I made an unkind and untrue inference re Larry Garfield. So,

[PHP] Empty super globals

2007-08-07 Thread Brian Dunning
A friends asked me the following and I have no clue: There are variables in php called the super globals. Specifically the $_SERVER super globals are coming back as an empty array. The shopping cart that pixami supplied to us requires the $_SERVER super globals. -- PHP General Mailing List

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Borokov Smith
Personally, I think Garfield is the worst comic in existence no matter how Larry Garfield feels about it ! greetz, boro tedd schreef: Hi gang: In the long winded debate over copyright infringement vs thievery, I made an unkind and untrue inference re Larry Garfield. So, as a matter of

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Daniel Brown
On 8/7/07, tedd [EMAIL PROTECTED] wrote: Hi gang: There should be a comma prior to the addressee(s). In the long winded debate over copyright infringement vs thievery, I made an unkind and untrue inference re Larry Garfield. You forgot to hyphenate long-winded; Copyright is a title and should

Re: [PHP] Empty super globals

2007-08-07 Thread Zoltán Németh
2007. 08. 7, kedd keltezéssel 11.02-kor Brian Dunning ezt írta: A friends asked me the following and I have no clue: There are variables in php called the super globals. Specifically the $_SERVER super globals are coming back as an empty array. The shopping cart that pixami supplied to us

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 11:15 -0400, Daniel Brown wrote: Bah just busting your balls anyway, old man! ;-P An ellipsis should be comprised of 3 dots. :B Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 11:28 -0400, Daniel Brown wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 11:15 -0400, Daniel Brown wrote: Bah just busting your balls anyway, old man! ;-P An ellipsis should be comprised of 3 dots. It wasn't

[PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Jason Pruim
Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P Figured since yall have to much time on your hands anyway I'd give you something else to gripe about... :) Now... My question :) ?php $mysqli = new

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Daniel Brown
On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 11:28 -0400, Daniel Brown wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 11:15 -0400, Daniel Brown wrote: Bah just busting your balls anyway, old man! ;-P An

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Stut
Jason Pruim wrote: Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P Figured since yall have to much time on your hands anyway I'd give you something else to gripe about... :) Now... My question :) ?php $mysqli =

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Daniel Brown
On 8/7/07, Jason Pruim [EMAIL PROTECTED] wrote: Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P Figured since yall have to much time on your hands anyway I'd give you something else to gripe about... :) Now...

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Daniel Brown
On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 11:15 -0400, Daniel Brown wrote: Bah just busting your balls anyway, old man! ;-P An ellipsis should be comprised of 3 dots. :B Cheers, Rob. --

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Mark Summers
Hello, I suspect that you need to assign the new instance of mysqli to $mysqli by reference to prevent the on-demand instance that is created by new from being copied (cloned) at the point of assignment. Mark Jason Pruim wrote: Yes I am hijacking a thread just to screw with all the people who

Re: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Jason Pruim
On Aug 7, 2007, at 11:46 AM, Daniel Brown wrote: As far as I know, J (and I could be wrong on this), this is actually a problem with PHP5. Some things that you could try, however: In your php.ini file, set: zend.ze1_compatibility_mode = Off Hey Dan, That did the trick on

RE: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Ford, Mike
On 07 August 2007 16:15, Daniel Brown wrote: On 8/7/07, tedd [EMAIL PROTECTED] wrote: Hi gang: There should be a comma prior to the addressee(s). In the long winded debate over copyright infringement vs thievery, I made an unkind and untrue inference re Larry Garfield. You forgot to

RE: [PHP] Why do I always come up with the hard stuff?

2007-08-07 Thread Jay Blanchard
[snip] Yes I am hijacking a thread just to screw with all the people who use threaded e-mail viewers and because I'm mean like that :P [/snip] To answer your question, because hijacking threads is much harder than typing the e-mail address in the To box, Duh. -- PHP General Mailing List

RE: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 18:42 +0100, Ford, Mike wrote: On 07 August 2007 16:15, Daniel Brown wrote: On 8/7/07, tedd [EMAIL PROTECTED] wrote: Hi gang: There should be a comma prior to the addressee(s). In the long winded debate over copyright infringement vs thievery, I made an

[PHP] get domain component from email

2007-08-07 Thread Kevin Waterson
Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL PROTECTED] would return example.com perhaps an array of tld's, then strip the tld off the end and anything

[PHP] Re: get domain component from email

2007-08-07 Thread Dan
yes co.uk is a tdl. - Dan Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Dan wrote: yes co.uk is a tdl. No it's not, it's a ccTLD which is a TLD specific to a country. Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL

Re: [PHP] OT A public apology to Larry Garfield

2007-08-07 Thread tedd
At 11:35 AM -0400 8/7/07, Robert Cummings wrote: On Tue, 2007-08-07 at 11:28 -0400, Daniel Brown wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 11:15 -0400, Daniel Brown wrote: Bah just busting your balls anyway, old man! ;-P An

[PHP] Re: get domain component from email

2007-08-07 Thread Dan
What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article/users-email-address-php As far as actually

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Dan
Well then he needs an array of ccTLD's and pretty much anything that can follow a domain name. In my previous code change the array you're giving it to be of ccTLD's and also you might want to pass that array in through the funciton. As I said, been a while since I did PHP. - Dan Stut

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Daniel Brown
On 8/7/07, Stut [EMAIL PROTECTED] wrote: Dan wrote: yes co.uk is a tdl. No it's not, it's a ccTLD which is a TLD specific to a country. Kevin Waterson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi all. Im looking for a way to get the domain from an email address.

[PHP] javascript in head or in body ?

2007-08-07 Thread C.R.Vegelin
Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value; self.location='QueryForm.php?Chapter=' + val ; } /script TIA, Cor

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Tijnema
On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Greg Donald
On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 21:24 +0200, Tijnema wrote: On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Tijnema
On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 21:24 +0200, Tijnema wrote: On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form)

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Heyes
C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value; self.location='QueryForm.php?Chapter=' + val ; } /script

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread brian
C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value; self.location='QueryForm.php?Chapter=' + val ; } /script

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Greg Donald
On 8/7/07, Tijnema [EMAIL PROTECTED] wrote: Uhh, do you know which list this is? I give up.. Is it the one where I get as many [OT] labeled emails as I do on-topic ones? People have been asking basic html questions here for (over?) a decade, and it probably won't stop anytime soon. Newcomers

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Jason Pruim
On Aug 7, 2007, at 3:29 PM, Tijnema wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: On Tue, 2007-08-07 at 21:24 +0200, Tijnema wrote: On 8/7/07, C.R.Vegelin [EMAIL PROTECTED] wrote: Are there any rules when to include javascript in head or in body ? For example, script

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 21:19 +0100, C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Satyam
Check: http://developer.yahoo.com/performance/rules.html Satyam PS: The answer is, put styles at the top, scripts at the bottom., but there are many other tricks to improve performance. Otherwise, as for the standards, they can go anywhere. - Original Message - From:

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Tijnema
On 8/7/07, Richard Heyes [EMAIL PROTECTED] wrote: C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] get domain component from email

2007-08-07 Thread Jim Lucas
Kevin Waterson wrote: Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL PROTECTED] would return example.com perhaps an array of tld's, then strip the tld

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Tijnema
On 8/7/07, Greg Donald [EMAIL PROTECTED] wrote: On 8/7/07, Tijnema [EMAIL PROTECTED] wrote: Uhh, do you know which list this is? I give up.. Is it the one where I get as many [OT] labeled emails as I do on-topic ones? People have been asking basic html questions here for (over?) a

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread tg-php
Ok, you got the obligatory 'wrong list' comments. It is the wrong list, but for the sake of public completeness... how about an answer to the question. You can put it anywhere but a couple of considerations: 1. I believe if you put it AFTER where the JS functions defined in that block are

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Greg Donald
On 8/7/07, Jason Pruim [EMAIL PROTECTED] wrote: Later this week on Php-General, witness the revolutionary confessions of a PHP Programmer stuck in the middle of a lovers triangle of OOP, and Procedural That's a re-run. Python wins with Ruby coming in second place. PHP gets renamed to Java,

Re: [PHP] get domain component from email

2007-08-07 Thread Dan
Yup, that's pretty much what I wrote but with a bit more feedback for invalid addresses. - Dan Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kevin Waterson wrote: Hi all. Im looking for a way to get the domain from an email address. Not sub domains, just the domain,

[PHP] Re: Premature Ajax-ulation

2007-08-07 Thread Dan
Ahh, the PHP newsgroup. The last place I thought I would see a refrence to a Defcon or Blackhat talk. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] One of my developers saw the following article;

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 15:50 -0400, [EMAIL PROTECTED] wrote: 3. If you're executing JS in order to output something, you're going to need to put it whereever in your HTML you'll need the output. If you're just defining functions to be called later, then you can put it whereever (probably

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 14:58 -0500, Greg Donald wrote: On 8/7/07, Jason Pruim [EMAIL PROTECTED] wrote: Later this week on Php-General, witness the revolutionary confessions of a PHP Programmer stuck in the middle of a lovers triangle of OOP, and Procedural That's a re-run. Python wins

[PHP] ADODB Insert Question (Syntax)

2007-08-07 Thread Graham Anderson
Hi What is the proper way to get the ADODB class to automatically add quotes to the below sql ? I'm guessing that the below fails because none of the variables get quoted with the method, qstr. $sql = insert into email (to_name, to_email, from_name, from_email, subject, message,

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Greg Donald
On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah, the numbers really show Python and Ruby winning... NOT *LOL*. You mean how both Ruby and Python list serv traffic is way up while PHP's is way down? Even the PHP dev list is really slowed the past year or so.. just some guy named Richard

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Borokov Smith
Yes. Just yes. regards, boro Greg Donald schreef: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah, the numbers really show Python and Ruby winning... NOT *LOL*. You mean how both Ruby and Python list serv traffic is way up while PHP's is way down? Even the PHP dev list is

RE: [PHP] ADODB Insert Question (Syntax)

2007-08-07 Thread Uber Wannabe
-Original Message- From: Graham Anderson [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 07, 2007 3:34 PM To: php-general Subject: [PHP] ADODB Insert Question (Syntax) Hi What is the proper way to get the ADODB class to automatically add quotes to the below sql ? I'm guessing that the

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Robert Cummings
On Tue, 2007-08-07 at 15:52 -0500, Greg Donald wrote: On 8/7/07, Robert Cummings [EMAIL PROTECTED] wrote: Yeah, the numbers really show Python and Ruby winning... NOT *LOL*. You mean how both Ruby and Python list serv traffic is way up while PHP's is way down? Way up and way down are

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article/users-email-address-php As far

Re[2]: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Davey
Hi Greg, Tuesday, August 7, 2007, 9:52:28 PM, you wrote: PHP is the absolute worst language to do any sort of OO programming in. Ignoring the digg user mentality of that statement, try ASP if you want to see OO suck *royally* Cheers, Rich -- Zend Certified Engineer http://www.corephp.co.uk

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Stut
Richard Davey wrote: Tuesday, August 7, 2007, 9:52:28 PM, you wrote: PHP is the absolute worst language to do any sort of OO programming in. Ignoring the digg user mentality of that statement, try ASP if you want to see OO suck *royally* ASP is not a language, it's most like a framework. I

Re: [PHP] get domain component from email

2007-08-07 Thread Jim Lucas
Dan wrote: Yup, that's pretty much what I wrote but with a bit more feedback for invalid addresses. not exactly - Dan Jim Lucas [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Kevin Waterson wrote: Hi all. Im looking for a way to get the domain from an email address. Not sub

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site

Re: [PHP] Re: get domain component from email

2007-08-07 Thread FrozenDice
I guess I was just happy that I was able to remember how to do PHP. Yeah, that one works better. Just seemed a bit similar. Besides, people usually give pseudo code any way rather than working code. My code didn't work. Yours was better. - Dan On 8/7/07, Jim Lucas [EMAIL PROTECTED] wrote:

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Stut wrote: Jim Lucas wrote: Dan wrote: What are you trying to do exactly, maybe there's a better way. If you're trying to determine if an email address is valid there's a pretty cool way to do so by using dns records. It's like 5 lines, here's the site

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Jim Lucas wrote: Are all domains that use ccTLD's created/formatted like other not ccTLD's just with the .uk or whatever tagged on the end? Something like this your example stut.co.uk is this the base for your domain. Basically, would this be stut.com if it were a dot.com ?? or would it

[PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Dan
I've always heard it is bad if you let a user type some input, then show it back to them w/o sanatizing the code. Eg. I have a form, where the user types something, they hit submit and it submits to itself then prints back to the user something like, account created with password: whatever

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Stut
Dan wrote: I've always heard it is bad if you let a user type some input, then show it back to them w/o sanatizing the code. Eg. I have a form, where the user types something, they hit submit and it submits to itself then prints back to the user something like, account created with password:

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Daniel Brown
On 8/7/07, Dan [EMAIL PROTECTED] wrote: I've always heard it is bad if you let a user type some input, then show it back to them w/o sanatizing the code. Eg. I have a form, where the user types something, they hit submit and it submits to itself then prints back to the user something like,

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Dan
Thanks Stut and Daniel, I guess my fears were somewhat unfounded. At least in the case where you're the only one who sees the result. - Dan Daniel Brown [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 8/7/07, Dan [EMAIL PROTECTED] wrote: I've always heard it is bad if you let

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Jim Lucas
Stut wrote: Jim Lucas wrote: Are all domains that use ccTLD's created/formatted like other not ccTLD's just with the .uk or whatever tagged on the end? Something like this your example stut.co.uk is this the base for your domain. Basically, would this be stut.com if it were a dot.com ??

[PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Daniel Brown
I'm just forwarding this as a courtesy to the list, because Anthony accidentally just sent it to me, as opposed to Reply-All'ing the list. If you want more information on this subject you should search Google for Cross Site Scripting and XSS. Of particular interest is this site:

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Kevin Waterson
This one time, at band camp, Stut [EMAIL PROTECTED] wrote: Which brings me back to my earlier question of why would you want to do this? I can't think of any reason, but then again it is getting late. I would like to prevent registration of emails from certain domains that abuse a forum. eg:

Re: [PHP] Re: get domain component from email

2007-08-07 Thread william(at)elan.net
way to do so by using dns records. It's like 5 lines, here's the site http://www.sitepoint.com/article/users-email-address-php The requirement for email delivery is not MX, just having an A address is enough. Also executing external utility program from php is not optimal from system point

[PHP] Problems in php

2007-08-07 Thread racol
Dear Sirs, I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered the error_log and extensions_dir as advised by

Re: [PHP] Re: get domain component from email

2007-08-07 Thread Stut
Kevin Waterson wrote: This one time, at band camp, Stut [EMAIL PROTECTED] wrote: Which brings me back to my earlier question of why would you want to do this? I can't think of any reason, but then again it is getting late. I would like to prevent registration of emails from certain domains

Re: [PHP] Problems in php

2007-08-07 Thread Tijnema
On 8/7/07, racol [EMAIL PROTECTED] wrote: Dear Sirs, I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered

Re: [PHP] Problems in php

2007-08-07 Thread Stut
racol wrote: Dear Sirs, I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered the error_log and extensions_dir

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 4:57 pm, Dan wrote: I've always heard it is bad if you let a user type some input, then show it back to them w/o sanatizing the code. Eg. I have a form, where the user types something, they hit submit and it submits to itself then prints back to the user something

Re: [PHP] ADODB Insert Question (Syntax)

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 3:34 pm, Graham Anderson wrote: What is the proper way to get the ADODB class to automatically add quotes to the below sql ? I'm guessing that the below fails because none of the variables get quoted with the method, qstr. $sql = insert into email (to_name, to_email,

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 3:19 pm, C.R.Vegelin wrote: Are there any rules when to include javascript in head or in body ? For example, script type=text/javascript function reload(form) { var val=form.Chapter.options[form.Chapter.options.selectedIndex].value;

Re: [PHP] get domain component from email

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 1:25 pm, Kevin Waterson wrote: Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL PROTECTED] would return example.com perhaps an array of

Re: [PHP] Empty super globals

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 10:02 am, Brian Dunning wrote: A friends asked me the following and I have no clue: There are variables in php called the super globals. Specifically the $_SERVER super globals are coming back as an empty array. The shopping cart that pixami supplied to us requires

Re: [PHP] get domain component from email

2007-08-07 Thread Daniel Brown
On 8/7/07, Richard Lynch [EMAIL PROTECTED] wrote: On Tue, August 7, 2007 1:25 pm, Kevin Waterson wrote: Im looking for a way to get the domain from an email address. Not sub domains, just the domain, so [EMAIL PROTECTED] would return example.com.mn similarly, the address [EMAIL

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread FrozenDice
Thanks for the info Richard. I'll check out that website. Do they recommend any literature about PHP security, or is there a bible(one book that everyone recomends, in EE it's http://www.amazon.com/Elements-Analysis-Electrical-Electronic-Engineering/dp/0070612854) for PHP security like there

Re: [PHP] Problems in php

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 8:09 am, racol wrote: I have installed a Sambar 64 server and PHP 4.7 plus MySql. I connect through localhost and the PHPINFO.php file works OK on IE and Firefox. PHPINFO.php shows that the php.ini file is situated in C:/Windows as advised and I have altered the

Re: [PHP] Echoing input w/o sanatizing - what is the danger

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 5:08 pm, Daniel Brown wrote: It's actually not so much for echo'ing as it is for processing the data in another manner that makes it dangerous not to do some sanitizing and checking such as database manipulation. This is wrong. Google for cross site scripting

Re: [PHP] javascript in head or in body ?

2007-08-07 Thread Richard Lynch
On Tue, August 7, 2007 2:48 pm, Tijnema wrote: On 8/7/07, Greg Donald [EMAIL PROTECTED] wrote: On 8/7/07, Tijnema [EMAIL PROTECTED] wrote: Uhh, do you know which list this is? I give up.. Is it the one where I get as many [OT] labeled emails as I do on-topic ones? People have been

  1   2   >