[PHP] php vulnerability

2005-08-22 Thread Shafiq Rehman
Hi all, My server was hacked last week and the message displayed on home page was spy kidz owns your server. I researched on internet and found that this is some kind of trojan which infects the *.index files. It penetrate from HTTP. Some paople were saying that there is vulnerability in PHP.

Re: [PHP] php vulnerability

2005-08-22 Thread Jasper Bryant-Greene
Shafiq Rehman wrote: My server was hacked last week and the message displayed on home page was spy kidz owns your server. I researched on internet and found that this is some kind of trojan which infects the *.index files. It penetrate from HTTP. Some paople were saying that there is

Re: [PHP] php vulnerability

2005-08-22 Thread Torgny Bjers
Shafiq Rehman wrote: My server was hacked last week and the message displayed on home page was spy kidz owns your server. I researched on internet and found that this is some kind of trojan which infects the *.index files. It penetrate from HTTP. Some paople were saying that there is

[PHP] imagestring to picture

2005-08-22 Thread Andras Kende
Hello, I have a some colorful pictures, Would like to add white text with black background around the white text... I can add the text fine but could figure out how to add black background.. $textcolor = imagecolorallocate($destimg, 255, 255, 255); imagestring($destimg, 3, 10, 10, test text,

Re: [PHP] php vulnerability

2005-08-22 Thread Shafiq Rehman
Hi all, Thanx to all of you. My server is running on Linux and there is not any phpbb running on it. If vulnerability is in my code.. Is there any way that I can find the buggy code on my server which allowed that trojan to write into all the index files. I analyzed the apache logs but did

Re: [PHP] php vulnerability

2005-08-22 Thread Jasper Bryant-Greene
Shafiq Rehman wrote: Thanx to all of you. My server is running on Linux and there is not any phpbb running on it. If vulnerability is in my code.. Is there any way that I can find the buggy code on my server which allowed that trojan to write into all the index files. To start with, take a

[PHP] imap_open hangs...

2005-08-22 Thread Michael Baas
Hi, I have a script which works fine for many users, but for some it doesn't. I've been able to narrow it down to the imap_open-Command which just hangs 'forever'. I have verified that the imap-extensions are available, but other than that I have no ideas what's going on there, why it would not

Re: [PHP] imap_open hangs...

2005-08-22 Thread Burhan Khalid
Michael Baas wrote: Hi, I have a script which works fine for many users, but for some it doesn't. I've been able to narrow it down to the imap_open-Command which just hangs 'forever'. I have verified that the imap-extensions are available, but other than that I have no ideas what's going on

Re: [PHP] imap_open hangs...

2005-08-22 Thread Michael Baas
Thanks Buran, 1. Connection is timing out, and the time limit expired. We're only connecting to locahost here, sorry, forgot to mention. 2. Firewall is blocking connections The ISP claims to support imap_open for POP3 and ISP, so I would expect him to have sorted that one out. Other

[PHP] Re: Looking for CMS advice

2005-08-22 Thread Michael Baas
Like Clint, I definitely recommend Mambo. Or, to be precise: the CMS formerly known as Mambo. Recently a split has happened between the core-developers who will continue to develop the system (with much support from the community) - see the new website at http://www.opensourcematters.org/ - and

Re: [PHP] Looking for CMS advice

2005-08-22 Thread Erik Gyepes
Zachary Kessin wrote: I am about to start on a project that seems like it would be right for a CMS system. It will be about 80% rather boring stuff with about 20% custom database work. I have looked at XOOPS and a few others. However I can not seem to find one rather important thing about

Re: [PHP] Looking for CMS advice

2005-08-22 Thread Erik Gyepes
Zachary Kessin wrote: I am about to start on a project that seems like it would be right for a CMS system. It will be about 80% rather boring stuff with about 20% custom database work. I have looked at XOOPS and a few others. However I can not seem to find one rather important thing about

Re: [PHP] imap_open hangs...

2005-08-22 Thread Michael Baas
Thanks Buran, ..and apologies for mis-spelling your name, Burhan ;) Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for CMS advice

2005-08-22 Thread Shafiq Rehman
Hey Michael, Visit the site for excellent open source CMS http://www.ez.no Regards -- *** phpgurru.com http://phpgurru.com [A php resource provider] *** \\\|/// \\ - - // ( @ @ ) PHP is too logical for my brain +---oOOo-(_)-oOOo--+ | Mian Shafiq ur

Re: [PHP] Re: Problem between php4.4 and mysql

2005-08-22 Thread Alex Scott
Thanks for all your help. Problem was that Up2date had installed php 4.3.2 onto our server and compiled no support for MySQL into Apache. I was getting no error messages, so it was only when I saw phpinfo() that I realised that the version had changed. Alex. On Mon, 22 Aug 2005 10:55:06

Re: [PHP] php vulnerability

2005-08-22 Thread Rory Browne
On 8/22/05, Shafiq Rehman [EMAIL PROTECTED] wrote: Hi all, Thanx to all of you. My server is running on Linux and there is not any phpbb running on it. If vulnerability is in my code.. Is there any way that I can find the buggy code on my server which allowed that trojan to write into all

RE: [PHP] imagecreatefromstring

2005-08-22 Thread Jay Blanchard
[snip] This is my script header(Content-type: image/png); $string = 'hello'; $im= imagecreatefrompng(images/button1.png); $orange = imagecolorallocate($im, 220, 210, 60); $px= (imagesx($im) - 7.5 * strlen($string)) / 2; imagestring($im, 3, $px, 9, $string, $orange); imagepng($im);

[PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Rahul S. Johari
Ave, I have a table with one of the fields ³hired² having either of 3 values: YES, NO, NULL My application provides the administrator with all the records in the table and I need to give him the ability to change the status of ³hired² to either of the three values. Previously I was using a

[PHP] Special HTML characters question.

2005-08-22 Thread Jay Paulson
I have a problem that I'm sure some of you have run into before, therefore I hope you all know of an easy solution. Some of my users are cutting and pasting text from Word into text fields that are being saved into a database then from that database being displayed on a web page. The problem

Re: [PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Rahul S. Johari
Ave, I guess the last query I tried was simply updating the database with the value of the Hired form field: $sql = UPDATE contactdata SET hired='$hired' WHERE ID='$thisID'; $result = mysql_query($sql) or DIE(Fatal Error: .mysql_error()); I've tried using an array and running the

RE: [PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Jay Blanchard
[snip] I guess the last query I tried was simply updating the database with the value of the Hired form field: $sql = UPDATE contactdata SET hired='$hired' WHERE ID='$thisID'; $result = mysql_query($sql) or DIE(Fatal Error: .mysql_error()); I've tried using an array and running the

[PHP] imagecreatefromstring

2005-08-22 Thread Ross
Hi, i am trying this out of curiosity and get sme errors My gd extension is set up in the correct folder. This is my script header(Content-type: image/png); $string = 'hello'; $im= imagecreatefrompng(images/button1.png); $orange = imagecolorallocate($im, 220, 210, 60); $px=

RE: [PHP] Special HTML characters question.

2005-08-22 Thread Jay Blanchard
[snip] I have a problem that I'm sure some of you have run into before, therefore I hope you all know of an easy solution. Some of my users are cutting and pasting text from Word into text fields that are being saved into a database then from that database being displayed on a web page. The

Re: [PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Rahul S. Johari
Ave, register_globals are On. I think the problem lies in the fact that I'm trying to update multiple rows in the table, I'm not sure that my query with the UPDATE statement is updating all the rows with what is being set in the value of the Form Field. I'm not sure. On 8/22/05 9:39 AM, Jay

Re: [PHP] php vulnerability

2005-08-22 Thread Ryan A
snip If you don't have the ability to do this yourself, you can hire someone to do a code audit for you. Chris Shiflett (brainbulb.com) I believe provides this service. /snip Chris is a dude who has helped me and a lot of others dozens of times on this list as he is a regular contributer to

Re: [PHP] build sql query struture and values from form fields

2005-08-22 Thread Jordan Miller
I agree, you must be careful of SQL injection... use mysql_real_escape_string(). To chop off the last character of text use substr(): $sqlstruct = substr($sqlstruct, 0, -1); Jordan http://www.php.net/substr Example 3. Using a negative length ?php $rest = substr(abcdef, 0, -1); // returns

RE: [PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Jay Blanchard
[snip] register_globals are On. I think the problem lies in the fact that I'm trying to update multiple rows in the table, I'm not sure that my query with the UPDATE statement is updating all the rows with what is being set in the value of the Form Field. I'm not sure. [/snip] Echo the query

RE: [PHP] how to know when a php library is installed

2005-08-22 Thread Miguel Guirao
Or phpinfo() -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Domingo, 21 de Agosto de 2005 06:15 a.m. To: php-general@lists.php.net Subject: Re: [PHP] how to know when a php library is installed On 8/21/05, Lizet Pena de Sola [EMAIL PROTECTED] wrote: I need to

RE: [PHP] Updating Multiple rows with Combo Box!

2005-08-22 Thread Jay Blanchard
[snip] input type=hidden name=thisID value=?php echo $row_tjContactFormData['ID']; ? SELECT name=hired option value=YES ?php if($row_tjContactFormData['hired']==YES) { echo Selected; } ?YES/option option value=NO ?php if($row_tjContactFormData['hired']==NO)

Re: [PHP] Special HTML characters question.

2005-08-22 Thread Jay Paulson
Thanks for the reply. I would imagine there are a lot of special html characters that would need to be changed using regex. Therefore, spending my time making a regex to find a replace each one of them isn't a good way to spend my time or even if I did go that route I'm sure it's uses too

Re: [PHP] Special HTML characters question.

2005-08-22 Thread Jay Paulson
by the way, you probably don't want to do the conversion *inbound* to the database. rather, store the original and do the conversion outbound - specific and appropriate for the output display. if you do it inbound you'll have the html encodings (rather than the actual (special) characters)

Re: [PHP] Special HTML characters question.

2005-08-22 Thread Shafiq Rehman
Hi, Here are two routines for your problem. function htmlentities2($myHTML) { $translation_table=get_html_translation_table (HTML_ENTITIES,ENT_QUOTES); $translation_table[chr(38)] = ''; return preg_replace(/(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,3};)/,amp; , strtr($myHTML, $translation_table)); }

Re: [PHP] Special HTML characters question.

2005-08-22 Thread Jordan Miller
Did you try html_entity_decode? http://us2.php.net/html_entity_decode You may want to combine this with mysql_real_escape_string()...? Jordan On Aug 22, 2005, at 8:29 AM, Jay Paulson wrote: I have a problem that I'm sure some of you have run into before, therefore I hope you all know of

[PHP] Load testing

2005-08-22 Thread Chris Boget
What do you guys use for load testing forms? I've just been opening seperate windows, navigating to the form, filling out the form on all windows and hitting the submit button at the same time. After about 15 or so windows, it starts to become a bit cumbersom. Do you guys load test? What do

[PHP] Re: [PHP-DEV] 5.0.5 download URL

2005-08-22 Thread Edin Kadribasic
The Windows binaries are available at: http://downloads.php.net/edink/php-5.0.5RC1-Win32.zip http://downloads.php.net/edink/pecl-5.0.5RC1-Win32.zip Edin Zeev Suraski wrote: By popular demand, you can now get these binaries at http://downloads.php.net/zeev/php-5.0.5RC1.tar.gz

Re: [PHP] Load testing

2005-08-22 Thread Robin Vickery
On 8/22/05, Chris Boget [EMAIL PROTECTED] wrote: What do you guys use for load testing forms? I've just been opening seperate windows, navigating to the form, filling out the form on all windows and hitting the submit button at the same time. After about 15 or so windows, it starts to

Re: [PHP] php vulnerability

2005-08-22 Thread Rory Browne
On 8/22/05, Ryan A [EMAIL PROTECTED] wrote: snip If you don't have the ability to do this yourself, you can hire someone to do a code audit for you. Chris Shiflett (brainbulb.com) I believe provides this service. /snip Chris is a dude who has helped me and a lot of others dozens of

Re: [PHP] preg_match

2005-08-22 Thread Robin Vickery
On 8/22/05, Richard Lynch [EMAIL PROTECTED] wrote: On Sat, August 20, 2005 5:00 am, John Nichel wrote: Personally, I have never used \\ in PCRE when looking for things like spaces (\s), word boundraries (\b), etc. and it's all worked out fine. Personally, { I } have never { used

Re: [PHP] php vulnerability

2005-08-22 Thread Chris Martin
You might also scan your machine (and/or network) with something such as nessus, or another vulnerability scanner -- Chris Martin Web Developer Open Source Web Standards Advocate http://www.chriscodes.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: error while running com

2005-08-22 Thread mikespook
Could u show me ur source code? sangram [EMAIL PROTECTED] ??:[EMAIL PROTECTED] Hi, i had uploaded the com application on win2003 server with word 2003 installed.It runs perfect The traffic of word files increases or other reasons the following message starts displaying. Warning:

Re: [PHP] Re: error while running com

2005-08-22 Thread tg-php
Showing your code might be useful but taking a shot in the dark here, I'm guessing that after a while, you have too many instances of Word still instantiated. I remember there being an issue when using COM where the application wouldn't quit properly. Try using $appinst-Quit() as well as

[PHP] session_start(), Pragma and Cache-control headers

2005-08-22 Thread Kim Steinhaug \(php list\)
Hello, I'm working on a downbload script which serves M3U files (Winamp playlist files) through a PHP file like this : somepath/download.m3u.php?id=2 Then in the PHP script I generate the M3U file, and serve up the headers I want. Swell so far, but a little problem appears. The downloads are

[PHP] Problem appending values to an object

2005-08-22 Thread David Pollack
I have a database with two tables. One is a table of events and the other is a table of locations. I'm creating a google map with the table of locations and would like to list the events at each place. I'm using mambo and the following query to get the data... $query2 = SELECT

Re: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Rick Emery
Quoting Rick Emery [EMAIL PROTECTED]: My employer has (finally) decided to take full advantage of our intranet, and wants to move from client-server applications to web-based applications. [snipped] Any input would be greatly appreciated. Opinions are welcome (especially from programmers

RE: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Jay Blanchard
[snip] Anybody care to provide words of wisdom to me before I meet with her? I hate doing this, as I'm sure everybody has better things to do, but I *really* want to sell PHP. [/snip] 6. When to Use PHP [snip] How much control will you have over the deployment platform? PHP's one-size-fits-all

Re: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Robert Cummings
On Mon, 2005-08-22 at 14:16, Rick Emery wrote: http://www.ukuug.org/events/linux2002/papers/html/php/#section_6 Wow, that sure is a crock of FUD bullshit. I'll answer in order of appearance, I don't want to quote in case of copyright issues. 1. Most interesting settings in php.ini can be set

RE: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Robert Cummings
On Mon, 2005-08-22 at 14:51, Alan Fullmer wrote: So pardon me butting in on this conversation.. I was completely unaware that you were able to do separate php.ini files. I did know you could do things through htaccess, etc. Is there a way to do this separately in http.conf? with

Re: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Robert Cummings
On Mon, 2005-08-22 at 14:16, Rick Emery wrote: I read the following article and I wanted your feedback on it. http://www.ukuug.org/events/linux2002/papers/html/php/#section_6. I Just another small comment on this... It's interesting to note that the author headlines the specific section as

Re: [PHP] Updating Multiple rows with Combo Box! *SOLVED*

2005-08-22 Thread Rahul S. Johari
Ave, Solved it! Echoing the results out instead of trying out Queries really helped. What I was basically doing wrong was, I did create an Array for the Values, but I needed to also create an Array for the ID's for each records, which I hadn't. This is the code I used for generating the Select

Re: [PHP] Re: Looking for CMS advice

2005-08-22 Thread Esteamedpw
the CMS formerly known as Mambo Yeah, I was reading about that last night... Interesting stuff lol Interesting future ahead as well. - Clint

[PHP] Files passing through

2005-08-22 Thread Evert | Rooftop
Hi People, I want to use a PHP script to pass through a file to the browser [ right after some processing ]. What is the fastest way to do this? I know echo(file_get_contents('myfile')); is not a good idea ;) Is fpassthrough the right choice? maybe virtual, so it won't go through php but

Re: [PHP] PHP vs. ColdFusion

2005-08-22 Thread Jay Paulson
I've been coding in PHP since version 3 and I actually sold a telecommunications company to use it for their HUGE intranet back in 2000 (right before they went out of business in North America). They wanted to use Java and I talked them out of it for the simple fact that PHP was so easy to

Re: [PHP] PHP Printing Error Help

2005-08-22 Thread Chirantan Ghosh
Hi John, //[snip] You probably want to move into the relm of array's. For each one of your checkboxes, you can do this... input type=checkbox name=InterestedNumber[] value=1-877-HOMECASH /[/snip] I did look up ARRAY. I just didn't understand how I can insert a

[PHP] AJAX coding and Sesisons

2005-08-22 Thread Bret Walker
I'm authoring a web app, and I want to use some AJAX functionality. The users log in via PHP, and they are verified page to page by a session variable (which stores their username). I want to write some PHP that alters a database, but I want to be sure that only authorized users can access the

[PHP] [NEWBIE GUIDE] For the benefit of new members

2005-08-22 Thread Jay Blanchard
= Please feel free to add more points and send to the list. 20050322jb - Note the new location of PHP Editors list. = 1. If you have any queries/problems about PHP try

Re: [PHP] session_start(), Pragma and Cache-control headers

2005-08-22 Thread Kim Steinhaug \(php list\)
I solved the problem after a while, seems it had been reacently debated in the bug pages within php, to remove headers which are added by the session_start(); you can add the following : ini_set('session.use_cookies', false); session_cache_limiter(''); Kind regards, Kim Steinhaug - - - - - - -

Re: [PHP] AJAX coding and Sesisons

2005-08-22 Thread Kim Steinhaug \(php list\)
I have done this quite a few times lately, you shouldn't worry. Just have your session_start() and login security on the pages that you access with javascript aswell, they will have the same security as any other page. The sessionID is used for all requests to the server from the webbrowser,

Re: [PHP] Hardware Detection

2005-08-22 Thread Rory Browne
Assuming that you are running a web app then, I concour with Richard. If however you are talking about a client in a more traditional sense, in that you have a specific client application, then that client application could get the computers hard disk, in the same way as any other application

[PHP] Re: PHP vs. ColdFusion

2005-08-22 Thread Dan Baker
Rick Emery [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Quoting Rick Emery [EMAIL PROTECTED]: My employer has (finally) decided to take full advantage of our intranet, and wants to move from client-server applications to web-based applications. [snipped] Any input would be

RE: [PHP] Re: PHP vs. ColdFusion

2005-08-22 Thread Jay Blanchard
[snip] ...tons of good stuff... [/snip] As long as we are doing stats; tblClass10 187,607,026 MyISAM 54.4 GB tblClass11 293,357,128 MyISAM 136.0 GB 20 table(s) Sum 500,681,774 --202.4 GB This is fun, on a BSD box, w/dual Xeon processors...ALL report handling

Re: [PHP] Resizing thumbnails to the browser

2005-08-22 Thread Dan Trainor
Richard Lynch wrote: On Sun, August 21, 2005 3:04 pm, Murray @ PlanetThoughtful wrote: I have a series of thumbnails on my site of photos I've taken that are all 150px in width, but of variable height. I want to randomly display one of the thumbnails each time the home page of my site is loaded

Re: [PHP] Files passing through

2005-08-22 Thread Kevin Waterson
This one time, at band camp, Evert | Rooftop [EMAIL PROTECTED] wrote: What is the fastest way to do this? I know echo(file_get_contents('myfile')); is not a good idea ;) Why not? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb

Re: [PHP] Resizing thumbnails to the browser

2005-08-22 Thread Jasper Bryant-Greene
Dan Trainor wrote: Would the abovementioned use of ForceType also allow one to produce an image given an HTTP GET query? I was tinkering around with something in the past where I wanted to implement something such as: img src=http://example.com/myscript.php?site=1image=2something=3; Would

Re: [PHP] Files passing through

2005-08-22 Thread Philip Hallstrom
What is the fastest way to do this? I know echo(file_get_contents('myfile')); is not a good idea ;) Why not? My guess would be because file_get_contents returns the contents as a string. So if 'myfile' is 100mb, you're going to have to allocate 100mb of memory to store that string while

Re: [PHP] Resizing thumbnails to the browser

2005-08-22 Thread Dan Trainor
Jasper Bryant-Greene wrote: Dan Trainor wrote: Would the abovementioned use of ForceType also allow one to produce an image given an HTTP GET query? I was tinkering around with something in the past where I wanted to implement something such as: img

Re: [PHP] Files passing through

2005-08-22 Thread Kevin Waterson
This one time, at band camp, Philip Hallstrom [EMAIL PROTECTED] wrote: My guess would be because file_get_contents returns the contents as a string. So if 'myfile' is 100mb, you're going to have to allocate 100mb of memory to store that string while echo() spits it back out. But I'm just

Re: [PHP] Files passing through

2005-08-22 Thread Jasper Bryant-Greene
Kevin Waterson wrote: This one time, at band camp, Philip Hallstrom [EMAIL PROTECTED] wrote: My guess would be because file_get_contents returns the contents as a string. So if 'myfile' is 100mb, you're going to have to allocate 100mb of memory to store that string while echo() spits it

[PHP] foreach loop changed after 4.3 - 4.4 upgrade

2005-08-22 Thread Larry Brown
I had a foreach loop working on an array as such: $multiarray = array(array('person','person'),array('another','another')) the array was put through foreach($multiarray as $subArray){ do something with array } on each loop I would see $subArray= array([0] = 'person',[1] = 'person') and then

Re: [PHP] foreach loop changed after 4.3 - 4.4 upgrade

2005-08-22 Thread Larry Brown
I found that the only way to get the function to behave is to add the key... foreach($multiarray as $key=$subArray) Now it displays as it previously did where $subArray is concerned. Is there something I'm missing here? Was I the only person not using keys? On Mon, 2005-08-22 at 21:28, Larry

[PHP] Large URI request problem

2005-08-22 Thread Dean Maunder
Hi, I have a large string that I need to send to a script that creates an image. eg img src='createimage.php?wp=321,43,23,12,43,12,342,54,765,87,3,23,etc etc etc Until now this hasnt been a problem just putting the data in the URL, but now Im faced with a string that is over 3000

Re: [PHP] Large URI request problem

2005-08-22 Thread Jasper Bryant-Greene
Dean Maunder wrote: Hi, I have a large string that I need to send to a script that creates an image. eg img src='createimage.php?wp=321,43,23,12,43,12,342,54,765,87,3,23,etc etc etc Until now this hasnt been a problem just putting the data in the URL, but now Im faced with a string that is over

Re: [PHP] Resizing thumbnails to the browser

2005-08-22 Thread Richard Lynch
On Mon, August 22, 2005 2:32 pm, Dan Trainor wrote: Would the abovementioned use of ForceType also allow one to produce an image given an HTTP GET query? I was tinkering around with something in the past where I wanted to implement something such as: img