Re: [PHP] Object-Oriented PHP Courses in the UK

2006-10-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-18 16:28:04 +0100: > 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

Re: [PHP] PHP 5.16 and Sihuson

2006-10-18 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-18 10:57:52 -0600: > 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

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 navigate

[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

[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 s

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 Suhosin-Patch

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 net48

[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? http://ww

[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, te

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.

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. Regards,

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/0

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"

[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

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.

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 a

[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] 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

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 c

[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 wa

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 wa

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 wo

[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 bac

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

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. http://cdbaby.com/browse/fro

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: '<(?:(?:https?)://(?:(?:(?:(?:(?:(?:[a-zA-Z0-9][-a-zA-Z0-9]*)?[a-zA-Z0-9])[.])*(?:[a-zA-Z][-a-zA-Z0-9]*[a-zA-Z0-9]|[a-zA-Z])[.]?)|(?:[0-9]+[.][0-9]+[.][0-9]+[.][0-9]+)))(?::(?:(?:[0-9]*)))?(?:/(?:(?:(?:(?:(?:(?:[a-zA-Z0-9\\-_.!~*\'():@&=+$

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 Chr

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 s

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 V

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 Mailing

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: > 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 Programmer

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] 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//public_html/leaders/tod/index.php on line > 27 > result with: > dir created > > page blank > or > page copied su

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 ha

[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 1

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 b

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 = 12345678901

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

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 wh

[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 thanks,

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

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 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. Pl

[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 advance

[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 Maili

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 VGA

[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 t

[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

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

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 exactly

[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] 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 he

[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== =CODE== Now i want to extract the ClassName::FunctionName() part, inculding its arguments. The first two argument

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 p

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 apprec

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