[PHP] Removing empty paragraphs from HTML file using simple_html_dom.php

2010-09-17 Thread Geoffrey van Wyk
Hi All, I want to remove empty paragraphs from an HTML document using simple_html_dom.php. I know how to do it using the DOMDocument class, but, because the HTML files I work with are prepared in MS Word, the DOMDocument's loadHTMLFile() function gives this exception "Namespaces are not defined

Re: [PHP] 1984 (Big Brother)

2010-09-17 Thread viraj
> > Remind him that he must logout normally to lock the DB if you follow the thread closely, this is a requirement. boss may not logout properly :) that's why all suggest a mechanical ways for the job. pressure sensors, cameras etc etc ~viraj > > > > On Sep 12, 2010, at 12:37 PM, Joshua Kehn wr

[PHP] Re: GD Watermark Question

2010-09-17 Thread Gary
t. > > Gary > > > __ Information from ESET Smart Security, version of virus > signature database 5458 (20100917) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > > > __ Information from ESET Smar

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread Gary
an clear. The watermark would show on an image that is being >> > downloaded from the server. If this were to work, I could let viewers >> > see >> > an image with a size of 640px in width to show clarity, (they are only >> > able >> > to see an image now w

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread Gary
ould they decide to help > themselves to it, it would download with a watermark on it, but the > watermark would not appear on the web page itself. > > Gary > > > > __ Information from ESET Smart Security, version of virus > signature database 5458 (20100917

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
On Sep 17, 2010, at 7:36 PM, Ashley Sheridan wrote: > > >>> >>> Even the stenography has its flaws. Opening the image in an image editor, >>> then doing a select all and pasting as a new image would remove any hidden >>> meta info, and saving a couple of times as a jpeg would destroy any >>

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread Ashley Sheridan
> > > > Even the stenography has its flaws. Opening the image in an image editor, > > then doing a select all and pasting as a new image would remove any hidden > > meta info, and saving a couple of times as a jpeg would destroy any > > detailed information without distorting the photo (assum

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
>>>> >>> >>>> >>> More info. >>>> >>> >>>> >>> I was asked off board where the watermark would show, so I am sorry if >>>> >>> I was >>>> >>> less than clear. Th

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread Ashley Sheridan
; > > > >>> I was asked off board where the watermark would show, so I am sorry > > > >>> if I was > > > >>> less than clear. The watermark would show on an image that is being > > > >>> downloaded from the server.

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
mark would show, so I am sorry if I >> >>> was >> >>> less than clear. The watermark would show on an image that is being >> >>> downloaded from the server. If this were to work, I could let viewers

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread Ashley Sheridan
t; >>> see > >>> an image with a size of 640px in width to show clarity, (they are only > >>> able > >>> to see an image now with a width of 250 px now) should they decide to > >>> help > >>> themselves

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
, I could let viewers see >>> an image with a size of 640px in width to show clarity, (they are only >>> able >>> to see an image now with a width of 250 px now) should they decide to help >>> themselves to it, it would download with a watermark on it, but th

Re: [PHP] 1984 (Big Brother)

2010-09-17 Thread TR Shaw
I guess I need to chime in. Besides the fact that his is a moron - the customer is always right - at least as long as he is paying OK simplest way to handle this is: 1) Set the_db ownership and permissions to chown theboss:employees the_db chmod 0700 the_db 2) Attach a script to his l

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread Ashley Sheridan
f 250 px now) should they decide to help > > themselves to it, it would download with a watermark on it, but the > > watermark would not appear on the web page itself. > > > > Gary > > > > > > > > __ Information from ESET Smart Security,

Re: [PHP] Re: GD Watermark Question-

2010-09-17 Thread TR Shaw
(they are only able > to see an image now with a width of 250 px now) should they decide to help > themselves to it, it would download with a watermark on it, but the > watermark would not appear on the web page itself. > > Gary > > > > __ Inform

Re: [PHP] GD Watermark Question

2010-09-17 Thread Ashley Sheridan
ation from ESET Smart Security, version of virus signature > database 5458 (20100917) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > > > > So where does the watermark get shown, because from what I can gather from

[PHP] Re: GD Watermark Question-

2010-09-17 Thread Gary
re only able to see an image now with a width of 250 px now) should they decide to help themselves to it, it would download with a watermark on it, but the watermark would not appear on the web page itself. Gary __ Information from ESET Smart Security, version of virus signature data

[PHP] GD Watermark Question

2010-09-17 Thread Gary
pilferage and I would like to be able to show the images a little larger, hence with a bit more clarity and detail. Thanks for your input. Gary __ Information from ESET Smart Security, version of virus signature database 5458 (20100917) __ The message was checked by ESET

Re: [PHP] Checking file type when uploading

2010-09-17 Thread Jim Lucas
Catherine Madsen wrote: > Hi! > > I have created a form following the PHP manual to upload files and need > to restrict the upload to only PDF. How do I check the file type > ($_FILES['userfile']['type']?) and where: on the form page or on the > validation page? I want to be able to tell the use

[PHP] Checking file type when uploading

2010-09-17 Thread Catherine Madsen
Hi! I have created a form following the PHP manual to upload files and need to restrict the upload to only PDF. How do I check the file type ($_FILES['userfile']['type']?) and where: on the form page or on the validation page? I want to be able to tell the users that their file doesn't have the

Re: [PHP] Install library

2010-09-17 Thread Ashley Sheridan
On Fri, 2010-09-17 at 15:37 +0200, Jordan Jovanov wrote: > Hello everybody, > > I like to create same PDF file with PHP, i find that i must to install > something like PDFLib but i can't how to istall on linux. Does somebody > can help me. > > Thanks a lot. > Jordan > When you asked this qu

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Tommy Pham
> -Original Message- > From: Cheryl Sullivan [mailto:csull...@shh.org] > Sent: Friday, September 17, 2010 7:51 AM > To: Peter Lind; tommy...@gmail.com > Cc: a...@ashleysheridan.co.uk; php-general@lists.php.net > Subject: RE: [PHP] Session Vars loaded from MSSQL Query drop, those > loaded fr

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick (SOLVED)

2010-09-17 Thread Cheryl Sullivan
FANTASTIC!!! This did the trick! "By explicitly typecasting the value to a string when you assign it to the session, you'll get the value rather than its wrapper." Thank you all for your help! I will pass the comments on about employing the MS's SQL Server Driver for PHP as well - Thanks aga

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Andrew Ballard
On Fri, Sep 17, 2010 at 10:50 AM, Cheryl Sullivan wrote: > Hi there - just to clear things up, I didn't mean your answer was irrelevant. >  It was an excellent point - I just took the function call encompassing the > query string out of the code I posted to avoid people having to read too > muc

Re: [PHP] PHP Warning

2010-09-17 Thread Floyd Resler
Thanks for the help. The culprit was in my cli/php.ini file. Thanks! Floyd On Sep 17, 2010, at 10:53 AM, Daniel Brown wrote: > On Fri, Sep 17, 2010 at 10:35, Floyd Resler wrote: >> I'm getting the following warning when running PHP scripts from the command >> line: >> PHP Warning: Module 'mc

Re: [PHP] PHP Warning

2010-09-17 Thread Daniel Brown
On Fri, Sep 17, 2010 at 10:35, Floyd Resler wrote: > I'm getting the following warning when running PHP scripts from the command > line: > PHP Warning:  Module 'mcrypt' already loaded in Unknown on line 0 > > How can I get rid of this?  My error report directives are: > error_reporting = E_COMP

[PHP] Re: PHP Warning

2010-09-17 Thread Jo�o C�ndido de Souza Neto
I think the best way is to get rid of trying to get "mcrypt" twice as it says. -- João Cândido de Souza Neto "Floyd Resler" escreveu na mensagem news:845bd9d9-554d-45f6-b1a0-0327b1414...@adex-intl.com... I'm getting the following warning when running PHP scripts from the command line: PHP

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Cheryl Sullivan
Hi there - just to clear things up, I didn't mean your answer was irrelevant. It was an excellent point - I just took the function call encompassing the query string out of the code I posted to avoid people having to read too much. I thought showing the function call was irrelevant. Hope that

[PHP] PHP Warning

2010-09-17 Thread Floyd Resler
I'm getting the following warning when running PHP scripts from the command line: PHP Warning: Module 'mcrypt' already loaded in Unknown on line 0 How can I get rid of this? My error report directives are: error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR Thanks! Floyd

Re: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Andrew Ballard
On Fri, Sep 17, 2010 at 8:13 AM, Cheryl Sullivan wrote: > Hi Andrew - I didn't mean to ignore your reply... > > Here is your earlier post - > > " The fact that you can echo the $_SESSION information on the same page and > they contain the correct values suggest to me that the issue of MySQL/MSSQL

Re: [PHP] Interacting With Shell

2010-09-17 Thread Richard Quadling
On 17 September 2010 14:15, Floyd Resler wrote: > I need to run a Linux command from within PHP but the command has > interaction.  At one point I need to enter a password.  Is this type of > interaction possible inside a PHP script? > > Thanks! > Floyd > > Yes it is ... and it also works on Wi

Re: [PHP] Install library

2010-09-17 Thread Steve Staples
On Fri, 2010-09-17 at 15:37 +0200, Jordan Jovanov wrote: > Hello everybody, > > I like to create same PDF file with PHP, i find that i must to install > something like PDFLib but i can't how to istall on linux. Does somebody > can help me. > > Thanks a lot. > Jordan > If i can suggest an alte

Re: [PHP] Install library

2010-09-17 Thread Bastien Koert
On Fri, Sep 17, 2010 at 9:37 AM, Jordan Jovanov wrote: > Hello everybody, > > I like to create same PDF file with PHP, i find that i must to install > something like PDFLib but i can't how to istall on linux. Does somebody can > help me. > > Thanks a lot. > Jordan > > -- > PHP General Mailing List

[PHP] Install library

2010-09-17 Thread Jordan Jovanov
Hello everybody, I like to create same PDF file with PHP, i find that i must to install something like PDFLib but i can't how to istall on linux. Does somebody can help me. Thanks a lot. Jordan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] Interacting With Shell

2010-09-17 Thread Floyd Resler
I need to run a Linux command from within PHP but the command has interaction. At one point I need to enter a password. Is this type of interaction possible inside a PHP script? Thanks! Floyd smime.p7s Description: S/MIME cryptographic signature

RE: [PHP] Session Vars loaded from MSSQL Query drop, those loaded from MYSQL Query stick

2010-09-17 Thread Cheryl Sullivan
Hi Andrew - I didn't mean to ignore your reply... Here is your earlier post - " The fact that you can echo the $_SESSION information on the same page and they contain the correct values suggest to me that the issue of MySQL/MSSQL is a red herring. I would look into things like the value for re

[PHP] Randomly duplicated Session Id between hosts

2010-09-17 Thread Vertebrac
Hi all!! I have a server running: Debian Lenny Apache/2.2.9 (Debian) DAV/2 SVN/1.5.1 PHP/5.2.6-1+lenny9 with Suhosin-Patch Clients connect to the system using firefox browser (all of them), and some of them have cloned machines (win 7 - Norton Ghost). I mention this in case that the session id g