php-general Digest 13 Jan 2007 12:07:06 -0000 Issue 4567

2007-01-13 Thread php-general-digest-help
php-general Digest 13 Jan 2007 12:07:06 - Issue 4567 Topics (messages 247020 through 247024): Extracting XMP text from Jpeg 247020 by: Dotan Cohen 247024 by: zerof Unbuffered Query 247021 by: Richard Lynch 247022 by: Jim Lucas 247023 by: Roman

php-general Digest 14 Jan 2007 01:00:15 -0000 Issue 4568

2007-01-13 Thread php-general-digest-help
php-general Digest 14 Jan 2007 01:00:15 - Issue 4568 Topics (messages 247025 through 247046): Re: Extracting XMP text from Jpeg 247025 by: zerof 247026 by: Dotan Cohen 247033 by: tedd 247035 by: Dotan Cohen 247037 by: tedd 247039 by: Dotan

Re: [PHP] Unbuffered Query

2007-01-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-12 23:30:15 -0600: Warning: mysql_data_seek(): Offset 0 is invalid for MySQL result index 116 (or the query data is unbuffered) in /www/acousticdemo.com/web/complaints/publish.cron on line 26 http://www.php.net/manual/en/function.mysql-unbuffered-query.php:

[PHP] Re: Extracting XMP text from Jpeg

2007-01-13 Thread zerof
Dotan Cohen escreveu: The birth of my first daughter has inpired me to get the photo gallery on my site up to date. To do so, I need to extract XMP data from Jpeg pictures. Here is a test pic: http://dotancohen.com/gili.jpg (beware, it's 1.8 MB) This pic has three tags: TEST MILOTTEST גילי

[PHP] Re: Extracting XMP text from Jpeg

2007-01-13 Thread zerof
Dotan Cohen escreveu: The birth of my first daughter has inpired me to get the photo gallery on my site up to date. To do so, I need to extract XMP data from Jpeg pictures. Here is a test pic: http://dotancohen.com/gili.jpg (beware, it's 1.8 MB) .

Re: [PHP] Re: Extracting XMP text from Jpeg

2007-01-13 Thread Dotan Cohen
On 13/01/07, zerof [EMAIL PROTECTED] wrote: Dotan Cohen escreveu: The birth of my first daughter has inpired me to get the photo gallery on my site up to date. To do so, I need to extract XMP data from Jpeg pictures. Here is a test pic: http://dotancohen.com/gili.jpg (beware, it's 1.8 MB)

Re: [PHP] Normalized Numbers

2007-01-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-12 14:40:04 +: # [EMAIL PROTECTED] / 2007-01-12 13:39:59 +0100: Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-12 01:57:27 +0100: Brian P. Giroux wrote: If anyone can help me out with that or provide any other advice about the rest of it, I'd

[PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-13 Thread Gert Cuykens
It's a web based sql console that you can use instead of phpmyadmin. http://sourceforge.net/projects/dfo/ Firefox 2 only because of the extensive use of xmlhttprequests. Maybe one day somebody could make it IE7 compatible by adding a activex patch. Also need webspace to host a demo,

Re: [PHP] Normalized Numbers

2007-01-13 Thread Jochem Maas
Roman, thank you for the detailed argument/explanation. I am definitely going to take the time to think about what you said and re-evaluate my stance. additionally I found you practical example of unit testing of great value, time for me to STFU and go do some reading about Testilence. rgds,

Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-13 Thread Ryan A
Skip Evans [EMAIL PROTECTED] wrote: Hey all, When you say it lets you run it off a CD does that mean the CD is totally self contained, as in you can pop it into any machine, sans web server DB, etc, and it runs just peachy? Skip Yep, thats what its supposed to do... -- - The faulty

Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-13 Thread Ryan A
Hmmm, I didnt know of this list, thanks... will go through it. Cheers! R Satyam [EMAIL PROTECTED] wrote: It is not a new concept, even Wikipedia has a long list of them: http://en.wikipedia.org/wiki/List_of_LiveDistros Most of those distros have individual articles ... not the one mentioned

Re: [PHP] Anybody have any experience with outsite-in? [Quite a bit 0T]

2007-01-13 Thread Skip Evans
eric cartmanSweet!/ec So what recommendations would any of you make for a, say, CD linux distro that one could burn with my own PHP app, so someone could boot it up in a machine and see my PHP/MySQL web app run right there on their machine? This is something for which I've had a nagging

Re: [PHP] Extracting XMP text from Jpeg

2007-01-13 Thread tedd
At 2:40 AM +0200 1/13/07, Dotan Cohen wrote: The birth of my first daughter has inpired me to get the photo gallery on my site up to date. To do so, I need to extract XMP data from Jpeg pictures. Here is a test pic: http://dotancohen.com/gili.jpg Dotan: Whoa, when you said birth of my first

Re: [PHP] Extracting XMP text from Jpeg

2007-01-13 Thread Dotan Cohen
On 13/01/07, tedd [EMAIL PROTECTED] wrote: At 2:40 AM +0200 1/13/07, Dotan Cohen wrote: The birth of my first daughter has inpired me to get the photo gallery on my site up to date. To do so, I need to extract XMP data from Jpeg pictures. Here is a test pic: http://dotancohen.com/gili.jpg

Re: [PHP] Javascript detection , working version

2007-01-13 Thread tedd
At 9:32 PM -0800 1/11/07, Jürgen Wind wrote: tedd wrote: index.php, jstest110.php) , make it one. ok ---8--- It would be cool if I could send js value via a POST instead of GET-- can that be done? have a look http://149.222.235.16/jstest/70112/index.php ( POST version ) tedd PS: I read

Re: [PHP] Extracting XMP text from Jpeg

2007-01-13 Thread tedd
At 8:05 PM +0200 1/13/07, Dotan Cohen wrote: On 13/01/07, tedd [EMAIL PROTECTED] wrote: At 2:40 AM +0200 1/13/07, Dotan Cohen wrote: The birth of my first daughter has inpired me to get the photo gallery on my site up to date. To do so, I need to extract XMP data from Jpeg pictures. Here is a

[PHP] Re: Include file error, common one I think

2007-01-13 Thread Jo�o C�ndido de Souza Neto
Is it the whole code of your file, or is there any other html code? Chris Carter [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Hi, Here is code that I got from the internet for random image. This file works perfect if I try it independently but not on any existing file. I

Re: [PHP] Extracting XMP text from Jpeg

2007-01-13 Thread Dotan Cohen
On 13/01/07, tedd [EMAIL PROTECTED] wrote: Very cute! Congratulations. :-) Thank you! Have you looked into: exif_read_data() ? Yes, but it won't handle XMP. There is a link in the comments to a user-written function that reads exif data from XMP that PhotoShop CS stores, but I cannot

Re: [PHP] Include file error, common one I think

2007-01-13 Thread Chris Carter
Hi, I have used this file in my index file. When I run this file separately it shows the random image but not when I include on my index.php. Thanks in advance, João Cândido de Souza Neto wrote: Is it the whole code of your file, or is there any other html code? Chris Carter [EMAIL

[PHP] The php file type

2007-01-13 Thread Edward
* *|Hello, I need to ask a question regarding the note below:|* * /**Stewart* 05-Jan-2007 02:55 http://www.php.net/manual/en/tutorial.firstpage.php#72181*|* No need to go through these contortions each time to make sure the file is properly saved with the .php extension. Just

Re: [PHP] Include file error, common one I think

2007-01-13 Thread Jochem Maas
Chris Carter wrote: Hi, I have used this file in my index file. When I run this file separately it shows the random image but not when I include on my index.php. your image script shouldn't be included in your [index] page. instead it should be referenced by the src attribute of an img tag

Re: [PHP] Include file error, common one I think

2007-01-13 Thread tedd
At 9:44 AM -0800 1/13/07, Chris Carter wrote: Hi, Here is code that I got from the internet for random image. This file works perfect if I try it independently but not on any existing file. I think the error that I am getting is quite common on the net but its new for me. I am getting this

Re: [PHP] Variance Function

2007-01-13 Thread tedd
At 4:19 AM + 1/12/07, Andrew Brampton wrote: - Original Message - From: Richard Lynch [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Thursday, January 11, 2007 11:29 PM Subject: [PHP] Variance Function Any advice? Anybody got a good variance function to do what I'm trying

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-13 Thread Jürgen Wind
Gert Cuykens wrote: It's a web based sql console that you can use instead of phpmyadmin. nice idea, but i got lots of js errors (i.e. resulting from an orphaned colon in almost every .js file) i tried db5c28.tar.bz2 from sf.net -- View this message in context:

[PHP] Hello

2007-01-13 Thread Edward
How do I create a php document so that people in my nonprofit can vote on issues online through the organization's website? Thanks, Edward -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Hello

2007-01-13 Thread John Meyer
Edward wrote: How do I create a php document so that people in my nonprofit can vote on issues online through the organization's website? Thanks, Edward Start with PHP, add MySQL or your database of choice, mix and prepare. Serves 500+. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Hello

2007-01-13 Thread David Giragosian
On 1/13/07, John Meyer [EMAIL PROTECTED] wrote: Edward wrote: How do I create a php document so that people in my nonprofit can vote on issues online through the organization's website? Thanks, Edward Start with PHP, add MySQL or your database of choice, mix and prepare. Serves 500+. --

Re: [PHP] Hello

2007-01-13 Thread Skip Evans
I think David is going to need to install something like PostNuke that comes with a polls module or something like that. But David's suggestion is a good one... how much PHP/MySQL experience do you have? Skip David Giragosian wrote: On 1/13/07, John Meyer [EMAIL PROTECTED] wrote:

[PHP] multidimensional array problems

2007-01-13 Thread nitrox doe
hi all, im very new to php but i think i jumped on the toughest thing to learn. Im trying to create a team roster that will show game, game type and league and then show each member based on the game type. Ive worked out alot of code but just cant figure where im going wrong. so here is my code.

[PHP] fopen and fwrite r+

2007-01-13 Thread Richard Kolseth
I'm collecting data from a form and using it to write to a flat file like so: Quote: //this removes line breaks in an text field box and substitutes double breaks $postbody = str_replace(\r\n, br/br/,$postbody); $thepost = $postitle | $postdate | $postbody | $author \r\n; if ($posttype==add)

Re: [PHP] Extracting XMP text from Jpeg

2007-01-13 Thread Bill Guion
At 8:05 PM +0200 1/13/07, Dotan Cohen wrote: Hehehe... Good thing that I didn't post a picture of Gush: http://dotancohen.com/gallery/img-122.html I presume Gush is an advanced computer mouse? -= Bill =- -- Jury: a panel of 12 men and women selected to decide who has

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-13 Thread Gert Cuykens
On 1/14/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: It's a web based sql console that you can use instead of phpmyadmin. nice idea, but i got lots of js errors (i.e. resulting from an orphaned colon in almost every .js file) i tried db5c28.tar.bz2 from sf.net it doesnt work

Re: [PHP] fopen and fwrite r+

2007-01-13 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2007-01-13 17:32:00 -0500: I can write to the bottom of the file, no problem, but if I want to put new entries at the top of the file I have problems: the previous entry is partially overwritten and mangled.. you cannot prepend to a file. to do that you need to create

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-13 Thread Jürgen Wind
Gert Cuykens wrote: On 1/14/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: It's a web based sql console that you can use instead of phpmyadmin. nice idea, but i got lots of js errors (i.e. resulting from an orphaned colon in almost every .js file) i tried

[PHP] Stripslashes

2007-01-13 Thread Beauford
Hi, Anyone know how I can strip slashes from $_POST variables. I have tried about a hundred different ways of doing this and nothing works. i.e. if(!empty($_POST)){ foreach($_POST as $x = $y){ $_POST[$x] = stripslashes($y); } } This came about after someone tried to enter O'Toole in a form,

Re: [PHP] Javascript detection , working version

2007-01-13 Thread Casey Chu
That book is so cool! =P Anyways, it said that browsers with Javascript, but not a recent enough Javascript would not display the Noscript. On 1/13/07, tedd [EMAIL PROTECTED] wrote: At 9:32 PM -0800 1/11/07, Jürgen Wind wrote: tedd wrote: index.php, jstest110.php) , make it one. ok ---8--- It

Re: [PHP] multidimensional array problems

2007-01-13 Thread Larry Garfield
It's better to just leave the record as an array and read it that way. while ($row = mysql_fetch_assoc($result)) { print trtd{$row['game']}/td td{$row['type']}/td/tr\n; } And so on. You're not actually dealing with a multi-dimensional array yet; $result is an object from which you are

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-13 Thread Gert Cuykens
On 1/14/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: On 1/14/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: It's a web based sql console that you can use instead of phpmyadmin. nice idea, but i got lots of js errors (i.e. resulting from an orphaned colon

Re: [PHP] multidimensional array problems

2007-01-13 Thread Larry Garfield
Copying back to the list... Actually, I'd suggest doing a PHP-side grouping. See this article for details: http://www.garfieldtech.com/blog/php-group-by On Saturday 13 January 2007 10:50 pm, nitrox . wrote: I hope this is returning to the mail list so all can read. Thanks for the reply

Re: [PHP] Extracting XMP text from Jpeg

2007-01-13 Thread Dotan Cohen
On 14/01/07, Bill Guion [EMAIL PROTECTED] wrote: At 8:05 PM +0200 1/13/07, Dotan Cohen wrote: Hehehe... Good thing that I didn't post a picture of Gush: http://dotancohen.com/gallery/img-122.html I presume Gush is an advanced computer mouse? -= Bill =- First

Re: [PHP] Include file error, common one I think

2007-01-13 Thread Chris Carter
I am not sure about this but the requirement is that even the links associated with the image changes with the image. Like an image of restaurant links to restaurants page and image for pubs links to pubs page. Is this achievable through this code. I could not test it coz it was not working. Can

Re: [PHP] multidimensional array problems

2007-01-13 Thread Jim Lucas
Give this a go ?php //begin member league table $memroster = SELECT inf_league.game, inf_league.type, inf_member.user_name, inf_member.rank, . inf_member.country, inf_member.email . FROM inf_league . INNER JOIN inf_memberleague ON inf_league.gid =

Re: [PHP] Stripslashes

2007-01-13 Thread Jim Lucas
Beauford wrote: Hi, Anyone know how I can strip slashes from $_POST variables. I have tried about a hundred different ways of doing this and nothing works. i.e. if(!empty($_POST)){ foreach($_POST as $x = $y){ $_POST[$x] = stripslashes($y); } } This came about after someone tried to enter

Re: [PHP] Stripslashes

2007-01-13 Thread Larry Garfield
On Sunday 14 January 2007 12:01 am, Jim Lucas wrote: This is what I use, and it has worked ever time. if ( get_magic_quotes_gpc() ) { $_POST = array_map(stripslashes, $_POST); } Jim Lucas That will break as soon as you submit an array back through a POST request, which I do rather

Re: [PHP] Stripslashes

2007-01-13 Thread Jim Lucas
Larry Garfield wrote: On Sunday 14 January 2007 12:01 am, Jim Lucas wrote: This is what I use, and it has worked ever time. if ( get_magic_quotes_gpc() ) { $_POST = array_map(stripslashes, $_POST); } Jim Lucas That will break as soon as you submit an array back through a POST