Re: [PHP] _SERVER[HTTP_ACCEPT_LANGUAGE] en-us

2006-10-18 Thread Ivo F.A.C. Fokkema
On Tue, 17 Oct 2006 08:18:47 +0100, Stut wrote: John Taylor-Johnston wrote: This is what http_accept_language gives me depending on which browser. Depending on the visitor in my region, it will either be French or English. _SERVER[HTTP_ACCEPT_LANGUAGE] en-us,en;q=0.8,fr;q=0.5,fr-ca;q=0.3

Re: [PHP] Re: How to recognise url in a block of text

2006-10-18 Thread Ivo F.A.C. Fokkema
On Tue, 17 Oct 2006 17:26:42 +0100, Robin Vickery wrote: On 17/10/06, Al [EMAIL PROTECTED] wrote: AYSERVE.NET wrote: Please, I need help on how to to recognise url in a block of text being retrieved from a database and present it as a link within that text. I will appreciate any help.

Re: [PHP] Re: How to recognise url in a block of text

2006-10-18 Thread Robin Vickery
On 18/10/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Tue, 17 Oct 2006 17:26:42 +0100, Robin Vickery wrote: On 17/10/06, Al [EMAIL PROTECTED] wrote: AYSERVE.NET wrote: Please, I need help on how to to recognise url in a block of text being retrieved from a database and present it as

[PHP] How do i extract a function call with arguments from a source file?

2006-10-18 Thread Mathijs van Veluw
Hello there, Is there a way to extract a function call with its arguments? Like i have something like this: =CODE== ?php //Some Comments print_r(ClassName::FunctionName('foo', 'bar', Array(), false)); $fooBar = ClassName::FunctionName('foo', 'bar'); ?

Re: [PHP] Re: How to recognise url in a block of text

2006-10-18 Thread AYSERVE.NET
Hello Robin, I love you man. The solution you gave below just worked perfectly fine. Thanks to all who assisted me on this. I appreciate you all. Regards, Bunmi www.ayserve.net www.budelak.com Robin Vickery wrote: On 17/10/06, Al [EMAIL PROTECTED] wrote: AYSERVE.NET wrote: Please, I need help

[PHP] corrupt image when viewed using PHP

2006-10-18 Thread Angelo Zanetti
HI all, We have written an app in PHP4 that receives images from mobile phones that are taken with the camera, we have found a problem that some of the images are corrupt and we have determined that it is because of Nokia VGA cameras that have sent the image, basically the jpegs are fine but

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Hidayet Dogan
Hi Angelo, I used to have a same problem when I were programming MMS message parser. You can find different solutions at the PHP Manual web site; http://www.php.net/manual/en/function.imagecreatefromjpeg.php (check user comments). I've used one of these solutions but I don't remember

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Hidayet Dogan
Oh and also at: http://www.php.net/manual/en/function.imagecreatefromstring.php check Paul Visco's solution. On Wed, 18 Oct 2006, Hidayet Dogan wrote: Hi Angelo, I used to have a same problem when I were programming MMS message parser. You can find different solutions at the PHP Manual web

[PHP] postback for php

2006-10-18 Thread Ross
Looked on google and not found a satisfactory answer. Doies anyone have a funtion to do this? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: corrupt image when viewed using PHP

2006-10-18 Thread Al
Angelo Zanetti wrote: HI all, We have written an app in PHP4 that receives images from mobile phones that are taken with the camera, we have found a problem that some of the images are corrupt and we have determined that it is because of Nokia VGA cameras that have sent the image, basically

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Google Kreme
On 18 Oct 2006, at 05:44 , Angelo Zanetti wrote: We also found another possible solution being that we use ImageMagick to convert the jpeg to a jpeg, then it will load properly. But now we would have to convert each image that comes in and maybe only 10% of the images come from a Nokia

[PHP] Re: postback for php

2006-10-18 Thread M.Sokolewicz
Ross wrote: Looked on google and not found a satisfactory answer. Doies anyone have a funtion to do this? R. please explain, in details, what it is you're looking for. postback for php - a function to do this doesn't mean squat to most people. Please EXPLAIN. - tul -- PHP General

[PHP] Automatically rounding numbers?

2006-10-18 Thread Tijnema !
Hi How can i disable the automatically rounding of numbers, as i work with large numbers and when i make them small again, it seems that the last digits are gone. example: 12345678901234567890 becomes: 1.2345678901234E+19 = 1234567890123400 Is there a way to disable this?? Thanks in

Re: [PHP] Re: postback for php

2006-10-18 Thread Miles Thompson
At 11:48 AM 10/18/2006, M.Sokolewicz wrote: Ross wrote: Looked on google and not found a satisfactory answer. Doies anyone have a funtion to do this? R. please explain, in details, what it is you're looking for. postback for php - a function to do this doesn't mean squat to most people.

Re: [PHP] Automatically rounding numbers?

2006-10-18 Thread Dave Goodchild
I think you can use the BCMath or GMP libraries for this. -- http://www.web-buddha.co.uk

Re: [PHP] Re: postback for php

2006-10-18 Thread Ed Lazor
Maybe he's talking about the ability to post data to a website, like using PHP to simulate a user submitting a webpage form. If so, check out curl. On Oct 18, 2006, at 8:00 AM, Miles Thompson wrote: At 11:48 AM 10/18/2006, M.Sokolewicz wrote: Ross wrote: Looked on google and not found a

[PHP] Object-Oriented PHP Courses in the UK

2006-10-18 Thread Matthew Vickery
I'm relatively new to object-oriented PHP. I'm loving things like Symfony and Smarty etc but really need a little more guidance! Does anyone know of a good object-oriented PHP course available in the UK? Perhaps something my company could send me on or I could do in the evenings. Many

Re: [PHP] Re: postback for php

2006-10-18 Thread tg-php
With my brief foray into ASP.NET for a previous job, I remember postback being a conglomeration of junk code that it used to POST data back to the server and may have been kinda AJAXy in nature. The forms in ASP.NET tended to do stuff like convert from a static text string to a INPUT field

Re: [PHP] Re: postback for php

2006-10-18 Thread Justin Cook
I believe he is talking about the concept of postback in ASP.Net. PHP does not have anything built in for this. _ From: Ed Lazor [mailto:[EMAIL PROTECTED] To: Miles Thompson [mailto:[EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Wed, 18 Oct 2006 10:27:33 -0500 Subject: Re: [PHP]

Re: [PHP] Automatically rounding numbers?

2006-10-18 Thread Richard Lynch
On Wed, October 18, 2006 9:58 am, Tijnema ! wrote: How can i disable the automatically rounding of numbers, as i work with large numbers and when i make them small again, it seems that the last digits are gone. example: 12345678901234567890 becomes: 1.2345678901234E+19 =

Re: [PHP] postback for php

2006-10-18 Thread Richard Lynch
On Wed, October 18, 2006 6:56 am, Ross wrote: Looked on google and not found a satisfactory answer. Doies anyone have a funtion to do this? You mean like a weblog talkback cross-link thingie? Just go look at the source for any of the dozens of popular PHP blog software. It's not going to be

[PHP] book on PHP security

2006-10-18 Thread Angelo Zanetti
HI, can anyone recommend a really good book on security with PHP? Thanks in advance -- Angelo Zanetti Systems developer *Telephone:* +27 (021) 469

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Richard Lynch
On Wed, October 18, 2006 6:44 am, Angelo Zanetti wrote: We have written an app in PHP4 that receives images from mobile phones that are taken with the camera, we have found a problem that some of the images are corrupt and we have determined that it is because of Nokia VGA cameras that have

Re: [PHP] tod help (copy function)

2006-10-18 Thread Richard Lynch
On Tue, October 17, 2006 11:30 pm, [EMAIL PROTECTED] wrote: results with: dir created error: Warning: copy(music/index.php): failed to open stream: Permission denied in /home/username/public_html/leaders/tod/index.php on line 27 result with: dir created page blank or page copied

Re: [PHP] book on PHP security

2006-10-18 Thread Ed Lazor
essential PHP Security, by Chris Shiflett. Pro PHP Security by Chris Snyder. On Oct 18, 2006, at 9:04 AM, Angelo Zanetti wrote: HI, can anyone recommend a really good book on security with PHP? Thanks in advance -- --

Re: [PHP] Displaying Arabic Texts as Image (Problems: arabic chars is reversed?)

2006-10-18 Thread Richard Lynch
On Tue, October 17, 2006 8:10 pm, Louie Miranda wrote: ?php header(Content-type: text/html; charset=utf-8); ? IE doesn't belive in standard headers, so you'll want a META tag as well, which it DOES trust. I guess Microsoft thinks web Designers know more about character sets than web

Re: [PHP] Re: postback for php

2006-10-18 Thread Ed Lazor
On Oct 18, 2006, at 8:43 AM, Justin Cook wrote: I believe he is talking about the concept of postback in ASP.Net. PHP does not have anything built in for this. _ Is that where the same script displays a form and processes the data when the form is submitted? -- PHP General

Re: [PHP] php_admin_value, virtual hosts, upload_tmp_dir

2006-10-18 Thread Richard Lynch
On Tue, October 17, 2006 8:57 pm, Michael Hogsett wrote: Do you think there's any chance that it would be related to some other setting within the php.ini file? The badly-named and oft-misunderstood safe_mode is my GoTo for Blame Analysis on stuff like this... :-) This is not Science, but

Re: [PHP] Re: postback for php

2006-10-18 Thread Fred Moses
Miles Thompson wrote: At 11:48 AM 10/18/2006, M.Sokolewicz wrote: Ross wrote: Looked on google and not found a satisfactory answer. Doies anyone have a funtion to do this? R. please explain, in details, what it is you're looking for. postback for php - a function to do this doesn't mean

Re: [PHP] book on PHP security

2006-10-18 Thread Rory Browne
Essencial PHP Security, Published by O'Reilly, and written by Chris Shiflett I've never read it, but Book, PHP Security, and Chris Shiflett in the same sentence means you're in for a treat. Any serious discussion on this list security related generally involves a request for input from Chris

Re: [PHP] Re: How to recognise url in a block of text

2006-10-18 Thread Richard Lynch
On Wed, October 18, 2006 3:05 am, Ivo F.A.C. Fokkema wrote:

Re: [PHP] book on PHP security

2006-10-18 Thread Richard Lynch
On Wed, October 18, 2006 11:04 am, Angelo Zanetti wrote: can anyone recommend a really good book on security with PHP? http://phpsec.org is also a must-read. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some starving artist.

Re: [PHP] php_admin_value, virtual hosts, upload_tmp_dir

2006-10-18 Thread Michael Hogsett
Richard Lynch wrote: The badly-named and oft-misunderstood safe_mode is my GoTo for Blame Analysis on stuff like this... :-) I checked. It's off. This is not Science, but Voodoo Debugging... No doubt. Thanks for the info. - Mike smime.p7s Description: S/MIME Cryptographic Signature

[PHP] PHP 5.16 and Sihuson

2006-10-18 Thread Google Kreme
php -v PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies This configuration cause no end of problems, and I finally compiled php without the Suhosin-Patch. Everything is

Re: [PHP] random string

2006-10-18 Thread eric1235711
You have an array of names and you want to choose a random name. is it? try thinking some thing about arrays, keys numbers, key count, and such Ross wrote: Hi, I want to randomise a string $myrandom = rand(ross, andrea); echo $myrandom; I know this doesn't work but is there

Re: [PHP] Automatically rounding numbers?

2006-10-18 Thread Jochem Maas
Tijnema ! wrote: Hi How can i disable the automatically rounding of numbers, as i work with large numbers and when i make them small again, it seems that the last digits are gone. example: 12345678901234567890 becomes: 1.2345678901234E+19 = 1234567890123400 Is there a way to

[PHP] Creating thumbnails using Image Functions, then saving to folders

2006-10-18 Thread Matthews, Chris
Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnail and push it to the browser or, as is currently set up, store the data in a database. What I

Re: [PHP] Creating thumbnails using Image Functions, then saving to folders

2006-10-18 Thread Eric Butera
On 10/18/06, Matthews, Chris [EMAIL PROTECTED] wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnail and push it to the browser or, as is

Re: [PHP] Creating thumbnails using Image Functions, then saving to folders

2006-10-18 Thread Børge Holen
On Wednesday 18 October 2006 19:40, Matthews, Chris wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnail and push it to the browser or, as

[PHP] Re: Creating thumbnails using Image Functions, then saving to folders

2006-10-18 Thread Al
Matthews, Chris wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnail and push it to the browser or, as is currently set up, store the data

Re: [PHP] Re: Creating thumbnails using Image Functions, then saving to folders

2006-10-18 Thread Børge Holen
On Wednesday 18 October 2006 20:55, Al wrote: Matthews, Chris wrote: Good Morning: I am looking to create a thumbnail from an uploaded image, and then save it to a directory. I don't have any problem with the image functions, and can successfully create the thumbnail and push it to

Re: [PHP] Interchange.

2006-10-18 Thread Rory Browne
Where are you from, and (more importantly) where do you want to go? On 10/15/06, João Cândido de Souza Neto [EMAIL PROTECTED] wrote: I want to go to a foreign country to work for about one year to increase my experience.

[PHP] Mapped Drive issue

2006-10-18 Thread Rob Kritzer
I have a script the use to work: $date = date(mdy); mkdir(Y:/Daily_DisplayAds/todays_ads-$date); But now I get this error: Warning: mkdir() [function.mkdir]: No such file or directory in C:\wamp\www\scripts\ad_finder\display_class.php on line 10 If I change Y to C it works, can anyone please

Re: [PHP] Mapped Drive issue

2006-10-18 Thread Stut
Rob Kritzer wrote: I have a script the use to work: $date = date(mdy); mkdir(Y:/Daily_DisplayAds/todays_ads-$date); But now I get this error: Warning: mkdir() [function.mkdir]: No such file or directory in C:\wamp\www\scripts\ad_finder\display_class.php on line 10 If I change Y to C it

Re: [PHP] Interchange.

2006-10-18 Thread Jo�o C�ndido de Souza Neto
I´m from Brasil. I´m not sure where i want to go, but i think USA will be the right place to work with php. Where do you advise me? Rory Browne [EMAIL PROTECTED] escreveu na mensagem news:[EMAIL PROTECTED] Where are you from, and (more importantly) where do you want to go? On 10/15/06, João

Re: [PHP] Re: How to recognise url in a block of text

2006-10-18 Thread AYSERVE.NET
Hello Guys, I thought I was home and dry when the program worked fine on my windows but when I ran from my Linus server, I keep getting a url like: http://www.website.com/pdf/ED1.pdf%A0 instead of http://www.website.com/pdf/ED1.pdf. As a result, the link is not working. Please help.

Re: [PHP] corrupt image when viewed using PHP

2006-10-18 Thread Google Kreme
On 18 Oct 2006, at 09:56 , Richard Lynch wrote: Kind of a hack, but think of it as an import filter and maybe even program it generically enough that you *CAN* do more import filters and then you open up a world of possbilities for other image formats to be supported some day in the future.

[PHP] Sessions /cookies issue

2006-10-18 Thread Dave Goodchild
Hi all. I am building a web app which uses sessions to retain user data between pages and finally enter that data into mysql - I have noticed that out of 100 entries in the database, 10% are blank. I tested this by setting a cookie on the home page and when the user navigated to the form pages,

[PHP] What is the smallest, fastest web server to run PHP and SSL (on a soekris box)

2006-10-18 Thread Daevid Vincent
I need to run a httpd server that can serve up PHP, SQL Lite, and SSL on a little Soekris box (ie. a 486 with 32MB RAM and 32MB CF storage). Can anyone recommend something? How small can Apache get? AppWeb? http://www.mbedthis.com http://www.appwebserver.org/ What about lighthttpd?

Re: [PHP] What is the smallest, fastest web server to run PHP and SSL (on a soekris box)

2006-10-18 Thread Jon Anderson
I've been through the research on that one a couple years ago, and I found that lighttpd/php-fcgi is the best combination... I've run lighttpd/php (FastCGI) on many soekris boxes. PHP runs beautifully. I've even done it in less than 8 megs of CF with uClibc/busybox. I've used the Soekris

Re: [PHP] PHP 5.16 and Sihuson

2006-10-18 Thread Chris
Google Kreme wrote: php -v PHP 5.1.6 with Suhosin-Patch 0.9.5 (cli) (built: Oct 18 2006 08:36:59) Copyright (c) 1997-2006 The PHP Group Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies This configuration cause no end of problems, and I finally compiled php without the

[PHP] Re: postback for php

2006-10-18 Thread Manuel Lemos
Hello, on 10/18/2006 01:56 PM Ross said the following: Looked on google and not found a satisfactory answer. Doies anyone have a funtion to do this? Take a look at this forms generation class. It comes with a plug-in for submitting forms via AJAX, thus without page reloading. On the server

[PHP] O.T. web site contractor wanted

2006-10-18 Thread Dave
Hello, I'm looking for a web site contractor to redo my site from scratch. Although i know Html, Css, and enough Php to get me by without looking at the manual to many times, i do not have the time right now to redo the site although the need is great. I am looking for a standards-compliant

Re: [PHP] Sessions /cookies issue

2006-10-18 Thread Chris
Dave Goodchild wrote: Hi all. I am building a web app which uses sessions to retain user data between pages and finally enter that data into mysql - I have noticed that out of 100 entries in the database, 10% are blank. I tested this by setting a cookie on the home page and when the user