php-general Digest 30 Apr 2007 07:13:42 -0000 Issue 4764

2007-04-30 Thread php-general-digest-help
php-general Digest 30 Apr 2007 07:13:42 - Issue 4764 Topics (messages 254113 through 254136): single signon Solution php and .net 254113 by: Murtaza Chang 254114 by: Buesching, Logan J Re: ${} 254115 by: Daniel Bächtle uploads 254116 by: jekillen

Re: [PHP] PHP MySQL - Field Title

2007-04-30 Thread Auto-Deppe, C. Haensel
nevermind, I made it :o) RTFM sometimes works even for me :O)) Have a great day :o) Chris - Original Message - From: Christian Haensel [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, April 30, 2007 7:47 AM Subject: [PHP] PHP MySQL - Field Title Good Morning guys and

Re: [PHP] PHP MySQL - Field Title

2007-04-30 Thread Oliver Block
Am Montag, 30. April 2007 07:47 schrieb Christian Haensel: but now I have the problem with the field names and all... can someone point me into the right direction? http://www.php.net/manual/de/ref.mysql.php php-db at lists.php.net If you need to use an assoc array, use the following SQL

Re: [PHP] PHP MySQL - Field Title

2007-04-30 Thread Christian Haensel
Hi Oliver, below is what I used. ? mysql_con(); $insert_q = INSERT INTO DB1 VALUES(; $query = SELECT * FROM vorlauf WHERE satz_nr = '$fzg_id' LIMIT 1; $doit = mysql_query($query); $data = mysql_fetch_assoc($doit); for($i=0; $i=126; $i++) {

Re: [PHP] phpbb / sessionid nightmare

2007-04-30 Thread Stut
Brad Sumrall wrote: Does anyone know what this _utma _utmb _utmc _utmz stuff is? Obviously it is not a php standard. Obviously it is what is actually controlling my sessions? These come from Google services (analytics, adsense, etc), they have nothing to do with your sessions. -Stut -- PHP

Re: [PHP] Re: Object-oriented $_REQUEST?

2007-04-30 Thread Philip Thompson
On Apr 28, 2007, at 5:13 PM, Robert Cummings wrote: On Sat, 2007-04-28 at 23:41 +0200, keviN wrote: ?php class get I'm sorry but your code indicates an extreme lack of experience using PHP in the real world. Your class should be named such that it will never collide with someone else's

RE: [PHP] Run a script apart from request

2007-04-30 Thread Buesching, Logan J
-Original Message- From: Brad Fuller [mailto:[EMAIL PROTECTED] Sent: Monday, April 30, 2007 10:55 AM To: php-general@lists.php.net Subject: [PHP] Run a script apart from request Hi all, I am developing a program that does some intensive data processing, and is triggered from a

[PHP] set_time_limit failing...

2007-04-30 Thread Ashley M. Kirchner
The manual says that set_time_limit has no effect when PHP is running in safe_mode. Then I have a problem. I have the global safe_mode turned ON, however I have 'php_admin_value safe_mode 0' set in a vhost's config. When I load up phpinfo(), it correctly tells me that the Master

Re: [PHP] Run a script apart from request

2007-04-30 Thread Eric Butera
On 4/30/07, Brad Fuller [EMAIL PROTECTED] wrote: Hi all, I am developing a program that does some intensive data processing, and is triggered from a page hit and/or a SOAP request. The processing takes on average 30 seconds to 1 minute, which is OK for a web page (I can use set_time_limit(0)

[PHP] About resource of popen

2007-04-30 Thread Fernando chucre
Hello all, I make a script for read and interprete the stdout of cmd `ip monitor`. And I use signal_handler, the script is like this: ? declare(ticks = 1); pcntl_signal(SIGHUP,sig_handler,false); $fh = popen('ip monitor','r'); while (!feof($fh)) { $line = fgets($fh); analize($line); }

RE: [PHP] small picture into thumbnail

2007-04-30 Thread WeberSites LTD
http://www.php-code-search.com/ Type thumb without the berber -Original Message- From: Alain Roger [mailto:[EMAIL PROTECTED] Sent: Sunday, April 29, 2007 6:16 PM To: PHP General List Subject: [PHP] small picture into thumbnail Hi, I would like to know how i can display small sized

[PHP] postgreSQL and bytea / image

2007-04-30 Thread Alain Roger
Hi, In my PHP page i upload pictures into database. For that i wrote a simple function which control which user is logged and will upload his picture. here is the function : CREATE OR REPLACE FUNCTION sp_a_006(login character varying, photo bytea) RETURNS boolean AS $BODY$ DECLARE

RE: [PHP] small picture into thumbnail

2007-04-30 Thread Robert Cummings
On Mon, 2007-04-30 at 20:17 +0200, WeberSites LTD wrote: http://www.php-code-search.com/ Type thumb without the If you're going to advertise your site, at least post a URL with the search query embedded you insensitive clod! Cheers, Rob. --

[PHP] PHP + COM (IE Button COM Server)

2007-04-30 Thread Iqbal Naved
Hi, Anybody has implemented a IE button COM server in PHP ? I have found a python implementation for this in pywin32 package. My objective is to add a button in ie which will on click save the url in the address bar. I am attatching the iebutton.py with this mail. Also, this is a link in msdn

[PHP] What does mean?

2007-04-30 Thread Nick Gorbikoff
Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. END some code END What exactly does it mean. BTW: PHP .net search breaks if you search for Regards,

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Nick Gorbikoff [EMAIL PROTECTED] wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. END some code END What exactly does it mean. BTW: PHP .net search breaks if you

Re: [PHP] What does mean?

2007-04-30 Thread Daniel Brown
It means to read until it reaches the matching expression --- in this case, END. On 4/30/07, Nick Gorbikoff [EMAIL PROTECTED] wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. END

Re: [PHP] What does mean?

2007-04-30 Thread Micky Hulse
Hi Daniel, Daniel Brown wrote: BTW: PHP .net search breaks if you search for Try this: www.php.net/ And then scroll down to heredoc section. Heredoc comes in handy from time-to-time. Cheers, M -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?:

Re: [PHP] What does mean?

2007-04-30 Thread Daniel Brown
Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P On 4/30/07, Micky Hulse [EMAIL PROTECTED] wrote: Hi Daniel, Daniel Brown wrote: BTW: PHP .net search breaks if you search for Try this: www.php.net/ And then scroll down to

Re: [PHP] What does mean?

2007-04-30 Thread Micky Hulse
Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?:

Re: [PHP] What does mean?

2007-04-30 Thread Daniel Brown
No need to apologize at all, Micky! On 4/30/07, Micky Hulse [EMAIL PROTECTED] wrote: Daniel Brown wrote: Actually, that should be directed at the OP who said that. I was able to bring up the heredoc, too. ;-P Ooops! Sorry Daniel, I meant to reply to Nick... My mistake. :( --

[PHP] newbie needs help

2007-04-30 Thread Ben Clapp
I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date(m, mktime()), but i want to set up a date range for it to show up. Ex. 4-13 to 5-13 each year. How can I do that? Any help would be great. Thank you Ben -- PHP

Re: [PHP] newbie needs help

2007-04-30 Thread Daniel Brown
One way would be to do this: ? if(date(md) 413 date(md) 513) { // Display image } ? On 4/30/07, Ben Clapp [EMAIL PROTECTED] wrote: I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date(m, mktime()), but i

Re: [PHP] newbie needs help

2007-04-30 Thread Richard Davey
Ben Clapp wrote: I am new to PHP programming and need some help. I have an image that i have show up each May for the month with $mymonth = date(m, mktime()), but i want to set up a date range for it to show up. Ex. 4-13 to 5-13 each year. How can I do that? Any help would be great. There

Re: [PHP] newbie needs help

2007-04-30 Thread Daniel Brown
Ben, make sure whatever method you use, you use the operator combinations = and = as Richard just showed you. I had forgotten to do that, which would mean (in my example) that the 13th of April and 13th of May of each year would not be counted, only 14 April through 12 May of any given year.

Re: [PHP] newbie needs help

2007-04-30 Thread Ben Clapp
Thank you both, I will try the code and go from there. Thank you again Daniel Brown wrote: Ben, make sure whatever method you use, you use the operator combinations = and = as Richard just showed you. I had forgotten to do that, which would mean (in my example) that the 13th of April

Re: [PHP] newbie needs help

2007-04-30 Thread Richard Davey
Ben Clapp wrote: Thank you again for the help, it does work now but with an issue, here is the code that i have for it right now: You should always reply to the php mailing list, so other people can benefit from the answers we give. With this it works, but i am sure that when mymonth == 5

Re: [PHP] newbie needs help

2007-04-30 Thread Daniel Brown
Good catch on the non-list reply, Richard. I didn't even notice that. On 4/30/07, Richard Davey [EMAIL PROTECTED] wrote: Ben Clapp wrote: Thank you again for the help, it does work now but with an issue, here is the code that i have for it right now: You should always reply to the php

Re: [PHP] What does mean?

2007-04-30 Thread Philip Thompson
On Apr 30, 2007, at 2:17 PM, Greg Donald wrote: On 4/30/07, Nick Gorbikoff [EMAIL PROTECTED] wrote: Hello, folks. I rember I've since this somewhere in perl and it has somethign to do with blocks of code. I came across the same thing in some PHP code. END some code END What

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Philip Thompson [EMAIL PROTECTED] wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ If you're not using it

RE: [PHP] What does mean?

2007-04-30 Thread Daevid Vincent
echo BROWSER: . $_SERVER['HTTP_USER_AGENT'] . \n; I've always had problems with heredoc when I try using arrays like that. I will either pull them into a straight $foo, or use the ${} thing. echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Daevid Vincent [EMAIL PROTECTED] wrote: echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and frowned upon? ?php error_reporting( E_ALL ); echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Why would cleaner, perfectly error free

RE: [PHP] What does mean?

2007-04-30 Thread Brian Seymour
Heredoc is truly a great thing. You'll learn to love heredoc whenever you have tons of stuff you need to print instead of escaping php. A great example is output that comes from classes, where you can't break the class into multiple code blocks. Just don't forget that heredoc end part has to be on

Re: [PHP] What does mean?

2007-04-30 Thread Paul Novitski
At 4/30/2007 03:38 PM, Philip Thompson wrote: Ok, let's gather some stats to see how many people actually use the heredoc syntax. I created this quick little form to gather the data. It's takes 2 seconds (literally) - vote here: http://thril.uark.edu/heredoc/ I'm interested in knowing if this

Re: [PHP] What does mean?

2007-04-30 Thread Richard Davey
Greg Donald wrote: On 4/30/07, Daevid Vincent [EMAIL PROTECTED] wrote: echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and frowned upon? ?php error_reporting( E_ALL ); echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Why would cleaner,

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Richard Davey [EMAIL PROTECTED] wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from clean, especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO programming in. If you like OO, move on to ruby or python,

Re: [PHP] What does mean?

2007-04-30 Thread Greg Donald
On 4/30/07, Greg Donald [EMAIL PROTECTED] wrote: All parts of a heredoc statement do not have to be right justified, only the closing line. I meant my other right, the one on my left. Sorry. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] What does mean?

2007-04-30 Thread Robert Cummings
On Mon, 2007-04-30 at 19:42 -0500, Greg Donald wrote: On 4/30/07, Richard Davey [EMAIL PROTECTED] wrote: I'm not dissing heredoc syntax, it has its uses (now and again) but it's far from clean, especially when embedded deep in classes Classes? PHP is the absolute worst language to do OO

Re: [PHP] What does mean?

2007-04-30 Thread Micky Hulse
Greg Donald wrote: Try Rubyonrails, it's the best cure for the MVC itch. Django framework is pretty nice too. :) -- Wishlists: http://snipurl.com/1gqpj Switch: http://browsehappy.com/ BCC?: http://snipurl.com/w6f8 My: http://del.icio.us/mhulse -- PHP General Mailing List

RE: [PHP] sloppy use of constants as strings. WAS: What does mean?

2007-04-30 Thread Daevid Vincent
echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Isn't that form (sans quote marks) deprecated and frowned upon? ?php error_reporting( E_ALL ); echo EOF BROWSER: $_SERVER[HTTP_USER_AGENT] EOF; Why would cleaner, perfectly error free code be frowned upon?

Re: [PHP] sloppy use of constants as strings. WAS: What does mean?

2007-04-30 Thread Chris
Personally, I *hate* that it does this work, and would love to see a little stricter parsing done and throw a fatal error if you try to use an undefined constant. You can do this yourself. See http://php.net/set_error_handler -- Postgresql php tutorials http://www.designmagick.com/ -- PHP