Re: [PHP] Make New-Age Money Online with Google

2009-01-26 Thread clive
Ashley Sheridan wrote: On Sat, 2009-01-24 at 10:14 +0200, Dora Elless wrote: That's why I am sending this email only to people I know and care about. And they send to a mailing list. Come again? So Funny, they went through all the trouble of signing up, unless hey have bots now t

[PHP] Doc standard for methods?

2009-01-26 Thread Larry Garfield
Greetings, all. I am looking for feedback on a documentation question, in the hopes that someone else has found a good solution to an abnormal situation. We're in the process of introducing OOP syntax to a large procedural code base. Our developer base is a mixture of people who are procedural

Re: [PHP] Variable formatting problem using sessions...

2009-01-26 Thread Chris
Rick Duval wrote: I'm using an "OnClick" routine to set a session variable before I go to another page. onClick= works fine but I need a variable where "rick" is I've tried onClick= and other variations but it doesn't work. Can anybody tell me what the proper formatting is to get this to r

Re: [PHP] Multiple queries in PHP

2009-01-26 Thread Chris
Per Jessen wrote: Ashley Sheridan wrote: I've run into a bit of a problem. I put together a query using mysql variables in the form set @m:= 0; with the select that uses it directly after. For any wondering, the select was using it as an incremental value which can't be hard coded, as the value

Re: [PHP] PHP 5.2.8 fails to find libiconv

2009-01-26 Thread Chris
Ro Achterberg wrote: Hi, I'm attempting to install PHP 5.2.8 on CentOS 5.2 x86_64. The glibc iconv doesn't seem to function very well, leading to a bunch of failed tests when running 'make test' (see below). After a bit of Googling I stumbled upon http://nl2.php.net/manual/en/intro.iconv.php

Re: [PHP] Re: Multiple queries in PHP

2009-01-26 Thread Edmund Hertle
2009/1/26 Chris > > >> This extension does not have to be installed. If your server is running >> php5, then this extension is installed >> > > No it's not. The mysql extension no longer ships with php by default, you > have to build it when you ./configure or install the external php-mysql > pac

Re: [PHP] Coding for email response forms

2009-01-26 Thread Edmund Hertle
2009/1/26 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 > >>> To: > >>> Sent: Monday, January 26, 2009

[PHP] Variable formatting problem using sessions...

2009-01-26 Thread Rick Duval
I'm using an "OnClick" routine to set a session variable before I go to another page. onClick= works fine but I need a variable where "rick" is I've tried onClick= and other variations but it doesn't work. Can anybody tell me what the proper formatting is to get this to resolve correctly? T

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 >>> To: >>> Sent: Monday, January 26, 2009 3:52 PM >>> Subject: Re: [PHP] Coding f

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 >> >> >>> Tom wrote: "Shawn McKenzie" <> wrote in message

Re: [PHP] Re: Multiple queries in PHP

2009-01-26 Thread Chris
This extension does not have to be installed. If your server is running php5, then this extension is installed No it's not. The mysql extension no longer ships with php by default, you have to build it when you ./configure or install the external php-mysql package (depending on your o/s and

Re: [PHP] Re: New PHP User with a simple question

2009-01-26 Thread Paul M Foster
On Mon, Jan 19, 2009 at 04:45:08PM -0500, Christopher W wrote: > Dear responders, > > I was not sure which post was the best to respond to all of you so I chose > the original. > > I wanted to thank you all for taking the time to try and help answer my > question. I truly appreciate it. > > Fo

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] New PHP User with a simple question

2009-01-26 Thread Micah Gersten
Paul M Foster wrote: > On Mon, Jan 26, 2009 at 12:53:55PM -0600, Micah Gersten wrote: > > >> Paul M Foster wrote: >> > > > > >>> Please show me how *without Javascript* and *only with PHP* you can >>> change the content on a page interactively as the user described >>> *without* reloadi

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); > > /

[PHP] Re: New PHP User with a simple question

2009-01-26 Thread Christopher W
Dear responders, I was not sure which post was the best to respond to all of you so I chose the original. I wanted to thank you all for taking the time to try and help answer my question. I truly appreciate it. For the record, I have a PHP book and I understand (I think) all the variables, f

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] New PHP User with a simple question

2009-01-26 Thread Christopher W
Kevin, Your link, with some modifications to fit my site layout, worked just as I was hoping for. Thank you very much. -- "Kevin Waterson" wrote in message news:20090126092451.7aab63ff.ke...@phpro.org... > >> > Sorry, I am also new to the etiquette of these mail lists. > > Hope this will ge

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Paul M Foster
On Mon, Jan 26, 2009 at 12:53:55PM -0600, Micah Gersten wrote: > Paul M Foster wrote: > > > > Please show me how *without Javascript* and *only with PHP* you can > > change the content on a page interactively as the user described > > *without* reloading the whole page. Xajax contains Javascrip

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] Kinda 0.T... php site and maintenance

2009-01-26 Thread Stuart
2009/1/26 Ryan S : > One thing you forgot to mention, how much would it be for "maintenance" per > year? > Feel free to add anything you think you might have forgotten in your first > emails to me. Depends what you mean by "maintenance". Will you be updating the site for them often? To be hones

Re: [PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Bastien Koert
On Mon, Jan 26, 2009 at 4:24 PM, Ryan S wrote: > Hey, > Thanks everyone for replying, I really appreciate your input. > > One thing you forgot to mention, how much would it be for "maintenance" per > year? > Feel free to add anything you think you might have forgotten in your first > emails to me

Re: [PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Ryan S
Hey, Thanks everyone for replying, I really appreciate your input. One thing you forgot to mention, how much would it be for "maintenance" per year? Feel free to add anything you think you might have forgotten in your first emails to me. @ Nitsan, "I did some personally sites like that for 2 b

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] Updating time in php

2009-01-26 Thread Robert Cummings
On Mon, 2009-01-26 at 21:13 +, c...@l-i-e.com wrote: > > I'll add that if you went the JS route, then it would just be > > replicating the system time, ie replicating the Windows clock. > > Actually, I did this thing once where I included the server time from PHP in > the JS, then calculate

Re: [PHP] Updating time in php

2009-01-26 Thread ceo
> I'll add that if you went the JS route, then it would just be > replicating the system time, ie replicating the Windows clock. Actually, I did this thing once where I included the server time from PHP in the JS, then calculate the difference, then use JS to show the actual current "time"

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] Non-traditional software accessing my website

2009-01-26 Thread TG
- Original Message - From: Stuart To: R B Cc: PHP List Date: Mon, 26 Jan 2009 19:53:17 + Subject: Re: [PHP] Non-traditional software accessing my website > 2009/1/26 R B : > > Is there a way to be sure that a website is going to be accessed only by > > traditional browsers and not

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Robert Cummings
On Mon, 2009-01-26 at 15:06 -0500, Andrew Ballard wrote: > On Mon, Jan 26, 2009 at 2:14 PM, Thiago H. Pojda > wrote: > > On Mon, Jan 26, 2009 at 4:13 PM, Robert Cummings > > wrote: > > > >> On Mon, 2009-01-26 at 13:04 -0600, R B wrote: > >> > Hello, > >> > > >> > Is there a way to be sure that a

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Andrew Ballard
On Mon, Jan 26, 2009 at 2:14 PM, Thiago H. Pojda wrote: > On Mon, Jan 26, 2009 at 4:13 PM, Robert Cummings wrote: > >> On Mon, 2009-01-26 at 13:04 -0600, R B wrote: >> > Hello, >> > >> > Is there a way to be sure that a website is going to be accessed only by >> > traditional browsers and not from

Re: [PHP] Dirty Button

2009-01-26 Thread Andrew Ballard
On Mon, Jan 26, 2009 at 2:05 PM, Michael Kubler wrote: > I like the idea of not updating the content straight away (as the user might > not want to see it updated), but depending on the situation I would > personally make the submit button look grey and inactive unless they've > changed something

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Stuart
2009/1/26 R B : > Is there a way to be sure that a website is going to be accessed only by > traditional browsers and not from another > software that send to the server the same headers of any of the traditional > browsers? > For example, supose that i only want to give access to my site users fro

[PHP] Re: tee function in PHP

2009-01-26 Thread Shawn McKenzie
Karyn Stump wrote: > Hi all, > > Sequence: > > Form1: Display fields for user to input data and submit. > > Form2: Show user the information they input on form1 and allow them to > print or email this form. > > I inherited the scripts above. The second script displays the results in > the brows

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Thiago H. Pojda
On Mon, Jan 26, 2009 at 4:13 PM, Robert Cummings wrote: > On Mon, 2009-01-26 at 13:04 -0600, R B wrote: > > Hello, > > > > Is there a way to be sure that a website is going to be accessed only by > > traditional browsers and not from another > > software that send to the server the same headers of

[PHP] tee function in PHP

2009-01-26 Thread Karyn Stump
Hi all, Sequence: Form1: Display fields for user to input data and submit. Form2: Show user the information they input on form1 and allow them to print or email this form. I inherited the scripts above. The second script displays the results in the browser and also writes a file on the server i

Re: [PHP] Non-traditional software accessing my website

2009-01-26 Thread Robert Cummings
On Mon, 2009-01-26 at 13:04 -0600, R B wrote: > Hello, > > Is there a way to be sure that a website is going to be accessed only by > traditional browsers and not from another > software that send to the server the same headers of any of the traditional > browsers? > For example, supose that i onl

Re: [PHP] Dirty Button

2009-01-26 Thread Michael Kubler
I like the idea of not updating the content straight away (as the user might not want to see it updated), but depending on the situation I would personally make the submit button look grey and inactive unless they've changed something in which case it'll be normal and (black). Although actually

[PHP] Non-traditional software accessing my website

2009-01-26 Thread R B
Hello, Is there a way to be sure that a website is going to be accessed only by traditional browsers and not from another software that send to the server the same headers of any of the traditional browsers? For example, supose that i only want to give access to my site users from firefox, ie, chr

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Micah Gersten
Paul M Foster wrote: > On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: > > >> Paul M Foster wrote: >> >>> >>> In case this has yet to be answered to your satisfaction... >>> >>> Your page will *have* to reload when the user presses the button, but >>> the majority of content

RE: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-26 Thread Boyd, Todd M.
> -Original Message- > From: Bastien Koert [mailto:phps...@gmail.com] > Sent: Monday, January 26, 2009 12:23 PM > To: Per Jessen > Cc: php-general@lists.php.net > Subject: Re: [PHP] best practice wrt multi-lingual websites, gettext() > etc. ---8<--- > At work, we don't use gettext() sinc

Re: [PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Bastien Koert
On Mon, Jan 26, 2009 at 12:39 PM, Nitsan Bin-Nun wrote: > I have just quitted from my partial time job at the company. > I did some personally sites like that for 2 banks here in Israel. > > When I do something like that I usually basing the whole thing on the known > blogging platform WordPress,

Re: [PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Michael Kubler
Depends on what they want, how much time it'll take you (and thus how experienced you are at PHP), and how much code you can re-use. Break it down a bit. You'll probably want PHP to do a few things. It'll probably generate the main navigation when you view the page, that's one section. You'll pr

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-26 Thread Bastien Koert
On Mon, Jan 26, 2009 at 12:21 PM, Per Jessen wrote: > Phpster wrote: > > > Dunno if it's a best practice, but I store all the translations in the > > db for easy manipulation and extraction to a file for others to > > translate. That obviously involves both import and export utilities. > > Hi Bas

Re: [PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Nitsan Bin-Nun
I have just quitted from my partial time job at the company. I did some personally sites like that for 2 banks here in Israel. When I do something like that I usually basing the whole thing on the known blogging platform WordPress, it has a massive power inside of it, the templating system is very

Re: [PHP] Dirty Button

2009-01-26 Thread Frank Stanovcak
"tedd" wrote in message news:p06240802c5a28dd01...@[192.168.1.101]... > At 3:41 PM -0600 1/25/09, Micah Gersten wrote: >>tedd wrote: >>> At 7:02 PM + 1/25/09, Ashley Sheridan wrote: Tedd, what about having it reset if you then go back and select the original option without submi

Re: [PHP] profiler web server

2009-01-26 Thread Michael Kubler
If you want to profile your web server, i.e artificially see what it's like under load, then you can use a program like 'ab' on Linux which will create the specified number of HTTP requests as if the URL was being requested (although not all the other things like the images, .css files, etc..)

Re: [PHP] best practice wrt multi-lingual websites, gettext() etc.

2009-01-26 Thread Per Jessen
Phpster wrote: > Dunno if it's a best practice, but I store all the translations in the > db for easy manipulation and extraction to a file for others to > translate. That obviously involves both import and export utilities. Hi Bastien interesting - does this mean you're also coding for language

[PHP] Kinda 0.T... php site and maintenance

2009-01-26 Thread Ryan S
Hey, Got a question for you guys who make a lot of personal sites. I got a US client who wants me to make a personal site, 4-7 "sections" (eg: about me, photos, whats new etc) and have to put a yearly maintenance $$ amount... I thought i'll make most of the stuff using php rather than plain htm

RE: [PHP] profiler web server

2009-01-26 Thread Boyd, Todd M.
> -Original Message- > From: Jim Lucas [mailto:li...@cmsws.com] > Sent: Monday, January 26, 2009 9:48 AM > To: soussou97 > Cc: php-general@lists.php.net > Subject: Re: [PHP] profiler web server > > soussou97 wrote: > > Hi; > > > > I have a web server (apache 2.2 + PHP5) which process must

Re: [PHP] profiler web server

2009-01-26 Thread Jim Lucas
soussou97 wrote: > Hi; > > I have a web server (apache 2.2 + PHP5) which process must be watched for > measuring the perf ? > > Regards; All I see here is a statement. Do you actually have a question for us? -- Jim Lucas "Some men are born to greatness, some achieve greatness, and

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Jim Lucas
Bastien Koert wrote: > On Mon, Jan 26, 2009 at 9:25 AM, Paul M Foster wrote: > >> On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: >> >>> Paul M Foster wrote: In case this has yet to be answered to your satisfaction... Your page will *have* to reload when the use

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Bastien Koert
On Mon, Jan 26, 2009 at 9:25 AM, Paul M Foster wrote: > On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: > > > Paul M Foster wrote: > > > > > > In case this has yet to be answered to your satisfaction... > > > > > > Your page will *have* to reload when the user presses the button, b

Re: [PHP] Updating time in php

2009-01-26 Thread Richard Heyes
>... I'll add that if you went the JS route, then it would just be replicating the system time, ie replicating the Windows clock. Unless you decided to go the AJAX route (?!). But like Edmund said (inferred), it's a waste of time (...). -- Richard Heyes HTML5 Graphing for Firefox, Chrome, Opera

Re: [PHP] New PHP User with a simple question

2009-01-26 Thread Paul M Foster
On Mon, Jan 26, 2009 at 12:03:20AM -0600, Micah Gersten wrote: > Paul M Foster wrote: > > > > In case this has yet to be answered to your satisfaction... > > > > Your page will *have* to reload when the user presses the button, but > > the majority of content can look the same, except for the con

Re: [PHP] Updating time in php

2009-01-26 Thread Edmund Hertle
2009/1/26 Gary > I have a small php snippet in a page that displays the time and date. Is > there a way to have the time to update every minute so that it displays the > correct time, andnot just the time that the page was loaded? > > Thanks > > Gary > Hey Gary, because of how php works this i

[PHP] Updating time in php

2009-01-26 Thread Gary
I have a small php snippet in a page that displays the time and date. Is there a way to have the time to update every minute so that it displays the correct time, andnot just the time that the page was loaded? Thanks Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] profiler web server

2009-01-26 Thread soussou97
Hi; I have a web server (apache 2.2 + PHP5) which process must be watched for measuring the perf ? Regards; -- View this message in context: http://www.nabble.com/profiler-web-server-tp21664121p21664121.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mail

Re: [PHP] Multiple queries in PHP

2009-01-26 Thread Per Jessen
Ashley Sheridan wrote: > I've run into a bit of a problem. I put together a query using mysql > variables in the form set @m:= 0; with the select that uses it > directly after. For any wondering, the select was using it as an > incremental value which can't be hard coded, as the value will depend

Re: [PHP] New PHP User with a simple question OT

2009-01-26 Thread Carlos Medina
tedd schrieb: At 11:56 AM +0100 1/25/09, Carlos Medina wrote: Hi Ashley, yes this is the right answer. The "Problem" is not a PHP Question but a programming question. To be clear: i think, the "Problem" can you solve, if you get two or tree books or tutorials about the programming language. Y

Re: [PHP] Re: Multiple queries in PHP

2009-01-26 Thread Edmund Hertle
2009/1/25 Ashley Sheridan > On Sun, 2009-01-25 at 15:07 -0600, Shawn McKenzie wrote: > > Ashley Sheridan wrote: > > > Hi all, > > > > > > I've run into a bit of a problem. I put together a query using mysql > > > variables in the form set @m:= 0; with the select that uses it directly > > > after.