Re: [PHP] Nasty hacker spammer script

2009-05-12 Thread Ashley Sheridan
On Mon, 2009-05-11 at 17:59 -0600, The Doctor wrote: [snip][/snip] You find this on your server? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] [php] tcp server connection

2009-05-12 Thread Andrew Williams
Can someone help me about how to retrieve data using TCP server connection -- Best Wishes A Williams

[PHP] Re: Nasty hacker spammer script

2009-05-12 Thread Nathan Rixham
The Doctor wrote: Has anyone seen this before? if (trim($_GET['x'])!=''){...@include($_GET['x']);exit();} lol - that's really bad if you're going to waste your time exploiting peoples stuff at least: make it so it'll actually run something don't include your personal email in the script

[PHP] Re: [php] tcp server connection

2009-05-12 Thread Nathan Rixham
Andrew Williams wrote: Can someone help me about how to retrieve data using TCP server connection you'll need to be a bit more specific to get any useful help back mate.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: [php] tcp server connection

2009-05-12 Thread Nathan Rixham
Hi Andrew, You'll be needing the stream functions I'd guess (this si how I always do it, with no problems) http://php.net/stream_socket_client is your starting point. Many Regards, Nathan Andrew Williams wrote: I need to connect to server using IP connection to get raw data, process the

Re: [PHP] Re: [php] tcp server connection

2009-05-12 Thread Per Jessen
Nathan Rixham wrote: Andrew Williams wrote: Can someone help me about how to retrieve data using TCP server connection you'll need to be a bit more specific to get any useful help back mate.. Just point your browser to http://example.com/blah/blah; and you'll get some data using a TCP

[PHP] Can not read write file from Desktop

2009-05-12 Thread Vikas Sharma
hi I was trying to read a file from Desktop (Centos), Simply saying (php code file is in /var/www/html/ ) if (file_exists(/root/Desktop/conf_files_linux)) echo yes file is there; else echo no none; It gives me none. If i place conf_files_linux file in /var/www/html. i get yes... After

Re: [PHP] Re: Mail subject encoding breaks

2009-05-12 Thread Thodoris
Hello, on 05/11/2009 12:25 PM Thodoris said the following: This script seems to work ok in a freebsd development server I have but a linux production machine breaks the subject's encoding for some unexpected reason. The subject has a mix of English and Greek characters that FreeBSD seems

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Thodoris
hi I was trying to read a file from Desktop (Centos), Simply saying (php code file is in /var/www/html/ ) if (file_exists(/root/Desktop/conf_files_linux)) echo yes file is there; else echo no none; It gives me none. If i place conf_files_linux file in /var/www/html. i get yes... After

[PHP] Re: Can includes be used for head tags?

2009-05-12 Thread tedd
At 9:32 PM +0100 5/11/09, Nathan Rixham wrote: Gary wrote: Thank you to everyone again for your help... Gary Gary gwp...@ptd.net wrote in message news:52.b9.21821.82558...@pb1.pair.com... I was thinking of creating a php include for the meta tags for a site. Is this possible? Gary

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Miller, Terion
Bastien, could you give me an example of what you mean? would it be $Name = like that? Thanks for the ideas everyone! PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Try Imitliazing the variables at the top of the loop to empty

Re: [PHP] Re: Can includes be used for head tags?

2009-05-12 Thread Nathan Rixham
tedd wrote: At 9:32 PM +0100 5/11/09, Nathan Rixham wrote: Gary wrote: Thank you to everyone again for your help... Gary Gary gwp...@ptd.net wrote in message news:52.b9.21821.82558...@pb1.pair.com... I was thinking of creating a php include for the meta tags for a site. Is this possible?

Re: [PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-12 Thread Thodoris
דניאל דנון wrote: I've tried to make a color table, but I am missing something. not in the color-table-code itself, but in somewhere else... I just can't find... untested but try.. // 4096*4096 = 16777216 = FF+1 $im = imagecreate(4096, 4096); $white = imagecolorallocate($im, 0, 0, 0);

Re: [PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-12 Thread Peter Ford
Thodoris wrote: דניאל דנון wrote: I've tried to make a color table, but I am missing something. not in the color-table-code itself, but in somewhere else... I just can't find... untested but try.. // 4096*4096 = 16777216 = FF+1 $im = imagecreate(4096, 4096); $white =

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Nathan Rixham
Miller, Terion wrote: Well I tried it and still it stopped at the C's 1: your script is timing out, you need to set the time limit higher set_time_limit(0); 2: foreach($html-find('table') as $table) { $rows = explode('/tr' , $table ); $headerCells = explode('/th', array_shift($rows));

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Vikas Sharma
thanks for replying From command line can access that file. But i need some interface, through that i want to change some files. I am using apache (httpd) server. Now i need to give access to apache user of those folders, which is not recommended as per you. or in order to use the suexec

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Peter Ford
Thodoris wrote: hi I was trying to read a file from Desktop (Centos), Simply saying (php code file is in /var/www/html/ ) if (file_exists(/root/Desktop/conf_files_linux)) echo yes file is there; else echo no none; It gives me none. If i place conf_files_linux file in /var/www/html. i

RE: [PHP] Watermarking of images

2009-05-12 Thread tedd
At 12:27 PM -0700 5/11/09, Daevid Vincent wrote: Here's an example with code: http://webbytedd.com/b/watermark/ I can't read the text over the dog's nose... ;) You're lucky. I don't see ANYTHING (as mentioned weeks ago already)... XP. FF 3.0.10 and IE 6. BOTH do not work. FF

Re: RES: [PHP] CURL problems still

2009-05-12 Thread Nathan Rixham
Nathan Rixham wrote: Miller, Terion wrote: Well I tried it and still it stopped at the C's 1: your script is timing out, you need to set the time limit higher set_time_limit(0); 2: foreach($html-find('table') as $table) { $rows = explode('/tr' , $table ); $headerCells = explode('/th',

RES: RES: [PHP] CURL problems still

2009-05-12 Thread Jônatas Zechim
Hi Terion, I thing the problems is the time limit on your Server. Try this now: Test the var before insert into db: If(!isset($crime)){$crime=''} After u remove from the db the unwanted lines. On the end of the file u do this: $letters=array();

Re: [PHP] Can not read write file from Desktop

2009-05-12 Thread Thodoris
Thodoris wrote: hi I was trying to read a file from Desktop (Centos), Simply saying (php code file is in /var/www/html/ ) if (file_exists(/root/Desktop/conf_files_linux)) echo yes file is there; else echo no none; It gives me none. If i place conf_files_linux file in /var/www/html. i get

Re: [PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-12 Thread Thodoris
Thodoris wrote: דניאל דנון wrote: I've tried to make a color table, but I am missing something. not in the color-table-code itself, but in somewhere else... I just can't find... untested but try.. // 4096*4096 = 16777216 = FF+1 $im = imagecreate(4096, 4096); $white =

[PHP] irrational behavior

2009-05-12 Thread PJ
Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) The code below: ? $SQL = SELECT name FROM categories ORDER BY category_id ; $category = array();

[PHP] How to include a java script in a php tag (form)

2009-05-12 Thread Matthieu
Hello, To be clear, my php file www.auditgratuit.be/copropriete.php doesn't work to send the form. My page starts with ?php and there is a special $html = ' blablablablabla '; where all the html code is written for the form (table,...). The problem is that I have to include a

Re: [PHP] irrational behavior

2009-05-12 Thread Thodoris
Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) The code below: ? $SQL = SELECT name FROM categories ORDER BY category_id ; $category =

Re: [PHP] irrational behavior

2009-05-12 Thread Thodoris
Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) The code below: ? $SQL = SELECT name FROM categories ORDER BY category_id ; $category =

Re: [PHP] irrational behavior

2009-05-12 Thread PJ
Robert Stankiewicz wrote: Maybe, because of this ? $category[$row['name']] = $row; $cat = $category[$ii]['name']; //===this is line 36== best regards Robert I'm afraid you lose me completely. What does the sort($category) have to do with the

[PHP] Re: irrational behavior

2009-05-12 Thread Nathan Rixham
PJ wrote: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) The code below: ? $SQL = SELECT name FROM categories ORDER BY category_id ; $category

Re: [PHP] irrational behavior

2009-05-12 Thread Jan G.B.
2009/5/12 PJ af.gour...@videotron.ca: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) Sure thing if you consider this: The code below: ? $SQL = SELECT

Re: [PHP] Re: Trying to create a colortable - what am I missing here?

2009-05-12 Thread Thodoris
On Tue, 2009-05-12 at 18:05 +0300, Thodoris wrote: Still curious about the right script though (if this is possible of course). Of course it's possible... but you're probably not going to get the results you want since you're taking 3 dimensions and trying to push them into 2. You'll

Re: [PHP] irrational behavior

2009-05-12 Thread Robert Stankiewicz
Maybe, because of this ? $category[$row['name']] = $row; . $cat = $category[$ii]['name']; //===this is line 36== best regards Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: irrational behavior

2009-05-12 Thread Shawn McKenzie
PJ wrote: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) Sure it makes sense and is rational, you just have no idea what you're doing :-) The code below:

Re: [PHP] irrational behavior SOLVED

2009-05-12 Thread PJ
Jan G.B. wrote: 2009/5/12 PJ af.gour...@videotron.ca: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) Sure thing if you consider this:

Re: [PHP] Re: irrational behavior

2009-05-12 Thread PJ
Shawn McKenzie wrote: PJ wrote: Could somebody please explain this? When the line - sort($category) is commented out, the output returns Notice: Undefined offset: in the line 36 for all the repeats (29 in this case) Sure it makes sense and is rational, you just have no idea what

Re: [PHP] How to include a java script in a php tag (form)

2009-05-12 Thread Dan Shirah
?php and there is a special $html = ' blablablablabla '; where all the html code is written for the form (table,...). The problem is that I have to include a javascript to be able to send the form to my email address. I don't know where and how to put it. Could someone help me

Re: [PHP] Nasty hacker spammer script

2009-05-12 Thread The Doctor
On Tue, May 12, 2009 at 07:40:57AM +0100, Ashley Sheridan wrote: On Mon, 2009-05-11 at 17:59 -0600, The Doctor wrote: [snip][/snip] You find this on your server? Ash www.ashleysheridan.co.uk Courtesy of a PHP-hacked shell. -- Member - Liberal International This is

RE: [PHP] Watermarking of images

2009-05-12 Thread Daevid Vincent
yep. works in both now. :) -Original Message- From: tedd [mailto:tedd.sperl...@gmail.com] Sent: Tuesday, May 12, 2009 6:55 AM To: php-general@lists.php.net; Daevid Vincent Subject: RE: [PHP] Watermarking of images At 12:27 PM -0700 5/11/09, Daevid Vincent wrote: Here's an

RE: [PHP] Watermarking of images

2009-05-12 Thread Robert Cummings
On Tue, 2009-05-12 at 09:54 -0400, tedd wrote: At 12:27 PM -0700 5/11/09, Daevid Vincent wrote: Here's an example with code: http://webbytedd.com/b/watermark/ I can't read the text over the dog's nose... ;) You're lucky. I don't see ANYTHING (as mentioned weeks ago

Re: [PHP] Mail subject encoding breaks

2009-05-12 Thread Tom Worster
On 5/11/09 11:58 AM, Thodoris t...@kinetix.gr wrote: On 11 May 2009 at 18:25, Thodoris wrote: Hi gang, I am using phpmailer to send some mail notifications in an intranet I've made. This is a sample code: $e-Subject = This is δφκξγκδφη garbidge κηδφκξγσ; Hi,

RE: [PHP] Watermarking of images

2009-05-12 Thread tedd
At 3:48 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 09:54 -0400, tedd wrote: At 12:27 PM -0700 5/11/09, Daevid Vincent wrote: Here's an example with code: http://webbytedd.com/b/watermark/ I can't read the text over the dog's nose... ;) You're lucky. I

RE: [PHP] Watermarking of images

2009-05-12 Thread Robert Cummings
On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: At 3:48 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 09:54 -0400, tedd wrote: At 12:27 PM -0700 5/11/09, Daevid Vincent wrote: Here's an example with code: http://webbytedd.com/b/watermark/ I can't

Re: [PHP] Watermarking of images

2009-05-12 Thread PJ
Robert Cummings wrote: On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: At 3:48 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 09:54 -0400, tedd wrote: At 12:27 PM -0700 5/11/09, Daevid Vincent wrote: Here's an example with code:

[PHP] handling chunked input from php://stdin

2009-05-12 Thread whisperstream
I have a server running that receives xml formatted events from other services I have no control over. For certain events the transfer-encoding is chunked. I was just doing $input = file_get_contents('php://stdin'); and this works well until there is chunked input. Then I tried $handle =

[PHP] database session management with mdb2

2009-05-12 Thread Michael A. Peters
The database session management class I'm using is something I downloaded off the web several years ago. I ported it to use mdb2 but it sometimes fails in a strange way if the session is expired or if the browser sends a session cookie that does not exist. With error reporting turned off

Re: [PHP] Watermarking of images

2009-05-12 Thread Robert Cummings
On Tue, 2009-05-12 at 18:53 -0400, PJ wrote: Robert Cummings wrote: On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: At 3:48 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 09:54 -0400, tedd wrote: At 12:27 PM -0700 5/11/09, Daevid Vincent wrote:

Re: [PHP] database session management with mdb2

2009-05-12 Thread Michael A. Peters
Michael A. Peters wrote: The database session management class I'm using is something I downloaded off the web several years ago. I ported it to use mdb2 but it sometimes fails in a strange way if the session is expired or if the browser sends a session cookie that does not exist. With

Re: [PHP] Watermarking of images

2009-05-12 Thread PJ
Robert Cummings wrote: On Tue, 2009-05-12 at 18:53 -0400, PJ wrote: Robert Cummings wrote: On Tue, 2009-05-12 at 16:31 -0400, tedd wrote: At 3:48 PM -0400 5/12/09, Robert Cummings wrote: On Tue, 2009-05-12 at 09:54 -0400, tedd wrote:

Re: [PHP] handling chunked input from php://stdin

2009-05-12 Thread Shawn McKenzie
whisperstream wrote: I have a server running that receives xml formatted events from other services I have no control over. For certain events the transfer-encoding is chunked. I was just doing $input = file_get_contents('php://stdin'); and this works well until there is chunked

[PHP] Urgent problem PCRE or DOM help

2009-05-12 Thread Lenin
td class=text11 a href=some urlimg /abrhr a href=some urlHome/a | bMy Interface/bbr br h1 style=color:303030;My Interface/h1br tableDONT READ TABLE/tablebr buStep-By-Step Instructions:/u/bbrbr P tags IMG tags tabletrtdtableDONT READ/table/td/tr/tablehr /td I am having trouble with the

[PHP] fileinfo on RHEL5

2009-05-12 Thread brian
RHEL5/PHP 5.1.6 I'm having some trouble getting the Fileinfo package working. It installed fine, and phpinfo() says it's enabled. But it consistently returns an empty string when getting the MIME of a file. /usr/share/pear/bin/pecl install fileinfo vi /etc/php.d/fileinfo.ini