Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread George J
""Thiago Pojda"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > De: George J [mailto:[EMAIL PROTECTED] > >> So calling the script via the form works i.e it passes the >> neccessary variables to constrct the sql query for the next >> call. > > As Shawn said, if you really need the q

[PHP] newbie question about one php script passing control to another

2008-03-20 Thread Rod Clay
Hello. I am new to php programming, but have spent many years programming in many other languages, most recently perl (with which php seems to have much in common!). In every other language I've worked with there is a way for one program to pass control to another. However, so far in all of

Re: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Philip Thompson
On Mar 19, 2008, at 5:13 PM, George J wrote: Hi Jason, Hope this helps - my 'display_products.php' script -- ... ... // pagination routine conditional code... }else{ echo("\"0\" "); } --- So calling the script via the form works i.e it passes the neccessary variables t

RES: [PHP] Newbie question, Which way is best?

2008-03-20 Thread Thiago Pojda
De: George J [mailto:[EMAIL PROTECTED] > So calling the script via the form works i.e it passes the > neccessary variables to constrct the sql query for the next > call. As Shawn said, if you really need the query again add it to session, never, NEVER give the user the ability to see/execute

Re: Re: [PHP] Newbie question, Which way is best?]

2008-03-19 Thread George J
Hi Shawn, "Shawn McKenzie" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > George J wrote: >> Hi Daniel, >> >>>WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! >> >> As a newbie I just have to ask why. I suspect you're going to say it >> gives >> the table and fie

[Fwd: Re: [PHP] Newbie question, Which way is best?]

2008-03-19 Thread Shawn McKenzie
George J wrote: > Hi Daniel, > >>WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! > > As a newbie I just have to ask why. I suspect you're going to say it gives > the table and field names used in my database. I'm not really aware of all > the possible avenues that this method

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Jason Pruim
On Mar 19, 2008, at 4:45 PM, George J wrote: Hi Daniel, WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my database. I'm not really aware of all the possible ave

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Daniel Brown
On Wed, Mar 19, 2008 at 4:45 PM, George J <[EMAIL PROTECTED]> wrote: > Hi Daniel, > > > >WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! > > As a newbie I just have to ask why. I suspect you're going to say it gives > the table and field names used in my database. I'm not real

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread George J
Hi Daniel, >WHOA! Passing the SQL query via a URL is a Very Bad Idea[tm]! As a newbie I just have to ask why. I suspect you're going to say it gives the table and field names used in my database. I'm not really aware of all the possible avenues that this method might open up. It just feels

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Andrew Ballard
On Wed, Mar 19, 2008 at 3:47 PM, George J <[EMAIL PROTECTED]> wrote: > Hi, > > I have a script that contains a form and a pagination routine that calls > itself. I want to pass an sql query along with some other variables to the > called script. The code to acheive this, using the form, is worki

Re: [PHP] Newbie question, Which way is best?

2008-03-19 Thread Daniel Brown
On Wed, Mar 19, 2008 at 3:47 PM, George J <[EMAIL PROTECTED]> wrote: > Hi, > > I have a script that contains a form and a pagination routine that calls > itself. I want to pass an sql query along with some other variables to the > called script. The code to acheive this, using the form, is worki

[PHP] Newbie question, Which way is best?

2008-03-19 Thread George J
Hi, I have a script that contains a form and a pagination routine that calls itself. I want to pass an sql query along with some other variables to the called script. The code to acheive this, using the form, is working but when I try to write the code, using the scripts URL to call itself, I a

[PHP] Newbie Question on PHP-SOAP

2008-03-15 Thread Chino Aureus
Hi All, I'm trying to test create a soap clienet in PHP, here's my code: http://10.132.32.112:8080/axis2/services/TemperatureConverter?wsdl";, array('exceptions' => 0)); try { $a = 32; $result = $client->__soapCall("c2FConvertion",array($a)); #c2FConvertion("a"); print_r($res

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread tedd
At 2:13 PM -0500 11/15/07, Jeremy Mcentire wrote: On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote: better use Date() in js ... tedd-2 wrote: Current date/time for whom? For your server, use php's date(). For the user, use javascript's date(). It's so cool to be multilingual. :-) Cheers, tedd

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread Jürgen Wind
tedd-2 wrote: > > I used small case because this is a php list and > I didn't want to confuse anyone with trying to > get Date() to work in php. > no need to worry, in *php* functions are not case sensitive. cheers Jürgen -- View this message in context: http://www.nabble.com/Newbie-questi

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread tedd
At 8:21 AM -0800 11/16/07, Jürgen Wind wrote: my point was: "date()" doesn't work - it's "Date()" (at least in Firefox) Wow, you really have that capitalization thing down -- you're an impressive Wind. I used small case because this is a php list and I didn't want to confuse anyone with try

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread Jürgen Wind
my point was: "date()" doesn't work - it's "Date()" (at least in Firefox) tedd-2 wrote: > > At 2:13 PM -0500 11/15/07, Jeremy Mcentire wrote: >>On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote: >>>better use Date() in js ... >>>tedd-2 wrote: Current date/time for whom? For your server, use

Re: [PHP] Newbie question - current date - time

2007-11-15 Thread Jeremy Mcentire
On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote: better use Date() in js ... tedd-2 wrote: Current date/time for whom? For your server, use php's date(). For the user, use javascript's date(). It's so cool to be multilingual. :-) Cheers, tedd I don't know that that's better. Then, suddenly, o

Re: [PHP] Newbie question - current date - time

2007-11-15 Thread Daniel Brown
On Nov 14, 2007 10:00 PM, Instruct ICC <[EMAIL PROTECTED]> wrote: > Enough about me. I never thought I'd say this in earnest... > RTFM > > Have I become like who I've despised? We all do eventually -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at firs

RE: [PHP] Newbie question - current date - time

2007-11-14 Thread tedd
At 7:00 PM -0800 11/14/07, Instruct ICC wrote: But dude, there are many ways to skin a cat. Yeah, but he's not going to like any of them. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To uns

RE: [PHP] Newbie question - current date - time

2007-11-14 Thread Instruct ICC
> Date: Wed, 14 Nov 2007 09:39:19 -0800 > From: [EMAIL PROTECTED] > To: php-general@lists.php.net > Subject: [PHP] Newbie question - current date - time > > Hi Folks, > > Newbie question : > > - how do I get and display the current date? > - how do I get and di

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jürgen Wind
better use Date() in js ... tedd-2 wrote: > > Current date/time for whom? > > For your server, use php's date(). > > For the user, use javascript's date(). > > It's so cool to be multilingual. :-) > > Cheers, > > tedd > > -- > --- > http://sperling.com http://ancientstones.com http

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 3:54 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: [snip] > Now... Just exactly what makes you think it was a typo oh Master > Brown? [snip] Yeah, keep it up, smartass. I'm on to you ;-P -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at fi

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jason Pruim
On Nov 14, 2007, at 3:39 PM, Daniel Brown wrote: On Nov 14, 2007 3:19 PM, Jon Westcot <[EMAIL PROTECTED]> wrote: Hi: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 3:19 PM, Jon Westcot <[EMAIL PROTECTED]> wrote: > Hi: > > > > Hi Folks, > > > > > > Newbie question : > > > > > > - how do I get and display the current date? > > > - how do I get and display the current time? > > > > > > I see the getdate function - but I'm not sure if this is the

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jon Westcot
Hi: > > Hi Folks, > > > > Newbie question : > > > > - how do I get and display the current date? > > - how do I get and display the current time? > > > > I see the getdate function - but I'm not sure if this is the right > > function > > or how to display it > > > > http://www.php.net/manual/e

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread [EMAIL PROTECTED]
Thanks Folks, The date function worked great! -- Thanks - RevDave Cool7 @ hosting4days . com [db-lists] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread tedd
At 9:39 AM -0800 11/14/07, [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it http://www.php.net/man

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Robert . Degen
t; <[EMAIL PROTECTED]> Datum: Donnerstag, November 15, 2007 6:40 am Betreff: [PHP] Newbie question - current date - time An: php-general@lists.php.net > Hi Folks, > > Newbie question : > > - how do I get and display the current date? > - how do I get and display the cur

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Daniel Brown
On Nov 14, 2007 12:39 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi Folks, > > Newbie question : > > - how do I get and display the current date? > - how do I get and display the current time? > > I see the getdate function - but I'm not sure if this is the right function > or how to displa

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread William Betts
Hello, Use the date function http://us3.php.net/date. Regards, William Betts [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right f

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Luis Lorenzo - Quadricula
Hi! Look at this: http://es.php.net/manual/es/function.date.php [EMAIL PROTECTED] escribió: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jason Pruim
On Nov 14, 2007, at 12:39 PM, [EMAIL PROTECTED] wrote: Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it http://www.php

[PHP] Newbie question - current date - time

2007-11-14 Thread [EMAIL PROTECTED]
Hi Folks, Newbie question : - how do I get and display the current date? - how do I get and display the current time? I see the getdate function - but I'm not sure if this is the right function or how to display it http://www.php.net/manual/en/function.getdate.php -- Thanks - RevDave Coo

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-07 Thread Richard Lynch
On Fri, May 4, 2007 9:23 pm, revDAVE wrote: > I have a form on page one - and would like to submit to a second page > in PHP > that could grab the fields and send it out as an e-mail. > > Are there any links that show how do this? http://php.net/faq.php Somewhere in there is a question about proc

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-04 Thread Jim Lucas
Q: is there some kind of mail command like this for PHP? yes, it is called mail() check out this example, it is short but to the point. http://us.php.net/mail#57473 Jim Lucas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-04 Thread revDAVE
base needed)) Name is: #form.name# Email is : #form.email# Thanks, US Q: is there some kind of mail command like this for PHP? > > Brad > > -Original Message- > From: revDAVE [mailto:[EMAIL PROTECTED] > Sent: Friday, May 04, 2007 10:36 PM > To: php-general@li

Re: [PHP] Newbie Question - Form To Email Needed

2007-05-04 Thread revDAVE
On 5/4/2007 7:29 PM, "Brad Sumrall" <[EMAIL PROTECTED]> wrote: > Where are the fields? Hi Brad, Just a basic form with a few fields inside like - name - address etc lie: -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] Newbie Question - Form To Email Needed

2007-05-04 Thread revDAVE
Hi folks, I have a form on page one - and would like to submit to a second page in PHP that could grab the fields and send it out as an e-mail. Are there any links that show how do this? Thanks in advance - Dave -- Thanks - RevDave [EMAIL PROTECTED] [db-lists] -- PHP General Mailing List

Re: [PHP] newbie question about debuging

2007-03-31 Thread Richard Lynch
On Sat, March 31, 2007 8:53 am, Tijnema ! wrote: > On 3/31/07, buFka <[EMAIL PROTECTED]> wrote: > Hmm, in your image i see Database 'testdb' not found. Followed by a > link. What happens if you click on that link? > I don't know anything about Oracle/pOWL, but it looks like the script > can't conne

Re: [PHP] newbie question about debuging

2007-03-31 Thread buFka
Tijnema ! wrote: > > Hmm, in your image i see Database 'testdb' not found. Followed by a > link. What happens if you click on that link? > I don't know anything about Oracle/pOWL, but it looks like the script > can't connect to your Oracle database. Did you check if the database > settings are c

Re: [PHP] newbie question about debuging

2007-03-31 Thread Tijnema !
On 3/31/07, buFka <[EMAIL PROTECTED]> wrote: The Database exists: [EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. Verbunden mit: Oracle Database 10g Enterprise

Re: [PHP] newbie question about debuging

2007-03-31 Thread buFka
The Database exists: [EMAIL PROTECTED]:~$ sqlplus SYSTEM/[EMAIL PROTECTED] SQL*Plus: Release 10.2.0.1.0 - Production on Sa Mrz 31 15:44:09 2007 Copyright (c) 1982, 2005, Oracle. All rights reserved. Verbunden mit: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production With t

Re: [PHP] newbie question about debuging

2007-03-31 Thread Tijnema !
On 3/31/07, buFka <[EMAIL PROTECTED]> wrote: Hello, I would like to install pOWL (http://aksw.informatik.uni-leipzig.de/Projects/Powl) with ORACLE. I obey the installation steps. I log in: http://www.picvalley.net/u/26/25123_331.PNG and then then i get this error message http://www.picvalley.

[PHP] newbie question about debuging

2007-03-31 Thread buFka
Hello, I would like to install pOWL (http://aksw.informatik.uni-leipzig.de/Projects/Powl) with ORACLE. I obey the installation steps. I log in: http://www.picvalley.net/u/26/25123_331.PNG and then then i get this error message http://www.picvalley.net/u/26/25124_335.PNG How can I find out

[PHP] Re: PHP newbie question on xslt

2007-03-27 Thread Timothy Murphy
"Miguel J. Jiménez" wrote: >> // Example 2520. Creating an XSLTProcessor >> >> > >> $xml_filename = "collection.xml"; >> $xsl_filename= "collection.xsl"; >> >> $doc = new DOMDocument(); >> $xsl = new XSLTProcessor(); >> >> $doc->load($xsl_filename); >> $xsl->importStyleSheet($doc); >> >> $doc->loa

Re: [PHP] PHP newbie question on xslt

2007-03-26 Thread Miguel J. Jiménez
Timothy Murphy escribió: I've been trying some of the programs in the PHP manual at in chapters CLXXXI and CLXXXII to work, for example // Example 2519. Creating an XSLTProcessor load($xsl_filename); $xsl->importStyleSheet($doc); $doc

[PHP] PHP newbie question on xslt

2007-03-26 Thread Timothy Murphy
I've been trying some of the programs in the PHP manual at in chapters CLXXXI and CLXXXII to work, for example // Example 2519. Creating an XSLTProcessor load($xsl_filename); $xsl->importStyleSheet($doc); $doc->load($xml_filename); echo

Re: [PHP] newbie question about storing big5 codes into mysql-5.0.24a

2007-03-24 Thread Jochem Maas
Tijnema ! wrote: > On 3/24/07, Man-wai Chang <[EMAIL PROTECTED]> wrote: >> >> create table temp ( big5 char(2) ) character set big5 collate big5_bin; >> insert into temp ( big5 ) values ( 0x9f54 ); >> insert into temp ( big5 ) values ( 0x9f53 ); >> >> The 2nd query will report duplicated key. How s

Re: [PHP] newbie question about storing big5 codes into mysql-5.0.24a

2007-03-24 Thread Tijnema !
On 3/24/07, Man-wai Chang <[EMAIL PROTECTED]> wrote: create table temp ( big5 char(2) ) character set big5 collate big5_bin; insert into temp ( big5 ) values ( 0x9f54 ); insert into temp ( big5 ) values ( 0x9f53 ); The 2nd query will report duplicated key. How should I fix the problem? What d

[PHP] newbie question about storing big5 codes into mysql-5.0.24a

2007-03-23 Thread Man-wai Chang
create table temp ( big5 char(2) ) character set big5 collate big5_bin; insert into temp ( big5 ) values ( 0x9f54 ); insert into temp ( big5 ) values ( 0x9f53 ); The 2nd query will report duplicated key. How should I fix the problem? -- .~. Might, Courage, Vision, SINCERITY. http://www.linu

Re: [PHP] newbie question

2007-03-19 Thread Janet Valade
bob pilly wrote: Hi all Can anyone tell me what '&' means before a var? e.g function(&$var) http://us3.php.net/manual/en/language.references.php Janet -- Janet Valade -- janet.valade.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.ph

Re: [PHP] newbie question

2007-03-19 Thread Robert Cummings
On Mon, 2007-03-19 at 20:10 +, bob pilly wrote: > Hi all > > Can anyone tell me what '&' means before a var? > > e.g function(&$var) It means the variable is passed into the function as a reference. Changes to the value of the variable will be reflected outside of the function in the variab

[PHP] newbie question

2007-03-19 Thread bob pilly
Hi all Can anyone tell me what '&' means before a var? e.g function(&$var) Thanks for any help in advance ___ What kind of emailer are you? Find out today - get a free analysis of your email personality. Take the qui

Re: [PHP] newbie question regarding URL parameters

2007-01-11 Thread Jochem Maas
Dave Goodchild wrote: > Wow, there are some really bitchy, unattractive people here. No wonder some not to mention some very judgemental people as well. :-) it's pretty funny that someone who purports to aspire to buddhahood is so stuck in complaining about other people's bitchiness and unattracti

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread tedd
At 5:36 PM + 1/9/07, Dave Goodchild wrote: Wow, there are some really bitchy, unattractive people here. No wonder some people bail out of IT. Don't confuse knowledge for wisdom. Dave: I don't understand your comment. What I said below is good coding. Never trust any input to be what you

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Robert Cummings
On Tue, 2007-01-09 at 18:41 +, Roman Neuhauser wrote: > # [EMAIL PROTECTED] / 2007-01-09 17:36:55 +: > > Wow, there are some really bitchy, unattractive people here. No wonder some > > people bail out of IT. Don't confuse knowledge for wisdom. > > I don't see anything bitchy in the whole e

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Dave Goodchild
Read the reponses.

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-09 17:36:55 +: > Wow, there are some really bitchy, unattractive people here. No wonder some > people bail out of IT. Don't confuse knowledge for wisdom. I don't see anything bitchy in the whole email. Don't confuse terseness with bitching. Oh, and also don't top

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread Dave Goodchild
Wow, there are some really bitchy, unattractive people here. No wonder some people bail out of IT. Don't confuse knowledge for wisdom. On 1/9/07, tedd <[EMAIL PROTECTED]> wrote: At 9:17 PM -0500 1/5/07, <[EMAIL PROTECTED]> wrote: >You'll probably get 50 answers to this, but here's probably what

Re: [PHP] newbie question regarding URL parameters

2007-01-09 Thread tedd
At 9:17 PM -0500 1/5/07, <[EMAIL PROTECTED]> wrote: You'll probably get 50 answers to this, but here's probably what happened. There's a setting called "register globals" that will turn your name=me and age=27 into $name = "me" and $age = "27". It used to be turned ON by default. This was ge

Re: [PHP] newbie question regarding URL parameters

2007-01-06 Thread Robert Cummings
On Sat, 2007-01-06 at 13:31 +1100, Ryan Fielding wrote: > Robert Cummings wrote: > > On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: > > > >> Hello, > >> > >> I have a newbie question regarding URL parameters. The PHP script I > >> wrote need to read parameters passed in from a

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Ryan Fielding
Robert Cummings wrote: On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: Hello, I have a newbie question regarding URL parameters. The PHP script I wrote need to read parameters passed in from a URL, so as an example http://my.domain/myscript.php?name=me&age=27 and my script

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Jim the Standing Bear
Thanks, everyone. Yeah, I really need to dig myself out of the sand. :D On 1/5/07, Robert Cummings <[EMAIL PROTECTED]> wrote: On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: > Hello, > > I have a newbie question regarding URL parameters. The PHP script I > wrote need to read par

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Robert Cummings
On Fri, 2007-01-05 at 20:57 -0500, Jim the Standing Bear wrote: > Hello, > > I have a newbie question regarding URL parameters. The PHP script I > wrote need to read parameters passed in from a URL, so as an example > > http://my.domain/myscript.php?name=me&age=27 > > and my script would use $n

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread tg-php
You'll probably get 50 answers to this, but here's probably what happened. There's a setting called "register globals" that will turn your name=me and age=27 into $name = "me" and $age = "27". It used to be turned ON by default. This was generally considered to be bad security, so it now defa

Re: [PHP] newbie question regarding URL parameters

2007-01-05 Thread Nicholas Yim
Hello Jim the Standing Bear, register_global try use $name=$_GET['name']; $age=$_GET['age']; Best regards, === At 2007-01-06, 10:05:40 you wrote: === >Hello, > >I have a newbie question regarding URL parameters. The PHP script I >wrote need to read parameters passed in fro

[PHP] newbie question regarding URL parameters

2007-01-05 Thread Jim the Standing Bear
Hello, I have a newbie question regarding URL parameters. The PHP script I wrote need to read parameters passed in from a URL, so as an example http://my.domain/myscript.php?name=me&age=27 and my script would use $name to get the value for name and $age to get the value for age. Everything wa

Re: [PHP] Newbie question about

2006-09-10 Thread Satyam
- Original Message - From: "Mike Borrelli" <[EMAIL PROTECTED]> To: "Ray Hauge" <[EMAIL PROTECTED]> Cc: ; "Mike Borrelli" <[EMAIL PROTECTED]> Sent: Sunday, September 10, 2006 6:52 AM Subject: Re: [PHP] Newbie question about Okay, aft

Re: [PHP] Newbie question about

2006-09-09 Thread Mike Borrelli
Okay, after thinking about it, and looking at the replies, it seems as though there is only one situation where the short tags break things, and that's in XML with the pair being valid for XML. Yes, enabling the short tags is in the ini file, but is it on by default and require effort to change?

Re: [PHP] Newbie question about

2006-09-09 Thread Ray Hauge
On Saturday 09 September 2006 08:19, Mike Borrelli wrote: > Good day, > > While I've been using php for more than a little while now, I've never > understood why the use of the "" short tag is noted "to be > avoided". > > Or rather, I understand that there's an option to disable it, and that's > wh

Re: [PHP] Newbie question about

2006-09-09 Thread Satyam
not, I can't tell, but it is the only reason I know why short tags might be considered inapropriate and disabled. Satyam - Original Message - From: "Mike Borrelli" <[EMAIL PROTECTED]> To: Sent: Saturday, September 09, 2006 3:19 PM Subject: [PHP] Newbie question ab

Re: [PHP] Newbie question about

2006-09-09 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mike Borrelli wrote: > Good day, > > While I've been using php for more than a little while now, I've never > understood why the use of the "" short tag is noted "to be > avoided". > > Or rather, I understand that there's an option to disable it, and

Re: [PHP] Newbie question about

2006-09-09 Thread Dave Goodchild
To be gained: less typing To be lost: short_open_tag may be disabled in some environments, making your code less portable. If you are only ever going to run your code in one environment and can enable short_open_tag (or if it is already on), there's no issue. -- http://www.web-buddha.co.u

[PHP] Newbie question about

2006-09-09 Thread Mike Borrelli
Good day, While I've been using php for more than a little while now, I've never understood why the use of the "" short tag is noted "to be avoided". Or rather, I understand that there's an option to disable it, and that's why it's noted in this way, but I don't understand why it's disabled? Wha

Re: [PHP] newbie question

2006-04-05 Thread John Wells
On 4/5/06, David Doonan <[EMAIL PROTECTED]> wrote: > The only difference is the textarea tag from the form. What am I > missing? "nl2br" is short for "newline to ". If you pass a string of content that contains newline characters (these signal the ending of a line of text) to nl2br(), it will rep

Re: [PHP] newbie question

2006-04-05 Thread David Doonan
On Apr 5, 2006, at 11:51 AM, Evan Priestley wrote: On Apr 5, 2006, at 11:41 AM, Jay Blanchard wrote: ^ Not sure if this is just a transcription error, but that should be an 'l' (ell), not a '1' (one) in "nl2br". Evan Grazi! Exactly what I'm looking for! a very grate

Re: [PHP] newbie question

2006-04-05 Thread David Doonan
Writings_Text is the field in the d/b that contains the text I'm trying to return. I've done a couple of dozen ColdFusion sites and would format like this: #ParagraphFormat(Writings_Text)# and the results would be retuned exactly as stored in the d/b. What I'm searching for is the php equileva

Re: [PHP] newbie question

2006-04-05 Thread Evan Priestley
On Apr 5, 2006, at 11:41 AM, Jay Blanchard wrote: ^ Not sure if this is just a transcription error, but that should be an 'l' (ell), not a '1' (one) in "nl2br". Evan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] newbie question

2006-04-05 Thread Jay Blanchard
[snip] Read this http://www.php.net/nl2br The page stops writing once it hits this line: [/snip] And? What is the content of 'Writings Text'? Is there anything there? [helpful hint] When responding to e-mails on the list you must hit replay all or the list will never see the response and ther

RE: [PHP] newbie question

2006-04-05 Thread Jay Blanchard
[snip] I'm developing my first php mysql site and have hit a stumbling block regarding how text is being returned out of the database. This is the code that I'm using on the display page. It is displaying the returned text as one long paragraph, instead of mulitiple paragraphs: -

[PHP] newbie question

2006-04-05 Thread David Doonan
I'm developing my first php mysql site and have hit a stumbling block regarding how text is being returned out of the database. This is the code that I'm using on the display page. It is displaying the returned text as one long paragraph, instead of mulitiple paragraphs: --- Th

RE: [PHP] Newbie question

2006-03-17 Thread Jay Blanchard
[snip] I'm on WinXP, I got IIS installed, I downloaded and installed PHP 5.1.2 installer, I edited the php.ini file, I got documentation, I've been red and I'm kind of FRUSTATED!!! because I can't run PHP code. [/snip] Uninstall what you have and then go to http://www.devside.net/web/server/free

[PHP] Newbie question

2006-03-17 Thread Alexander Bauza
Hi there, I'm on WinXP, I got IIS installed, I downloaded and installed PHP 5.1.2 installer, I edited the php.ini file, I got documentation, I've been red and I'm kind of FRUSTATED!!! because I can't run PHP code. I need help please!!! Thanks for any help Alexander -- PHP General Mailing L

Re: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-06 Thread Jochem Maas
ghood stuff Jon Westcot wrote: Jochem: My most sincere apologies for not replying to your questions. I've been suffering with a rather dibilitating head cold the last few days and somehow glossed over your questions. 1. what is the local machine? Just my local workstation.

Re: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-05 Thread Jon Westcot
Jochem: My most sincere apologies for not replying to your questions. I've been suffering with a rather dibilitating head cold the last few days and somehow glossed over your questions. > 1. what is the local machine? Just my local workstation. > 2. where does the DB live? (is it a dif

Re: [PHP] Newbie question: need to transfer directory contents from my local machine to my website

2006-01-05 Thread Jochem Maas
Jon Westcot wrote: Hi all: Thanks to those who replied to my earlier question. I understand now that what I really need to do is to set up a local server and MySQL for my project, as PHP seems rife with ways to query the local server's folder structure. I am assuming that you are only int

Re: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-04 Thread Jochem Maas
Jim Moseby wrote: ... Perhaps I misunderstand what the OP wanted. I thought he was running a webserver somewhere, and that he wanted his remote webserver to be able to grab a file listing on his local machine by just visiting a webpage there. if you ask me it wasn't very clear what the OP

RE: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-04 Thread Jim Moseby
> > > > You will not be able to do what you propose with a purely > PHP solution. PHP > > is a server-side technology. That means all the processing > is done at the > > server, then output to your browser. PHP, to my knowledge, > has no way to > > inspect your computer's folders. You would

RE: [PHP] Newbie question: need to transfer directory contents frommy local machine to my website

2006-01-04 Thread Duffy, Scott E
I would take a look at glob. http://us2.php.net/manual/en/function.glob.php Scott -Original Message- From: Jason Pappin [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 04, 2006 10:48 AM To: Jon Westcot; PHP General Subject: Re: [PHP] Newbie question: need to transfer directory

Re: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-04 Thread Jochem Maas
Jim Moseby wrote: Hi Jon, welcome. I'm really new at PHP and will probably embarrass myself many times over asking questions that have been asked gazillions of times before, so let this serve as a blanket apology. You will get a cold response from the regulars on this list if you "ask q

Re: [PHP] Newbie question: need to transfer directory contents from my local machine to my website

2006-01-04 Thread Jason Pappin
Hi, You should perhaps look at setting up a web server on your computer. PHP as stated works server-side and if those folders/files you wish to transfer reside in the web root, then PHP can process those files. Perhaps look at how a web based FTP client written in PHP works for how to copy/move/d

Re: [PHP] Newbie question: need to transfer directory contents from my local machine to my website

2006-01-04 Thread Miles Thompson
At 02:18 AM 1/4/2006, Jon Westcot wrote: Hi all: I'm really new at PHP and will probably embarrass myself many times over asking questions that have been asked gazillions of times before, so let this serve as a blanket apology. Now, to my question. Here's what I'm trying to do. I

RE: [PHP] Newbie question: need to transfer directory contents fr om my local machine to my website

2006-01-04 Thread Jim Moseby
Hi Jon, welcome. > I'm really new at PHP and will probably embarrass myself > many times over asking questions that have been asked > gazillions of times before, so let this serve as a blanket apology. You will get a cold response from the regulars on this list if you "ask questions that h

[PHP] Newbie question: need to transfer directory contents from my local machine to my website

2006-01-03 Thread Jon Westcot
Hi all: I'm really new at PHP and will probably embarrass myself many times over asking questions that have been asked gazillions of times before, so let this serve as a blanket apology. Now, to my question. Here's what I'm trying to do. I have a simple database on my website that I

[PHP] Re: php newbie question with xml files

2005-05-04 Thread Jared Sherman
Thanks these pointers have helped alot. "Jared Sherman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have an xml document storing some data I need. What I want to do is this: > 1. Scan to the end of the file. > 2. Find the closing tag. > 3. Insert a new entry in before the clo

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Jason Barnett
PHP5: http://php.net/manual/en/ref.dom.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php newbie question with xml files

2005-05-04 Thread disguised.jedi
> I have an xml document storing some data I need. What I want to do is this: > 1. Scan to the end of the file. > 2. Find the closing tag. > 3. Insert a new entry in before the closing tag. There are specific classes and functions in the PHP core that can help you do just this. > I've tried: > 1.

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
_data; or a little more succinctly $my_data = "foo bar"; $new_data = preg_replace('/(.*)(<\/.*>)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message ----- From: "Jared Sherman&

Re: [PHP] php newbie question with xml files

2005-05-04 Thread Mark Cain
_data; or a little more succinctly $my_data = "foo bar"; $new_data = preg_replace('/(.*)(<\/.*>)$/i', '$1' . $my_data . '$2', file_get_contents('./test.txt')); echo $new_data; Mark Cain - Original Message ----- From: "Jared Sherman&

<    1   2   3   4   5   6   >