php-windows Digest 11 Jan 2001 19:28:31 -0000 Issue 391

Topics (messages 4916 through 4925):

directory/file comparing
        4916 by: phobo

mail() - Failed to connect
        4917 by: Vlad
        4919 by: phobo

Removing Content
        4918 by: Ben Cairns
        4924 by: Alain Samoun
        4925 by: kill-9

Help get sockets working
        4920 by: Tripp Allen
        4921 by: kill-9

Probably there is better solution
        4922 by: afan
        4923 by: Jan Walter

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Has anyone out there written, or know of sorce for a directory comparing
algorythm?

I want it to compare two folders (and their subfolders) on:
 - different filesize
 - different time/date modifed
 - files which are not found in the other folder

When it outputs the data I want it to show two columns, listing files
vertically file for file highlighting any file which is newer or bigger than
its counterpart. Files which don't have a counterpart will be visiable
because the other column will be blank.

I could sit down for a few hours and code it but if its already out there,
why bother? I release my code out to people so that they dont have to
reinvent the wheel, like I often seem to do.

Siggy





Hi All
why
mail($to, $subj, $message);
fails with warning Failed to connect at line ...
Thanks Vlad...






What mail settings do you have in the php.ini ?
ensure the win32 only ones are correctly specified (i assume you are win32
on this list!)

SMTP   = your.smtp.server
sendmail_from = [EMAIL PROTECTED]

siggy

----- Original Message -----
From: "Vlad" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 7:56 PM
Subject: [PHP-WIN] mail() - Failed to connect


> Hi All
> why
> mail($to, $subj, $message);
> fails with warning Failed to connect at line ...
> Thanks Vlad...
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>





I have a script that looks at a web page, parses it and grab the HTML content 
between two Tags, then outputs the result to a file.

What I need to do is another script to read this file, remove more text 
between two tags, and then display this.

How can I do this?

-- Ben Cairns - Head Of Technical Operations
intasept.COM
Tel: 01332 365333
Fax: 01332 346010
E-Mail: [EMAIL PROTECTED]
Web: http://www.intasept.com

"MAKING sense of
the INFORMATION
TECHNOLOGY age
@ WORK......"





Ben:
People here can give you a lot of different solutions (more or less
'elegant') to solve your problem. But it seems that at this point, you need
to READ THE MANUAL or at least to get the description of the many PHP
functions (Booklet from RASMUS at O'Reilly for example).
You know the story of the fish and fishing pole...
I like this version:
"Teach them how to fish, you will be able to sell them a lot of fishing
poles." ;)

Alain

On Thu, Jan 11, 2001 at 10:00:03AM +0000, Ben Cairns wrote:
> I have a script that looks at a web page, parses it and grab the HTML content 
> between two Tags, then outputs the result to a file.
> 
> What I need to do is another script to read this file, remove more text 
> between two tags, and then display this.
> 
> How can I do this?
> 
> -- Ben Cairns - Head Of Technical Operations
> intasept.COM
> Tel: 01332 365333
> Fax: 01332 346010
> E-Mail: [EMAIL PROTECTED]
> Web: http://www.intasept.com
> 
> "MAKING sense of
> the INFORMATION
> TECHNOLOGY age
> @ WORK......"
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]




alain I agree with you but its a big fish pond and the fish he is looking
for is in one corner of it wouldn't it be nice to at least tell him what
section of the pond to look in?

Ben:  check the manual under string functions most of what you need is
there.

kill-9
www.kill-9.dk
for all your php and mysql needs.


----- Original Message -----
From: "Alain Samoun" <[EMAIL PROTECTED]>
To: "Ben Cairns" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 7:24 PM
Subject: Re: [PHP-WIN] Removing Content


> Ben:
> People here can give you a lot of different solutions (more or less
> 'elegant') to solve your problem. But it seems that at this point, you
need
> to READ THE MANUAL or at least to get the description of the many PHP
> functions (Booklet from RASMUS at O'Reilly for example).
> You know the story of the fish and fishing pole...
> I like this version:
> "Teach them how to fish, you will be able to sell them a lot of fishing
> poles." ;)
>
> Alain
>
> On Thu, Jan 11, 2001 at 10:00:03AM +0000, Ben Cairns wrote:
> > I have a script that looks at a web page, parses it and grab the HTML
content
> > between two Tags, then outputs the result to a file.
> >
> > What I need to do is another script to read this file, remove more text
> > between two tags, and then display this.
> >
> > How can I do this?
> >
> > -- Ben Cairns - Head Of Technical Operations
> > intasept.COM
> > Tel: 01332 365333
> > Fax: 01332 346010
> > E-Mail: [EMAIL PROTECTED]
> > Web: http://www.intasept.com
> >
> > "MAKING sense of
> > the INFORMATION
> > TECHNOLOGY age
> > @ WORK......"
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>





I'm trying to use the socket functions (php ver 4.04), but I keep getting the error 
"call to undefined function socket()".  Can anyone tell me how to enable the sockets 
library?

Thanks





I had the same problem.

the problem is that there is no dll for the php socket functions available
for win32 yet (to my knowledge).  If you find one let me know to please!  I
want it.

kill-9
www.kill-9.dk
for all your php and mysql needs

----- Original Message -----
From: "Tripp Allen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 3:25 PM
Subject: [PHP-WIN] Help get sockets working


I'm trying to use the socket functions (php ver 4.04), but I keep getting
the error "call to undefined function socket()".  Can anyone tell me how to
enable the sockets library?

Thanks







Hi all,

I have to know how many entries I have in table/database. Usually, I use
 
$result = mysql_query("SELECT any_name_of_column FROM table_name", $db);
 while($myrow = mysql_fetch_array($result));
 {
  $Counter++;
 }
echo"No of entries: $Checker<br>\n";

Probably there is better and faster solution.

Thanks for any help!

Afan




afan wrote:

> I have to know how many entries I have in table/database. Usually, I use
>
> $result = mysql_query("SELECT any_name_of_column FROM table_name", $db);
>  while($myrow = mysql_fetch_array($result));
>  {
>   $Counter++;
>  }
> echo"No of entries: $Checker<br>\n";

Hi Afan,

try query SELECT COUNT(*) FROM table_name.
--
__________________________________________________________________________________________

==========================================================================================

Jan Walter, called John
LERACH, s.r.o.
phone nr. work: +420-2-78 22 619, home: +420-2-35 35 27 61
on emergency call cell phone: +420-602-385 760
work e-mail mailto:[EMAIL PROTECTED]
private e-mail mailto:[EMAIL PROTECTED]
ICQ#: 28353428
__________________________________________________________________________________________

==========================================================================================





Reply via email to