php-general Digest 19 Aug 2007 11:43:44 -0000 Issue 4970

2007-08-19 Thread php-general-digest-help
php-general Digest 19 Aug 2007 11:43:44 - Issue 4970 Topics (messages 261005 through 261013): getting from one table listing from another 261005 by: Nate 261006 by: Stephen Johnson 261007 by: Jay Blanchard Delete row in a lookup table 261008 by: nitrox .

php-general Digest 20 Aug 2007 02:01:16 -0000 Issue 4971

2007-08-19 Thread php-general-digest-help
php-general Digest 20 Aug 2007 02:01:16 - Issue 4971 Topics (messages 261014 through 261028): Re: Cookies and sent headers 261014 by: Nisse Engström Re: Redirection with header (was Re: [PHP] Cookies and sent headers) 261015 by: tedd 261025 by: Wouter van Vliet /

Re: [PHP] Cookies and sent headers

2007-08-19 Thread Otto Wyss
M. Sokolewicz wrote: On a sidenote, 99% of the world never calls ob_flush (or any such function) since PHP flushes the buffer automatically at the end of its execution. I'll keep the ob_end_flush just for showing what's going on, but thanks for the hint. The reason why setting cookies for

[PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-19 Thread Otto Wyss
M. Sokolewicz wrote: emits). Now, I'm not going to go into how redirecting that way won't work (or at least shouldn't), but a hint would be to do it properly using header('Location: [...]') instead. I'm aware that using Javascript within a PHP code block doesn't seems logical yet I haven't

RE: [PHP] Re: www.soongy.com

2007-08-19 Thread Gevorg Harutyunyan
Hi, Sorry for late response. The main idea is in sending text messages using email, SMS, our messaging service. Also you can hold some web notes there. I agree it is not good for now. This is just start of this project. I am trying to do one step to WEB2 world. You can look

Re: [PHP] Cookies and sent headers

2007-08-19 Thread Nisse Engström
On Sat, 18 Aug 2007 17:03:35 +0200, M. Sokolewicz wrote: The reason why setting cookies for you doesn't work is because of the way a HTTP response is structured. It consists of 2 parts: header and body separated by 2 new lines (\n\n). It is _required_ that _all_ headers come _before_ the

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-19 Thread tedd
At 8:52 AM +0200 8/19/07, Otto Wyss wrote: In my case I could easilly do without redirection but just exit and fall back on the calling page. Yet I want to remove the login page from the browser history. Does the header function have the same effect? O. Wyss: Instead of messing with the

RE: [PHP] getting from one table listing from another

2007-08-19 Thread tedd
At 6:12 PM -0500 8/18/07, Jay Blanchard wrote: [snip] I know this is kinda crazy but I need it :P I have one table that lists name's and I have another table that has the name's and points I want to know how to list the name's of the first table by the points of the second table [/snip] Not

Re: [PHP] getting from one table listing from another

2007-08-19 Thread Stut
tedd wrote: At 6:12 PM -0500 8/18/07, Jay Blanchard wrote: [snip] I know this is kinda crazy but I need it :P I have one table that lists name's and I have another table that has the name's and points I want to know how to list the name's of the first table by the points of the second table

RE: [PHP] getting from one table listing from another

2007-08-19 Thread Jay Blanchard
[snip] At 6:12 PM -0500 8/18/07, Jay Blanchard wrote: [snip] I know this is kinda crazy but I need it :P I have one table that lists name's and I have another table that has the name's and points I want to know how to list the name's of the first table by the points of the second table [/snip]

Re: [PHP] getting from one table listing from another

2007-08-19 Thread Larry Garfield
On Sunday 19 August 2007, tedd wrote: Not crazy, pretty standard from a database point of view; SELECT a.name, b.points FROM table a LEFT OUTER JOIN table b ON(a.name = b.name) This only works if the name in table a matches a name in table b. Then why use a JOIN? It's my understanding

[PHP] Render fonts

2007-08-19 Thread Emil Edeholt
Hi I would like to render some fonts into images, for captions on a site. What tools should I use to get the best looking render? Do you guys use the built-in tools PHP has, or are there third party libraries that does a better job? Thanks! Kind regards Emil -- PHP General Mailing List

[PHP] Re: Render fonts

2007-08-19 Thread Al
Take a look at the PHP Imagick library API for Imagemagick. Imagemagick will create as good quality fonts as you like. Here is an example of one I've done in a test file. http://www.ridersite.org/imagemagick/Imagick.php Emil Edeholt wrote: Hi I would like to render some fonts into images,

Re: [PHP] getting from one table listing from another

2007-08-19 Thread tedd
At 12:56 PM -0500 8/19/07, Larry Garfield wrote: On Sunday 19 August 2007, tedd wrote: Wouldn't this be simpler? SELECT a.name, b.points FROM table_name a, table_name_points b WHERE a.name = b.name There are various kinds of JOINs. The most common you'll actually use are INNER JOIN

RE: [PHP] getting from one table listing from another

2007-08-19 Thread Jay Blanchard
[snip] However, the LEFT and RIGHT will take me a while to figure out. [/snip] FROM table a LEFT OUTER JOIN table b ON(a.column = b.column) Just follow the order tedd, a is on the left and b is on the right LEFT OUTER - a - b (what may be in a might not be in b) a - b - RIGHT OUTER (what may be

[PHP] Re: Render fonts

2007-08-19 Thread zerof
I would like to render some fonts into images, for captions on a site. What tools should I use to get the best looking render? Do you guys use the built-in tools PHP has, or are there third party libraries that does a better job? ... http://www.educar.pro.br/en/a/gdlib/ -- zerof

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-19 Thread Wouter van Vliet / Interpotential
What you're proposing, is to actually display some content on another page then were the content is originally intended? I'm sorry, but I would consider that 'bad practice'. To me, it makes perfect sense that you don't want to leave the user on the page where login was originally handled. For

Re: [PHP] iterating and changing value of an array using foreach and references - PHP 5.2.3

2007-08-19 Thread Sean Pringle
On 8/18/07, Yashesh Bhatia [EMAIL PROTECTED] wrote: Hi, Here's an interesting observation i noticed while using foreach to iterate on arrays using references for it's values. -

[PHP] Re: Render fonts

2007-08-19 Thread Hamza Saglam
Hi Emil, Just an alternative solution you may want to consider.. Rather than converting your captions/headings to images, you can also use the sIFR Image replacement technique. Quote from the the author's description: sIFR is meant to replace short passages of plain browser

Re: [PHP] Redirection with header (was Re: [PHP] Cookies and sent headers)

2007-08-19 Thread tedd
At 10:40 PM +0200 8/19/07, Wouter van Vliet / Interpotential wrote: What you're proposing, is to actually display some content on another page then were the content is originally intended? I'm sorry, but I would consider that 'bad practice'. To me, it makes perfect sense that you don't want to

[PHP] is this a bug?

2007-08-19 Thread Augusto Morais
I dont know what is happening... Can somebody clarify the situation for me? here is the situation: i have 3 files: class.php foo.php bar.php // - class.php class globalactions { function include_file($module) { if ($module) { return

[PHP] variables

2007-08-19 Thread Augusto Morais
Hi, I want create a variable based in another variable. Example: $foo (a simple variable); $myvar_foo Does it possible? Thanks Augusto Morais -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] This is a bug?

2007-08-19 Thread Augusto Morais
I dont know what is happening... Can somebody clarify the situation for me? here is the situation: i have 3 files: class.php foo.php bar.php // - class.php class globalactions { function include_file($module) { if ($module) { return

Re: [PHP] variables

2007-08-19 Thread Micky Hulse
Augusto Morais wrote: I want create a variable based in another variable. Example: Maybe this will give you some ideas?: http://us3.php.net/manual/en/language.variables.variable.php Good luck! Cheers, Micky -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?: