php-general Digest 22 Jan 2006 12:45:15 -0000 Issue 3920

2006-01-22 Thread php-general-digest-help
php-general Digest 22 Jan 2006 12:45:15 - 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

php-general Digest 23 Jan 2006 01:24:59 -0000 Issue 3921

2006-01-22 Thread php-general-digest-help
php-general Digest 23 Jan 2006 01:24:59 - Issue 3921 Topics (messages 229027 through 229048): Re: Graphs 229027 by: Michael Crute 229030 by: tedd Re: security of uploaded gif files 229028 by: PHP Superman 229029 by: Mark Krenz 229031 by: tedd

Re: [PHP] Graphs

2006-01-22 Thread Ron Eggler (Paykiosks)
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 :

Re: [PHP] Graphs

2006-01-22 Thread Michael Crute
On 1/22/06, Weber Sites LTD [EMAIL PROTECTED] wrote: What is the best (Free) way to create good looking graphs with PHP? Jpgraph is my favorite. Its got a pretty clean OO API and decent documentation. Plus its PHP5 compatible. -Mike -- Michael E. Crute

Re: [PHP] security of uploaded gif files

2006-01-22 Thread PHP Superman
i think you guys are talking about the using the gd library, it may be possible so when you upload check for any php code or other data On 1/22/06, Rory Browne [EMAIL PROTECTED] wrote: I'd be a bit skeptical about the possibly of embedding PHP code inside a GIF file. Could you outline how he

Re: [PHP] security of uploaded gif files

2006-01-22 Thread Mark Krenz
Perhaps this would be a problem if you wrote a PHP program to reverse stenography on images it receives and execute them. ;-) On Sun, Jan 22, 2006 at 10:58:37AM GMT, Rory Browne [EMAIL PROTECTED] said the following: I'd be a bit skeptical about the possibly of embedding PHP code inside a

Re: [PHP] Graphs

2006-01-22 Thread tedd
What is the best (Free) way to create good looking graphs with PHP? Sincerely berber berber: Best? -- whatever way that you like. If you like any of these, just ask I'll provide code. http://xn--ovg.com Last three. tedd --

Re: [PHP] security of uploaded gif files

2006-01-22 Thread tedd
i think you guys are talking about the using the gd library, it may be possible so when you upload check for any php code or other data On 1/22/06, Rory Browne [EMAIL PROTECTED] wrote: I'd be a bit skeptical about the possibly of embedding PHP code inside a GIF file. Could you outline how he

Re: [PHP] security of uploaded gif files

2006-01-22 Thread Sameer N Ingole
Rory Browne wrote: 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

[PHP] php5 iterate an object

2006-01-22 Thread Henrik Gemal
I have an object that looks like this: Test Object ( [config] = TestConfig Object ( [file:protected] = test.conf [kill:protected] = 1 ) [location:private] = test } I'm trying to write an

[PHP] XML and special characters

2006-01-22 Thread Adam Hubscher
I've been having a tough time with parsing XML files and special characters. I have attempted every applicable engine, last try SAX, to attempt at parsing a (rather large, 17.8mb) xml file. The problem I hit, is when it hits a UTF8 encoded character. I've attempted at decoded the file before

[PHP] cookie question

2006-01-22 Thread tedd
Hi: Please review -- http://xn--ovg.com -- the Set and Get cookie demo (i.e., 1 2). The code is shown. If you go from Set Cookie to Get Cookie, everything is OK. If you cut the url, quit the browser, start the browser again, paste the url and return to the page, everything is OK. The

Re: [PHP] security of uploaded gif files

2006-01-22 Thread PHP Superman
sorry guys if i'm wrong, but ?php header(Content-type: image/png); $im = imagecreate(1, 1) or die(Cannot Initialize new GD image stream); $background_color = imagecolorallocate($im, 252, 255, 255); $text_color = imagecolorallocate($im, 233, 14, 91); imagestring($im, 1000,

Re: [PHP] security of uploaded gif files

2006-01-22 Thread jonathan
this is a little my fault. the example my friend showed me was a retracing of the example he saw in Pro PHP Security (p284). Basically, the short of the example is that a valid gif image could be uploaded with the extension .php and pass a getimagesize because it would have the necessary

Re: [PHP] security of uploaded gif files

2006-01-22 Thread Rory Browne
Or put it in a directory with no PHP or CGI. On 1/22/06, jonathan [EMAIL PROTECTED] wrote: this is a little my fault. the example my friend showed me was a retracing of the example he saw in Pro PHP Security (p284). Basically, the short of the example is that a valid gif image could be

Re: [PHP] XML and special characters

2006-01-22 Thread tedd
I've been having a tough time with parsing XML files and special characters. -snip- Any suggestions as to how I could get around this seemingly impossible road block thats been placed by what seems to be the xml engines :O.. Adam: I believe that these special character will be with us for

[PHP] Question about Thumbnailing, Watermarking, and Modifying images/video/flash dynamicly

2006-01-22 Thread Jon Grimes
I'm currently working on a media based site that serves up user submitted videos/images/flash games/etc. The owner wants an easy way to generate thumbnails for the content so that we don't have to depend on the user to submit one. We would also like to attach a small intro clip to the video

Re: [PHP] XML and special characters

2006-01-22 Thread Adam Hubscher
tedd wrote: I've been having a tough time with parsing XML files and special characters. -snip- Any suggestions as to how I could get around this seemingly impossible road block thats been placed by what seems to be the xml engines :O.. Adam: I believe that these special character will

[PHP] Devenix Live CD PHP4 and PHP5 project needs help

2006-01-22 Thread Pete Savage
Hi, This seemed like the most sensible place to start to ask for help. I'm currently working on Devenix, a project based on the knoppix live cd. It will eventually be a complete php design and test studio on a live cd, carry around a memory stick and save everything onto it, basically enabling

Re: [PHP] PHP not seeing MySQL functions

2006-01-22 Thread PHP Superman
did you uncomment the line that adds the proper php module(mysqli_blahblahblah.dll)? On 1/16/06, Jonathan Duncan [EMAIL PROTECTED] wrote: I just got a new web server with RedHat Enterprise Linux 4 on it. It came with MySQL 4.1.x and PHP 4.3.9 on it. I uninstalled the MySQL 4 and put MySQL 5

[PHP] exec php.exe in windows

2006-01-22 Thread Dave Kennedy
Env: Windows XP PHP 4.3.10 (cgi-fcgi) I am trying to capture the html output of Balance.php to a file: The code loops over month and branch to build up a report in export/Balance.html exec('c:\php\php -q Balance.php export=all branch=branch month=month login=admin password=admin

Re: [PHP] Controling buffer: php/smarty or apache?

2006-01-22 Thread David Tulloh
The browsers use a whole bunch of different ways to figure out how it should render the page and if it should do it on the fly or wait until the page is fully downloaded. Assuming the content you are testing is the same for the static and dynamic pages you should probably start looking for little

Re: [PHP] PHP not seeing MySQL functions

2006-01-22 Thread John Nichel
PHP Superman wrote: did you uncomment the line that adds the proper php module(mysqli_blahblahblah.dll)? How would loading the mysqli modules help the poster with the mysql functions? How would loading Windoze dll's help the poster on a Linux box? On 1/16/06, Jonathan Duncan [EMAIL

[PHP] Re: problem with large arrays in php 4.3.2

2006-01-22 Thread Jesse Guardiani
Jesse Guardiani jesse at wingnet.net writes: Hello, I have an old version of php (4.3.2) that is acting rather strangely. I'm searching two large arrays (approx 22,000 records in each) using array_diff_key() from the PEAR PHP_Compat library: $result = $args[0]; foreach

[PHP] Re: exec php.exe in windows

2006-01-22 Thread Chuck Anderson
Dave Kennedy wrote: Env: Windows XP PHP 4.3.10 (cgi-fcgi) I am trying to capture the html output of Balance.php to a file: The code loops over month and branch to build up a report in export/Balance.html exec('c:\php\php -q Balance.php export=all branch=branch month=month login=admin

[PHP] Upgrading to 4.4.2

2006-01-22 Thread [EMAIL PROTECTED]
Hello I've started work for a client who has their own server running PHP 4.1.1. If I upgrade them to PHP 4.4.2, will there be any issues I'd need to look out for? Is there a general process (or checklist) I should follow when upgrading PHP versions to find where potential the may be potential

[PHP] Can PHP works with telnet?

2006-01-22 Thread HoWang Wang
Hi all, Recently I got a job to write a PHP webpage to display some infomation which have to obtain from telnet. Telnet is the only way to query the software. I have made a quick search on php.net but I can't found amy extension support telnet. Is there any way to do so? Or it is impossible with

Re: [PHP] Upgrading to 4.4.2

2006-01-22 Thread [EMAIL PROTECTED]
Hi Amol, On 1/23/06, Amol Hatwar [EMAIL PROTECTED] wrote: Just make sure a phpinfo() before and after the upgrade match :) That _just_ crossed my mind! This will help in making sure I setup all the settings correctly. Thanks Tim -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Can PHP works with telnet?

2006-01-22 Thread Steve Clay
Sunday, January 22, 2006, 8:56:01 PM, HoWang wrote: software. I have made a quick search on php.net but I can't found amy extension support telnet. Is there any way to do so? Or it is impossible Try http://www.geckotribe.com/php-telnet/ which uses fsockopen [1]. CURL [2] /claims/ telnet

[PHP] Use of Ampersand in php

2006-01-22 Thread Nirmalya Lahiri
Hi everybody, Can any one tell me, what is the use of ampersand '' in php? Is it a pointer operator like 'C' language? Kindly note the example ?php $a=1; $b= $a; $c=$a; echo $b,$c; ? After running this example I got result 1 for both variable $b and $c. Why so? --Nirmalya

Re: [PHP] XML and special characters

2006-01-22 Thread Adam Hubscher
Adam Hubscher wrote: tedd wrote: I've been having a tough time with parsing XML files and special characters. -snip- Any suggestions as to how I could get around this seemingly impossible road block thats been placed by what seems to be the xml engines :O.. Adam: I believe that these

[PHP] Houston PHP Users Group February Meeting Details

2006-01-22 Thread Joao Prado Maia
Hi, I'm sending the February meeting details to this mailing list in hopes of getting through to some Houston-based PHP developer that is not aware of our local Users Group. The group started out in Meetup.com, but recently we built our own website (http://houstonphp.org) to increase the

Re: [PHP] Use of Ampersand in php

2006-01-22 Thread Michael Hulse
On Jan 22, 2006, at 7:04 PM, Nirmalya Lahiri wrote: Can any one tell me, what is the use of ampersand '' in php? This might help: http://us2.php.net/manual/en/language.references.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP SSH2

2006-01-22 Thread Vedanta Barooah
hello all, this is in regard to PECL ssh2 ( http://pecl.php.net/package/ssh2 ) : how to i print the output of the command executed using ssh2_exec? thanks, vedanta

Re: [PHP] Can PHP works with telnet?

2006-01-22 Thread Geoff
In the php manual, in the fsockopen() page, in the user comments, I found this: -- Found this php class to use telnet from here: http://cvs.adfinis.ch/cvs.php/phpStreamcast/telnet.class.php There's no docs and a lot of it's in french though

[PHP] Re: exec php.exe in windows

2006-01-22 Thread Dave Kennedy
Chuck I tred what you suggested - but it did not help Btw I am using IIS on Windows Sounds similar to something I had going on. In Control Panel - Administrative Tools - Services (I don't know of a shorter way to get there), I had to right-click on the Apache service and under Log On - check