Re: [PHP] Progressbar

2009-06-23 Thread Tom Sparks
have you looked at http://postlet.com/ ? tom_a_sparks Please avoid sending me Word or PowerPoint attachments. but instead use OpenDocument File Formats or use OpenOffice http://en.wikipedia.org/wiki/OpenDocument http://en.wikipedia.org/wiki/OpenOffice.org http://www.gnu.org/philosophy/no-word-a

[PHP] Progressbar

2009-06-23 Thread Teun Lassche
I'm making an upload script with PHP, is there a way I can show a progressbar while uploading? -- Teun Lassche Bill Cosby - "A word to the wise ain't necessary - it's the stupid ones that need the advice."

Re: [PHP] anyone using session_mysql successfully

2009-06-23 Thread Michael A. Peters
Randy Paries wrote: Hello, i am trying to get session_mysql http://websupport.sk/~stanojr/projects/session_mysql/ It configured, compiled and installed ok (no errors anyways) but i am getting an error session_start() [function.session-start]: Cannot find save handler mysql in I was hoping som

[PHP] anyone using session_mysql successfully

2009-06-23 Thread Randy Paries
Hello, i am trying to get session_mysql http://websupport.sk/~stanojr/projects/session_mysql/ It configured, compiled and installed ok (no errors anyways) but i am getting an error session_start() [function.session-start]: Cannot find save handler mysql in I was hoping someone in the group was

[PHP] Re: Deleting a file after download/upload

2009-06-23 Thread Shawn McKenzie
Parham Doustdar wrote: > Hi there, > I am writing a PHP FTP client for my project. I want to put a "download" > option and an "upload"" option, but I don't know how. My problem is this: > How can I make the server the PHP script is on delete the file after > uploading it to the SFTP, or after the

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Martin Zvarík
Philip Thompson napsal(a): On Jun 23, 2009, at 9:29 AM, Martin Zvarík wrote: Don't htmlentiies() before DB save. In general: - mysql_real_escape_string() before DB insertion - htmlentities() before dispaly I, on the other hand, would do htmlentities() BEFORE insertion. Pros: --- The text

Re: [PHP] resubmit form after validation error

2009-06-23 Thread Shawn McKenzie
PJ wrote: > Shawn McKenzie wrote: >> PJ wrote: >> >>> Caner Bulut wrote: >>> Hi PJ, You can use the structure following $bid = htmlentities($_GET['id']); >>> the code below >>> if(empty($bid) { $bid=0; } >>> produces

Re: [PHP] supplied argument errors

2009-06-23 Thread Shawn McKenzie
kranthi wrote: > the code works? > > the above warnings suggest that ter is a mysql syntax error. > > moreover the documentation of mysql_affected_rows suggests that u should > supply a valid recource identifier but not a mysql result resource. > i.e., the above should be mysql_affected_rows($db)

[PHP] PHP module "portability" on OSX 10.4

2009-06-23 Thread Matt Neimeyer
I know this is a bit OS specific but it's for PHP so I'm hoping someone here has run into it before and can answer. I've compiled php_gd.so for use on an XServe running OSX 10.4. It works fine there. When I copy it to another XServe it fails because of missing dependencies (don't remember the exac

Re: [PHP] Using large multi dimenstional arrays in js

2009-06-23 Thread Simon
you could pack the array into a string and decode that later, using json prolly... Or, you could output the data to XML and load the xml file in an iframe, then browse through the iframe's DOM structure to get the values you need. On Wed, Jun 17, 2009 at 6:32 PM, Sancar Saran wrote: > Hello all,

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Michael A. Peters
Bob McConnell wrote: I have recently been told that we are switching from compiling Apache, PHP and PostgreSQL ourselves to only using the official RedHat RPMs on our production servers[*]. *snip* [*] No, I don't like this at all. I see it as the antithesis of both the Open Source and Fre

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Michael A. Peters
Robert Cummings wrote: Michael A. Peters wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it's a good i

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Manuel Aude
Let's put it this way: MVC frameworks with namespaces are going to change a lot. The architecture can be made much cleaner and class names won't have to be so long (Zend_Db_Adapter_Db2_Exception), for instance. The design part of coding is __VERY__ important, and this changes are specially for tha

Re: [PHP] supplied argument errors

2009-06-23 Thread kranthi
the code works? the above warnings suggest that ter is a mysql syntax error. moreover the documentation of mysql_affected_rows suggests that u should supply a valid recource identifier but not a mysql result resource. i.e., the above should be mysql_affected_rows($db)

Re: [PHP] modifying within foreach

2009-06-23 Thread Martin Scotta
AddBrainHandler x-httpd-php5 .php On Tue, Jun 23, 2009 at 4:25 PM, Robert Cummings wrote: > Ashley Sheridan wrote: > >> On Tue, 2009-06-23 at 15:07 -0400, Eddie Drapkin wrote: >> >>> It's just foreach($foo as $key => &$item) { } >>> >>> You can't assign the key by reference >.> >>> >>> On Tue, Ju

Re: [PHP] supplied argument errors

2009-06-23 Thread Lex Braun
On Tue, Jun 23, 2009 at 4:10 PM, PJ wrote: > I think there is something I do not understand in the manual about > mysql_fetch_assoc(), mysql_affected_rows() > The code works, but I get these annoying messages. > snippet: > What are the warnings?

Re: [PHP] modifying within foreach

2009-06-23 Thread Eddie Drapkin
It's just foreach($foo as $key => &$item) { } You can't assign the key by reference >.> On Tue, Jun 23, 2009 at 3:04 PM, Ashley Sheridan wrote: > On Tue, 2009-06-23 at 12:56 -0600, kirk.john...@zootweb.com wrote: >> Andres Gonzalez wrote on 06/23/2009 12:26:38 PM: >> >> > I want to modify $resul

Re: [PHP] delete & insert ?

2009-06-23 Thread Bastien Koert
On Tue, Jun 23, 2009 at 4:20 PM, PJ wrote: > I just had a bright idea ??? > Am doing editing file for book entries; it occurs to me (now that I am > practically finished) that it might be much simpler to delete entries > and just insert rather than going through the rigamarole of checking if > the

Re: [PHP] supplied argument errors

2009-06-23 Thread PJ
Lex Braun wrote: > > > On Tue, Jun 23, 2009 at 4:10 PM, PJ > wrote: > > I think there is something I do not understand in the manual about > mysql_fetch_assoc(), mysql_affected_rows() > The code works, but I get these annoying messages. > snippet: >

[PHP] delete & insert ?

2009-06-23 Thread PJ
I just had a bright idea ??? Am doing editing file for book entries; it occurs to me (now that I am practically finished) that it might be much simpler to delete entries and just insert rather than going through the rigamarole of checking if the new entries exist and if and if and if... just delete

[PHP] supplied argument errors

2009-06-23 Thread PJ
I think there is something I do not understand in the manual about mysql_fetch_assoc(), mysql_affected_rows() The code works, but I get these annoying messages. snippet: $result = mysql_query($sql, $db); // this is following an UPDATE $row = mysql_fetch_assoc($result); // warning...

RE: [PHP] iCal Attachment Format ?

2009-06-23 Thread Daevid Vincent
I had to do this for a party page I created... Here's the splash of code I use (please keep in mind I wrote this like 5 years ago, so it's pretty ass-code, but it works and I don't care enough about it to clean it up): if (isset($_GET['id']) && intval($_GET['id'] > 0)) { $sql = "SE

Re: [PHP] best way to communicate between PHP, Flash/Actionscript across LAN

2009-06-23 Thread Bastien Koert
On Tue, Jun 23, 2009 at 3:33 PM, Daevid Vincent wrote: > > >> -Original Message- >> From: Bastien Koert [mailto:phps...@gmail.com] >> Sent: Tuesday, June 23, 2009 12:30 PM >> To: Daevid Vincent >> Cc: php-general@lists.php.net >> Subject: Re: [PHP] best way to communicate between PHP, >> Fl

RE: [PHP] best way to communicate between PHP, Flash/Actionscript across LAN

2009-06-23 Thread Daevid Vincent
> -Original Message- > From: Bastien Koert [mailto:phps...@gmail.com] > Sent: Tuesday, June 23, 2009 12:30 PM > To: Daevid Vincent > Cc: php-general@lists.php.net > Subject: Re: [PHP] best way to communicate between PHP, > Flash/Actionscript across LAN > > On Tue, Jun 23, 2009 at 2:32

Re: [PHP] resubmit form after validation error

2009-06-23 Thread PJ
Shawn McKenzie wrote: > PJ wrote: > >> Caner Bulut wrote: >> >>> Hi PJ, >>> >>> You can use the structure following >>> >>> $bid = htmlentities($_GET['id']); >>> >>> >> the code below >> >>> if(empty($bid) { >>> $bid=0; >>> } >>> >> produces an empty screen with no error

Re: [PHP] iCal Attachment Format ?

2009-06-23 Thread Bastien Koert
On Tue, Jun 23, 2009 at 3:09 PM, Jason Paschal wrote: > Hi all! > > Built an appointment scheduling app, but now the client wants it to send out > an email with the appt attached in iCal format.  I've never dealt with > anything iCal before. > > I searched around a bit, and know that there iCal php

Re: [PHP] best way to communicate between PHP, Flash/Actionscript across LAN

2009-06-23 Thread Bastien Koert
On Tue, Jun 23, 2009 at 2:32 PM, Daevid Vincent wrote: > I have a demo to create for a tradeshow. We have 3 touch screens and 3 50" > plasmas and 3 G1 (android WiFi) phones. Our own LAN/Router/Wi-Fi. I need a > way so that I can use web pages and Flash (actionscript) to make stuff > happen on any o

Re: [PHP] modifying within foreach

2009-06-23 Thread Robert Cummings
Ashley Sheridan wrote: On Tue, 2009-06-23 at 15:07 -0400, Eddie Drapkin wrote: It's just foreach($foo as $key => &$item) { } You can't assign the key by reference >.> On Tue, Jun 23, 2009 at 3:04 PM, Ashley Sheridan wrote: On Tue, 2009-06-23 at 12:56 -0600, kirk.john...@zootweb.com wrote: An

Re: [PHP] modifying within foreach

2009-06-23 Thread Ashley Sheridan
On Tue, 2009-06-23 at 15:07 -0400, Eddie Drapkin wrote: > It's just foreach($foo as $key => &$item) { } > > You can't assign the key by reference >.> > > On Tue, Jun 23, 2009 at 3:04 PM, Ashley > Sheridan wrote: > > On Tue, 2009-06-23 at 12:56 -0600, kirk.john...@zootweb.com wrote: > >> Andres Go

[PHP] iCal Attachment Format ?

2009-06-23 Thread Jason Paschal
Hi all! Built an appointment scheduling app, but now the client wants it to send out an email with the appt attached in iCal format. I've never dealt with anything iCal before. I searched around a bit, and know that there iCal php scripts available, but I don't need a bunch of rigamarole, just n

Re: [PHP] modifying within foreach

2009-06-23 Thread Andres Gonzalez
Thanks guys--passing by reference solved my problem. I was not aware that the foreach statement works on a copy. This was explained in the online documentation. Duh!! Thanks again, -Andres Ashley Sheridan wrote: On Tue, 2009-06-23 at 12:56 -0600, kirk.john...@zootweb.com wrote: Andres

RE: [PHP] modifying within foreach

2009-06-23 Thread Daevid Vincent
Dude. Use your common sense and the example I just provided: foreach ($results as $key => $item) { if ($item == 'foo') unset($results[$key]); else ($item == 'bar') $results[$key] = 'new value'; } so using your example: foreach ($results as $key => $item) { if

Re: [PHP] modifying within foreach

2009-06-23 Thread Ashley Sheridan
On Tue, 2009-06-23 at 12:56 -0600, kirk.john...@zootweb.com wrote: > Andres Gonzalez wrote on 06/23/2009 12:26:38 PM: > > > I want to modify $results within the foreach. In other words, > > during a given pass of this iteration, I want to delete some > > of the items based on particular condition

RE: [PHP] Deleting a file after download/upload

2009-06-23 Thread Daevid Vincent
> -Original Message- > From: Parham Doustdar [mailto:parha...@gmail.com] > Sent: Tuesday, June 23, 2009 12:33 PM > To: php-general@lists.php.net > Subject: [PHP] Deleting a file after download/upload > > My server connects to an FTP. Then, it downloads a file from > the FTP, and then

Re: [PHP] modifying within foreach

2009-06-23 Thread Kirk . Johnson
Andres Gonzalez wrote on 06/23/2009 12:26:38 PM: > I want to modify $results within the foreach. In other words, > during a given pass of this iteration, I want to delete some > of the items based on particular conditions. Then on the next > pass thru the foreach, I want $results to be the newer,

Re: [PHP] modifying within foreach

2009-06-23 Thread Andres Gonzalez
I do not want to delete the whole array, only a particular $item. given this $results array: Array ( ["key1"] => Array ( [0] => value1 [1] => value2 [2] => value 3 ( ["key2"] => Array ( [0] => value4 [1] => value5 [2] => value6 ) ) It is a value item that I want to delete based on a particular c

[PHP] Deleting a file after download/upload

2009-06-23 Thread Parham Doustdar
Hi there, I am writing a PHP FTP client for my project. I want to put a "download" option and an "upload"" option, but I don't know how. My problem is this: How can I make the server the PHP script is on delete the file after uploading it to the SFTP, or after the user has finished downloading it

RE: [PHP] modifying within foreach

2009-06-23 Thread Daevid Vincent
foreach ($results as $key => $item) { if ($item == 'foo') unset($results[$key]); } > -Original Message- > From: Andres Gonzalez [mailto:and...@packetstorm.com] > Sent: Tuesday, June 23, 2009 11:27 AM > To: php-general@lists.php.net > Subject: [PHP] modifying within foreach > > In

[PHP] best way to communicate between PHP, Flash/Actionscript across LAN

2009-06-23 Thread Daevid Vincent
I have a demo to create for a tradeshow. We have 3 touch screens and 3 50" plasmas and 3 G1 (android WiFi) phones. Our own LAN/Router/Wi-Fi. I need a way so that I can use web pages and Flash (actionscript) to make stuff happen on any of the displays/phones. So you click a button on the touch scree

[PHP] modifying within foreach

2009-06-23 Thread Andres Gonzalez
In the following example: foreach ($results as $key => $item) { //bla bla bla -- unset some of the $items } I want to modify $results within the foreach. In other words, during a given pass of this iteration, I want to delete some of the items based on particular conditions. Then on the ne

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Martin Zvarík
Eddie Drapkin napsal(a): 2. Can't display raw for the user (e.g. edit a forum post) Edit a forum? You display the data in TEXTAREA... Because seeing something like: "Yeah!" is what he said. Is awesome for the user experience. If you don't do html...() before putting to text

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Philip Thompson
On Jun 23, 2009, at 9:29 AM, Martin Zvarík wrote: Don't htmlentiies() before DB save. In general: - mysql_real_escape_string() before DB insertion - htmlentities() before dispaly I, on the other hand, would do htmlentities() BEFORE insertion. Pros: --- The text is processed once and doesn'

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Michael Shadle
On Tue, Jun 23, 2009 at 2:34 AM, Robert Cummings wrote: > Revolutionary, no. Major changes for PHP, yes! Major shifts in development > practices for PHP... it depends on who you are or where you work, but > certainly some of these will mark changes in development for many people. +1 http://cv

RE: [PHP] Explode-update-implode not working

2009-06-23 Thread Bob McConnell
Doh! I knew it would be something simple that I had overlooked. I recall reading that note last week and telling myself I would need to remember it. But that was then ... Thank you, the code is working better now. I just wish I were. Bob McConnell -Original Message- From: Andrew Ballar

Re: [PHP] Explode-update-implode not working

2009-06-23 Thread Andrew Ballard
On Tue, Jun 23, 2009 at 12:11 PM, Bob McConnell wrote: > At least not the way I expected it to. Apparently I am doing something > wrong, but I can't find anything specific that explains it. This is in > PHP 5.2.6. > > Here is the sequence I am trying to implement without the database > portion. (Th

[PHP] Explode-update-implode not working

2009-06-23 Thread Bob McConnell
At least not the way I expected it to. Apparently I am doing something wrong, but I can't find anything specific that explains it. This is in PHP 5.2.6. Here is the sequence I am trying to implement without the database portion. (This is typed in since the VNC I am using doesn't support pasting fr

Re: [PHP] resubmit form after validation error

2009-06-23 Thread Andrew Ballard
On Tue, Jun 23, 2009 at 11:37 AM, Shawn McKenzie wrote: > PJ wrote: >> Caner Bulut wrote: >>> Hi PJ, >>> >>> You can use the structure following >>> >>> $bid = htmlentities($_GET['id']); >>> >> the code below >>> if(empty($bid) { >>> $bid=0; >>> } >> produces an empty screen with no error messages.

Re: [PHP] resubmit form after validation error

2009-06-23 Thread Shawn McKenzie
PJ wrote: > Caner Bulut wrote: >> Hi PJ, >> >> You can use the structure following >> >> $bid = htmlentities($_GET['id']); >> > the code below >> if(empty($bid) { >> $bid=0; >> } > produces an empty screen with no error messages... > I have been having some trouble understanding "empty()" -- it doe

Re: [PHP] Perl GD

2009-06-23 Thread Eddie Drapkin
I think you've got the wrong mailing list, man. On Tue, Jun 23, 2009 at 11:11 AM, Chris Denman wrote: > Hi! > > Just installed the latest release of GD on my Centos 5 server with no > installation issues and all libraries OK. > However, getting lots of: > > [13973]ERR: 24: Error in Perl code: Bad

[PHP] Perl GD

2009-06-23 Thread Chris Denman
Hi! Just installed the latest release of GD on my Centos 5 server with no installation issues and all libraries OK. However, getting lots of: [13973]ERR: 24: Error in Perl code: Bad file descriptor at /var/www/vhosts/ w12.org/httpdocs/glassify/indexdie.htm line 11. And BLACK boxes behind where i

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Martin Zvarík
Cons: 1. Can't easily edit information in the database True, so if you use phpmyadmin for editing - don't do what I suggested. 2. Can't display raw for the user (e.g. edit a forum post) Edit a forum? You display the data in TEXTAREA... 3. Uses more space in the DB True, although I

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Eddie Drapkin
Cons: 1. Can't easily edit information in the database 2. Can't display raw for the user (e.g. edit a forum post) 3. Uses more space in the DB 4. Isn't as easily indexed 5. Breaks il8n support of internal search engines (sphinx, lucene, etc.) You're NEVER supposed to santize before inserting in th

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Andrew Ballard
On Tue, Jun 23, 2009 at 10:29 AM, Martin Zvarík wrote: >> >> Don't htmlentiies() before DB save.  In general: >> >> - mysql_real_escape_string() before DB insertion >> >> - htmlentities() before dispaly >> > > > I, on the other hand, would do htmlentities() BEFORE insertion. > > > Pros: > --- > The

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Martin Scotta
If you use htmlentities after each query you can found problems like this: My name is Martín. Also the data is stored for be used in a html environment. what happen if you need the data for other purposes? On Tue, Jun 23, 2009 at 11:42 AM, Caner Bulut wrote: > I have read somethings ab

Re: [PHP] Re: XSS Preventing.

2009-06-23 Thread Caner Bulut
I have read somethings about these issues. And i understand that If you use htmlentities() BEFORE insertion, when querying DB from XML, PDF or other data format, there will be some problems. I have some PHP books, the author codding like Martin Zvarík's way. If you have any pros and cons please sh

[PHP] Re: XSS Preventing.

2009-06-23 Thread Martin Zvarík
Don't htmlentiies() before DB save. In general: - mysql_real_escape_string() before DB insertion - htmlentities() before dispaly I, on the other hand, would do htmlentities() BEFORE insertion. Pros: --- The text is processed once and doesn't have to be htmlentitied() everytime you read

Re: [PHP] Convert \x3d \x3b \x3c to ASCII

2009-06-23 Thread Robert Cummings
ioan...@btinternet.com wrote: Is there a function which will convert characters like \x3d \x3b \x3c to ASCII. Or is there a full list of conversions, eg \x3c=\x3e=>, \x27=' etc. What are these, hex? I tried hexdec() but am not sure that is right. These are hex escaped for a string: This w

[PHP] Convert \x3d \x3b \x3c to ASCII

2009-06-23 Thread ioan...@btinternet.com
Is there a function which will convert characters like \x3d \x3b \x3c to ASCII. Or is there a full list of conversions, eg \x3c=< \x3e=>, \x27=' etc. What are these, hex? I tried hexdec() but am not sure that is right. John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vi

Re: [PHP] resubmit form after validation error

2009-06-23 Thread PJ
Caner Bulut wrote: > Hi PJ, > > You can use the structure following > > $bid = htmlentities($_GET['id']); > the code below > if(empty($bid) { > $bid=0; > } produces an empty screen with no error messages... I have been having some trouble understanding "empty()" -- it doesn't seem to want to work f

RE: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Bob McConnell
From: Michael A. Peters > Manuel Aude wrote: >> I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) >> and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my >> plans of teaching PHP 5.2 are starting to change, and I think it's a good >> idea to teach them

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Daniel Brown
On Tue, Jun 23, 2009 at 04:12, Per Jessen wrote: > Manuel Aude wrote: > >> I'm giving a PHP course next semester (3 hours all saturdays for 22 >> weeks) and I just realized that PHP 5.3 is coming very soon (2 days >> now!). So, my plans of teaching PHP 5.2 are starting to change, and I >> think it'

Re: [PHP] [php] unable to use rar_open ()

2009-06-23 Thread Lester Caine
HELP! wrote: I have install the windows php_rar.dll extension model in window but I have problem using the functions function extractZip( ) { $rar_file = rar_open('example.rar') or die("Failed to open Rar archive"); $entries_list = rar_list($ra

[PHP] [php] unable to use rar_open ()

2009-06-23 Thread HELP!
I have install the windows php_rar.dll extension model in window but I have problem using the functions function extractZip( ) { $rar_file = rar_open('example.rar') or die("Failed to open Rar archive"); $entries_list = rar_list($rar_file); print

[PHP] Re: Echo result in a loop on each instance

2009-06-23 Thread Peter Ford
Anton Heuschen wrote: > I have a question regarding echo of a var/string in a loop on each instance > > A shortened example: > > Lets say I have an array of values (rather big), and then I loop > through this array: > > for or foreach : > { >$value = $arrValAll[$i]; > >echo "test".$i."-

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Robert Cummings
Michael A. Peters wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it's a good idea to teach them 5.3 alrea

[PHP] Echo result in a loop on each instance

2009-06-23 Thread Anton Heuschen
I have a question regarding echo of a var/string in a loop on each instance A shortened example: Lets say I have an array of values (rather big), and then I loop through this array: for or foreach : { $value = $arrValAll[$i]; echo "test".$i."--> ".$value; } When the script runs it will

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Michael A. Peters
Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it's a good idea to teach them 5.3 already. While the majority of

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Per Jessen
Robert Cummings wrote: > Per Jessen wrote: >>> >>> Coming to a PHP 5.3 near you are the following notable features: >>> >>> - namespaces >>> - closures >>> - late static binding >>> - garbage collector to handle cyclic references >>> - PHAR >>> - goto >> >> I hadn't

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Robert Cummings
Per Jessen wrote: Robert Cummings wrote: Per Jessen wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Per Jessen
Robert Cummings wrote: > Per Jessen wrote: >> Manuel Aude wrote: >> >>> I'm giving a PHP course next semester (3 hours all saturdays for 22 >>> weeks) and I just realized that PHP 5.3 is coming very soon (2 days >>> now!). So, my plans of teaching PHP 5.2 are starting to change, and >>> I think i

Re: [PHP] I've some doubts if I should go with 5.2 or go alreadywith 5.3 (for a course)

2009-06-23 Thread Peter Ford
Robert Cummings wrote: > Per Jessen wrote: >> Manuel Aude wrote: >> >>> I'm giving a PHP course next semester (3 hours all saturdays for 22 >>> weeks) and I just realized that PHP 5.3 is coming very soon (2 days >>> now!). So, my plans of teaching PHP 5.2 are starting to change, and I >>> think it'

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Robert Cummings
Manuel Aude wrote: The thing is, that part of the planned course was to develop a small framework, so that they could see the dynamic and OOP posibilities that PHP offers. With PHP 5.3, there are namespaces, which change a lot the design of a framework, as well as true lambdas with closures. So,

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Robert Cummings
Per Jessen wrote: Manuel Aude wrote: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it's a good idea to teach them 5.3 already.

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Manuel Aude
The thing is, that part of the planned course was to develop a small framework, so that they could see the dynamic and OOP posibilities that PHP offers. With PHP 5.3, there are namespaces, which change a lot the design of a framework, as well as true lambdas with closures. So, naturally, the archit

Re: [PHP] XSS Preventing.

2009-06-23 Thread Caner Bulut
Michael, I can be useful for me. It seems there will be not ant charset problem occurs. Thanks for help. Caner. 2009/6/23 Michael A. Peters > Caner BULUT wrote: > >> Hi Guys, >> >> >> I have a question if you have any knowledge about this please let me know. >> >> >> I getting data from a for

[PHP] Re: I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Colin Guthrie
'Twas brillig, and Manuel Aude at 23/06/09 08:38 did gyre and gimble: I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it's a good ide

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Eddie Drapkin
Why not give a presentation, like in the first few, about compiling PHP for yourself, as that's a pretty useful skill that's oft neglected? On Tue, Jun 23, 2009 at 4:12 AM, Per Jessen wrote: > Manuel Aude wrote: > >> I'm giving a PHP course next semester (3 hours all saturdays for 22 >> weeks) and

Re: [PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Per Jessen
Manuel Aude wrote: > I'm giving a PHP course next semester (3 hours all saturdays for 22 > weeks) and I just realized that PHP 5.3 is coming very soon (2 days > now!). So, my plans of teaching PHP 5.2 are starting to change, and I > think it's a good idea to teach them 5.3 already. Does it _reall

[PHP] I've some doubts if I should go with 5.2 or go already with 5.3 (for a course)

2009-06-23 Thread Manuel Aude
I'm giving a PHP course next semester (3 hours all saturdays for 22 weeks) and I just realized that PHP 5.3 is coming very soon (2 days now!). So, my plans of teaching PHP 5.2 are starting to change, and I think it's a good idea to teach them 5.3 already. While the majority of the students use Win