php-general Digest 22 Jan 2006 12:45:15 -0000 Issue 3920
Topics (messages 229016 through 229026):
testing
229016 by: Jason Parkils
this is a test
229017 by: Jason Parkils
XMPP Gateways
229018 by: Jason Parkils
Re: [PHP-DB] auto_increment and INSERT INTO
229019 by: tg-php.gryffyndevelopment.com
229021 by: Ron Piggott (PHP)
security of uploaded gif files
229020 by: jonathan
229025 by: Rory Browne
Graphs
229022 by: Weber Sites LTD
229023 by: Ron Eggler (Paykiosks)
229024 by: David Robley
Controling buffer: php/smarty or apache?
229026 by: robert mena
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
php-general@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
--- End Message ---
--- Begin Message ---
this is a test
--- End Message ---
--- Begin Message ---
Can PHP interact with GoogleTalk like this bot built in ASP I think:
- add the following user to your GTalk: [EMAIL PROTECTED]
- send it a msg
--- End Message ---
--- Begin Message ---
Try:
<?php
mysql_query("INSERT INTO table VALUES ('$variable_1', '$variable_2');");
$auto_increment_variable = mysql_insert_id();
?>
-TG
= = = Original message = = =
I have various tables where a column is set to auto_increment in my
table structure. I have been using the following INSERT query format:
INSERT INTO table VALUES ('$auto_increment_variable','$variable_1',
'$variable_2')
and then in applications where I have needed to know the value of the
$auto_increment_variable I have immediately queried the table for
$variable_1 and $variable_2 and used
$reference = mysql_result($result,$i,"reference");
to determine what numeric value was assigned.
Is there a way I may find out what value was assigned to the
$auto_increment_variable when the INSERT INTO query is issued?
Thanks.
Ron
___________________________________________________________
Sent by ePrompter, the premier email notification software.
Free download at http://www.ePrompter.com.
--- End Message ---
--- Begin Message ---
That is the function I was looking for. Thanks. Ron
On Sat, 2006-01-21 at 23:47 -0500, [EMAIL PROTECTED] wrote:
> Try:
>
> <?php
> mysql_query("INSERT INTO table VALUES ('$variable_1', '$variable_2');");
> $auto_increment_variable = mysql_insert_id();
> ?>
>
>
> -TG
>
>
>
>
> = = = Original message = = =
>
> I have various tables where a column is set to auto_increment in my
> table structure. I have been using the following INSERT query format:
>
> INSERT INTO table VALUES ('$auto_increment_variable','$variable_1',
> '$variable_2')
>
> and then in applications where I have needed to know the value of the
> $auto_increment_variable I have immediately queried the table for
> $variable_1 and $variable_2 and used
>
> $reference = mysql_result($result,$i,"reference");
>
> to determine what numeric value was assigned.
>
> Is there a way I may find out what value was assigned to the
> $auto_increment_variable when the INSERT INTO query is issued?
>
> Thanks.
>
> Ron
>
>
> ___________________________________________________________
> Sent by ePrompter, the premier email notification software.
> Free download at http://www.ePrompter.com.
>
--- End Message ---
--- Begin Message ---
what is the best way to prevent malicious code from being uploaded
via a .gif file? A friend showed me how php could be embedded within
the .gif file. Does this problem also exist for .jpeg's?
thanks,
jon
--- End Message ---
--- Begin Message ---
I'd be a bit skeptical about the possibly of embedding PHP code inside
a GIF file. Could you outline how he performed the task?
On 1/22/06, jonathan <[EMAIL PROTECTED]> wrote:
> what is the best way to prevent malicious code from being uploaded
> via a .gif file? A friend showed me how php could be embedded within
> the .gif file. Does this problem also exist for .jpeg's?
>
> thanks,
>
> jon
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
What is the best (Free) way to create good looking graphs with PHP?
Sincerely
berber
Visit the Weber Sites Today,
To see where PHP might take you tomorrow.
PHP code examples : http://www.weberdev.com
PHP & MySQL Forums : http://www.weberforums.com
Learn PHP & MySQL Playing Trivia : http://www.webertrivia.com
PHP Web Logs : http://www.weberblogs.com
Web Development Index http://www.weberindex.com
Web Templates http://www.webertemplates.com
Search for PHP Code from your browser http://toolbar.weberdev.com
Free Uptime Monitor : http://uptime.weberdev.com
PHP content for your site : http://content.weber-sites.com
--- End Message ---
--- Begin Message ---
What kind of do u wanna have?
Am Sonntag, den 22.01.2006, 10:46 +0200 schrieb Weber Sites LTD:
> What is the best (Free) way to create good looking graphs with PHP?
>
> Sincerely
>
> berber
>
> Visit the Weber Sites Today,
> To see where PHP might take you tomorrow.
> PHP code examples : http://www.weberdev.com
> PHP & MySQL Forums : http://www.weberforums.com
> Learn PHP & MySQL Playing Trivia : http://www.webertrivia.com
> PHP Web Logs : http://www.weberblogs.com
> Web Development Index http://www.weberindex.com
> Web Templates http://www.webertemplates.com
> Search for PHP Code from your browser http://toolbar.weberdev.com
> Free Uptime Monitor : http://uptime.weberdev.com
> PHP content for your site : http://content.weber-sites.com
>
--- End Message ---
--- Begin Message ---
Weber Sites LTD wrote:
> What is the best (Free) way to create good looking graphs with PHP?
>
> Sincerely
>
> berber
I haven't used it, but when this question comes up, jpgraph is the most
common answer.
Cheers
--
David Robley
I hit the CTRL key but I'm still not in control!
--- End Message ---
--- Begin Message ---
Hi,
I am facing a strange problem. My site, even tough designed to appear
quickly at user's browser, appears at "once". If I test the static HTML
version it starts to appear as downloaded If I test the php generated
version the page seems render as a whole.
I am using smarty as a template and it seems to be related to a buffer
somewhere: php/smarty or apache.
I've used microtime and from the begin of the php script until after the
smarty->display it takes from 0.05s (min) to 0.32s (max)
Any tips of how can I figure out what is "slowing" down my site?
tks
--- End Message ---