Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread Daniel Brown
On Mon, Aug 6, 2012 at 1:42 PM, shiplu wrote: > > Thanks Daniel for clearing. I am pretty bad in English. :( Don't sell yourself short. Your English seems fine to me --- better than many native-speakers. -- Network Infrastructure Manager http://www.php.net/ -- PHP General Mailing List (

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread shiplu
On Mon, Aug 6, 2012 at 11:22 PM, Daniel Brown wrote: > On Mon, Aug 6, 2012 at 1:15 PM, shiplu wrote: > >> Where *do* come up with those names :) > >> > > > > Sorry I couldn't understand the meaning of your sentence. May be this is > > due to cultural difference. > > > > Anyway, Solr is a search

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread Daniel Brown
On Mon, Aug 6, 2012 at 1:15 PM, shiplu wrote: >> Where *do* come up with those names :) >> > > Sorry I couldn't understand the meaning of your sentence. May be this is > due to cultural difference. > > Anyway, Solr is a search engine. Nutch is a crawler. Both can be > integrated. Then one can sen

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread shiplu
> Where *do* come up with those names :) > Sorry I couldn't understand the meaning of your sentence. May be this is due to cultural difference. Anyway, Solr is a search engine. Nutch is a crawler. Both can be integrated. Then one can send query to solr server from php using api. See http://wiki.

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread tamouse mailing lists
On Aug 6, 2012 7:33 AM, "shiplu" wrote: > Solr with Nutch will do it. Where *do* come up with those names :)

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread shiplu
On Mon, Aug 6, 2012 at 8:24 PM, Ansry User 01 wrote: > We are trying to code a very simple and customized search engine for > internal purposes. Please suggest if the PHP is the way to go or suggest > the alternatives?? > > It would be great if you can lead us to the links which would give us a >

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread Gibbs
On 06/08/12 15:24, Ansry User 01 wrote: We are trying to code a very simple and customized search engine for internal purposes. Please suggest if the PHP is the way to go or suggest the alternatives?? It would be great if you can lead us to the links which would give us a start!! Thanks Th

Re: [PHP] Coding Web search engine in PHP

2012-08-06 Thread Vikash Kumar
On 6 August 2012 19:54, Ansry User 01 wrote: > We are trying to code a very simple and customized search engine for > internal purposes. Please suggest if the PHP is the way to go or suggest > the alternatives?? > > It would be great if you can lead us to the links which would give us a > start!!

[PHP] Re: How to write a PHP coding to list out all files and directories aslinks to them?

2011-04-28 Thread Mitch
On 4/14/2011 6:16 PM, Mikhail S wrote: How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous

Re: [PHP] Re: How to write a PHP coding to list out all files and directories aslinks to them?

2011-04-16 Thread Ashley Sheridan
On Sat, 2011-04-16 at 15:02 -0500, Shawn McKenzie wrote: > On 04/14/2011 06:16 PM, Mikhail S wrote: > > How to write a PHP coding to list out all files and directories as links to > > them? > > > > This is somewhat similar to some index pages. When new file or

[PHP] Re: How to write a PHP coding to list out all files and directories aslinks to them?

2011-04-16 Thread Shawn McKenzie
On 04/14/2011 06:16 PM, Mikhail S wrote: > How to write a PHP coding to list out all files and directories as links to > them? > > This is somewhat similar to some index pages. When new file or folder is > added to the directory, HTML page should display the newly created > fi

[PHP] Re: How to write a PHP coding to list out all files and directories as links to them?

2011-04-14 Thread David Robley
Mikhail S wrote: > How to write a PHP coding to list out all files and directories as links > to them? > > This is somewhat similar to some index pages. When new file or folder is > added to the directory, HTML page should display the newly created > file/folder together with p

[PHP] How to write a PHP coding to list out all files and directories as links to them?

2011-04-14 Thread Mikhail S
How to write a PHP coding to list out all files and directories as links to them? This is somewhat similar to some index pages. When new file or folder is added to the directory, HTML page should display the newly created file/folder together with previous ones after it is being refreshed

Re: [PHP] Coding for email response forms

2009-01-31 Thread Edmund Hertle
2009/1/30 Tom > > "Shawn McKenzie" wrote in message > news:47.36.08436.e8b80...@pb1.pair.com... > > Tom wrote: > >> "Clancy" wrote in message > >> news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com... > >>> On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net ("Tom") > wrote: > >>> > >>> .

Re: [PHP] Coding for email response forms

2009-01-30 Thread Tom
"Shawn McKenzie" wrote in message news:47.36.08436.e8b80...@pb1.pair.com... > Tom wrote: >> "Clancy" wrote in message >> news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com... >>> On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net ("Tom") wrote: >>> >>> .. > Also make sure there aren'

Re: [PHP] Coding for email response forms

2009-01-28 Thread Shawn McKenzie
Tom wrote: > "Clancy" wrote in message > news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com... >> On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net ("Tom") wrote: >> >> .. Also make sure there aren't line returns or any nonsense like that in the to & subjects. Look up email hea

Re: [PHP] Coding for email response forms

2009-01-28 Thread Tom
"Clancy" wrote in message news:c77vn4pri9tsbaqg9avv3i7dnfb8nvk...@4ax.com... > On Mon, 26 Jan 2009 17:57:29 -0600, obeli...@comcast.net ("Tom") wrote: > > .. >>> >>> Also make sure there aren't line returns or any nonsense like that in >>> the to & subjects. Look up email header injection.

Re: [PHP] Coding for email response forms

2009-01-27 Thread Shawn McKenzie
;>>> Shawn McKenzie wrote: >>>>> Tom Scott wrote: >>>>>> - Original Message - From: "Shawn McKenzie" >>>>>> >>>>>> Newsgroups: php.general >>>>>> To: >&

RE: [PHP] Coding for email response forms

2009-01-27 Thread Boyd, Todd M.
> -Original Message- > From: Tom [mailto:obeli...@comcast.net] > Sent: Tuesday, January 27, 2009 9:58 AM > To: php-general@lists.php.net > Subject: Re: [PHP] Coding for email response forms > > > "Edmund Hertle" wrote in message > news:f7ed

Re: [PHP] Coding for email response forms

2009-01-27 Thread Tom
hawn McKenzie wrote: >> >> >> >> Tom Scott wrote: >> >>> - Original Message - From: "Shawn McKenzie" >> >>> >> >>> Newsgroups: php.general >> >>> To: >> >>> Sent: Monday, January 26, 2

Re: [PHP] Coding for email response forms

2009-01-26 Thread Edmund Hertle
gt; >>> > >>> Newsgroups: php.general > >>> To: > >>> Sent: Monday, January 26, 2009 3:52 PM > >>> Subject: Re: [PHP] Coding for email response forms > >>> > >>> > >>>> Tom wrote: > >>>>>

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
"Eric Butera" wrote in message news:6a8639eb0901261509s1008e1b1j89c2a8f63669e...@mail.gmail.com... > On Mon, Jan 26, 2009 at 4:47 PM, Daniel Brown wrote: >> On Mon, Jan 26, 2009 at 16:34, Tom wrote: >>> >>> Shawn, >>> So would that look something like this: >>> >> if ($_SERVER['REQUEST_METHOD'

Re: [PHP] Coding for email response forms

2009-01-26 Thread Eric Butera
On Mon, Jan 26, 2009 at 4:47 PM, Daniel Brown wrote: > On Mon, Jan 26, 2009 at 16:34, Tom wrote: >> >> Shawn, >> So would that look something like this: >> > if ($_SERVER['REQUEST_METHOD'] == "POST") { >> >> // Just to be safe, I strip out HTML tags >> $realname = strip_tags($realname); >> $email

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
"Shawn McKenzie" wrote in message news:497e3ab9.2060...@mckenzies.net... > > > Shawn McKenzie wrote: >> >> Tom Scott wrote: >>> - Original Message - From: "Shawn McKenzie" >>> >>> Newsgroups: php.general >>>

Re: [PHP] Coding for email response forms

2009-01-26 Thread Shawn McKenzie
Shawn McKenzie wrote: > > Tom Scott wrote: >> - Original Message - From: "Shawn McKenzie" >> >> Newsgroups: php.general >> To: >> Sent: Monday, January 26, 2009 3:52 PM >> Subject: Re: [PHP] Coding for email response forms >> &

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
"Daniel Brown" wrote in message news:ab5568160901261347h1dab427bo29a1313494cd...@mail.gmail.com... > On Mon, Jan 26, 2009 at 16:34, Tom wrote: >> >> Shawn, >> So would that look something like this: >> > if ($_SERVER['REQUEST_METHOD'] == "POST") { >> >> // Just to be safe, I strip out HTML tags

Re: [PHP] Coding for email response forms

2009-01-26 Thread Shawn McKenzie
Tom wrote: > "Shawn McKenzie" <> wrote in message > news:a0.87.62571.3d92e...@pb1.pair.com... >> Tom wrote: >>> My Hosting site said that I needed to include the PHP otherwise the form >>> won't work. I need to know where to include my email info to get this set >>> up >>> don't I? What do you su

Re: [PHP] Coding for email response forms

2009-01-26 Thread Daniel Brown
On Mon, Jan 26, 2009 at 16:34, Tom wrote: > > Shawn, > So would that look something like this: > if ($_SERVER['REQUEST_METHOD'] == "POST") { > > // Just to be safe, I strip out HTML tags > $realname = strip_tags($realname); > $email = strip_tags($email); > $feedback = strip_tags($feedback); > > /

Re: [PHP] Coding for email response forms

2009-01-26 Thread Shawn McKenzie
Tom wrote: > "Shawn McKenzie" <> wrote in message > news:a0.87.62571.3d92e...@pb1.pair.com... >> Tom wrote: >>> My Hosting site said that I needed to include the PHP otherwise the form >>> won't work. I need to know where to include my email info to get this set >>> up >>> don't I? What do you su

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
"Shawn McKenzie" <> wrote in message news:a0.87.62571.3d92e...@pb1.pair.com... > Tom wrote: >> My Hosting site said that I needed to include the PHP otherwise the form >> won't work. I need to know where to include my email info to get this set >> up >> don't I? What do you suggest? >> T >> "Dan

Re: [PHP] Coding for email response forms

2009-01-26 Thread Shawn McKenzie
Tom wrote: > My Hosting site said that I needed to include the PHP otherwise the form > won't work. I need to know where to include my email info to get this set up > don't I? What do you suggest? > T > "Daniel Brown" wrote in message > news:ab5568160901261259p6d6442a4ya5ea4134025e5...@mail.gma

Re: [PHP] Coding for email response forms

2009-01-26 Thread Tom
My Hosting site said that I needed to include the PHP otherwise the form won't work. I need to know where to include my email info to get this set up don't I? What do you suggest? T "Daniel Brown" wrote in message news:ab5568160901261259p6d6442a4ya5ea4134025e5...@mail.gmail.com... > On Mon, Jan

Re: [PHP] Coding for email response forms

2009-01-26 Thread Daniel Brown
On Mon, Jan 26, 2009 at 15:57, Tom wrote: > I am a new user of PHP, and am using Dreamweaver CS3 for the webpages. The > following page has my form but the submit button is not working properly. > http://www.richlandmtg.com/contacts.html > What code is needed and where does it get placed in the pa

[PHP] Coding for email response forms

2009-01-26 Thread Tom
I am a new user of PHP, and am using Dreamweaver CS3 for the webpages. The following page has my form but the submit button is not working properly. http://www.richlandmtg.com/contacts.html What code is needed and where does it get placed in the page.? I thought CS3 took care of this. Any input

Re: [PHP] coding MySQL error traps [WAS: mysql if empty]

2007-04-10 Thread Richard Lynch
On Tue, April 10, 2007 1:08 pm, Paul Novitski wrote: > mysql_query() returns true. This constitutes a hack because it > depends entirely on the way the parser processes code rather than on > explicit elements of the language. The order of execution and boolean short-circuit is a Documented Featur

Re: [PHP] coding MySQL error traps [WAS: mysql if empty]

2007-04-10 Thread Jim Lucas
Paul Novitski wrote: $sql = "SELECT Client FROM booked WHERE Name = 'larry'"; $result = mysql_query($sql) OR die('[MYSQL ERROR] - ['.mysql_errno().']'.mysql_error()); while ( list($client) = mysql_fetch_row($result) ) { echo "{$client}\n"; } I agree with this logic overall. The

[PHP] coding MySQL error traps [WAS: mysql if empty]

2007-04-10 Thread Paul Novitski
$sql = "SELECT Client FROM booked WHERE Name = 'larry'"; $result = mysql_query($sql) OR die('[MYSQL ERROR] - ['.mysql_errno().']'.mysql_error()); while ( list($client) = mysql_fetch_row($result) ) { echo "{$client}\n"; } I agree with this logic overall. The above is of course jus

Re: [PHP] Php coding help - Newbie question

2007-01-22 Thread Ramdas
On 1/23/07, Chris <[EMAIL PROTECTED]> wrote: > Sorry for troubling all again. > I am trying to use the Pear DB_ldap for the above scripts. > > Does any one have any sample code for ldap_connect () ldap_search etc. http://php.net/ldap_connect http://php.net/ldap_search Both pages have examples

Re: [PHP] Php coding help - Newbie question

2007-01-22 Thread Chris
Sorry for troubling all again. I am trying to use the Pear DB_ldap for the above scripts. Does any one have any sample code for ldap_connect () ldap_search etc. http://php.net/ldap_connect http://php.net/ldap_search Both pages have examples. If you have a specific problem then post it. --

Re: [PHP] Php coding help - Newbie question

2007-01-20 Thread Ramdas
On 1/18/07, Ramdas <[EMAIL PROTECTED]> wrote: On 1/17/07, Jochem Maas <[EMAIL PROTECTED]> wrote: > Ramdas wrote: > > Hi Group, > > > > A very newbie question. Might be discussed earlier, please forgive. > > Are so much of a noob that STFW is not within your capabilities? > (just thought I'd ask,

Re: [PHP] Php coding help - Newbie question

2007-01-18 Thread Ramdas
On 1/17/07, Jochem Maas <[EMAIL PROTECTED]> wrote: Ramdas wrote: > Hi Group, > > A very newbie question. Might be discussed earlier, please forgive. Are so much of a noob that STFW is not within your capabilities? (just thought I'd ask, given that you admit to realising the info *might* be out t

Re: [PHP] Php coding help - Newbie question

2007-01-17 Thread Jochem Maas
Ramdas wrote: > Hi Group, > > A very newbie question. Might be discussed earlier, please forgive. Are so much of a noob that STFW is not within your capabilities? (just thought I'd ask, given that you admit to realising the info *might* be out there already) > > I am having a site in PHP ( not

Re: [PHP] Php coding help - Newbie question

2007-01-17 Thread Jim Lucas
Ramdas wrote: Hi Group, A very newbie question. Might be discussed earlier, please forgive. I am having a site in PHP ( not very great design ) which I need to convert/modify to use functions. Such the code for connecting / binding to Ldap is not repeated & scripts are more readable. The site

[PHP] Php coding help - Newbie question

2007-01-17 Thread Ramdas
Hi Group, A very newbie question. Might be discussed earlier, please forgive. I am having a site in PHP ( not very great design ) which I need to convert/modify to use functions. Such the code for connecting / binding to Ldap is not repeated & scripts are more readable. The site deals with modi

Re: [PHP] Coding Standards Document

2006-11-22 Thread Børge Holen
On Wednesday 22 November 2006 16:31, tedd wrote: > At 7:14 PM -0500 11/21/06, Robert Cummings wrote: > >On Tue, 2006-11-21 at 16:19 -0500, tedd wrote: > >> It seems that every time I ask a security question, I find that I'm > >> currently practicing the answers to avoid the pit-falls. > > > >Exce

Re: [PHP] Coding Standards Document

2006-11-22 Thread Robert Cummings
On Wed, 2006-11-22 at 10:31 -0500, tedd wrote: > At 7:14 PM -0500 11/21/06, Robert Cummings wrote: > >On Tue, 2006-11-21 at 16:19 -0500, tedd wrote: > >> It seems that every time I ask a security question, I find that I'm > >> currently practicing the answers to avoid the pit-falls. > > > >Except

Re: [PHP] Coding Standards Document

2006-11-22 Thread tedd
At 7:14 PM -0500 11/21/06, Robert Cummings wrote: On Tue, 2006-11-21 at 16:19 -0500, tedd wrote: It seems that every time I ask a security question, I find that I'm currently practicing the answers to avoid the pit-falls. Except that one time when his site got defaced... that was news ;) ;)

Re: [PHP] Coding...

2006-11-18 Thread [EMAIL PROTECTED]
There are a lot of good books to go by. I suggest getting one that incorporates both PHP & MySQL, not just php. On 11/18/06, Jeff <[EMAIL PROTECTED]> wrote: I am pretty new with PHP, but what I've learned in the last 3 weeks is pretty good I think so far! What I'm looking to do is create a lo

Re: [PHP] Coding...

2006-11-18 Thread John Meyer
I'd pick up a book "Web Database Applications with PHP and MySQL", otherwise known as the Platypus Book, and use that. That will teach you a lot about logins, sessions, as well as using MySQL and PHP together. As far as the database name goes, that has nothing to do with the PHP file name. Jeff w

[PHP] Coding...

2006-11-18 Thread Jeff
I am pretty new with PHP, but what I've learned in the last 3 weeks is pretty good I think so far! What I'm looking to do is create a login script, and have people being able to login. Now, I have pulled scripts from sites, and everything is working okay. But the problem I have with pulling s

Re: [PHP] Coding Style Question...

2006-10-03 Thread Richard Lynch
On Mon, October 2, 2006 7:32 pm, Tony Di Croce wrote: > I am relatively new to PHP... I have about 1.5 years of light PHP work > under > my belt... Over the past year or so my PHP coding style has evolved > significantly and I'm curious as to how experienced progra

Re: [PHP] Coding Style Question...

2006-10-03 Thread tedd
At 10:23 AM +0800 10/3/06, Glenn Richmond wrote: I'll probably get strong opposition for these comments, but in my opinion, there's nothing worse than mixing two different lanuages in a single file, not to mention mixing functional code with layout code. Glenn. Glenn: I agree with the concept

Re: [PHP] Coding Style Question...

2006-10-02 Thread Larry Garfield
On Monday 02 October 2006 19:32, Tony Di Croce wrote: > I am relatively new to PHP... I have about 1.5 years of light PHP work > under my belt... Over the past year or so my PHP coding style has evolved > significantly and I'm curious as to how experienced programmers write > PHP

Re: [PHP] Coding Style Question...

2006-10-02 Thread Glenn Richmond
's nothing worse than mixing two different lanuages in a single file, not to mention mixing functional code with layout code. Glenn. Tony Di Croce wrote: > I am relatively new to PHP... I have about 1.5 years of light PHP work > under > my belt... Over the past year or so my PHP

RE: [PHP] Coding Style Question...

2006-10-02 Thread Jay Blanchard
[snip] What do you think? [/snip] I think I'd like an ice cold beer. I code PHP like I code C++, heavily commented with code designed to fit the needs of the application. There is a thing in PEAR concerning style (you can Google it pretty easily) and you will as many styles as you do PHP develope

[PHP] Coding Style Question...

2006-10-02 Thread Tony Di Croce
I am relatively new to PHP... I have about 1.5 years of light PHP work under my belt... Over the past year or so my PHP coding style has evolved significantly and I'm curious as to how experienced programmers write PHP... Basically, here is what I have evolved to: 1) ALL php code is at th

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Paul Scott
On Fri, 2006-03-03 at 16:19 -0500, tedd wrote: > Perhaps I'm fortunate, but I usually find a way around using Globals. > And since I've been coding in PHP, I've never been forced to use them. > Just my 2c... In our framework, I use globals as well, although I do tend to agree with Tedd regardin

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Rafael
Andreas Korthaus wrote: Hi Gustav! Gustav Wiberg wrote: My oponion is that is insane to use global variables. The main drawback with global variables is that is very easy to mix up variables, and keep track of what variable belongs to what. So an advice: Don't use it! Ok, so what's your r

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread tedd
So what's the way [using Globals] you'd recommend and why? best regards Andreas Andreas: I have to agree with Gustav on this -- I very seldom use Globals. I might use one for debugging, but not for finished code. Their use simply creates problems in porting code, keeping things modular, and

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Robert Cummings
On Fri, 2006-03-03 at 14:53, Andreas Korthaus wrote: > > - use a factory/singleton, which is not so much better than a global > variable (and again, what about config-data?). I use a global configuration to register database connection params. InterJinn uses something like the following: $GLOBAL

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Gustav Wiberg
- Original Message - From: "Andreas Korthaus" <[EMAIL PROTECTED]> To: ; "Gustav Wiberg" <[EMAIL PROTECTED]> Sent: Friday, March 03, 2006 8:53 PM Subject: Re: [PHP] Coding Practice: Use global $var or pass in by refernce Hi Gustav! Gustav Wiberg wrot

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Luis Magaña
I would go for: - you can create a new instance ("new DB") in every methode (but you usually only want a single DB-connection per script, and where do you pass config-data to access the DB?) or This way the code keeps well organized and about the use of only one connection I wouldn't worry

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Andreas Korthaus
Hi Gustav! Gustav Wiberg wrote: My oponion is that is insane to use global variables. The main drawback with global variables is that is very easy to mix up variables, and keep track of what variable belongs to what. So an advice: Don't use it! Ok, so what's your recommendation to solve the

Re: [PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Gustav Wiberg
- Original Message - From: "Mark Steudel" <[EMAIL PROTECTED]> To: Sent: Friday, March 03, 2006 7:46 PM Subject: [PHP] Coding Practice: Use global $var or pass in by refernce I was wondering what the general rule on using the global driective versus passing in a varia

[PHP] Coding Practice: Use global $var or pass in by refernce

2006-03-03 Thread Mark Steudel
I was wondering what the general rule on using the global driective versus passing in a variable by reference, why you should or shouldn't, etc. e.g. function () { global $db; $res =& $db->query( "SQL"); } or function ( &$db ) { $res =& $db->query( "SQL"); } -- PHP General

[PHP] Improving my PHP coding

2005-11-26 Thread Todd Cary
Though my applications run in a high profile environment (national class action lawsuits e.g. Enron, Microsoft, etc.), my coding style is ages old, and even then, primitive. If there is anyone who has the time to help me bring my coding up to 2005 standards, off line, I would appreciate it.

Re: [PHP] Coding Question

2004-12-13 Thread Justin French
On 07/12/2004, at 6:50 AM, Al wrote: Jason Wong wrote: On Monday 06 December 2004 14:19, Rory Browne wrote: If I'm not mistaken Al wanted to return something if the thing failed, without having to put it inside an if_block. I'm watching this with curiosity, because return is a language construct,

Re: [PHP] Coding Question

2004-12-06 Thread Al
Richard Lynch wrote: Al wrote: Essentially, I'm creating warning reports for my users, not code errors. > The users can then email the warnings to our webmaster. Jason Wong wrote: On Monday 06 December 2004 14:19, Rory Browne wrote: $result = mysql_db_query($db,"select count(*) fro

Re: [PHP] Coding Question

2004-12-06 Thread Richard Lynch
Al wrote: > Essentially, I'm creating warning reports for my users, not code errors. > The > users can then email the warnings to our webmaster. > > Jason Wong wrote: >> On Monday 06 December 2004 14:19, Rory Browne wrote: >> >> $result = mysql_db_query($db,"select count(*) from $tabl

Re: [PHP] Coding Question

2004-12-06 Thread Al
Jason Wong wrote: On Monday 06 December 2004 14:19, Rory Browne wrote: If I'm not mistaken Al wanted to return something if the thing failed, without having to put it inside an if_block. I'm watching this with curiosity, because return is a language construct, and not a function, or anything that h

Re: [PHP] Coding Question

2004-12-06 Thread Richard Lynch
Al wrote: > I've searched the PHP manual and can't find an answer for this question > > I'd like to use the "OR DIE" construct; but instead of "DIE" I'd like to > use > "RETURN FOO". I haven't found a way to do it. > > > $string= file_get_contents($filename) > OR die("Could not read file"); >

Re: [PHP] Coding Question

2004-12-05 Thread Jason Wong
On Monday 06 December 2004 14:19, Rory Browne wrote: > If I'm not mistaken Al wanted to return something if the thing failed, > without having to put it inside an if_block. > > I'm watching this with curiosity, because return is a language > construct, and not a function, or anything that has a val

Re: [PHP] Coding Question

2004-12-05 Thread Rory Browne
If I'm not mistaken Al wanted to return something if the thing failed, without having to put it inside an if_block. I'm watching this with curiosity, because return is a language construct, and not a function, or anything that has a value. I could probably have said that better sober, and not at

Re: [PHP] Coding Question

2004-12-05 Thread Ligaya Turmelle
> $db_link= mysql_connect($host, $user, $pw) >OR die("Could not connect: " . mysql_error()); try: $db_link= mysql_connect($host, $user, $pw); if (!$db_link){ // do whatever if there is something wrong } maybe try something like that with the file_get_contents also? Respectfully, Ligaya

[PHP] Coding Question

2004-12-05 Thread Al
I've searched the PHP manual and can't find an answer for this question I'd like to use the "OR DIE" construct; but instead of "DIE" I'd like to use "RETURN FOO". I haven't found a way to do it. $string= file_get_contents($filename) OR die("Could not read file"); $db_link= mysql_connect($

Re: [PHP] Coding Blues - Parse Error

2004-09-15 Thread Oliver Kurz
Hello Yusuf, > Class fl_SQL > { > var $server; > var $user; > var $pass; > > var $connection; > var $db; > > var $query; > var $record; > var $tlist; > } The bracket is wrong. Your class only has properties but no methods. > Function fl_SQL($server, $user, $pass, $db = NULL) { > $

Re: [PHP] Coding Blues - Parse Error

2004-09-15 Thread John Holmes
Dan Joseph wrote: You don't have a ; at the end of the line. You have $this->db = $db and you should have $db;. Also, this: > Function doquery($query, $db = $this->db){ is causing your error. The default value must be a constant expression, not a variable, function, method, etc... -- ---John

RE: [PHP] Coding Blues - Parse Error

2004-09-15 Thread Dan Joseph
Hi, You don't have a ; at the end of the line. You have $this->db = $db and you should have $db;. -Dan Joseph -Original Message- From: Yusuf [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 15, 2004 11:19 PM To: [EMAIL PROTECTED] Subject: [PHP] Coding Blues - Par

[PHP] Coding Blues - Parse Error

2004-09-15 Thread Yusuf
Hello. I am writing some code, but though everything seems ok, I get the same error: "parse error, unexpected T_VARIABLE on line 23" . Here is the code: var $connection; var $db; var $query; var $record; var $tlist; } Function fl_SQL($server, $user, $pass, $db = NULL) { $thi

Re: [PHP] Re: php coding software

2004-08-03 Thread Jordi Canals
Oliver John V. Tibi wrote: in addition to brad's post, does anyone know of coding software that supports team development environments and/or a versioning server for windows? I use Zend Studio wich provides CVS integration. But I'm sure you will find some others with CVS support. If not, I will re

[PHP] Re: php coding software

2004-08-02 Thread Oliver John V. Tibi
in addition to brad's post, does anyone know of coding software that supports team development environments and/or a versioning server for windows? TIA! -- Running 'ojtibi' on '127.0.0.1' (BATCH_OPTIMISTIC mode). "Live free() or die()." -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] Re: php coding software

2004-08-02 Thread Vail, Warren
EMAIL PROTECTED] Subject: [PHP] Re: php coding software Brad I use HTML-Kit for HTML, ASP, Java, CSS, PHP and MySQL. Free too :) -- - Michael Mason Arras People www.arraspeople.co.uk - "Brad Ciszewski" <[EMAIL PROTECTED]>

[PHP] Re: php coding software

2004-08-02 Thread Harlequin
Brad I use HTML-Kit for HTML, ASP, Java, CSS, PHP and MySQL. Free too :) -- - Michael Mason Arras People www.arraspeople.co.uk - "Brad Ciszewski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anyone know any good so

[PHP] Re: php coding software

2004-08-02 Thread Chris Martin
Jordi Canals wrote: Brad Ciszewski wrote: Does anyone know any good software for PHP/mysql coding? I currently use DreamWeaver MX, however it doesn't have much PHP support, and no MySQL support. I just want an easy program to script in, and upload on to my webserver. Please help! :o Sorry, but you

Re: [PHP] php coding software

2004-08-02 Thread Jordi Canals
Brad Ciszewski wrote: Does anyone know any good software for PHP/mysql coding? I currently use DreamWeaver MX, however it doesn't have much PHP support, and no MySQL support. I just want an easy program to script in, and upload on to my webserver. Please help! :o Sorry, but you're wrong. Dreamweave

Re: [PHP] php coding software

2004-08-02 Thread Paul Kain
php expert editor VERY nice look it up at http://www.ankord.com/ $35 though but worth it. On Mon, 2 Aug 2004 09:26:18 -0500, Brad Ciszewski <[EMAIL PROTECTED]> wrote: > Does anyone know any good software for PHP/mysql coding? I currently use > DreamWeaver MX, however it doesn't have much PHP

Re: [PHP] php coding software

2004-08-02 Thread John Nichel
Brad Ciszewski wrote: Does anyone know any good software for PHP/mysql coding? I currently use DreamWeaver MX, however it doesn't have much PHP support, and no MySQL support. I just want an easy program to script in, and upload on to my webserver. Please help! :o For example: One of the repeatedly

Re: [PHP] php coding software

2004-08-02 Thread Matt M.
On Mon, 2 Aug 2004 09:26:18 -0500, Brad Ciszewski <[EMAIL PROTECTED]> wrote: > Does anyone know any good software for PHP/mysql coding? I currently use > DreamWeaver MX, however it doesn't have much PHP support, and no MySQL > support. I just want an easy program to script in, and upload on to my >

[PHP] php coding software

2004-08-02 Thread Brad Ciszewski
Does anyone know any good software for PHP/mysql coding? I currently use DreamWeaver MX, however it doesn't have much PHP support, and no MySQL support. I just want an easy program to script in, and upload on to my webserver. Please help! :o

Re: [PHP] Coding Advice

2004-07-21 Thread Matt M.
> I am writing an app and right now im working on code that will display x > number of items on one page, and if there is overflow, provide a link to > the next. The url coming into the page looks something like: > > projects.php?action=view&completed=no&start=0 > > My code so far, i just took t

[PHP] Coding Advice

2004-07-21 Thread Aaron Axelsen
Hello, I am writing an app and right now im working on code that will display x number of items on one page, and if there is overflow, provide a link to the next. The url coming into the page looks something like: projects.php?action=view&completed=no&start=0 My code so far, i just took the $_S

Re: [PHP] Coding productivity benchmarks?

2004-06-07 Thread Derrick fogle
On Jun 7, 2004, at 11:39 AM, Tyler Replogle wrote: I just did all of that and it took me 1 hour and 35 mins Just for grins and giggles, why don't I post the exact assignment specs? FYI, I've never really had to deal with file uploads and downloads before. It probably took me to an hour to research

RE: [PHP] Coding productivity benchmarks?

2004-06-07 Thread Tyler Replogle
CTED]> <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> Subject: [PHP] Coding productivity benchmarks? Date: Mon, 7 Jun 2004 09:51:20 -0500 I've been searching around for productivity benchmarks for PHP programming. The only references I can find for it are in for-pay publications. I've

Re: [PHP] Coding productivity benchmarks?

2004-06-07 Thread Brent Baisley
Nothing in the specs you listed mentioned anything about a pretty, intuitive GUI interface. Drop a nice interface requirement and that cuts your time considerably. Forget trying to design an "event driven" interface and drop back on the old mainframe menu driven interface with one option per s

Re: [PHP] Coding productivity benchmarks?

2004-06-07 Thread Richard Davey
Hello Derrick, Monday, June 7, 2004, 3:51:20 PM, you wrote: Df> So, am I just a pretender? Are there people out there that can really Df> bust out a basic DMS in 40 minutes? I would say that there probably are - but you'd have to question how robust and well designed their system would be after

[PHP] Coding productivity benchmarks?

2004-06-07 Thread Derrick fogle
I've been searching around for productivity benchmarks for PHP programming. The only references I can find for it are in for-pay publications. I've ended up becoming a PHP developer more out of happenstance than anything. I've been doing it for a couple of years now, but... I don't really know

Re: [PHP] Re: PHP Coding Standards

2004-06-02 Thread Justin French
On 02/06/2004, at 3:00 AM, Justin Patrin wrote: And I'm one of them. :-) I like the K&R version because it saves verticaly space and most editors can't really handle correct tabbing when you put it after. IMHO it's just not necessary as ALL blocks should have braces, even those that are one-line

Re: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Justin Patrin
Travis Low wrote: Justin Patrin wrote: Travis Low wrote: [I hate K&R indenting] And I'm one of them. :-) I like the K&R version because it saves verticaly space and most editors can't really handle correct tabbing... Arrggghh...TABS. Don't even get me started on tabs... cheers, Travis I meant

RE: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Jay Blanchard
[snip] >> [I hate K&R indenting] > > And I'm one of them. :-) I like the K&R version because it saves > verticaly space and most editors can't really handle correct tabbing... Arrggghh...TABS. Don't even get me started on tabs... [/snip] How many holy wars can be started in one thread legally

Re: [PHP] Re: PHP Coding Standards

2004-06-01 Thread Travis Low
Justin Patrin wrote: Travis Low wrote: [I hate K&R indenting] And I'm one of them. :-) I like the K&R version because it saves verticaly space and most editors can't really handle correct tabbing... Arrggghh...TABS. Don't even get me started on tabs... cheers, Travis -- Travis Low

  1   2   3   >