Re: [PHP] sending email

2010-12-15 Thread Daniel Molina Wegener
On Wednesday 15 December 2010, Marc Fromm wrote: > When I use the mail function on a linux server, how is the email sent? > Does sendmail act alone or does it use SMTP? sendmail itself (or the replacement install, probably postfix or qmail) is an MTA itself, so... it do not requires an SMTP se

[PHP] sending email

2010-12-15 Thread Marc Fromm
When I use the mail function on a linux server, how is the email sent? Does sendmail act alone or does it use SMTP? Thanks Marc

Re: [PHP] Where is my array?

2010-12-15 Thread Daniel P. Brown
On Wed, Dec 15, 2010 at 17:21, Don Wieland wrote: > Hello, > > I originally had a line that built a static array: > > $instruments = > array('Leader','Singer','Piano','Synth','A-Guitar','E-Guitar','Bass','Drums','Perc','Sax','Flute','Sound/AV','Pastor','Producer'); > > Then I decided I wanted this

[PHP] Where is my array?

2010-12-15 Thread Don Wieland
Hello, I originally had a line that built a static array: $instruments = array('Leader','Singer','Piano','Synth','A-Guitar','E- Guitar','Bass','Drums','Perc','Sax','Flute','Sound/ AV','Pastor','Producer'); Then I decided I wanted this dynamic and to pull it form the DB. So I thought this w

RE: [PHP] Singleton with variable parameters

2010-12-15 Thread Tommy Pham
> -Original Message- > From: Nathan Nobbe [mailto:quickshif...@gmail.com] > Sent: Wednesday, December 15, 2010 1:31 PM > To: Sebastian Detert > Cc: php-general@lists.php.net > Subject: Re: [PHP] Singleton with variable parameters > > On Wed, Dec 15, 2010 at 2:11 PM, Sebastian Detert maill

Re: [PHP] Singleton with variable parameters

2010-12-15 Thread Nathan Nobbe
On Wed, Dec 15, 2010 at 2:11 PM, Sebastian Detert wrote: > Hi guys, > > I am trying to generate an abstract Singleton class for use in arbitrary > classes, like > > class Foo extends Singleton {} > > and generate a new class with Foo -> getInstance(); > Until traits release I think you'll find th

Re: [PHP] Re: Error Querying Database

2010-12-15 Thread Gary
x27;, '$type', >> '$singles', '$six', '$can', '$bottles', '$tap', '$size', '$desc', >> '$ip' )") >> or die(mysql_error()); >> >> echo "Data Inserted!"; >> >> I am now getting this error message, but it does not make sense >> >> You have an error in your SQL syntax; check the manual that corresponds >> to >> your MySQL server version for the right syntax to use near 'desc, >> ip)VALUES >> ('', '', 'Imported', '', '', '', '', '', '', '', '68.80.24.11' at line 1 >> >> Does this mean I am getting closer to getting some actual work done >> today? >> >> Thanks again >> >> gary > > > not sure if this is the issue or not, but you have reserved words in > your field names... try escaping them all in backticks... and the way i > do things with variables inside "", i put them in {}... here is what i > mean: > > mysql_query("INSERT INTO `beer` (`beername`, `manu`, `type`, `singles`, > `six`, `can`, `bottles`, `tap`, `size`, `desc`, `ip`)"."VALUES > "."('{$beername}', '{$manu}', '{$type}', '{$singles}', '{$six}', > '{$can}', '{$bottles}', '{$tap}', '{$size}', '{$desc', '{$ip}')"); > > Steve > > Steve Thanks again, that was the issue...let me throw that into my vault of knowledge about mysql (seems there is plenty of open space in there anyway) Thanks again Gary __ Information from ESET Smart Security, version of virus signature database 5706 (20101215) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Error Querying Database

2010-12-15 Thread Gary
e, and it is still not > behaving... > > mysql_connect('server','un','pw') or die(mysql_error()); > mysql_select_db("db") or die(mysql_error()); > > mysql_query("INSERT INTO beer (beername, manu, type, singles, six, can, > bottles, tap, siz

Re: [PHP] Re: Error Querying Database

2010-12-15 Thread Steve Staples
On Wed, 2010-12-15 at 15:41 -0500, Gary wrote: > ""Gary"" wrote in message > news:81.d1.49824.33c09...@pb1.pair.com... > >I cant seem to get this to connect. This is to my local testing server, > >which is on, so we need not worry that I have posted the UN/PW. > > > > This is a duplicate of a s

[PHP] Singleton with variable parameters

2010-12-15 Thread Sebastian Detert
Hi guys, I am trying to generate an abstract Singleton class for use in arbitrary classes, like class Foo extends Singleton {} and generate a new class with Foo -> getInstance(); How can I manage to use this with an unkown number of parameters like Foo -> getInstance('a', 'b'); ? Somethin

Re: [PHP] Re: Error Querying Database

2010-12-15 Thread Bastien Koert
>> >> >> mysqli_close($dbc); >> > > > > I have tried something completely different, changed to mysql instead of > mysqli and I put it up on my remote server/database, and it is still not > behaving... > > mysql_connect('server','un','pw') or di

[PHP] Re: Error Querying Database

2010-12-15 Thread Gary
type, singles, six, can, bottles, tap, size, desc, ip)"."VALUES "."('$beername', '$manu', '$type', '$singles', '$six', '$can', '$bottles', '$tap', '$size', '$desc', '$ip' )") or die(mysql_error()); echo "Data Inserted!"; I am now getting this error message, but it does not make sense You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc, ip)VALUES ('', '', 'Imported', '', '', '', '', '', '', '', '68.80.24.11' at line 1 Does this mean I am getting closer to getting some actual work done today? Thanks again gary __ Information from ESET Smart Security, version of virus signature database 5706 (20101215) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Querying Database

2010-12-15 Thread Bastien Koert
> >> is the submit part... if you encapsulate the DB part of the code, >> within: >> if($_POST['submit'] == 'Submit') >> { >>    # do db stuff in here and value sanitizing >> } >> >> basically, what that does is the submit butto

Re: [PHP] Error Querying Database

2010-12-15 Thread Gary
lue' of the button) which will not be > set, until you submit the form. Personally, I do it another way, but > but is how most people check to see if a form is submitted (i think?) > > but it seems as if your issue stems from the lack of being able to > connect to the database

Re: [PHP] Error Querying Database

2010-12-15 Thread Ashley Sheridan
On Wed, 2010-12-15 at 14:44 -0500, Steve Staples wrote: > On Wed, 2010-12-15 at 14:34 -0500, Gary wrote: > > "Steve Staples" wrote in message > > news:1292440837.5460.8.ca...@webdev01... > > > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: > > >> I cant seem to get this to connect. This is to m

Re: [PHP] Error Querying Database

2010-12-15 Thread Steve Staples
On Wed, 2010-12-15 at 14:34 -0500, Gary wrote: > "Steve Staples" wrote in message > news:1292440837.5460.8.ca...@webdev01... > > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: > >> I cant seem to get this to connect. This is to my local testing server, > >> which is on, so we need not worry that

Re: [PHP] Error Querying Database

2010-12-15 Thread Gary
re just blindly inserting into the database > (as currently, every time you view the page, you will insert into the > database, even if completely empty values). > Steve Thank you for your reply. I did not see a reply from Ashley, but I would love to read it. I always welcome criticism, howe

Re: [PHP] Error Querying Database

2010-12-15 Thread Steve Staples
On Wed, 2010-12-15 at 13:42 -0500, Gary wrote: > I cant seem to get this to connect. This is to my local testing server, > which is on, so we need not worry that I have posted the UN/PW. > > This is a duplicate of a script I have used countless times and it worked. > The error message is 'Error

Re: [PHP] Error Querying Database

2010-12-15 Thread Gary
__ Information from ESET Smart Security, version of virus signature database 5706 (20101215) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Error Querying Database

2010-12-15 Thread Daniel P. Brown
On Wed, Dec 15, 2010 at 13:42, Gary wrote: > I cant seem to get this to connect.  This is to my local testing server, > which is on, so we need not worry that I have posted the UN/PW. > > This is a duplicate of a script I have used countless times and it worked. > The error message is 'Error query

[PHP] Error Querying Database

2010-12-15 Thread Gary
I cant seem to get this to connect. This is to my local testing server, which is on, so we need not worry that I have posted the UN/PW. This is a duplicate of a script I have used countless times and it worked. The error message is 'Error querying database.' Some one point out the error of my

Re: [PHP] PHPInfo disabled due to security

2010-12-15 Thread Daniel P. Brown
On Wed, Dec 15, 2010 at 09:57, Paul S wrote: > > Warning: phpinfo() has been disabled for security reasons in > /home/.../php/phpinfo.php on line 2 > > My ISP has disabled phpinfo and has not answered my tech requests on this > for over a month. > > They seem to never have a thing to do but play g

[PHP] Re: PHPInfo disabled due to security

2010-12-15 Thread Al
Personally, I would have changed ISPs long ago. On 12/15/2010 9:57 AM, Paul S wrote: Warning: phpinfo() has been disabled for security reasons in /home/.../php/phpinfo.php on line 2 My ISP has disabled phpinfo and has not answered my tech requests on this for over a month. They seem to neve

[PHP] PHPInfo disabled due to security

2010-12-15 Thread Paul S
Warning: phpinfo() has been disabled for security reasons in /home/.../php/phpinfo.php on line 2 My ISP has disabled phpinfo and has not answered my tech requests on this for over a month. They seem to never have a thing to do but play games with silly security "issues". In a day some phone ca

RE: [PHP] Under which distribution(s) is PHP developed, compiled, and tested?

2010-12-15 Thread Bob McConnell
From: Dan Schaefer > Background (some of these facts may be well-known, and for that I apologize): > I'm running CentOS 5.5 on all servers, which only supports PHP 5.1.6 > CentOS 5.5 is based off RHEL 5.5 > Redhat has released RHEL 6 which supports PHP 5.3 > CentOS has not released even a beta 6 v

[PHP] Re: Under which distribution(s) is PHP developed, compiled, and tested?

2010-12-15 Thread Colin Guthrie
'Twas brillig, and Dan Schaefer at 15/12/10 14:28 did gyre and gimble: > Background (some of these facts may be well-known, and for that I > apologize): > I'm running CentOS 5.5 on all servers, which only supports PHP 5.1.6 > CentOS 5.5 is based off RHEL 5.5 > Redhat has released RHEL 6 which suppo

[PHP] Under which distribution(s) is PHP developed, compiled, and tested?

2010-12-15 Thread Dan Schaefer
Background (some of these facts may be well-known, and for that I apologize): I'm running CentOS 5.5 on all servers, which only supports PHP 5.1.6 CentOS 5.5 is based off RHEL 5.5 Redhat has released RHEL 6 which supports PHP 5.3 CentOS has not released even a beta 6 version yet that supports PHP

Re: [PHP] PDO: good, popular?

2010-12-15 Thread Nicholas Kell
On Dec 14, 2010, at 5:45 PM, Govinda wrote: >> In previous experience with questions such as these, you will get >> several types of individual responses to usages of the software. Some >> good, some bad, depending on the experience level of the commenter >> with both the language and the code in