[PHP] Newbie form question

2013-06-21 Thread Karl-Arne Gjersøyen
Hello. I have an application that generete HTML5 form in PHP. The form is written in a while loop and therefore the form field has exact same name for every row in the loop. And that is the problem. Because when my PHP document shall handle submitted data it only take the very last row in the whil

Re: [PHP] newbie PDO query display question

2013-06-17 Thread jomali
On Sun, Jun 16, 2013 at 6:29 PM, dealTek wrote: > Hi all, > > newbie PDO question... > > I think (hard to tell - buried in a wrapper class) I am doing a select > query using - PDO::FETCH_ASSOC like... > > wrapper -- return $pdostmt->fetchAll(PDO::FETCH_ASSOC); > > --- > > so my query is like

Re: [PHP] newbie PDO query display question

2013-06-16 Thread dealTek
>> >> > When you know there is only one row to be returned you can do this: > > $photo_category_list = ""; > $SQL = "SELECT category_id, category_name FROM gallery_category ORDER by > category_order"; > try { > $stmt = $dbh->prepare($SQL); > $stmt->execute(); > list( $id,

Re: [PHP] newbie PDO query display question

2013-06-16 Thread Ashley Sheridan
dealTek wrote: > >On Jun 16, 2013, at 3:37 PM, Stephen wrote: > >> Here is a sample from my code: >> >> $photo_category_list = ""; >>$SQL = "SELECT category_id, category_name FROM gallery_category >ORDER by category_order"; >>try { >>$stmt = $dbh->prepare($SQL); >>$stm

Re: [PHP] newbie PDO query display question

2013-06-16 Thread dealTek
On Jun 16, 2013, at 3:37 PM, Stephen wrote: > Here is a sample from my code: > > $photo_category_list = ""; >$SQL = "SELECT category_id, category_name FROM gallery_category ORDER by > category_order"; >try { >$stmt = $dbh->prepare($SQL); >$stmt->execute(); >whil

[PHP] newbie PDO query display question

2013-06-16 Thread dealTek
Hi all, newbie PDO question... I think (hard to tell - buried in a wrapper class) I am doing a select query using - PDO::FETCH_ASSOC like... wrapper -- return $pdostmt->fetchAll(PDO::FETCH_ASSOC); --- so my query is like... $results = $db->select("mytable", "id = 201"); //just 1 exact r

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-21 Thread shiplu
On Apr 22, 2013 7:00 AM, "Bastien Koert" wrote: > > I have an app that gets passed in xml and use this code to read that data in > > // We use php://input to get the raw $_POST results. > $xml_post = file_get_contents('php://input'); $xml_post is string. I think now you know what to do.

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-21 Thread Bastien Koert
I have an app that gets passed in xml and use this code to read that data in // We use php://input to get the raw $_POST results. $xml_post = file_get_contents('php://input'); Maybe it will help Bastien On Sat, Apr 20, 2013 at 7:48 AM, shiplu wrote: > > > > > > > > Question: how do you use $

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread shiplu
> > > > Question: how do you use $mylist when the xml is not as a file but is > returned on a web page? > I assume It returns as a string from page. Then use simplexml_load_string(). See http://php.net/manual/en/function.simplexml-load-string.php -- Shiplu.Mokadd.im ImgSign.com | A dynamic sig

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread Matijn Woudt
On Sat, Apr 20, 2013 at 12:51 AM, dealTek wrote: > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < > tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting processed - > then coming back to the *same page1.php* with the XML data listed below..

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-20 Thread tamouse mailing lists
This will be brief as I'm on a tablet... On Apr 19, 2013 5:53 PM, "dealTek" wrote: > > > On Apr 19, 2013, at 3:32 PM, tamouse mailing lists < tamouse.li...@gmail.com> wrote: > > >> > >> page1.php is sending out to credit card company - getting processed - then coming back to the *same page1.php*

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
On Apr 19, 2013, at 3:32 PM, tamouse mailing lists wrote: >> >> page1.php is sending out to credit card company - getting processed - then >> coming back to the *same page1.php* with the XML data listed below... > > Please expand what you mean by "sending out" and "coming back" - is > this a

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread tamouse mailing lists
On Fri, Apr 19, 2013 at 4:04 PM, dealTek wrote: > > On Apr 19, 2013, at 1:33 PM, Sebastian Krebs wrote: > >> A "webpage" is a file, that (usually) a browser downloads and parses. You'll >> do exactly the same :-) I don't know exactly, but you can try to pass the >> URL directly to simplexml_loa

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
On Apr 19, 2013, at 1:33 PM, Sebastian Krebs wrote: > A "webpage" is a file, that (usually) a browser downloads and parses. You'll > do exactly the same :-) I don't know exactly, but you can try to pass the URL > directly to simplexml_load_file(). If this doesn't work, download the content >

Re: [PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread Sebastian Krebs
A "webpage" is a file, that (usually) a browser downloads and parses. You'll do exactly the same :-) I don't know exactly, but you can try to pass the URL directly to simplexml_load_file(). If this doesn't work, download the content (for example with file_get_contents()) and pass it to simplexml_lo

[PHP] Newbie Question - Parse XML with PHP...

2013-04-19 Thread dealTek
Hi all, newbie - just starting with trying to parse XML... $mylist = simplexml_load_file('thelist.xml'); then use a foreach to echo the data... title; $artist=$songinfo->artist; $date=$songinfo['dateplayed']; echo $title.' --- '; echo $artist.' --- ';

Re: [PHP] Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-15 Thread dealTek
On Feb 14, 2013, at 11:46 AM, Bastien Koert wrote: > > > The DreamInCode one is good. MySQLi is the recommended option over > MySQL since the mysql one is deprecated. PDO is also a great option > since you can prepare your queries to help sanitize the data > > -- > > Bastien Thanks Basti

Re: [PHP] Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-14 Thread Bastien Koert
On Thu, Feb 14, 2013 at 1:24 PM, Haluk Karamete wrote: > I recommend a third option, that is PDO. > > Start here please. http://net.tutsplus.com/?s=pdo > > On Thu, Feb 14, 2013 at 9:49 AM, dealTek wrote: >> Hi everybody, >> >> Newbie is trying to set up OOP With PHP and MySQL or MySQLi database c

Re: [PHP] Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-14 Thread Haluk Karamete
I recommend a third option, that is PDO. Start here please. http://net.tutsplus.com/?s=pdo On Thu, Feb 14, 2013 at 9:49 AM, dealTek wrote: > Hi everybody, > > Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class > (using CRUD) > > Simple story: creating this class database

[PHP] Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD)

2013-02-14 Thread dealTek
Hi everybody, Newbie is trying to set up OOP With PHP and MySQL or MySQLi database class (using CRUD) Simple story: creating this class database by myself is way over my head. So it be best for me to find something on the Internet that has already been created and working to pro specs (using C

Re: [PHP] newbie with imap_mail_move

2013-02-09 Thread Adam Richardson
On Sat, Feb 9, 2013 at 7:29 PM, dealTek wrote: > > Warning: reset() [function.reset]: Passed variable is not an array or > object in /home/bbeast/public_html/emtest/em-move.php on line 91 > > if ($mbox_name != $newmbox_name) { > reset($msg_no); > $messageset = implode (",",$msg_no); > ima

[PHP] newbie with imap_mail_move

2013-02-09 Thread dealTek
Hi all, I'm a newbie with imap_mail_move trying to open the INBOX and move all mail to LEGACY folder box (got this code from the net) it shows these errors... any idea how to fix this? --- Warning: reset() [function.reset]: Passed variable is not an array or object in /h

[PHP] Newbie question: replacing truetype fonts with UTF8 encoded Unicode characters

2011-08-22 Thread Venkatesh
Greetings I have some HTML text using truetype fonts which i have to convert to UTF8 encoded unicode characters. I am just trying to replace the truetype font characters. The problem is that somehow the HTML tags also get converted to UTF8 :-( I do a lot of str_replace such as the following: $b

Re: [PHP] Newbie security database connection question

2011-08-19 Thread Tamara Temple
On Aug 19, 2011, at 7:52 PM, DealTek wrote: Hello, NEWBIE: I have a security question: When working with PHP and MySQL, it seems that a one method is to create a connection.php page to the database that will store the connection parameters such as username, password and URL ip in clear

Re: [PHP] Newbie security database connection question

2011-08-19 Thread Midhun Girish
On Sat, Aug 20, 2011 at 6:22 AM, DealTek wrote: > Hello, > > NEWBIE: I have a security question: > > When working with PHP and MySQL, it seems that a one method is to create a > connection.php page to the database that will store the connection > parameters such as username, password and URL ip i

[PHP] Newbie security database connection question

2011-08-19 Thread DealTek
Hello, NEWBIE: I have a security question: When working with PHP and MySQL, it seems that a one method is to create a connection.php page to the database that will store the connection parameters such as username, password and URL ip in clear text and include this on various pages. Since hack

Re: [PHP] Newbie question. What is the best structure of a php-app?

2011-08-16 Thread Richard Quadling
separate the real code from html, which make debugging easier - at least for > me :) > > BTW, take a look on some free stuff. You can always learn from others. There > are some good ideas in open CMS systems, like Joomla. > > > Cheers, > >        Tom > > -O

RE: [PHP] Newbie question. What is the best structure of a php-app?

2011-08-16 Thread Dajka Tamás
Cheers, Tom -Original Message- From: Andreas [mailto:maps...@gmx.net] Sent: Tuesday, August 16, 2011 12:39 AM To: php-general@lists.php.net Subject: [PHP] Newbie question. What is the best structure of a php-app? Hi, I'm fairly new to PHP but not to programming as such. C

[PHP] Newbie question. What is the best structure of a php-app?

2011-08-15 Thread Andreas
Hi, I'm fairly new to PHP but not to programming as such. Currently I sat up XAMPP with xdebug, Netbeans and Eclipse to get a feeling. I can write and run php-files but I am wondering how I should construct a more complex application that runs over several pages between a login and a logout.

Re: [PHP] newbie date time question

2011-06-22 Thread David Nicholls
On 23/06/11 1:02 AM, Stuart Dallas wrote: On Wednesday, 22 June 2011 at 15:59, David Nicholls wrote: OK, looks like I have fixed problem, using: $format = 'd/m/Y g:i:s A'; $dt = date_create_from_format($format, $d[0]); $dt2 = date('r', $dt->getTimestamp()); $data[] = array(strtotime($

Re: [PHP] newbie date time question

2011-06-22 Thread Stuart Dallas
On Wednesday, 22 June 2011 at 15:59, David Nicholls wrote: > OK, looks like I have fixed problem, using: > > $format = 'd/m/Y g:i:s A'; > $dt = date_create_from_format($format, $d[0]); > $dt2 = date('r', $dt->getTimestamp()); > $data[] = array(strtotime($dt2), $d[1]); > > Not elegant but it

Re: [PHP] newbie date time question

2011-06-22 Thread David Nicholls
OK, looks like I have fixed problem, using: $format = 'd/m/Y g:i:s A'; $dt = date_create_from_format($format, $d[0]); $dt2 = date('r', $dt->getTimestamp()); $data[] = array(strtotime($dt2), $d[1]); Not elegant but it gives me the date/time value. Thanks, Adam and

Re: [PHP] newbie date time question

2011-06-22 Thread Richard Quadling
On 22 June 2011 15:05, David Nicholls wrote: > I'm trying to convert a date and time string using strtotime() > > The date and time strings are the first entry in each line in a csv file in > the form: > > 22/06/2011 9:47:20 PM, data1, data2,... > > I've been trying to use the following approach,

Re: [PHP] newbie date time question

2011-06-22 Thread Adam Balogh
$dt is an object as the error says, so you cant echo it, becouse its not a string (it can be with __toString magic method, or use print_r/var_dump to output your object). Try the format ( http://www.php.net/manual/en/datetime.format.php) method on your $dt object. On Wed, Jun 22, 2011 at 4:41 PM,

Re: [PHP] newbie date time question

2011-06-22 Thread David Nicholls
On 23/06/11 12:30 AM, Richard Quadling wrote: On 22 June 2011 15:05, David Nicholls wrote: I'm trying to convert a date and time string using strtotime() The date and time strings are the first entry in each line in a csv file in the form: 22/06/2011 9:47:20 PM, data1, data2,... I've been tr

Re: [PHP] newbie date time question

2011-06-22 Thread David Nicholls
On 23/06/11 12:23 AM, Adam Balogh wrote: hi, you have a PM(/AM) in your date ($d[0]), so put an "A" (Uppercase Ante meridiem and Post meridiem) format char to your $format variable. b3ha Thanks, Adam. Tried that and it's now throwing an error: Catchable fatal error: Object of class DateTime

[PHP] newbie date time question

2011-06-22 Thread David Nicholls
I'm trying to convert a date and time string using strtotime() The date and time strings are the first entry in each line in a csv file in the form: 22/06/2011 9:47:20 PM, data1, data2,... I've been trying to use the following approach, without success: function read_data($filename) { $f

RE: [PHP] newbie - function is undefined

2011-04-04 Thread Jay Blanchard
[snip] Oh no no no. You can use PHP to GENERATE JS, CSS, HTML, XML, etc. You just can't CALL JS from PHP and get a response.[/snip] Fair enough, I just wanted to make sure that we were all on the same page because some of the answers given to the OP may have been somewhat confusing. Many of you kn

Re: [PHP] newbie - function is undefined

2011-04-04 Thread Paul M Foster
On Mon, Apr 04, 2011 at 08:03:46AM -0500, Jay Blanchard wrote: > [snip] > Short answer : yes. > Medium answer : probably, but really yes. > Long answer : unless you are providing some sort of mechanism to hold > the current state of PHP, eject the required JS code to get a value > from the client

Re: [PHP] newbie - function is undefined

2011-04-04 Thread Richard Quadling
On 4 April 2011 14:03, Jay Blanchard wrote: > [snip] > Short answer : yes. > Medium answer : probably, but really yes. > Long answer : unless you are providing some sort of mechanism to hold > the current state of PHP, eject the required JS code to get a value > from the client and return it to th

RE: [PHP] newbie - function is undefined

2011-04-04 Thread Ashley Sheridan
On Mon, 2011-04-04 at 08:03 -0500, Jay Blanchard wrote: > [snip] > Short answer : yes. > Medium answer : probably, but really yes. > Long answer : unless you are providing some sort of mechanism to hold > the current state of PHP, eject the required JS code to get a value > from the client and ret

RE: [PHP] newbie - function is undefined

2011-04-04 Thread Jay Blanchard
[snip] Short answer : yes. Medium answer : probably, but really yes. Long answer : unless you are providing some sort of mechanism to hold the current state of PHP, eject the required JS code to get a value from the client and return it to the server which then recreates the working environment and

Re: [PHP] newbie - function is undefined

2011-04-04 Thread Richard Quadling
On 4 April 2011 12:12, Jay Blanchard wrote: > So all of the pages I generate with PHP that call JavaScript functions > and libraries are doing it wrong? Short answer : yes. Medium answer : probably, but really yes. Long answer : unless you are providing some sort of mechanism to hold the current

RE: [PHP] newbie - function is undefined

2011-04-04 Thread Jay Blanchard
[snip] JavaScript is a browser-side language, browsers have cache, cache sticks around, meaning that you can tell the browser to cache the JS file and not download it from the server (every time) if its being included on the browser end (which js is). All means faster page load times post initial l

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Stuart Dallas
On Friday, 1 April 2011 at 22:43, Alex Nikitin wrote: JavaScript is a browser-side language, browsers have cache, cache sticks > around, meaning that you can tell the browser to cache the JS file and not > download it from the server (every time) if its being included on the > browser end (which js

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
And the way to do this is? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Alex Nikitin
JavaScript is a browser-side language, browsers have cache, cache sticks around, meaning that you can tell the browser to cache the JS file and not download it from the server (every time) if its being included on the browser end (which js is). All means faster page load times post initial load, an

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Richard S. Crawford
On Fri, Apr 1, 2011 at 2:32 PM, Jim Giner wrote: > > function. Try something like: > ... > echo 'heaading contains: getText("h2")'; > ... > > I tried it - no better. > Did you still get the "function undefined" error? -- Sláinte, Richard S. Crawford (rich...@underpope.com) http://www.underpope.

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
function. Try something like: ... echo 'heaading contains: getText("h2")'; ... I tried it - no better. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Jim Giner
Thanks - now I see. the message means that it can't find a php function called getText. Doh! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newbie - function is undefined

2011-04-01 Thread Micky Hulse
Maybe try: echo 'getText("p1")'; I think that should work. Good luck. Cheers, Micky -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2011-01-07 Thread David Hutto
On Fri, Jan 7, 2011 at 2:33 PM, tedd wrote: > At 2:16 AM -0500 1/7/11, Daniel Brown wrote: >> >> On Thu, Jan 6, 2011 at 23:09, Bill Guion wrote: >>> >>>  Fogging must be a REAL OLD Fashioned term. Please clarify. >> >>    It was originally written before man invented the letter 'L', Bill. > > No,

Re: [PHP] Newbie Question

2011-01-07 Thread tedd
At 2:16 AM -0500 1/7/11, Daniel Brown wrote: On Thu, Jan 6, 2011 at 23:09, Bill Guion wrote: Fogging must be a REAL OLD Fashioned term. Please clarify. It was originally written before man invented the letter 'L', Bill. No, it was the predecessor to water-boarding. Cheers, tedd --

RE: [PHP] Newbie Question

2011-01-07 Thread Jay Blanchard
{snip] ...stuff about tedd... [/snip] Thank goodness there is someone on the list much older than me. [snip] >PS: It's not Friday yet. [/snip] It is now. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Newbie Question

2011-01-06 Thread Daniel Brown
On Thu, Jan 6, 2011 at 23:09, Bill Guion wrote: > > Fogging must be a REAL OLD Fashioned term. Please clarify. It was originally written before man invented the letter 'L', Bill. Welcome back, by the way. For someone who only posts once in a [great[ while, you certainly scrutinize spell

Re: [PHP] Newbie Question

2011-01-06 Thread Bill Guion
At 11:37 AM -0500 01/06/11, tedd wrote: At 8:16 PM -0500 1/5/11, Daniel Brown wrote: On Wed, Jan 5, 2011 at 19:45, David Harkness wrote: [snip!] Most companies will gladly give their product away to put it in the hands of soon-to-be-professionals. :) Tedd had his chance to be profes

Re: [PHP] Newbie Question

2011-01-06 Thread tedd
At 8:16 PM -0500 1/5/11, Daniel Brown wrote: On Wed, Jan 5, 2011 at 19:45, David Harkness wrote: [snip!] Most companies will gladly give their product away to put it in the hands of soon-to-be-professionals. :) Tedd had his chance to be professional back in the forties (the eighteen-f

Re: [PHP] Newbie Question

2011-01-05 Thread Daniel Brown
On Wed, Jan 5, 2011 at 19:45, David Harkness wrote: [snip!] > > Most companies will gladly give their product away to put it in the hands of > soon-to-be-professionals. :) Tedd had his chance to be professional back in the forties (the eighteen-forties, I believe). Now he teaches others who

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 3:05 PM, tedd wrote: > I spent a couple of hours reviewing PHPStorm and it looks *very* promising! Thank you for sharing your thoughts on PHPStorm. My main performance gripe with NetBeans has lessened in the year I've been using it, so I'm less inclined to go up yet anoth

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 8:32 AM -0800 1/5/11, David Harkness wrote: On Wed, Jan 5, 2011 at 8:20 AM, tedd <tedd.sperl...@gmail.com> wrote: I teach using NetBeans, because it generally sucks less than Eclipse. Eclipse is simply too complicated and NetBeans tries to be less, but it's

Re: [PHP] Newbie Question

2011-01-05 Thread sono-io
On Jan 4, 2011, at 5:27 AM, Steve Staples wrote: > I now use Komodo (the free version) on my ubuntu workstation, and I love > it... I dont know how I managed before. I use Komodo Edit on OS X and I love it as well, except for the compare files feature. It's the worst one I've ever used

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 10:35 AM, Daniel Brown wrote: > On Wed, Jan 5, 2011 at 11:32, David Harkness > wrote: > > I do have to say that NetBeans more than Eclipse will randomly become > > unusable for unknown reasons: disk and CPU activity spike, > code-completion > > lags, whatever. Eclipse seem

Re: [PHP] Newbie Question

2011-01-05 Thread Robert Cummings
On 11-01-05 01:35 PM, Daniel Brown wrote: On Wed, Jan 5, 2011 at 11:32, David Harkness wrote: I do have to say that NetBeans more than Eclipse will randomly become unusable for unknown reasons: disk and CPU activity spike, code-completion lags, whatever. Eclipse seems more solid in this regard

Re: [PHP] Newbie Question

2011-01-05 Thread Daniel Brown
On Wed, Jan 5, 2011 at 11:32, David Harkness wrote: > > I do have to say that NetBeans more than Eclipse will randomly become > unusable for unknown reasons: disk and CPU activity spike, code-completion > lags, whatever. Eclipse seems more solid in this regard. Whereas, on Linux, I've found t

Re: [PHP] Newbie Question

2011-01-05 Thread David Harkness
On Wed, Jan 5, 2011 at 8:20 AM, tedd wrote: > I teach using NetBeans, because it generally sucks less than Eclipse. > Eclipse is simply too complicated and NetBeans tries to be less, but it's > still too much. > Have you tried PHPStorm? I installed it but haven't had a chance to play with it yet

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 7:43 PM -0600 1/2/11, Larry Garfield wrote: On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim

Re: [PHP] Newbie Question

2011-01-05 Thread tedd
At 9:36 PM -0300 1/1/11, Adolfo Olivera wrote: Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions. Thanks, Happy 2011!! PS: Please

Re: [PHP] Newbie Question

2011-01-04 Thread Steve Staples
On Sun, 2011-01-02 at 21:10 -0500, David McGlone wrote: > On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: > > On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: > > > Thanks for the replies. I'll just put a php on all my html containing > > > php. A little of topic. Wich IDE

Re: [PHP] Newbie Question

2011-01-03 Thread Paul M Foster
On Mon, Jan 03, 2011 at 12:03:41PM -0300, Adolfo Olivera wrote: > Tim, >I've come to learn that relying on heavy and non free ides for > developing can kick you in the rear when you have to setup your developement > enviroment after a while. I've have that problem with some previous projec

Re: [PHP] Newbie Question

2011-01-03 Thread Ashley Sheridan
On Mon, 2011-01-03 at 10:00 -0500, Mujtaba Arshad wrote: > I just went back and read the original post and realized the recent > discussion has nothing to do with it. Awesome. Yeah, that happens sometimes! The OP changed the subject this time, so it should be OK ;) Also, if you can avoid it,

Re: [PHP] Newbie Question

2011-01-03 Thread Adolfo Olivera
Tim, I've come to learn that relying on heavy and non free ides for developing can kick you in the rear when you have to setup your developement enviroment after a while. I've have that problem with some previous projects made with adobe flex, asp.net and sql 2008. That's the reason why I'm

Re: [PHP] Newbie Question

2011-01-03 Thread Mujtaba Arshad
everyone I know who uses dreamweaver does so because the people that are supervising the project want to use dreamweaver, otherwise I haven't found anyone who actually liked using it. So I don't know if that actually means anything but that's the way it is. I guess it would be important to remembe

Re: [PHP] Newbie Question

2011-01-03 Thread Tim Thorburn
On 1/2/2011 5:56 PM, Adolfo Olivera wrote: Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim and dreamweaver. I'm trying to go 100% open source, but I really fin

Re: [PHP] Newbie Question

2011-01-03 Thread Ashley Sheridan
On Sun, 2011-01-02 at 21:10 -0500, David McGlone wrote: > On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: > > On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: > > > Thanks for the replies. I'll just put a php on all my html containing > > > php. A little of topic. Wich ID

Re: [PHP] Newbie Question

2011-01-02 Thread David McGlone
On Sunday, January 02, 2011 08:43:51 pm Larry Garfield wrote: > On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: > > Thanks for the replies. I'll just put a php on all my html containing > > php. A little of topic. Wich IDE are you guys using. I'm sort of in a > > catch twenty two here.

Re: [PHP] Newbie Question

2011-01-02 Thread Larry Garfield
On Sunday, January 02, 2011 4:56:28 pm Adolfo Olivera wrote: > Thanks for the replies. I'll just put a php on all my html containing php. > A little of topic. Wich IDE are you guys using. I'm sort of in a catch > twenty two here. I been alternating vim and dreamweaver. I'm trying to go > 100% open

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 5:56 PM, Adolfo Olivera wrote: > Thanks for the replies. I'll just put a php on all my html containing php. > A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty > two here. I been alternating vim and dreamweaver. I'm trying to go 100% open > source, b

Re: [PHP] Newbie Question

2011-01-02 Thread Adolfo Olivera
Thanks for the replies. I'll just put a php on all my html containing php. A little of topic. Wich IDE are you guys using. I'm sort of in a catch twenty two here. I been alternating vim and dreamweaver. I'm trying to go 100% open source, but I really find dreamweaver easier to use so far. El ene 2

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 1:17 PM, Adam Richardson wrote: > > I tend to disagree with Ashley on this topic. For many websites, I'll start > out making all pages .php, even if they don't require PHP at the moment. > That's for a couple reasons. > > 1) A few years back, there was certainly a significant

Re: [PHP] Newbie Question

2011-01-02 Thread Adam Richardson
On Sun, Jan 2, 2011 at 12:16 PM, Ashley Sheridan wrote: > On Sun, 2011-01-02 at 11:48 -0500, ad...@buskirkgraphics.com wrote: > > > Add this to your .htaccess file and HTML files will be handled like PHP > > files allowing you put PHP in HTML files. > > > > AddType application/x-httpd-php .html >

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 12:50 PM, wrote: > The question was "The .php extension is a requirement?" > > The answer is no. > > While me and Ash may completely disagree on the php parser, the simple answer > is there are many ways around running a non .php extension file in php. > > > mod_rewrite ru

RE: [PHP] Newbie Question

2011-01-02 Thread admin
ehn'; robl...@aapt.net.au; php-general@lists.php.net Subject: RE: [PHP] Newbie Question On Sun, 2011-01-02 at 11:48 -0500, ad...@buskirkgraphics.com wrote: > Add this to your .htaccess file and HTML files will be handled like PHP > files allowing you put PHP in HTML files. >

Re: [PHP] Newbie Question

2011-01-02 Thread Joshua Kehn
On Jan 2, 2011, at 11:48 AM, wrote: > Add this to your .htaccess file and HTML files will be handled like PHP > files allowing you put PHP in HTML files. > > AddType application/x-httpd-php .html > > > Richard L. Buskirk > I would not recommend this approach, some perfectly valid reasons giv

RE: [PHP] Newbie Question

2011-01-02 Thread Ashley Sheridan
riginal Message- > From: Adolfo Olivera [mailto:olivera.ado...@gmail.com] > Sent: Saturday, January 01, 2011 8:38 PM > To: Joshua Kehn > Cc: robl...@aapt.net.au; php-general@lists.php.net > Subject: Re: [PHP] Newbie Question > > Sorry, here is the code. The .php extension is

RE: [PHP] Newbie Question

2011-01-02 Thread admin
To: Joshua Kehn Cc: robl...@aapt.net.au; php-general@lists.php.net Subject: Re: [PHP] Newbie Question Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.o

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 8:37 PM, Adolfo Olivera wrote: > Sorry, here is the code. The .php extension is a requirement? Can't it b > embedded on a .html file? > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> > http://www.w3.org/1999/xhtml";> > > > Untitled Document > > > > $a =

Re: [PHP] Newbie Question

2011-01-01 Thread Adolfo Olivera
Sorry, here is the code. The .php extension is a requirement? Can't it b embedded on a .html file? http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";> http://www.w3.org/1999/xhtml";> Untitled Document On Sat, Jan 1, 2011 at 9:55 PM, Joshua Kehn wrote: > On Jan 1, 2011, at 7:50 PM,

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 7:50 PM, David Robley wrote: > > And normally would need to be saved as a .php file so the contents will be > handled by php. > > > Cheers > -- > David Robley > > A fool and his money are my two favourite people. > Today is Boomtime, the 2nd day of Chaos in the YOLD 3177.

Re: [PHP] Newbie Question

2011-01-01 Thread David Robley
Joshua Kehn wrote: > On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote: > >> Hi, >>I'm new for php. Just trying to get my hello world going on godaddy >> hosting. Can't getting to work. I think sintax it's ok. I was >> understanding that my shared hosting plan had php installed. Any >> sugges

Re: [PHP] Newbie Question

2011-01-01 Thread Joshua Kehn
On Jan 1, 2011, at 7:36 PM, Adolfo Olivera wrote: > Hi, >I'm new for php. Just trying to get my hello world going on godaddy > hosting. Can't getting to work. I think sintax it's ok. I was understanding > that my shared hosting plan had php installed. Any suggestions. Thanks, > > Happy 2011!

[PHP] Newbie Question

2011-01-01 Thread Adolfo Olivera
Hi, I'm new for php. Just trying to get my hello world going on godaddy hosting. Can't getting to work. I think sintax it's ok. I was understanding that my shared hosting plan had php installed. Any suggestions. Thanks, Happy 2011!! PS: Please, feel free to educate me on how to address the m

Re: [PHP] newbie basic realm protection - why don't the input usr/pass stick?

2010-12-08 Thread Govinda
you script looks (and works) fine. so i dont think the problem is in your script I found firebug/live http headers firefox addons to be helpful in this situation see if your client is actually sending "Authorization Basic" header Kranthi. http://goo.gl/e6t3 Kranthi, thanks for lookin

Re: [PHP] newbie basic realm protection - why don't the input usr/pass stick?

2010-12-07 Thread Kranthi Krishna
you script looks (and works) fine. so i dont think the problem is in your script I found firebug/live http headers firefox addons to be helpful in this situation see if your client is actually sending "Authorization Basic" header Kranthi. http://goo.gl/e6t3 -- PHP General Mailing List (http:/

[PHP] newbie basic realm protection - why don't the input usr/pass stick?

2010-12-07 Thread Govinda
Hi everyone I am hacking my way through something unrelated to this post.. but needed to stop and (real quick) pass-protect a page to use it to run some quick (*admin-only*) scripts on a shared host. ..and I see now how poor is my understanding of what seems like basic stuff. As a start fo

Re: [PHP] Newbie looking for a project

2010-11-10 Thread Nathan Rixham
tedd wrote: At 12:34 PM -0500 11/8/10, Daniel P. Brown wrote: On Mon, Nov 8, 2010 at 06:29, Ashim Kapoor wrote: Writing apps on my own is fun but it's fruit is only for me to benefit from,but yes if nothing else I should do that. Not at all, many others can benefit from it as well. T

Re: [PHP] Newbie looking for a project

2010-11-09 Thread tedd
At 12:34 PM -0500 11/8/10, Daniel P. Brown wrote: On Mon, Nov 8, 2010 at 06:29, Ashim Kapoor wrote: Writing apps on my own is fun but it's fruit is only for me to benefit from,but yes if nothing else I should do that. Not at all, many others can benefit from it as well. Tedd's example

Re: [PHP] Newbie looking for a project

2010-11-08 Thread Daniel P. Brown
On Mon, Nov 8, 2010 at 06:29, Ashim Kapoor wrote: > > Writing apps on my own is fun but it's fruit is only for me to benefit > from,but yes if nothing else I should do that. Not at all, many others can benefit from it as well. Tedd's examples have been referenced on this list many times, and

Re: [PHP] Newbie looking for a project

2010-11-08 Thread Ashim Kapoor
Dear Tedd, I have read one php book cover to cover, I wanted to contribute to projects for 2 reasons:- 1. Someone would benefit from the app. 2. I would learn more by interacting with experienced people. Writing apps on my own is fun but it's fruit is only for me to benefit from,but yes if nothi

Re: [PHP] Newbie looking for a project

2010-11-07 Thread tedd
At 3:39 PM +0530 11/7/10, Ashim Kapoor wrote: Dear All, I am a beginner looking for a project to contribute. Can someone tell me some good quality projects where I would learn the most? I hope this is the right forum for this query. Many thanks, Ashim Kapoor Hi Ashim: When I started programm

Re: [PHP] Newbie looking for a project

2010-11-07 Thread Ashley Sheridan
On Sun, 2010-11-07 at 15:39 +0530, Ashim Kapoor wrote: > Dear All, > > I am a beginner looking for a project to contribute. Can someone tell me > some good quality projects where I would learn the most? I hope this is the > right forum for this query. > > Many thanks, > Ashim Kapoor What most

  1   2   3   4   5   6   7   8   9   10   >