php-general Digest 30 Mar 2009 10:09:11 -0000 Issue 6039

2009-03-30 Thread php-general-digest-help
php-general Digest 30 Mar 2009 10:09:11 - Issue 6039 Topics (messages 290799 through 290809): Re: Security Support 290799 by: abdulazeez alugo 290800 by: David Wonderly 290801 by: Marc Christopher Hall 290802 by: abdulazeez alugo 290803 by: Michael A.

AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread Andrei Bintintan
Any other ideas? Von: Bastien Koert [mailto:phps...@gmail.com] Gesendet: 20 March 2009 15:49 An: Andrei Bintintan Cc: php-general@lists.php.net Betreff: Re: [PHP] Read Text Content from PDF file On Fri, Mar 20, 2009 at 10:23 AM, Andrei Bintintan fo...@interpid.eu wrote: Could you

Re: AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread Michael A. Peters
Andrei Bintintan wrote: Any other ideas? I believe there is a windows binary called pdf2txt.exe out there somewhere. I doubt you will find any solution that does not require installation of a binary on the server, so if you can't install xpdf on the server then you probably will have to

Re: AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread Michael A. Peters
Andrei Bintintan wrote: Any other ideas? Also - I believe the commercial (full) version of PDFlib can - in fact, I believe you can do it with the pecl-pdflib library if you have the full version of pdflib installed. I seem to remember there work on a clibpdf php wrapper back when php 4

[PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Martin Zvarík
Hi, I am totally new in compiling under cygwin. I need to compile an PHP extension, and this is what I figured so far: gcc -c extension_name.c (that's the only *.c file in that extension directory) ERROR: php.h: No such file... So, I changed the env PATH:

[PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Andrew Williams
what does time(); $t1 = time(); { do something } $t2 = time(); $end_time = $t2 - $t1; echo $end_time; what does $end_time represent? how do you determine the next 5 mins? -- Best Wishes willandy.co.uk

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Stuart
2009/3/30 Andrew Williams andrew4willi...@gmail.com: what does time(); $t1 = time(); { do something } $t2 = time(); $end_time = $t2 - $t1; echo $end_time; what does $end_time represent? The number of seconds it took to do something. how do you determine the next 5 mins? Assuming

Re: [PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Martin Zvarík
Martin Zvarík napsal(a): Per Jessen napsal(a): Martin Zvarík wrote: Hi, I am totally new in compiling under cygwin. I need to compile an PHP extension, and this is what I figured so far: I wouldn't expect cygwin to be that different to a real Linux environment - how about: untar the

Re: [PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Per Jessen
Martin Zvarík wrote: Hmm, it seemed all working, but... $ make ...created 4 files: /usr/local/src/extension/.libs/extension.a, extension.la.lnk, extension.o (280 kB, the other 3 had few bytes, *.a, *.la, *.lai) $ make install ... created:

Re: [PHP] Re: fpdf adding font error

2009-03-30 Thread Thodoris
If you want to use UTF-8 fonts with FPDF then switch to TCPDF (www.tcpdf.org) Thanks Tony I think that it will do what I really need. -- Thodoris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] LOAD INFILE

2009-03-30 Thread John Boy
Hi I want to upload a .csv file from my local pc to a mysql server. My local machine is XP2. I have used the following but the file does not upload. When using php MyAdmin it returns the error 'file not found'. Can anyone help? ?php // Include our login information

[PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
Hello :) I have some troubles with php and mysql. I have a normal MySQL Query and this returns X 3 rows. Now i want to get the last 3 inserted values. For Example i've inserted A, B, C, D, E I want to get the last inserted values, e.g. E D C (in reversed order) So how to do this? I

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Thijs Lensselink
Sebastian Muszytowski wrote: Hello :) I have some troubles with php and mysql. I have a normal MySQL Query and this returns X 3 rows. Now i want to get the last 3 inserted values. For Example i've inserted A, B, C, D, E I want to get the last inserted values, e.g. E D C (in reversed

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Marc
I have some troubles with php and mysql. I have a normal MySQL Query and this returns X 3 rows. Now i want to get the last 3 inserted values. For Example i've inserted A, B, C, D, E I want to get the last inserted values, e.g. E D C (in reversed order) So how to do this? I already searched

Re: [PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Martin Zvarík
Per Jessen napsal(a): Martin Zvarík wrote: Hi, I am totally new in compiling under cygwin. I need to compile an PHP extension, and this is what I figured so far: I wouldn't expect cygwin to be that different to a real Linux environment - how about: untar the extension cd dir phpize

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
Thijs Lensselink schrieb: Sebastian Muszytowski wrote: Hello :) I have some troubles with php and mysql. I have a normal MySQL Query and this returns X 3 rows. Now i want to get the last 3 inserted values. For Example i've inserted A, B, C, D, E I want to get the last inserted values,

Re: [PHP] LOAD INFILE

2009-03-30 Thread Thijs Lensselink
John Boy wrote: Hi I want to upload a .csv file from my local pc to a mysql server. My local machine is XP2. I have used the following but the file does not upload. When using php MyAdmin it returns the error 'file not found'. Can anyone help? ?php // Include our login information

Re: [PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Per Jessen
Martin Zvarík wrote: Hi, I am totally new in compiling under cygwin. I need to compile an PHP extension, and this is what I figured so far: I wouldn't expect cygwin to be that different to a real Linux environment - how about: untar the extension cd dir phpize ./configure make make

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Richard Heyes
2009/3/30 Andrew Williams andrew4willi...@gmail.com: what does time(); $t1 = time(); { do something } $t2 = time(); $end_time = $t2 - $t1; echo $end_time; what does $end_time represent? $end_time is not a great name for it: it's the time (number of seconds) it took to go from $t1 to

[PHP] Mac OS X + Apache2 + Dynamic Libraries

2009-03-30 Thread Stutter Stutters
I've been wrestling with mac os x + php 5.2.6 off and on for a few months to get it to load the memcache.so and imagick.so extensions. When I executed php on the command line `php -i | grep imagick` or `php -i | grep memcache` the output shows that imagick and memcache are both being loaded

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Igor Escobar
When someone does that, it means the execution time between $t1 and $t2... Att, Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 30, 2009 at 7:38 AM, Richard Heyes rich...@php.net wrote: 2009/3/30 Andrew Williams andrew4willi...@gmail.com: what does

Re: [PHP] foreach and form submission.

2009-03-30 Thread Igor Escobar
Try this... $_POST = array_map('stri_tags', $_POST); Igor Escobar systems analyst interface designer www . igorescobar . com On Sat, Mar 28, 2009 at 6:21 PM, Angus Mann angusm...@pobox.com wrote: Thanks Ashley...that did the trick. After reading about the limitations of strip_tags I

Re: [PHP] Security Support

2009-03-30 Thread Daniel Brown
On Sun, Mar 29, 2009 at 22:07, abdulazeez alugo defati...@hotmail.com wrote: Yea, dude, well me GED says I kin git it dun wit less wastid time. -- No be only una get pidgin English ooo. Me sef fit do am sharp sharp no be say them say. Is there any particular reason you guys totally

Re: AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 3:16 AM, Michael A. Peters mpet...@mac.com wrote: Andrei Bintintan wrote: Any other ideas? Also - I believe the commercial (full) version of PDFlib can - in fact, I believe you can do it with the pecl-pdflib library if you have the full version of pdflib installed.

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 7:55 AM, Sebastian Muszytowski s.muszytow...@googlemail.com wrote: Thijs Lensselink schrieb: Sebastian Muszytowski wrote: Hello :) I have some troubles with php and mysql.  I have a normal MySQL Query and this returns X 3 rows. Now i want to get the last 3

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Sebastian Muszytowski
haliphax schrieb: [..cut...] Except when your primary key value rolls over, or fills a gap between two other rows that was left when a row was deleted/moved/etc... there has got to be a better way than grabbing rows in descending order based on the auto_increment value. Are you doing the

Re: [PHP] Security Support

2009-03-30 Thread Igor Escobar
I agree with you Daniel Regards, Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 30, 2009 at 10:58 AM, Daniel Brown danbr...@php.net wrote: On Sun, Mar 29, 2009 at 22:07, abdulazeez alugo defati...@hotmail.com wrote: Yea, dude, well me GED says I

Re: AW: [PHP] Read Text Content from PDF file

2009-03-30 Thread Michael A. Peters
haliphax wrote: On Mon, Mar 30, 2009 at 3:16 AM, Michael A. Peters mpet...@mac.com wrote: Andrei Bintintan wrote: Any other ideas? Also - I believe the commercial (full) version of PDFlib can - in fact, I believe you can do it with the pecl-pdflib library if you have the full version of

Re: [PHP] foreach and form submission.

2009-03-30 Thread Jan G.B.
That would be correct. but two things I have to add: * it's called bad style to re-write (override) predefined vars like _POST, _GET, _SERVER ... * using strip_tags() to clean user-input for safe output ist not O.K.! use htmlspecialchars(), at least. Regards, 2009/3/28 Virgilio Quilario

RE: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread abdulazeez alugo
Date: Mon, 30 Mar 2009 14:55:08 +0200 From: s.muszytow...@googlemail.com To: p...@addmissions.nl CC: php-general@lists.php.net Subject: Re: [PHP] PHP + MySQL - Load last inserts Thijs Lensselink schrieb: Sebastian Muszytowski wrote: Hello :) I have some troubles with php

[PHP] php bug from 2003 still alive?!

2009-03-30 Thread Merlin Morgenstern
Hello, I am experiencing problems with utf-8 and php. There seems to be a problem with BOM. Some postings say that I have to compile php with --enable-zend-multibyte. HOwever those postings are very old (2003!). http://bugs.php.net/bug.php?id=22108 Is this still necessary with the newest

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Richard Heyes
When someone does that, it means the execution time between $t1 and $t2... Is that for my benefit? Believe it or not, I do know the arcane art of subtraction... -- Richard Heyes HTML5 Canvas graphing for Firefox, Chrome, Opera and Safari: http://www.rgraph.net (Updated March 14th) -- PHP

[PHP] Server document root change

2009-03-30 Thread Manoj Singh
Hi All, My production server has facing disk full problem. Actually my server has the following drives mounted: /var - 10 GB /home - 200 GB etc... Now i want to change the document root of apache server from /var to /home. Is there any problem if i change this? Please suggest. Regards, Manoj

Re: [PHP] Server document root change

2009-03-30 Thread Daniel Brown
On Mon, Mar 30, 2009 at 11:59, Manoj Singh manojsingh2...@gmail.com wrote: Hi All, My production server has facing disk full problem. Actually my server has the following drives mounted: /var - 10 GB /home - 200 GB etc... Now i want to change the document root of apache server from /var

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 9:13 AM, Sebastian Muszytowski s.muszytow...@googlemail.com wrote: haliphax schrieb: [..cut...] Except when your primary key value rolls over, or fills a gap between two other rows that was left when a row was deleted/moved/etc... there has got to be a better way

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 10:47 AM, Richard Heyes rich...@php.net wrote: When someone does that, it means the execution time between $t1 and $t2... Is that for my benefit? Believe it or not, I do know the arcane art of subtraction... I would subtract more often, but sacrificial farm animals and

Re: [PHP] Mac OS X + Apache2 + Dynamic Libraries

2009-03-30 Thread Lists
Stutter Stutters wrote: I've been wrestling with mac os x + php 5.2.6 off and on for a few months to get it to load the memcache.so and imagick.so extensions. When I executed php on the command line `php -i | grep imagick` or `php -i | grep memcache` the output shows that imagick and memcache

[PHP] Re: php bug from 2003 still alive?! - UTF8 BOM

2009-03-30 Thread Merlin Morgenstern
Hello everybody, has anybody an idea on how to fix this? Is it really necessary to recomplile for utf-8 BOM support? Regards, Merlin Merlin Morgenstern wrote: Hello, I am experiencing problems with utf-8 and php. There seems to be a problem with BOM. Some postings say that I have to

Re: [PHP] php bug from 2003 still alive?!

2009-03-30 Thread Thiago H. Pojda
On Mon, Mar 30, 2009 at 12:42 PM, Merlin Morgenstern merli...@fastmail.fmwrote: Some postings say that I have to compile php with --enable-zend-multibyte. HOwever those postings are very old (2003!). http://bugs.php.net/bug.php?id=22108 Did you see what Derick said abut this in the last

[PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the ArtWork folder any ideas? if ($_FILES) { for ($x=0; $x 15; $x++) { if (is_uploaded_file

Re: [PHP] php bug from 2003 still alive?!

2009-03-30 Thread Merlin Morgenstern
Yes I was reading about this. However, try to do a search on this: http://www.google.de/search?hl=deq=enable-zend-multibytebtnG=Google-Suchemeta= Loads of postings that do not look that good. What are all the chinese sites do? It is strange that there is no official description on php.net

[PHP] Re: [PHP-INSTALL] Mac OS X + Apache2 + Dynamic Libraries

2009-03-30 Thread BuildSmart
On Mar 30, 2009, at 09:22 AM, Stutter Stutters wrote: I've been wrestling with mac os x + php 5.2.6 off and on for a few months to get it to load the memcache.so and imagick.so extensions. When I executed php on the command line `php -i | grep imagick` or `php -i | grep memcache` the

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Ashley Sheridan
On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the ArtWork folder any ideas? if ($_FILES) { for ($x=0; $x 15; $x++) {

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Bastien Koert
2009/3/30 Terion Miller webdev.ter...@gmail.com I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the ArtWork folder any ideas? if ($_FILES) { for ($x=0; $x 15; $x++) {

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Bastien Koert
On Mon, Mar 30, 2009 at 12:05 PM, haliphax halip...@gmail.com wrote: On Mon, Mar 30, 2009 at 10:47 AM, Richard Heyes rich...@php.net wrote: When someone does that, it means the execution time between $t1 and $t2... Is that for my benefit? Believe it or not, I do know the arcane art of

[PHP] UTF 8 support - enable-zend-multibyte ( was Re: [PHP] php bug from 2003 still alive?! - )

2009-03-30 Thread Merlin Morgenstern
HI there, I now compiled php with zend multibyte. The trouble with the extra characters is now gone, but all special characters are now replaced with a questionmark! The document type shows utf-8, but somehow php seems not to pars the content OK. Does nobody have the same problem? Regards,

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
On Mon, Mar 30, 2009 at 1:11 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and says the file is uploaded but then there is NO file in the

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Ashley Sheridan
On Mon, 2009-03-30 at 12:47 -0500, Terion Miller wrote: On Mon, Mar 30, 2009 at 1:11 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Mon, 2009-03-30 at 11:44 -0500, Terion Miller wrote: I have this script that is no longer working to upload files, it goes thru the motions and

[PHP] Re: [PHP-INSTALL] Mac OS X + Apache2 + Dynamic Libraries

2009-03-30 Thread Stutter Stutters
I used Pecl to install memcache and imagick, I ran the command you mentioned and this was the output: $ file /usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so /usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so: Mach-O bundle i386 I don't see anything regarding x86_64, so

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 11:37 AM, Igor Escobar titiolin...@gmail.com wrote: The people use that to measure performance. If you're intersted about that read http://www.igorescobar.com/blog/2009/03/05/benchmarking-de-desempenho-no-php/ (in portuguese, sorry) Regards, Igor Escobar On Mon,

Re: [PHP] UTF 8 support - enable-zend-multibyte ( was Re: [PHP] php bug from 2003 still alive?! - )

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 12:34 PM, Merlin Morgenstern merli...@fastmail.fm wrote: HI there, I now compiled php with zend multibyte. The trouble with the extra characters is now gone, but all special characters are now replaced with a questionmark! The document type shows utf-8, but somehow php

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Igor Escobar
Okey, but you understand the purpouse of it? Igor Escobar systems analyst interface designer www . igorescobar . com On Mon, Mar 30, 2009 at 3:42 PM, haliphax halip...@gmail.com wrote: On Mon, Mar 30, 2009 at 11:37 AM, Igor Escobar titiolin...@gmail.com wrote: The people use that to

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 1:51 PM, Igor Escobar titiolin...@gmail.com wrote: Okey, but you understand the purpouse of it? On Mon, Mar 30, 2009 at 3:42 PM, haliphax halip...@gmail.com wrote: On Mon, Mar 30, 2009 at 11:37 AM, Igor Escobar titiolin...@gmail.com wrote: The people use that to

[PHP] Problem with header();

2009-03-30 Thread Igor Escobar
Hi guys, probably everybody goes think: its the same problem ever HTML before header() functions ... but it is not. I has working on a project and this are a running in Windows (shame on me). Recently i migrate to *Ubuntu *and some problems occurred and that specifically i can't understand WHY

Re: [PHP] Re: [PHP-INSTALL] Mac OS X + Apache2 + Dynamic Libraries

2009-03-30 Thread Lists
Stutter Stutters wrote: I used Pecl to install memcache and imagick, I ran the command you mentioned and this was the output: $ file /usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so /usr/lib/php/extensions/no-debug-non-zts-20060613/memcache.so: Mach-O bundle i386 I don't see

Re: [PHP] Problem with header();

2009-03-30 Thread Stuart
2009/3/30 Igor Escobar titiolin...@gmail.com: Hi guys, probably everybody goes think:  its the same problem ever  HTML before header() functions ...  but it is not. I has working on a project and this are a running in Windows (shame on me). Recently i migrate to *Ubuntu *and some problems

Re: [PHP] UTF 8 support - enable-zend-multibyte ( was Re: [PHP] php bug from 2003 still alive?! - )

2009-03-30 Thread Merlin Morgenstern
haliphax wrote: On Mon, Mar 30, 2009 at 12:34 PM, Merlin Morgenstern merli...@fastmail.fm wrote: HI there, I now compiled php with zend multibyte. The trouble with the extra characters is now gone, but all special characters are now replaced with a questionmark! The document type shows utf-8,

Re: [PHP] Help figuring out an uploading script problem...

2009-03-30 Thread Terion Miller
The chmod in the script just ensures that the file you uploaded is given the correct permissions. Turn on all errors and warnings for the script so you can see where the problem is. Ash www.ashleysheridan.co.uk Thanks everyone, I figured it out, it was the directory permissions ...now

Re: [PHP] Security Support

2009-03-30 Thread Grant Peel
- Original Message - From: Michael A. Peters mpet...@mac.com To: Grant Peel gp...@thenetnow.com Cc: php-general@lists.php.net Sent: Sunday, March 29, 2009 10:00 PM Subject: Re: [PHP] Security Support Grant Peel wrote: Good Morning / Afternoon, We run several of our own servers: -

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread Shawn McKenzie
Andrew Williams wrote: what does time(); $t1 = time(); { do something } $t2 = time(); $end_time = $t2 - $t1; echo $end_time; what does $end_time represent? how do you determine the next 5 mins? So if you haven't deduced the answer from other replies, this would probably be

Re: [PHP] time() TIMER in seconds or just numbers

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 3:35 PM, Shawn McKenzie nos...@mckenzies.net wrote: Andrew Williams wrote: what does time(); $t1 = time(); { do something } $t2 = time(); $end_time = $t2 - $t1; echo $end_time; what does $end_time represent? how do you determine the next 5 mins? So if you

Re: [PHP] Security Support

2009-03-30 Thread Chris
Grant Peel wrote: - Original Message - From: Michael A. Peters mpet...@mac.com To: Grant Peel gp...@thenetnow.com Cc: php-general@lists.php.net Sent: Sunday, March 29, 2009 10:00 PM Subject: Re: [PHP] Security Support Grant Peel wrote: Good Morning / Afternoon, We run several of our

Re: [PHP] LOAD INFILE

2009-03-30 Thread Chris
Thijs Lensselink wrote: John Boy wrote: Hi I want to upload a .csv file from my local pc to a mysql server. My local machine is XP2. I have used the following but the file does not upload. When using php MyAdmin it returns the error 'file not found'. Can anyone help? Why not just use

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Chris
haliphax wrote: On Mon, Mar 30, 2009 at 9:13 AM, Sebastian Muszytowski s.muszytow...@googlemail.com wrote: haliphax schrieb: [..cut...] Except when your primary key value rolls over, or fills a gap between two other rows that was left when a row was deleted/moved/etc... there has got to be a

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread haliphax
On Mon, Mar 30, 2009 at 5:10 PM, Chris dmag...@gmail.com wrote: haliphax wrote: On Mon, Mar 30, 2009 at 9:13 AM, Sebastian Muszytowski s.muszytow...@googlemail.com wrote: haliphax schrieb: [..cut...] Except when your primary key value rolls over, or fills a gap between two other rows

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Chris
The physical order of the rows changed (as you can see) but it does not re-use the id's that were deleted. Ordering by the id will get you the last bunch inserted. If you're using innodb you'll have to be aware it's transaction specific, if you're using myisam it will be system wide. I'll

[PHP] formulate nested select

2009-03-30 Thread PJ
I cannot find anything on google or the manuals/tutorials that gives some kin of clear explanation of how to so nested selects with where or whatever. I have three tables: books, authors and book-authors. I need to retrieve only those books whose author's names begin with A. I have tried several

Re: [PHP] formulate nested select

2009-03-30 Thread Chris
PJ wrote: I cannot find anything on google or the manuals/tutorials that gives some kin of clear explanation of how to so nested selects with where or whatever. I have three tables: books, authors and book-authors. I need to retrieve only those books whose author's names begin with A. I have

[PHP] 5.2.9 changes - phpwiki

2009-03-30 Thread Charles Sprickman
Hello all, Recently I upgraded a box running phpwiki from php 5.2.8 to 5.2.9. After the upgrade, phpwiki (1.3.14) started spitting out the following two errors, both of which are basically leaving the wiki dead in the water: [30-Mar-2009 22:01:23] PHP Parse error: syntax error, unexpected

Re: [PHP] Problem with header();

2009-03-30 Thread Phpster
Output buffering turned off? Bastien Sent from my iPod On Mar 30, 2009, at 15:03, Igor Escobar titiolin...@gmail.com wrote: Hi guys, probably everybody goes think: its the same problem ever HTML before header() functions ... but it is not. I has working on a project and this are a

Re: [PHP] formulate nested select

2009-03-30 Thread Jim Lucas
Chris wrote: PJ wrote: I cannot find anything on google or the manuals/tutorials that gives some kin of clear explanation of how to so nested selects with where or whatever. I have three tables: books, authors and book-authors. I need to retrieve only those books whose author's names begin with

Re: [PHP] formulate nested select

2009-03-30 Thread Chris
Jim Lucas wrote: Chris wrote: PJ wrote: I cannot find anything on google or the manuals/tutorials that gives some kin of clear explanation of how to so nested selects with where or whatever. I have three tables: books, authors and book-authors. I need to retrieve only those books whose

[PHP] Working in UTF-8 - BOM trouble

2009-03-30 Thread Merlin Morgenstern
Hi there, I am having trouble to switch with an i18n project to utf-8. The problem is, that php has trouble with files that are saved in UTF-8 with BOM. It is causing strange bahavior like adding extra headers. On the other hand most editors only save UTF-8 with BOM. Has somebody

Re: [PHP] 5.2.9 changes - phpwiki

2009-03-30 Thread Michael A. Peters
Charles Sprickman wrote: Hello all, Recently I upgraded a box running phpwiki from php 5.2.8 to 5.2.9. After the upgrade, phpwiki (1.3.14) started spitting out the following two errors, both of which are basically leaving the wiki dead in the water: [30-Mar-2009 22:01:23] PHP Parse error: