Re: [PHP] Displaying user data and picture

2009-08-06 Thread kranthi
not a good place to discuss the merits and demerits of binary blobs. is it ? now coming back to the question. Firebug firefox addon, and http live headers firefox addon will be of help to you in this case. You have tag(or something similar) i suppose... try opening that src link in a new browse

Re: [PHP] Radio buttons problem

2009-08-06 Thread leledumbo
> you will have to manually maintain the number in the bracket. but you > can try using a template engine like smarty, and use a for loop to > take care of the numbers in the brackets Well.. the entries are inserted / deleted dynamically using JavaScript (to avoid unnecessary refresh). Why can't

Re: [PHP] Radio buttons problem

2009-08-06 Thread kranthi
you will have to manually maintain the number in the bracket. but you can try using a template engine like smarty, and use a for loop to take care of the numbers in the brackets -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
On Fri, 2009-08-07 at 11:06 +1000, Clancy wrote: > On Thu, 06 Aug 2009 08:28:32 +0100, a...@ashleysheridan.co.uk (Ashley > Sheridan) wrote: > > ... > >> >> Nested tables are the devils playthings! > >> > >> I must be the devil, then. I enjoy playing with them. And if they're > >> done rig

RE: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread HallMarc Websites
ature database 4313 (20090806) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Radio buttons problem

2009-08-06 Thread leledumbo
> This should work: > > > > > Yes, that works. But should I manually maintain the number in the bracket? Is there anyway so that it can be automatically maintained? Because my app allows to delete entries arbitrarily. For instance, consider this layout (+ is insert button, - is delete): ent

[PHP] Re: "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Larry Ullman
Thanks to the OP for the interest in the book and to everyone else for their input. So here's what happened, from the writer/horse's mouth: It was time to write an update to the book because the second edition had been out for 3+ years or so, I think. It wasn't a money-making effort (i.e.,

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Michael A. Peters
Angus Mann wrote: Hi all. I monitor this list and occasionally contribute as an amateur so please forgive a question that might seem terribly obvious to those in the know. I'm confused about all this PHP 6 talk. Until now I thought I was right up there, because I worked with PHP 5.29 and was rea

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Angus Mann
Hi all. I monitor this list and occasionally contribute as an amateur so please forgive a question that might seem terribly obvious to those in the know. I'm confused about all this PHP 6 talk. Until now I thought I was right up there, because I worked with PHP 5.29 and was ready to upgrade to 5.

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Clancy
On Thu, 06 Aug 2009 08:28:32 +0100, a...@ashleysheridan.co.uk (Ashley Sheridan) wrote: ... >> >> Nested tables are the devils playthings! >> >> I must be the devil, then. I enjoy playing with them. And if they're done >> right they >> seem to work on every system I have tried them on. Gr

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Michael A. Peters
Ben Dunlap wrote: I don't have any data blobs in my database - which makes incremental backups easier - I use rsync for files and do a nightly mysql dump. Except for the first of the month, the diff of that nights backup compared to first of month is saved to flat file for rsync. Binary blobs in

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Phpster
On Aug 6, 2009, at 5:02 PM, "Michael A. Peters" wrote: Ralph Deffke wrote: and a blob field in mysql is the right thing, however u have to have a little php scrip, however with a .png extention to get the browser displaying the picture. What is the advantage to storing an image in th

[PHP] Re: Pattern Matching

2009-08-06 Thread Ralph Deffke
this side for shure is for help, lets u play arround with regex http://gskinner.com/RegExr/ ralph ralph_def...@yahoo.de "Floyd Resler" wrote in message news:50fc5ab0-ee8b-4ac2-b982-9262a3977...@adex-intl.com... > I need some assistance in pattern matching. I want allow the admin > user to enter

[PHP] Re: Pattern Matching

2009-08-06 Thread Ben Dunlap
> I need some assistance in pattern matching. I want allow the admin user > to enter a pattern to be matched in my order form editor. When someone > then places an order I want to do a match based on that pattern. Will your admin users know how to use regular expressions? If not, can you reason

Re: [PHP] Pattern Matching

2009-08-06 Thread Martin Scotta
here you have the regexp's = \d{8} AA = \w{6} #A? = [\w\d]* (change the * for + to require at least 1 character) ##-A#A = \d\d-\w\d\w wrote: > I need some assistance in pattern matching. I want allow the admin user to > enter a pattern to be matched in my order form editor. When

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Ben Dunlap
> I don't have any data blobs in my database - which makes incremental > backups easier - I use rsync for files and do a nightly mysql dump. > Except for the first of the month, the diff of that nights backup > compared to first of month is saved to flat file for rsync. Binary blobs > in the databa

[PHP] Pattern Matching

2009-08-06 Thread Floyd Resler
I need some assistance in pattern matching. I want allow the admin user to enter a pattern to be matched in my order form editor. When someone then places an order I want to do a match based on that pattern. Some of the examples I thought for the patterns are: - must be numeric a

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Andrew Ballard
On Thu, Aug 6, 2009 at 5:02 PM, Michael A. Peters wrote: > Ralph Deffke wrote: >> >>  and a blob field in mysql is >> the right thing, however u have to have a little php scrip, however with a >> .png extention to get the browser displaying the picture. > > What is the advantage to storing an image

AW: [PHP] Displaying user data and picture

2009-08-06 Thread Ralph Deffke
I did mean, if u want to store a image in the database it would be a blob field, a blob field is a indifidual file in the database anyway, I mean if i would do that type of design i would store the path to the image file in the database and give the browser the path to it for download. however

Re: [PHP] Trying to create a comment function (RESOLVED)

2009-08-06 Thread Allen McCabe
Asher and Jonathan, Thank you for your input. Having single quotes around what I wanted to comment worked to display a variable name. And Asher, I am constantly scanning the php.net manual, and only after I could not find what I was looking for did I resort to php-general list. I am a novice at p

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Michael A. Peters
Eddie Drapkin wrote: Does no one see the inherent issues in buying a book about a not-feature-complete version of the language? Technically no version of php is feature complete until the next major release. php 5.2.10 has stuff 5.2.5 didn't, 5.3.0 has stuff 5.2.x didn't, etc. But yeah

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Michael A. Peters
Ralph Deffke wrote: and a blob field in mysql is the right thing, however u have to have a little php scrip, however with a .png extention to get the browser displaying the picture. What is the advantage to storing an image in the database opposed to as a flat file? It seems to me it would

Re: [PHP] Trying to create a comment function

2009-08-06 Thread Jonathan Tapicer
> > [code] > > comment("test of $newComment"); > > [/code] > > This rendered a comment that said "test of ". > > So I added a \ before the $ to make it display properly, but I was wondering > if there was a way that the function could work so that it will display > anything you type within the quot

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Martin Scotta
You all are speaking about the same... But there is a good point you all are missing... It has non sense to read a book about php6... but what about to sell a php6 book? Hey! we are up to today! All the php5 book's are outdated. That's probably what editors thought when they decide to edit that bo

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Eddie Drapkin
On Thu, Aug 6, 2009 at 3:22 PM, Ashley Sheridan wrote: > On Thu, 2009-08-06 at 20:16 +0100, Tony Marston wrote: >> Don't be so pedantic. PHP 6 does not exist in a live, production-ready >> version. It is still under development and has not even reached the beta >> stage. Anyone who writes a book w

RE: [PHP] Trying to create a comment function

2009-08-06 Thread Asher Snyder
Allen, Local variables are indeed cleared at the end of a function, see http://www.php.net/manual/en/language.variables.scope.php for more information. Furthermore, there are numerous ways to use variables within a string, the simplest method is the one that you described by enclosing your varia

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 20:16 +0100, Tony Marston wrote: > Don't be so pedantic. PHP 6 does not exist in a live, production-ready > version. It is still under development and has not even reached the beta > stage. Anyone who writes a book which documents the features of PHP 6 is > being very prema

[PHP] Trying to create a comment function

2009-08-06 Thread Allen McCabe
I was trying some new things with php today, and was commenting above each little bit to better see what was working and/or displaying versus what was not. My comment delineator consisted of the following: [code] echo ' this is a comment displayed in html '; [/code] Then I decided to create a c

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Tony Marston
Don't be so pedantic. PHP 6 does not exist in a live, production-ready version. It is still under development and has not even reached the beta stage. Anyone who writes a book which documents the features of PHP 6 is being very premature as those features may change at any moment. The features

Re: [PHP] curl_exec not hit server

2009-08-06 Thread Ted Yu
Forgot to mention that there're other APIs on their server which I can call successfully. I did try turning off the two options below but result was the same. --- On Thu, 8/6/09, Jerry Wilborn wrote: > From: Jerry Wilborn > Subject: Re: [PHP] curl_exec not hit server > To: "Ted Yu" > Cc: ph

Re: [PHP] curl_exec not hit server

2009-08-06 Thread Jerry Wilborn
Can you tell us anything about the cert on the host? Is it self signed, is it expired, etc? A hip-shot: try turning off VERIFYPEER and VERIFYHOST. Jerry Wilborn jerrywilb...@gmail.com On Thu, Aug 6, 2009 at 1:33 PM, Ted Yu wrote: > > Hi, > I use the following code to call third party web serv

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 17:24 +0100, Tony Marston wrote: > PHP 6 does not exist yet, Funny, that's not what the PHP site says: http://snaps.php.net/ Thanks, Ash http://www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: dynamically naming PHP vars on the fly?

2009-08-06 Thread Govinda
Others have mentioned variable variables. While I have used those, I tend to prefer arrays: $var1 = 'apple'; $fruits[$var1] = 'organic'; echo $fruits[$var1]; /Nisse ah, yes, I see that too, now. Thanks for reminding me about arrays. (You must be quite adept at arrays. ) (And to give you

[PHP] curl_exec not hit server

2009-08-06 Thread Ted Yu
Hi, I use the following code to call third party web service: curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_TIMEOUT, 120); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 1); curl_setopt($ch, CURLOPT_SSLVERSION, 3); curl_setopt($ch, CURLOPT_SS

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-06 Thread Nate Benes
Hey guys, Did some digging... looks like the host for http://outsourcingroom.com is http://hosting.ua/. Also, outsourcingroom looks to be owned by http://www.cbsystematics.com. The host for this company website is http://parking.ru. Hopefully this information can be of use to someone a little m

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Martin Scotta
On Thu, Aug 6, 2009 at 1:59 PM, Eddie Drapkin wrote: > On Thu, Aug 6, 2009 at 12:24 PM, Tony > Marston wrote: > > > > "Eddie Drapkin" wrote in message > > news:68de37340908060841x129a9096w6c0907f85614c...@mail.gmail.com... > > > >> > >> Does no one see the inherent issues in buying a book about

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Eddie Drapkin
On Thu, Aug 6, 2009 at 12:24 PM, Tony Marston wrote: > > "Eddie Drapkin" wrote in message > news:68de37340908060841x129a9096w6c0907f85614c...@mail.gmail.com... > >> >> Does no one see the inherent issues in buying a book about a >> not-feature-complete version of the language? > > PHP 6 does not

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Tony Marston
"Eddie Drapkin" wrote in message news:68de37340908060841x129a9096w6c0907f85614c...@mail.gmail.com... > > Does no one see the inherent issues in buying a book about a > not-feature-complete version of the language? PHP 6 does not exist yet, and no hosting companies provide it as an option, so

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Ralph Deffke
because this is to start with the baby figuring out about a family :-) ralph_def...@yahoo.de "Eddie Drapkin" wrote in message news:68de37340908060841x129a9096w6c0907f85614c...@mail.gmail.com... On Thu, Aug 6, 2009 at 11:32 AM, tedd wrote: > At 5:34 PM -0700 8/5/09, sono...@fannullone.us wrote: >

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread tedd
At 11:41 AM -0400 8/6/09, Eddie Drapkin wrote: Does no one see the inherent issues in buying a book about a not-feature-complete version of the language? They are cheaper. Plus, if you're trying to learn the basics, old books have some value. They are not totally worthless. I often reference

Re: [PHP] Need quick got written up yesterday!! OUCH (RESOLVED)

2009-08-06 Thread tedd
At 7:44 PM -0700 8/5/09, Michael A. Peters wrote: Miller, Terion wrote: Shawn you know repeatedly have been nothing but an asshole to me on this list, I have said before I'm not a php programmer, I was a front end designer, need graphics , need a css layout...see meneed backend programming

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Eddie Drapkin
On Thu, Aug 6, 2009 at 11:32 AM, tedd wrote: > At 5:34 PM -0700 8/5/09, sono...@fannullone.us wrote: >> >>        Has anyone read this book by Larry Ullman yet?  If so, what do you >> think about it?  I'm looking for a well-rounded book that covers PHP for >> e-commerce websites and from what littl

Re: [PHP] navigation include not functioning

2009-08-06 Thread tedd
At 10:00 AM -0700 8/5/09, Allen McCabe wrote: -snip- If this sounds like something you are familiar with (former issues and whatnot) please let me know what I'm doing wrong. Try this: http://sperling.com/examples/include-demo/ If you follow what's given there, you'll be further along on incl

Re: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread tedd
At 5:34 PM -0700 8/5/09, sono...@fannullone.us wrote: Has anyone read this book by Larry Ullman yet? If so, what do you think about it? I'm looking for a well-rounded book that covers PHP for e-commerce websites and from what little I've been able to find online, it looks pretty good. Or wo

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Martin Scotta
http://php.net/header take a look at the comments sections, there are a lot of examples of how to send an image to a browser, only think that instead of a file your are using a blob database field On Thu, Aug 6, 2009 at 10:45 AM, Ralph Deffke wrote: > hi there, > > u want help? break down ur ques

Re: [PHP] Displaying user data and picture

2009-08-06 Thread Ralph Deffke
hi there, u want help? break down ur question to the point, none is going to downlod unknown zips searching for the spot. its fun to help, but its for free, so make it easier for us to help u u r lucky that i'm sick at the moment and a bit bored, but anyway i'm not downloading a zip. however, t

Re: [PHP] Warning: OutsourcingRoom.com

2009-08-06 Thread Andrew Ballard
On Thu, Aug 6, 2009 at 8:20 AM, abdulazeez alugo wrote: > >> > > Well, I try not to give out my details to too many people each month, >> > > and this month they were beat to it by a nice fellow in Nigeria who I'm >> > > helping out by letting him put some money into my account. > > Hello Ash, > Co

RE: [PHP] "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Bob McConnell
From: sono...@fannullone.us > Has anyone read this book by Larry Ullman yet? If so, what do you > think about it? I'm looking for a well-rounded book that covers PHP > for e-commerce websites and from what little I've been able to find > online, it looks pretty good. Or would you re

RE: [PHP] Warning: OutsourcingRoom.com

2009-08-06 Thread abdulazeez alugo
> > > Well, I try not to give out my details to too many people each month, > > > and this month they were beat to it by a nice fellow in Nigeria who I'm > > > helping out by letting him put some money into my account. Hello Ash, Could that be termed as "aiding and abetting" that 'nice fellow fr

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 12:05 +0200, Ralph Deffke wrote: > as it comes to this point I can recomment an O'reilly book "High Performance > Web Sites, essential knowledge for frontend engineers" > > if u read that book ur eyes will grow and u will not bother about php > comments, > > ralph > > > "A

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ralph Deffke
as it comes to this point I can recomment an O'reilly book "High Performance Web Sites, essential knowledge for frontend engineers" if u read that book ur eyes will grow and u will not bother about php comments, ralph "Ashley Sheridan" wrote in message news:1249543712.3358.104.ca...@localhost.

Re: [PHP] Re: PHP programming strategy

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 09:24 +1000, Clancy wrote: > On Wed, 5 Aug 2009 09:25:20 -0400, phps...@gmail.com (Bastien Koert) wrote: > > >On Wed, Aug 5, 2009 at 8:02 AM, Ashley Sheridan > >wrote: > >> On Wed, 2009-08-05 at 21:49 +1000, Clancy wrote: > >>> Thank you to all of you who have commented on t

Re: [PHP] Re: "PHP 6 and MySQL 5 for Dynamic Web Sites" Book

2009-08-06 Thread Ashley Sheridan
On Thu, 2009-08-06 at 02:55 +0200, Ralph Deffke wrote: > why do u stick to php 6? > > i would recommend www.scribd.com and have a search on PHP. there are books > on beginners for php5 and articles of the difference to php 6. > > a very usefull site by the way, made me stopping buying books. load

[PHP] Re: dynamically naming PHP vars on the fly?

2009-08-06 Thread Nisse Engström
On Wed, 5 Aug 2009 16:17:26 -0600, Govinda wrote: > I want to do this: > (I am just assuming it won't work; I haven't even tried it yet) > > $var1='apple'; > $Fruit_$var1="organic"; > echo "$Fruit_apple"; // I want this to return "organic" > > Or how are you guys dynamically naming PHP vars on t