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
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
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
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++) {
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
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
-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
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
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)
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);
}
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
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
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.
--
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
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,
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
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
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?:
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
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?:
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. :(
--
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
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
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
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.
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
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
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
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
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
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
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
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
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
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,
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,
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
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
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
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?
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
41 matches
Mail list logo