|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help_at_lists.php.net
Date: Wed Jan 08 2003 - 05:13:55 CST
php-general Digest 8 Jan 2003 11:13:55 -0000 Issue 1810
Topics (messages 130639 through 130752):
graph libs
130639 by: Larry Brown
anyway to do a 'whos online' from session variable?
130640 by: Jeff Bluemel
130641 by: Timothy Hitchens \(HiTCHO\)
130667 by: Jeff Bluemel
130668 by: Timothy Hitchens \(HiTCHO\)
130669 by: Jeff Bluemel
130686 by: ed.home.homes2see.com
130687 by: Timothy Hitchens \(HiTCHO\)
restrictions
130642 by: Bruce Levick
130643 by: Marco Tabini
130644 by: Timothy Hitchens \(HiTCHO\)
130645 by: Bruce Levick
130646 by: Marco Tabini
130647 by: Larry Brown
130648 by: Timothy Hitchens \(HiTCHO\)
130650 by: Bruce Levick
130651 by: Bruce Levick
130655 by: Marco Tabini
130656 by: Sean Malloy
130657 by: Timothy Hitchens \(HiTCHO\)
130658 by: Bruce Levick
130659 by: Bruce Levick
130660 by: Bruce Levick
130662 by: Timothy Hitchens \(HiTCHO\)
130664 by: Bruce Levick
130665 by: Bruce Levick
130666 by: Timothy Hitchens \(HiTCHO\)
Random array element
130649 by: Øystein Håland
130654 by: Sean Malloy
Upgrading to 4.3.0
130652 by: PHP List
~E_NOTICE, why not ?
130653 by: Pupeno
130711 by: Jean-Christian Imbeault
130712 by: Jean-Christian Imbeault
Re: Zend IDE vs. PhpEd
130661 by: Jason Wong
130663 by: Pupeno
Upgrade help!
130670 by: PHP List
Sessions error
130671 by: Mike Tuller
130752 by: Ford, Mike [LSS]
help - WHILE in FOREACH
130672 by: James Brennan
130678 by: Matt
130682 by: Rick Emery
130683 by: James Brennan
130684 by: Chris Wesley
130713 by: James Brennan
Img src
130673 by: Ezequiel Sapoznik
130675 by: Rick Emery
HTTP_WEFERER
130674 by: bill
130676 by: Sean Malloy
130681 by: Matt
Re: PHP Editors
130677 by: Pierre-Luc Soucy
130680 by: Timothy Hitchens \(HiTCHO\)
130729 by: Krzysztof Dziekiewicz
Re: Forwarding POST info from a PHP script
130679 by: Tom Rogers
htmlspecialchars() or htmlentities without destroying tags?
130685 by: Justin French
130696 by: Greg Beaver
130698 by: Timothy Hitchens \(HiTCHO\)
130700 by: Justin French
How to detect a PHP script time-out?
130688 by: Jean-Christian Imbeault
130689 by: Timothy Hitchens \(HiTCHO\)
130690 by: Jean-Christian Imbeault
130691 by: Timothy Hitchens \(HiTCHO\)
130697 by: Greg Beaver
130702 by: Jean-Christian Imbeault
130703 by: Timothy Hitchens \(HiTCHO\)
130704 by: Greg Beaver
130707 by: Jean-Christian Imbeault
130714 by: Timothy Hitchens \(HiTCHO\)
130715 by: Jean-Christian Imbeault
130718 by: Timothy Hitchens \(HiTCHO\)
130721 by: Jean-Christian Imbeault
Re: Double entry into MySQL..
130692 by: Altug Sahin
130695 by: Timothy Hitchens \(HiTCHO\)
130731 by: Marek Kilimajer
130733 by: Timothy Hitchens \(HiTCHO\)
mkdir(blah,0777)
130693 by: rw.xend.net
130694 by: Jason Wong
130699 by: rw.xend.net
unlink ($files);
130701 by: rw.xend.net
130716 by: Paul Nicholson
scheduling / timetables
130705 by: M.E. Suliman
Need a suggestion on developing a php-related system
130706 by: Kelvin Poon
130708 by: Peter Houchin
130709 by: Peter Houchin
130710 by: Manuel Lemos
130722 by: Larry Brown
Re: PHP vs. ASP
130717 by: See kok Boon
130719 by: Sean Malloy
130720 by: Sean Malloy
Re: PHP and MySQL bug
130723 by: Nuno Lopes
130724 by: Nuno Lopes
Re: how to generate one in a string
130725 by: Jean-Christian Imbeault
130727 by: Benjamin Niemann
130730 by: Marek Kilimajer
130732 by: Jean-Christian Imbeault
130737 by: Jean-Christian Imbeault
130738 by: Marek Kilimajer
130739 by: Jean-Christian Imbeault
130740 by: Jean-Christian Imbeault
130741 by: Timothy Hitchens \(HiTCHO\)
130743 by: Jason Wong
130748 by: Jean-Christian Imbeault
Re: MySQL vs PostgreSQL
130726 by: Krzysztof Dziekiewicz
Re: Directory Listing with php on unix boxes
130728 by: Krzysztof Dziekiewicz
uid checked by file_exists()
130734 by: Emmanuel.Leguy
130736 by: Timothy Hitchens \(HiTCHO\)
130744 by: Emmanuel.Leguy
Build errors: php 4.3.0 on FreeBSD 5.0 RC2
130735 by: Alexander Rijnbeek
$_SERVER content
130742 by: Fritzek
130745 by: Marek Kilimajer
130746 by: Jason Wong
130747 by: Fritzek
130749 by: Fritzek
130750 by: Marek Kilimajer
130751 by: Rick Widmer
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
Can anyone give any suggestions on the best/most intuitive tools or
libraries for generating graphs with PHP?
Larry S. Brown
Dimension Networks, Inc.
(727) 723-8388
attached mail follows:
when a user logs into my system I set a variable $_SESSION['username'].
now, every page somebody pulls up it revalidates their login so somebody
cannot get into the backend of the system.
now - is there a way I can make a utility that will show me the session
username's that are in use? it would be useful to be able to know who's
currently online. this is a website that will not be published, and is used
for a VERY limited number of people.
Jeff
attached mail follows:
Simple create a database table for logins and have a status that you
set to online / offline and last seen could also be added.
Then it is just a simple SELECT statement.
If you don't want to use a database you could flock (not perfect) a file
then read in a serialised array and update then write out and unlock.
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Jeff Bluemel [mailto:jeff
domintcom.com]
> Sent: Wednesday, 8 January 2003 9:08 AM
> To: php-general
lists.php.net
> Subject: [PHP] anyway to do a 'whos online' from session variable?
>
>
> when a user logs into my system I set a variable
> $_SESSION['username']. now, every page somebody pulls up it
> revalidates their login so somebody cannot get into the
> backend of the system.
>
> now - is there a way I can make a utility that will show me
> the session username's that are in use? it would be useful
> to be able to know who's currently online. this is a website
> that will not be published, and is used for a VERY limited
> number of people.
>
> Jeff
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
yea, that will work. however, I was thinking of something a little more
dramatic like parsing the /tmp directly, associating ID's, and killing dead
sessions etc.
"Timothy Hitchens )" <phplists
hitcho.com.au> wrote in message
news:004701c2b6a2$2dfeb6a0$0500a8c0
bambino...
> Simple create a database table for logins and have a status that you
> set to online / offline and last seen could also be added.
>
> Then it is just a simple SELECT statement.
>
> If you don't want to use a database you could flock (not perfect) a file
> then read in a serialised array and update then write out and unlock.
>
>
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> tim
hitcho.com.au
>
> > -----Original Message-----
> > From: Jeff Bluemel [mailto:jeff
domintcom.com]
> > Sent: Wednesday, 8 January 2003 9:08 AM
> > To: php-general
lists.php.net
> > Subject: [PHP] anyway to do a 'whos online' from session variable?
> >
> >
> > when a user logs into my system I set a variable
> > $_SESSION['username']. now, every page somebody pulls up it
> > revalidates their login so somebody cannot get into the
> > backend of the system.
> >
> > now - is there a way I can make a utility that will show me
> > the session username's that are in use? it would be useful
> > to be able to know who's currently online. this is a website
> > that will not be published, and is used for a VERY limited
> > number of people.
> >
> > Jeff
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
Hmm... yes you could create an array of the files then check the last
mod stamp using stat (remember to reset stat).
Sessions are also cleaned up via the garbage collection system
controlled via php.ini
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Jeff Bluemel [mailto:jeff
domintcom.com]
> Sent: Wednesday, 8 January 2003 10:04 AM
> To: php-general
lists.php.net
> Subject: Re: [PHP] anyway to do a 'whos online' from session variable?
>
>
> yea, that will work. however, I was thinking of something a
> little more dramatic like parsing the /tmp directly,
> associating ID's, and killing dead sessions etc.
>
> "Timothy Hitchens )" <phplists
hitcho.com.au> wrote in
> message news:004701c2b6a2$2dfeb6a0$0500a8c0
bambino...
> > Simple create a database table for logins and have a status
> that you
> > set to online / offline and last seen could also be added.
> >
> > Then it is just a simple SELECT statement.
> >
> > If you don't want to use a database you could flock (not perfect) a
> > file then read in a serialised array and update then write out and
> > unlock.
> >
> >
> >
> > HiTCHO has Spoken!
> > Timothy Hitchens (HiTCHO)
> > tim
hitcho.com.au
> >
> > > -----Original Message-----
> > > From: Jeff Bluemel [mailto:jeff
domintcom.com]
> > > Sent: Wednesday, 8 January 2003 9:08 AM
> > > To: php-general
lists.php.net
> > > Subject: [PHP] anyway to do a 'whos online' from session variable?
> > >
> > >
> > > when a user logs into my system I set a variable
> > > $_SESSION['username']. now, every page somebody pulls up it
> > > revalidates their login so somebody cannot get into the
> backend of
> > > the system.
> > >
> > > now - is there a way I can make a utility that will show me the
> > > session username's that are in use? it would be useful
> to be able
> > > to know who's currently online. this is a website that
> will not be
> > > published, and is used for a VERY limited number of people.
> > >
> > > Jeff
> > >
> > >
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
thanks... I'm almost done with this project, and I think I will implement
this in the next phase. doesn't sound terribly difficult, but I think I
will hold off. definitely something I will be doing in the future, and
probably not too distance future.
"Timothy Hitchens )" <phplists
hitcho.com.au> wrote in message
news:007301c2b6aa$2fbaebf0$0500a8c0
bambino...
> Hmm... yes you could create an array of the files then check the last
> mod stamp using stat (remember to reset stat).
>
> Sessions are also cleaned up via the garbage collection system
> controlled via php.ini
>
>
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> tim
hitcho.com.au
>
> > -----Original Message-----
> > From: Jeff Bluemel [mailto:jeff
domintcom.com]
> > Sent: Wednesday, 8 January 2003 10:04 AM
> > To: php-general
lists.php.net
> > Subject: Re: [PHP] anyway to do a 'whos online' from session variable?
> >
> >
> > yea, that will work. however, I was thinking of something a
> > little more dramatic like parsing the /tmp directly,
> > associating ID's, and killing dead sessions etc.
> >
> > "Timothy Hitchens )" <phplists
hitcho.com.au> wrote in
> > message news:004701c2b6a2$2dfeb6a0$0500a8c0
bambino...
> > > Simple create a database table for logins and have a status
> > that you
> > > set to online / offline and last seen could also be added.
> > >
> > > Then it is just a simple SELECT statement.
> > >
> > > If you don't want to use a database you could flock (not perfect) a
> > > file then read in a serialised array and update then write out and
> > > unlock.
> > >
> > >
> > >
> > > HiTCHO has Spoken!
> > > Timothy Hitchens (HiTCHO)
> > > tim
hitcho.com.au
> > >
> > > > -----Original Message-----
> > > > From: Jeff Bluemel [mailto:jeff
domintcom.com]
> > > > Sent: Wednesday, 8 January 2003 9:08 AM
> > > > To: php-general
lists.php.net
> > > > Subject: [PHP] anyway to do a 'whos online' from session variable?
> > > >
> > > >
> > > > when a user logs into my system I set a variable
> > > > $_SESSION['username']. now, every page somebody pulls up it
> > > > revalidates their login so somebody cannot get into the
> > backend of
> > > > the system.
> > > >
> > > > now - is there a way I can make a utility that will show me the
> > > > session username's that are in use? it would be useful
> > to be able
> > > > to know who's currently online. this is a website that
> > will not be
> > > > published, and is used for a VERY limited number of people.
> > > >
> > > > Jeff
> > > >
> > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
On Wed, 8 Jan 2003, Timothy Hitchens (HiTCHO) wrote:
> Hmm... yes you could create an array of the files then check the last
> mod stamp using stat (remember to reset stat).
>
> Sessions are also cleaned up via the garbage collection system
> controlled via php.ini
How do you force garbage collection? I've written an application using
sessions for storage and there's been a session sitting in my /tmp
directory for 2 days now, well over the 1440 seconds expiration.
Ed
attached mail follows:
Arr the garbage collection is based on a probability
(session.gc_probability) and therefore it will clean
up if you get enough hits to the server. Check the documentation for
config of sessions.
I use db for sessions with a check to ensure db is available. (you can
then cleanup whatever you want)
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: tim
hitcho.com.au
> -----Original Message-----
> From: ed
home.homes2see.com [mailto:ed
home.homes2see.com]
> Sent: Wednesday, 8 January 2003 1:11 PM
> To: Timothy Hitchens (HiTCHO)
> Cc: 'Jeff Bluemel'; php-general
lists.php.net
> Subject: RE: [PHP] anyway to do a 'whos online' from session variable?
>
>
>
>
> On Wed, 8 Jan 2003, Timothy Hitchens (HiTCHO) wrote:
>
> > Hmm... yes you could create an array of the files then
> check the last
> > mod stamp using stat (remember to reset stat).
> >
> > Sessions are also cleaned up via the garbage collection system
> > controlled via php.ini
>
> How do you force garbage collection? I've written an
> application using sessions for storage and there's been a
> session sitting in my /tmp directory for 2 days now, well
> over the 1440 seconds expiration.
>
> Ed
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
I find that my the company that I work for is a little over protective.
My machine is quite restricted (as in firewall and accessability) when
it comes to ftp and telnet. Well basically my hands are tied in that
sense.
I am testing my database build on my local machine which runs fine and
all. I am curious though as to how these restrictions may affect my
attempts to send "mail()" I have tried various external SMTP srervers (i
am running off winxp pro) in my php.ini file and I get nothing. Just the
error code I have placed in (below).
<?php
if (mail("somebody
somewhere.com", "this title", "testing"))
echo "Mail Sent!";
else
echo "Mail could not be sent...";
?>
Warning: Failed to connect to mailserver, verify your "SMTP" setting in
php.ini in c:\inetpub\wwwroot\_tasks\email.php on line 21
Mail could not be sent...
Would my local machines restrictions be stopping the mail function from
communicating with the SMTP server??
Cheers
attached mail follows:
Hello Bruce--
That depends on what restrictions are imposed on your box, of course.
Does your company use an SMTP-compatible mail server for your internal
mail? If so, you could use the server your mail client points to to
perform your tests.
Cheers,
Marco
-- ---------------- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com! GET YOUR FREE COPY TODAY! Simply register & download!
attached mail follows:
I find that my the company that I work for is a little over protective.
My machine is quite restricted (as in firewall and accessability) when
it comes to ftp and telnet. Well basically my hands are tied in that
sense.
I am testing my database build on my local machine which runs fine and
all. I am curious though as to how these restrictions may affect my
attempts to send "mail()" I have tried various external SMTP srervers (i
am running off winxp pro) in my php.ini file and I get nothing. Just the
error code I have placed in (below).
<?php
if (mail("somebody
somewhere.com", "this title", "testing"))
echo "Mail Sent!";
else
echo "Mail could not be sent...";
?> Warning: Failed to connect to mailserver, verify your "SMTP" setting in php.ini in c:\inetpub\wwwroot\_tasks\email.php on line 21 Mail could not be sent... Would my local machines restrictions be stopping the mail function from communicating with the SMTP server?? Cheers
--=-mFxJTBUHIgCYum9zUMbk--
attached mail follows:
This is outgoing traffic the same as if you where surfing the Internet and as the connection is an established one your machine will allow it.
I would suggest looking at the (server) as it may not allow relaying etc!!
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:19 AM
> To: php-general
lists.php.net
> Subject: [PHP] restrictions
>
>
> I find that my the company that I work for is a little over
> protective. My machine is quite restricted (as in firewall
> and accessability) when it comes to ftp and telnet. Well
> basically my hands are tied in that sense.
>
> I am testing my database build on my local machine which runs
> fine and all. I am curious though as to how these
> restrictions may affect my attempts to send "mail()" I have
> tried various external SMTP srervers (i am running off winxp
> pro) in my php.ini file and I get nothing. Just the error
> code I have placed in (below).
>
> <?php
>
> if (mail("somebody
somewhere.com", "this title", "testing"))
> echo "Mail Sent!";
> else
> echo "Mail could not be sent...";
>
>
> ?>
>
> Warning: Failed to connect to mailserver, verify your "SMTP"
> setting in php.ini in c:\inetpub\wwwroot\_tasks\email.php on
> line 21 Mail could not be sent...
>
>
> Would my local machines restrictions be stopping the mail
> function from communicating with the SMTP server??
>
> Cheers
>
>
attached mail follows:
Well I can't be totally sure but I think all outgoing mail points to an external SMTP server.
-----Original Message-----
From: Marco Tabini [mailto:marcot
tabini.ca]
Sent: Wednesday, January 08, 2003 9:11 AM
To: Bruce Levick
Cc: php-general
lists.php.net
Subject: Re: [PHP] restrictions
Hello Bruce--
That depends on what restrictions are imposed on your box, of course. Does your company use an SMTP-compatible mail server for your internal mail? If so, you could use the server your mail client points to to perform your tests.
Cheers,
Marco
-- ---------------- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com! GET YOUR FREE COPY TODAY! Simply register & download!
attached mail follows:
Couple of suggestions:
1) Try connection to the SMTP server manually with Telnet, and see if you discover more that way
2) Simply use the same SMTP server that is configured in your mail client at work
Cheers,
Marco
-- ---------------- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com!
attached mail follows:
Well I can't be totally sure but I think all outgoing mail points to an external SMTP server.
-----Original Message-----
From: Marco Tabini [mailto:marcot
tabini.ca]
Sent: Wednesday, January 08, 2003 9:11 AM
To: Bruce Levick
Cc: php-general
lists.php.net
Subject: Re: [PHP] restrictions
Hello Bruce--
That depends on what restrictions are imposed on your box, of course. Does your company use an SMTP-compatible mail server for your internal mail? If so, you could use the server your mail client points to to perform your tests.
Cheers,
Marco
-- ---------------- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com! GET YOUR FREE COPY TODAY! Simply register & download!
attached mail follows:
Just use the smtp server you use for mail. Oh you might not use smtp for corporate environment? Just use something like outlook express or some other smtp enabled client to send to these various smtp servers you are trying to use for the php scripts first. Then if it works with the mail client then you should reasonably expect the php to work.
Larry S. Brown Dimension Networks, Inc. (727) 723-8388
-----Original Message-----
From: Bruce Levick [mailto:brucel
ispye.com]
Sent: Tuesday, January 07, 2003 6:19 PM
To: php-general
lists.php.net
Subject: [PHP] restrictions
I find that my the company that I work for is a little over protective. My machine is quite restricted (as in firewall and accessability) when it comes to ftp and telnet. Well basically my hands are tied in that sense.
I am testing my database build on my local machine which runs fine and all. I am curious though as to how these restrictions may affect my attempts to send "mail()" I have tried various external SMTP srervers (i am running off winxp pro) in my php.ini file and I get nothing. Just the error code I have placed in (below).
<?php
if (mail("somebody
somewhere.com", "this title", "testing"))
echo "Mail Sent!";
else
echo "Mail could not be sent...";
?>
Warning: Failed to connect to mailserver, verify your "SMTP" setting in php.ini in c:\inetpub\wwwroot\_tasks\email.php on line 21 Mail could not be sent...
Would my local machines restrictions be stopping the mail function from communicating with the SMTP server??
Cheers
attached mail follows:
In windowsxp do the following:
Start -> Run
Open: cmd
At the shell type:
telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
If you get a prompt then you have other issues such as relay etc etc
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:25 AM
> To: Marco Tabini
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Well I can't be totally sure but I think all outgoing mail
> points to an external SMTP server.
>
> -----Original Message-----
> From: Marco Tabini [mailto:marcot
tabini.ca]
> Sent: Wednesday, January 08, 2003 9:11 AM
> To: Bruce Levick
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] restrictions
>
>
> Hello Bruce--
>
> That depends on what restrictions are imposed on your box, of
> course. Does your company use an SMTP-compatible mail server
> for your internal mail? If so, you could use the server your
> mail client points to to perform your tests.
>
> Cheers,
>
>
> Marco
> --
> ----------------
> php|architect - The Monthly Magazine for PHP Professionals
> Come check us out on the web at http://www.phparch.com!
> GET YOUR FREE COPY TODAY! Simply register & download!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
I can't connect to anything via telnet whether its my works SMTP server or another external server.
My works SMTP mail server was the first one I tried (this would be logical). I have tried my own personal website mail server and that fails too.
This is why I am thinking that its my computer restrictions.
-----Original Message-----
From: Marco Tabini [mailto:marcot
tabini.ca]
Sent: Wednesday, January 08, 2003 9:16 AM
To: Bruce Levick
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
Couple of suggestions:
1) Try connection to the SMTP server manually with Telnet, and see if you discover more that way
2) Simply use the same SMTP server that is configured in your mail client at work
Cheers,
Marco
-- ---------------- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com!
attached mail follows:
Thanks, Tried this and I get.
"Cannot opeen connection to host on port 23"
-----Original Message-----
From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
Sent: Wednesday, January 08, 2003 9:32 AM
To: Bruce Levick; 'Marco Tabini'
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
In windowsxp do the following:
Start -> Run
Open: cmd
At the shell type:
telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
If you get a prompt then you have other issues such as relay etc etc
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:25 AM
> To: Marco Tabini
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Well I can't be totally sure but I think all outgoing mail
> points to an external SMTP server.
>
> -----Original Message-----
> From: Marco Tabini [mailto:marcot
tabini.ca]
> Sent: Wednesday, January 08, 2003 9:11 AM
> To: Bruce Levick
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] restrictions
>
>
> Hello Bruce--
>
> That depends on what restrictions are imposed on your box, of
> course. Does your company use an SMTP-compatible mail server
> for your internal mail? If so, you could use the server your
> mail client points to to perform your tests.
>
> Cheers,
>
>
> Marco
> --
> ----------------
> php|architect - The Monthly Magazine for PHP Professionals
> Come check us out on the web at http://www.phparch.com!
> GET YOUR FREE COPY TODAY! Simply register & download!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
It should say "port 25". If it's just a typo in your message, then it could either be the restrictions or a general network problem--I know this sounds stupid, but can you connect *at all* to anything else--ie. a website?
Cheers,
Marco
-- ---------------- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com!
attached mail follows:
Thanks, Tried this and I get.
"Cannot opeen connection to host on port 23"
-----Original Message-----
From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
Sent: Wednesday, January 08, 2003 9:32 AM
To: Bruce Levick; 'Marco Tabini'
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
In windowsxp do the following:
Start -> Run
Open: cmd
At the shell type:
telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
If you get a prompt then you have other issues such as relay etc etc
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:25 AM
> To: Marco Tabini
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Well I can't be totally sure but I think all outgoing mail
> points to an external SMTP server.
>
> -----Original Message-----
> From: Marco Tabini [mailto:marcot
tabini.ca]
> Sent: Wednesday, January 08, 2003 9:11 AM
> To: Bruce Levick
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] restrictions
>
>
> Hello Bruce--
>
> That depends on what restrictions are imposed on your box, of
> course. Does your company use an SMTP-compatible mail server
> for your internal mail? If so, you could use the server your
> mail client points to to perform your tests.
>
> Cheers,
>
>
> Marco
> --
> ----------------
> php|architect - The Monthly Magazine for PHP Professionals
> Come check us out on the web at http://www.phparch.com!
> GET YOUR FREE COPY TODAY! Simply register & download!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
SMTP = port 25
telnet <mailserver> 25
should do the trick
-----Original Message-----
From: Bruce Levick [mailto:brucel
ispye.com]
Sent: Wednesday, 8 January 2003 10:35 AM
To: Timothy Hitchens (HiTCHO)
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
Thanks, Tried this and I get.
"Cannot opeen connection to host on port 23"
-----Original Message-----
From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
Sent: Wednesday, January 08, 2003 9:32 AM
To: Bruce Levick; 'Marco Tabini'
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
In windowsxp do the following:
Start -> Run
Open: cmd
At the shell type:
telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
If you get a prompt then you have other issues such as relay etc etc
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:25 AM
> To: Marco Tabini
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Well I can't be totally sure but I think all outgoing mail
> points to an external SMTP server.
>
> -----Original Message-----
> From: Marco Tabini [mailto:marcot
tabini.ca]
> Sent: Wednesday, January 08, 2003 9:11 AM
> To: Bruce Levick
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] restrictions
>
>
> Hello Bruce--
>
> That depends on what restrictions are imposed on your box, of
> course. Does your company use an SMTP-compatible mail server
> for your internal mail? If so, you could use the server your
> mail client points to to perform your tests.
>
> Cheers,
>
>
> Marco
> --
> ----------------
> php|architect - The Monthly Magazine for PHP Professionals
> Come check us out on the web at http://www.phparch.com!
> GET YOUR FREE COPY TODAY! Simply register & download!
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
You need to follow my instructions and do "telnet x.x.x.x 25" notice the 25 after the IP ??
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:35 AM
> To: Timothy Hitchens (HiTCHO)
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Thanks,
> Tried this and I get.
>
> "Cannot opeen connection to host on port 23"
>
>
>
> -----Original Message-----
> From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> Sent: Wednesday, January 08, 2003 9:32 AM
> To: Bruce Levick; 'Marco Tabini'
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> In windowsxp do the following:
>
> Start -> Run
>
> Open: cmd
>
> At the shell type:
>
> telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
>
> If you get a prompt then you have other issues such as relay etc etc
>
>
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> tim
hitcho.com.au
>
> > -----Original Message-----
> > From: Bruce Levick [mailto:brucel
ispye.com]
> > Sent: Wednesday, 8 January 2003 9:25 AM
> > To: Marco Tabini
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > Well I can't be totally sure but I think all outgoing mail
> points to
> > an external SMTP server.
> >
> > -----Original Message-----
> > From: Marco Tabini [mailto:marcot
tabini.ca]
> > Sent: Wednesday, January 08, 2003 9:11 AM
> > To: Bruce Levick
> > Cc: php-general
lists.php.net
> > Subject: Re: [PHP] restrictions
> >
> >
> > Hello Bruce--
> >
> > That depends on what restrictions are imposed on your box,
> of course.
> > Does your company use an SMTP-compatible mail server for
> your internal
> > mail? If so, you could use the server your mail client points to to
> > perform your tests.
> >
> > Cheers,
> >
> >
> > Marco
> > --
> > ----------------
> > php|architect - The Monthly Magazine for PHP Professionals
> > Come check us out on the web at http://www.phparch.com!
> > GET YOUR FREE COPY TODAY! Simply register & download!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
It definitely says port 23. And I can't connect to anything at all. I even tried my own my local machine IP address and that doesn't work either. Weird.
-----Original Message-----
From: Marco Tabini [mailto:marcot
tabini.ca]
Sent: Wednesday, January 08, 2003 9:29 AM
To: Bruce Levick
Cc: Timothy "Hitchens (HiTCHO); php-general
lists.php.net
Subject: RE: [PHP] restrictions
It should say "port 25". If it's just a typo in your message, then it could either be the restrictions or a general network problem--I know this sounds stupid, but can you connect *at all* to anything else--ie. a website?
Cheers,
Marco
-- ---------------- php|architect - The Monthly Magazine for PHP Professionals Come check us out on the web at http://www.phparch.com!
attached mail follows:
Connection failed on port 25 as well.
-----Original Message-----
From: Sean Malloy [mailto:sean
element.net.au]
Sent: Wednesday, January 08, 2003 9:41 AM
To: php-general
lists.php.net; Bruce Levick
Subject: RE: [PHP] restrictions
SMTP = port 25
telnet <mailserver> 25
should do the trick
-----Original Message-----
From: Bruce Levick [mailto:brucel
ispye.com]
Sent: Wednesday, 8 January 2003 10:35 AM
To: Timothy Hitchens (HiTCHO)
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
Thanks, Tried this and I get.
"Cannot opeen connection to host on port 23"
-----Original Message-----
From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
Sent: Wednesday, January 08, 2003 9:32 AM
To: Bruce Levick; 'Marco Tabini'
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
In windowsxp do the following:
Start -> Run
Open: cmd
At the shell type:
telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
If you get a prompt then you have other issues such as relay etc etc
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:25 AM
> To: Marco Tabini
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Well I can't be totally sure but I think all outgoing mail points to
> an external SMTP server.
>
> -----Original Message-----
> From: Marco Tabini [mailto:marcot
tabini.ca]
> Sent: Wednesday, January 08, 2003 9:11 AM
> To: Bruce Levick
> Cc: php-general
lists.php.net
> Subject: Re: [PHP] restrictions
>
>
> Hello Bruce--
>
> That depends on what restrictions are imposed on your box, of course.
> Does your company use an SMTP-compatible mail server for your internal
> mail? If so, you could use the server your mail client points to to > perform your tests. > > Cheers, > > > Marco > -- > ---------------- > php|architect - The Monthly Magazine for PHP Professionals > Come check us out on the web at http://www.phparch.com! > GET YOUR FREE COPY TODAY! Simply register & download! > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Sorry, I tried this as well and it failed to connect on port 25.
-----Original Message-----
From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
Sent: Wednesday, January 08, 2003 9:39 AM
To: Bruce Levick
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
You need to follow my instructions and do "telnet x.x.x.x 25" notice the 25 after the IP ??
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:35 AM
> To: Timothy Hitchens (HiTCHO)
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Thanks,
> Tried this and I get.
>
> "Cannot opeen connection to host on port 23"
>
>
>
> -----Original Message-----
> From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> Sent: Wednesday, January 08, 2003 9:32 AM
> To: Bruce Levick; 'Marco Tabini'
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> In windowsxp do the following:
>
> Start -> Run
>
> Open: cmd
>
> At the shell type:
>
> telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
>
> If you get a prompt then you have other issues such as relay etc etc
>
>
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> tim
hitcho.com.au
>
> > -----Original Message-----
> > From: Bruce Levick [mailto:brucel
ispye.com]
> > Sent: Wednesday, 8 January 2003 9:25 AM
> > To: Marco Tabini
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > Well I can't be totally sure but I think all outgoing mail
> points to
> > an external SMTP server.
> >
> > -----Original Message-----
> > From: Marco Tabini [mailto:marcot
tabini.ca]
> > Sent: Wednesday, January 08, 2003 9:11 AM
> > To: Bruce Levick
> > Cc: php-general
lists.php.net
> > Subject: Re: [PHP] restrictions
> >
> >
> > Hello Bruce--
> >
> > That depends on what restrictions are imposed on your box,
> of course.
> > Does your company use an SMTP-compatible mail server for
> your internal
> > mail? If so, you could use the server your mail client points to to
> > perform your tests.
> >
> > Cheers,
> >
> >
> > Marco
> > --
> > ----------------
> > php|architect - The Monthly Magazine for PHP Professionals
> > Come check us out on the web at http://www.phparch.com!
> > GET YOUR FREE COPY TODAY! Simply register & download!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
Are you surfing and emailing from this box right now?? (strange if you are)
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:47 AM
> To: Timothy Hitchens (HiTCHO)
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Sorry, I tried this as well and it failed to connect on port 25.
>
> -----Original Message-----
> From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> Sent: Wednesday, January 08, 2003 9:39 AM
> To: Bruce Levick
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> You need to follow my instructions and do "telnet x.x.x.x 25"
> notice the 25 after the IP ??
>
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> tim
hitcho.com.au
>
> > -----Original Message-----
> > From: Bruce Levick [mailto:brucel
ispye.com]
> > Sent: Wednesday, 8 January 2003 9:35 AM
> > To: Timothy Hitchens (HiTCHO)
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > Thanks,
> > Tried this and I get.
> >
> > "Cannot opeen connection to host on port 23"
> >
> >
> >
> > -----Original Message-----
> > From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> > Sent: Wednesday, January 08, 2003 9:32 AM
> > To: Bruce Levick; 'Marco Tabini'
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > In windowsxp do the following:
> >
> > Start -> Run
> >
> > Open: cmd
> >
> > At the shell type:
> >
> > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
> >
> > If you get a prompt then you have other issues such as relay etc etc
> >
> >
> >
> > HiTCHO has Spoken!
> > Timothy Hitchens (HiTCHO)
> > tim
hitcho.com.au
> >
> > > -----Original Message-----
> > > From: Bruce Levick [mailto:brucel
ispye.com]
> > > Sent: Wednesday, 8 January 2003 9:25 AM
> > > To: Marco Tabini
> > > Cc: php-general
lists.php.net
> > > Subject: RE: [PHP] restrictions
> > >
> > >
> > > Well I can't be totally sure but I think all outgoing mail
> > points to
> > > an external SMTP server.
> > >
> > > -----Original Message-----
> > > From: Marco Tabini [mailto:marcot
tabini.ca]
> > > Sent: Wednesday, January 08, 2003 9:11 AM
> > > To: Bruce Levick
> > > Cc: php-general
lists.php.net
> > > Subject: Re: [PHP] restrictions
> > >
> > >
> > > Hello Bruce--
> > >
> > > That depends on what restrictions are imposed on your box,
> > of course.
> > > Does your company use an SMTP-compatible mail server for
> > your internal
> > > mail? If so, you could use the server your mail client
> points to to
> > > perform your tests.
> > >
> > > Cheers,
> > >
> > >
> > > Marco
> > > --
> > > ----------------
> > > php|architect - The Monthly Magazine for PHP Professionals
> > > Come check us out on the web at http://www.phparch.com!
> > > GET YOUR FREE COPY TODAY! Simply register & download!
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
Yes I am and its very strange. I can't even ftp to my own website to test it from there.
-----Original Message-----
From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
Sent: Wednesday, January 08, 2003 9:48 AM
To: Bruce Levick
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
Are you surfing and emailing from this box right now?? (strange if you are)
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:47 AM
> To: Timothy Hitchens (HiTCHO)
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Sorry, I tried this as well and it failed to connect on port 25.
>
> -----Original Message-----
> From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> Sent: Wednesday, January 08, 2003 9:39 AM
> To: Bruce Levick
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> You need to follow my instructions and do "telnet x.x.x.x 25"
> notice the 25 after the IP ??
>
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> tim
hitcho.com.au
>
> > -----Original Message-----
> > From: Bruce Levick [mailto:brucel
ispye.com]
> > Sent: Wednesday, 8 January 2003 9:35 AM
> > To: Timothy Hitchens (HiTCHO)
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > Thanks,
> > Tried this and I get.
> >
> > "Cannot opeen connection to host on port 23"
> >
> >
> >
> > -----Original Message-----
> > From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> > Sent: Wednesday, January 08, 2003 9:32 AM
> > To: Bruce Levick; 'Marco Tabini'
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > In windowsxp do the following:
> >
> > Start -> Run
> >
> > Open: cmd
> >
> > At the shell type:
> >
> > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
> >
> > If you get a prompt then you have other issues such as relay etc etc
> >
> >
> >
> > HiTCHO has Spoken!
> > Timothy Hitchens (HiTCHO)
> > tim
hitcho.com.au
> >
> > > -----Original Message-----
> > > From: Bruce Levick [mailto:brucel
ispye.com]
> > > Sent: Wednesday, 8 January 2003 9:25 AM
> > > To: Marco Tabini
> > > Cc: php-general
lists.php.net
> > > Subject: RE: [PHP] restrictions
> > >
> > >
> > > Well I can't be totally sure but I think all outgoing mail
> > points to
> > > an external SMTP server.
> > >
> > > -----Original Message-----
> > > From: Marco Tabini [mailto:marcot
tabini.ca]
> > > Sent: Wednesday, January 08, 2003 9:11 AM
> > > To: Bruce Levick
> > > Cc: php-general
lists.php.net
> > > Subject: Re: [PHP] restrictions
> > >
> > >
> > > Hello Bruce--
> > >
> > > That depends on what restrictions are imposed on your box,
> > of course.
> > > Does your company use an SMTP-compatible mail server for
> > your internal
> > > mail? If so, you could use the server your mail client
> points to to
> > > perform your tests.
> > >
> > > Cheers,
> > >
> > >
> > > Marco
> > > --
> > > ----------------
> > > php|architect - The Monthly Magazine for PHP Professionals
> > > Come check us out on the web at http://www.phparch.com! GET YOUR
> > > FREE COPY TODAY! Simply register & download!
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
It is using a microsoft exchange server.
-----Original Message-----
From: Larry Brown [mailto:larry.brown
dimensionnetworks.com]
Sent: Wednesday, January 08, 2003 9:53 AM
To: Bruce Levick
Subject: RE: [PHP] restrictions
In order to send mail on your mail client you must be able to connect to port 25 on what is listed as your smtp server, otherwise you couldn't send mail. Is your system set up to use an IMAP server of some kind like exchange or the like. That may be what your system uses as a mail transport.
Larry S. Brown Dimension Networks, Inc. (727) 723-8388
-----Original Message-----
From: Bruce Levick [mailto:brucel
ispye.com]
Sent: Tuesday, January 07, 2003 6:47 PM
To: Timothy Hitchens (HiTCHO)
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
Sorry, I tried this as well and it failed to connect on port 25.
-----Original Message-----
From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
Sent: Wednesday, January 08, 2003 9:39 AM
To: Bruce Levick
Cc: php-general
lists.php.net
Subject: RE: [PHP] restrictions
You need to follow my instructions and do "telnet x.x.x.x 25" notice the 25 after the IP ??
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:35 AM
> To: Timothy Hitchens (HiTCHO)
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Thanks,
> Tried this and I get.
>
> "Cannot opeen connection to host on port 23"
>
>
>
> -----Original Message-----
> From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> Sent: Wednesday, January 08, 2003 9:32 AM
> To: Bruce Levick; 'Marco Tabini'
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> In windowsxp do the following:
>
> Start -> Run
>
> Open: cmd
>
> At the shell type:
>
> telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
>
> If you get a prompt then you have other issues such as relay etc etc
>
>
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> tim
hitcho.com.au
>
> > -----Original Message-----
> > From: Bruce Levick [mailto:brucel
ispye.com]
> > Sent: Wednesday, 8 January 2003 9:25 AM
> > To: Marco Tabini
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > Well I can't be totally sure but I think all outgoing mail
> points to
> > an external SMTP server.
> >
> > -----Original Message-----
> > From: Marco Tabini [mailto:marcot
tabini.ca]
> > Sent: Wednesday, January 08, 2003 9:11 AM
> > To: Bruce Levick
> > Cc: php-general
lists.php.net
> > Subject: Re: [PHP] restrictions
> >
> >
> > Hello Bruce--
> >
> > That depends on what restrictions are imposed on your box,
> of course.
> > Does your company use an SMTP-compatible mail server for
> your internal
> > mail? If so, you could use the server your mail client points to to
> > perform your tests.
> >
> > Cheers,
> >
> >
> > Marco
> > --
> > ----------------
> > php|architect - The Monthly Magazine for PHP Professionals
> > Come check us out on the web at http://www.phparch.com!
> > GET YOUR FREE COPY TODAY! Simply register & download!
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
This is now getting to off list issues I would suggest!!
HiTCHO has Spoken!
Timothy Hitchens (HiTCHO)
tim
hitcho.com.au
> -----Original Message-----
> From: Bruce Levick [mailto:brucel
ispye.com]
> Sent: Wednesday, 8 January 2003 9:55 AM
> To: Timothy Hitchens (HiTCHO)
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Yes I am and its very strange. I can't even ftp to my own website to
> test it from there.
>
> -----Original Message-----
> From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> Sent: Wednesday, January 08, 2003 9:48 AM
> To: Bruce Levick
> Cc: php-general
lists.php.net
> Subject: RE: [PHP] restrictions
>
>
> Are you surfing and emailing from this box right now?? (strange if you
> are)
>
> HiTCHO has Spoken!
> Timothy Hitchens (HiTCHO)
> tim
hitcho.com.au
>
> > -----Original Message-----
> > From: Bruce Levick [mailto:brucel
ispye.com]
> > Sent: Wednesday, 8 January 2003 9:47 AM
> > To: Timothy Hitchens (HiTCHO)
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > Sorry, I tried this as well and it failed to connect on port 25.
> >
> > -----Original Message-----
> > From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> > Sent: Wednesday, January 08, 2003 9:39 AM
> > To: Bruce Levick
> > Cc: php-general
lists.php.net
> > Subject: RE: [PHP] restrictions
> >
> >
> > You need to follow my instructions and do "telnet x.x.x.x
> 25" notice
> > the 25 after the IP ??
> >
> >
> > HiTCHO has Spoken!
> > Timothy Hitchens (HiTCHO)
> > tim
hitcho.com.au
> >
> > > -----Original Message-----
> > > From: Bruce Levick [mailto:brucel
ispye.com]
> > > Sent: Wednesday, 8 January 2003 9:35 AM
> > > To: Timothy Hitchens (HiTCHO)
> > > Cc: php-general
lists.php.net
> > > Subject: RE: [PHP] restrictions
> > >
> > >
> > > Thanks,
> > > Tried this and I get.
> > >
> > > "Cannot opeen connection to host on port 23"
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Timothy Hitchens (HiTCHO) [mailto:phplists
hitcho.com.au]
> > > Sent: Wednesday, January 08, 2003 9:32 AM
> > > To: Bruce Levick; 'Marco Tabini'
> > > Cc: php-general
lists.php.net
> > > Subject: RE: [PHP] restrictions
> > >
> > >
> > > In windowsxp do the following:
> > >
> > > Start -> Run
> > >
> > > Open: cmd
> > >
> > > At the shell type:
> > >
> > > telnet x.x.x.x 25 <---- x.x.x.x being the smtp server
> > >
> > > If you get a prompt then you have other issues such as
> relay etc etc
> > >
> > >
> > >
> > > HiTCHO has Spoken!
> > > Timothy Hitchens (HiTCHO)
> > > tim
hitcho.com.au
> > >
> > > > -----Original Message-----
> > > > From: Bruce Levick [mailto:brucel
ispye.com]
> > > > Sent: Wednesday, 8 January 2003 9:25 AM
> > > > To: Marco Tabini
> > > > Cc: php-general
lists.php.net
> > > > Subject: RE: [PHP] restrictions
> > > >
> > > >
> > > > Well I can't be totally sure but I think all outgoing mail
> > > points to
> > > > an external SMTP server.
> > > >
> > > > -----Original Message-----
> > > > From: Marco Tabini [mailto:marcot
tabini.ca]
> > > > Sent: Wednesday, January 08, 2003 9:11 AM
> > > > To: Bruce Levick
> > > > Cc: php-general
lists.php.net
> > > > Subject: Re: [PHP] restrictions
> > > >
> > > >
> > > > Hello Bruce--
> > > >
> > > > That depends on what restrictions are imposed on your box,
> > > of course.
> > > > Does your company use an SMTP-compatible mail server for
> > > your internal
> > > > mail? If so, you could use the server your mail client
> > points to to
> > > > perform your tests.
> > > >
> > > > Cheers,
> > > >
> > > >
> > > > Marco
> > > > --
> > > > ----------------
> > > > php|architect - The Monthly Magazine for PHP Professionals
> > > > Come check us out on the web at http://www.phparch.com! GET YOUR
> > > > FREE COPY TODAY! Simply register & download!
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
This is how I do in javascript: randNumber = new Array(); for (p = 0; p < 10; p++) { randNumber[p] = Math.floor(Math.random()*7); } weekday = new Array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" ) randDay1 = weekday[randNumber[0]] randDay2 = weekday[randNumber[1]] ....
I would like to achieve the same goal using php but I cannot get it to work.
attached mail follows:
// seed code list($usec, $sec) = explode(' ', microtime()); $microtime = ((float)$usec + (float)$sec); srand((double) $microtime * 1000000); //~ seed code
$randNumber = array(); $weekday = array("monday","tuesday","wednesday","thursday","friday","saturday","sunday" ); for ($p = 0; $p < 10; $p++) { randNumber[] = rand(0, 6); // rand(int minnumber, int maxnumber); } $randDay1 = weekday[randNumber[0]]; $randDay2 = weekday[randNumber[1]];
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Hi, According to the docs, 4.3.0 comes with gd bundled in. Do I still have to use libpng and jpg and free type seperately? Do I still need --with-png-dir= in the configuration of php or is it part of the built in gd library?
Thanks for any help.
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
I'm using error reporting E_ALL that helps me debugging, but Smarty generates
some E_NOTICEs because of not defined variables, so, I want to disable
E_NOTICE before displaying.
I'm doing this:
$oer = error_reporting(E_ALL & ~E_NOTICE);
$tpl->display("index.html");
error_reporting($oer);
but it still reports notices, any idea ?
Thanks.
- --
Pupeno: pupeno
pupeno.com
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+G2P3Lr8z5XzmSDQRAl8LAJ9jzLHmNuarcsG6M7JKjwKM313w1gCg2Dq1 79u/+bnOLvaNWCTxxdNVZXo= =qM1i -----END PGP SIGNATURE-----
attached mail follows:
Pupeno wrote: > > $oer = error_reporting(E_ALL & ~E_NOTICE); > $tpl->display("index.html"); > error_reporting($oer); > but it still reports notices, any idea ?
Should be error_reporting (E_ALL ^ E_NOTICE);
See:
http://www.php.net/manual/en/function.error-reporting.php
Jc
attached mail follows:
Pupeno wrote: > > $oer = error_reporting(E_ALL & ~E_NOTICE); > $tpl->display("index.html"); > error_reporting($oer); > but it still reports notices, any idea ?
Should be error_reporting (E_ALL ^ E_NOTICE);
See:
http://www.php.net/manual/en/function.error-reporting.php
Jc
attached mail follows:
On Wednesday 08 January 2003 02:45, Maxim Maletsky wrote:
> Isn't it a little bit too much of paranoia for autocompletion? In > programming schools they make you writing the programs on paper so you > understand it better :)
> I, personally, only care about the code highlighting. Autocompleting > often exposes you to make silly mistakes (not always, of course) and > these are the hardest ones to debug. Copying, pasting and replacing is > much "safer", IMHO.
I thought autocompletion would help you _avoid_ silly mistakes. For example, defining $varName then trying to use $varname when you really meant to use $varName.
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* There is nothing more silly than a silly laugh. -- Gaius Valerius Catullus */
attached mail follows:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tuesday 07 January 2003 18:48, Jason Wong wrote:
> On Wednesday 08 January 2003 02:45, Maxim Maletsky wrote:
> > Isn't it a little bit too much of paranoia for autocompletion? In
> > programming schools they make you writing the programs on paper so you
> > understand it better :)
> >
> > I, personally, only care about the code highlighting. Autocompleting
> > often exposes you to make silly mistakes (not always, of course) and
> > these are the hardest ones to debug. Copying, pasting and replacing is
> > much "safer", IMHO.
>
> I thought autocompletion would help you _avoid_ silly mistakes. For
> example, defining $varName then trying to use $varname when you really
> meant to use $varName.
Configuring error reporting to E_ALL will help you with that and some other
things as well, all my scripts run in E_ALL.
But I still think that autocompletation is very useful.
Have fun.
- --
Pupeno: pupeno
pupeno.com
http://www.pupeno.com
- ---
Help the hungry children of Argentina,
please go to (and make it your homepage):
http://www.porloschicos.com/servlet/PorLosChicos?comando=donar
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+G2eYLr8z5XzmSDQRAsH+AKCPrW2nGliNZu8kGOaAeaO8AC+9AgCg4q1D 0Ki998HRDqC2ER6eDYTby9s= =Bp+V -----END PGP SIGNATURE-----
attached mail follows:
Hi, I am trying to upgrade to php4.3.0, everything works, but when I try to use any gd image functions I get the following error:
libpng warning: Application was compiled with png.h from libpng-1.2.1 libpng warning: Application is running with png.c from libpng-1.0.12 gd-png: fatal libpng error: Incompatible libpng version in application and library [Tue Jan 7 16:30:21 2003] [notice] child pid 14014 exit signal Segmentation fault (11)
I downloaded and installed libpng-1.2.1 I configured php with: ./configure' '--with-jpeg-dir=../jpeg-6b' '--with-mysql=/usr/' '--with-apxs=/usr/local/apache/bin/apxs' '--with-gd' '--with-mcrypt=../libmcrypt-2.4.22' '--with-png-dir=../libpng-1.2.1' '--with-zlib-dir=../zlib-1.1.3' '--enable-exif' '--with-freetype-dir=../freetype-2.1.3'
Where is is getting the libpng-1.0.12 from? I can't find it anywhere on the server. I am using apache 1.3.27 on redhat 7
Thanks for any help.
attached mail follows:
I am working with sessions, and following an example in a book and am getting an error that I am not sure of. I have an html doc that has the fields for username and password and the information entered goes to this script.
<? session_start();
// set variables needed $username = $_POST['username']; $password = $_POST['password'];
$connection = mysql_connect( 'localhost', 'username', 'password' ) or die (mysql_error()); $db = mysql_select_db( "database", $connection) or die (mysql_error());
$query = "select * from users where username='$username' and password=('$password')"; $result = mysql_query($query); $num = mysql_num_rows($result); if ($num > 0 ) { $valid_user = $_POST[username]; session_register("valid_user"); }
// PHP script to create the html for the login page if (session_is_registered("valid_user")) { echo "You are logged in as: $valid_user <br>"; echo "<a href=\"logout.php\">Log out</a><br>"; } else { if (isset($username)) { // if they have tried and failed to login echo "Could not login with the username $username."; } else { // They have not tried to login yet or have logged out echo "You are not logged in. Please click on the link below to go back to the login form.<br>"; } } ?> <br> <a href="login.html">Back to Login Form</a> </body> </html>
Everything works except for when I login correctly, it shows that I am logged in, but at the bottom I get this message.
Warning : Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
What does this mean, and what am I doing wrong?
Thanks, Mike
attached mail follows:
> -----Original Message-----
> From: Mike Tuller [mailto:php
ce.anoka.k12.mn.us]
> Sent: 08 January 2003 01:23
>
> I am working with sessions, and following an example in a book and am
> getting an error that I am not sure of. I have an html doc
> that has the
> fields for username and password and the information entered goes to
> this script.
>
> <?
> session_start();
[...]
> if ($num > 0 )
> {
> $valid_user = $_POST[username];
> session_register("valid_user");
> }
>
> // PHP script to create the html for the login page
> if (session_is_registered("valid_user"))
[...]
>
> Warning : Unknown(): Your script possibly relies on a session
> side-effect which existed until PHP 4.2.3. Please be advised that the
> session extension does not consider global variables as a source of
> data, unless register_globals is enabled. You can disable this
> functionality and this warning by setting session.bug_compat_42 or
> session.bug_compat_warn to off, respectively. in Unknown on line 0
>
> What does this mean, and what am I doing wrong?
Well, you're not necessarily doing anything wrong -- as the warning says, your script *possibly* relies on...
What's happened is that in version 4.3.0, a bug in session variable handling was fixed -- but the fix changes the way session variables behave in certain situations, and PHP has detected that you *may* have coded in a way that is sensitive to those changes. If you understand the issues (and I'm not 100% sure I do!) and are *sure* you're not relying on them, then you can set the session.bug_compat_* values in php.ini as specified.
The best way of avoiding this error, however, is to drop the use of session_register() and friends, and switch to using the $_SESSION[] array -- so the fragment of code I've left in above would become:
if ($num > 0 ) { $_SESSION['valid_user'] = $_POST['username']; }
// PHP script to create the html for the login page if (isset($_SESSION["valid_user"]))
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Beckett Park, LEEDS, LS6 3QS, United Kingdom
Email: m.ford
lmu.ac.uk
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
attached mail follows:
The while statement is only executing correctly for the first run through the foreach loop. Why?
Thanks, loop
foreach($desc as $key=>$value) { printf("Show %s Description <select name='show%sDesc'>", $key, $key); echo "<option value = ''></option>";
while($row = mysql_fetch_row($show_names)) { printf("<option value='%s'>%s</option>", $row[0], $row[1]); } echo "</select><br>"; }
_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
attached mail follows:
> From: "James Brennan" <loopjunkie
hotmail.com>
> Sent: Tuesday, January 07, 2003 8:29 PM
> Subject: [PHP] help - WHILE in FOREACH
> The while statement is only executing correctly for the first run through > the foreach loop. Why? > > Thanks, > loop > > foreach($desc as $key=>$value) { > printf("Show %s Description <select name='show%sDesc'>", $key, $key); > echo "<option value = ''></option>"; > > while($row = mysql_fetch_row($show_names)) { > printf("<option value='%s'>%s</option>", $row[0], $row[1]); > } > echo "</select><br>"; > }
You didn't really explain the problem well, but I think this is what you're looking for http://www.php.net/manual/en/function.mysql-data-seek.php Reset the pointer before the while loop and the names should list of all of the select boxes.
attached mail follows:
Is this your exact code? I ask, because the following should generate a parse error: echo "<option value = ''></option>";
You have 3 double-quotes (").
----- Original Message -----
From: "James Brennan" <loopjunkie
hotmail.com>
To: <php-general
lists.php.net>
Sent: Tuesday, January 07, 2003 7:29 PM
Subject: [PHP] help - WHILE in FOREACH
The while statement is only executing correctly for the first run through the foreach loop. Why?
Thanks, loop
foreach($desc as $key=>$value) { printf("Show %s Description <select name='show%sDesc'>", $key, $key); echo "<option value = ''></option>";
while($row = mysql_fetch_row($show_names)) { printf("<option value='%s'>%s</option>", $row[0], $row[1]); } echo "</select><br>"; }
_________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
The second set of quotes is actualy two single quotes with nothing in-between.
.loop
>From: "Rick Emery" <remery
emeryloftus.com>
>Reply-To: "Rick Emery" <remery
emeryloftus.com>
>To: "James Brennan" <loopjunkie
hotmail.com>,<php-general
lists.php.net>
>Subject: Re: [PHP] help - WHILE in FOREACH
>Date: Tue, 7 Jan 2003 20:18:08 -0600
>
>Is this your exact code? I ask, because the following should generate a
>parse error:
>echo "<option value = ''></option>";
>
>You have 3 double-quotes (").
>
>----- Original Message -----
>From: "James Brennan" <loopjunkie
hotmail.com>
>To: <php-general
lists.php.net>
>Sent: Tuesday, January 07, 2003 7:29 PM
>Subject: [PHP] help - WHILE in FOREACH
>
>
>The while statement is only executing correctly for the first run through
>the foreach loop. Why?
>
>Thanks,
>loop
>
>foreach($desc as $key=>$value) {
>printf("Show %s Description <select name='show%sDesc'>", $key, $key);
>echo "<option value = ''></option>";
>
>while($row = mysql_fetch_row($show_names)) {
>printf("<option value='%s'>%s</option>", $row[0], $row[1]);
>}
>echo "</select><br>";
>}
>
>_________________________________________________________________
>MSN 8 with e-mail virus protection service: 2 months FREE*
>http://join.msn.com/?page=features/virus
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail
attached mail follows:
On Tue, 7 Jan 2003, James Brennan wrote:
> The while statement is only executing correctly for the first run through > the foreach loop. Why?
It's /real/ hard to tell when you don't give any context or otherwise explain what it is you want to achieve. Since the code in fact executes correctly, we can only explain what's going on in your code, not why it doesn't work for your needs ...
You while() loop runs through a mysql result set in its entirety the first time through the foreach() loop and leaves the result pointer at the end of the result set. All subsequent runs of the while() loop will start fetching results from the end of $show_names ... and get /nothing/.
If you want to use all the results out of $show_names again, you have to reset the result pointer to the beginning of $show_names. Use mysql_data_seek(). http://php.net/mysql_data_seek, and see below.
> foreach($desc as $key=>$value) { > printf("Show %s Description <select name='show%sDesc'>", $key, $key); > echo "<option value = ''></option>"; > while($row = mysql_fetch_row($show_names)) { > printf("<option value='%s'>%s</option>", $row[0], $row[1]); > } if( mysql_num_rows( $show_names ) > 0 ){ mysql_data_seek( $show_names, 0 ); } > echo "</select><br>"; > }
g.luck, ~Chris
attached mail follows:
My appologies for the lack of explicit information. Thank you for taking the time to write a reply. That is exactly what I needed to know.
Thanks again, James
>From: Chris Wesley <cwwesley
udlug.org>
>To: php-general
lists.php.net
>Subject: Re: [PHP] help - WHILE in FOREACH
>Date: Tue, 7 Jan 2003 18:49:53 -0800 (PST)
>
>On Tue, 7 Jan 2003, James Brennan wrote:
>
> > The while statement is only executing correctly for the first run
>through
> > the foreach loop. Why?
>
>It's /real/ hard to tell when you don't give any context or otherwise
>explain what it is you want to achieve. Since the code in fact executes
>correctly, we can only explain what's going on in your code, not why it
>doesn't work for your needs ...
>
>You while() loop runs through a mysql result set in its entirety the
>first time through the foreach() loop and leaves the result pointer at the
>end of the result set. All subsequent runs of the while() loop will start
>fetching results from the end of $show_names ... and get /nothing/.
>
>If you want to use all the results out of $show_names again, you have to
>reset the result pointer to the beginning of $show_names. Use
>mysql_data_seek(). http://php.net/mysql_data_seek, and see below.
>
> > foreach($desc as $key=>$value) {
> > printf("Show %s Description <select name='show%sDesc'>", $key, $key);
> > echo "<option value = ''></option>";
> > while($row = mysql_fetch_row($show_names)) {
> > printf("<option value='%s'>%s</option>", $row[0], $row[1]);
> > }
> if( mysql_num_rows( $show_names ) > 0 ){
> mysql_data_seek( $show_names, 0 );
> }
> > echo "</select><br>";
> > }
>
> g.luck,
> ~Chris
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
attached mail follows:
I am having a parse error in the following sentence:
print "<img src=\"" . $row["foto"] . "" width='104' height='137'\">";
Thanks!
Ezequiel
attached mail follows:
the problem is the "" before the width word
it should be "\"
----- Original Message -----
From: "Ezequiel Sapoznik" <ezequiel
mibbva.com.ar>
To: <>
Sent: Tuesday, January 07, 2003 7:30 PM
Subject: [PHP] Img src
I am having a parse error in the following sentence:
print "<img src=\"" . $row["foto"] . "" width='104' height='137'\">";
Thanks!
Ezequiel
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
A script started acting wonky with no changes to it. Doing a bit of debug at the time, I uncovered an odd variable called
HTTP_WEFERER
What is that? I check of the php.net website yielded no results.
I'm guessing it is a variable set on the server. My first thought was a mangled HTTP_REFERER variable, which was missing, but the value was some long string.
Any ideas?
thanks,
bill
attached mail follows:
Elmer Fudd been coding your PHP for you?
I dount it ever worked ;)
-----Original Message-----
From: bill [mailto:bill
billtron.com]
Sent: Wednesday, 8 January 2003 12:41 PM
To: php-general
lists.php.net
Subject: [PHP] HTTP_WEFERER
A script started acting wonky with no changes to it. Doing a bit of debug at the time, I uncovered an odd variable called
HTTP_WEFERER
What is that? I check of the php.net website yielded no results.
I'm guessing it is a variable set on the server. My first thought was a mangled HTTP_REFERER variable, which was missing, but the value was some long string.
Any ideas?
thanks,
bill
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> ----- Original Message -----
> From: "bill" <bill
billtron.com>
> Sent: Tuesday, January 07, 2003 8:40 PM
> Subject: [PHP] HTTP_WEFERER
> A script started acting wonky with no changes to it. Doing a bit of debug at > the time, I uncovered an odd variable called > > HTTP_WEFERER > > Any ideas?
Seems to have something to do with Norton Personal Firewall. See: http://marc.theaimsgroup.com/?l=php-general&m=102058512832435&w=2
attached mail follows:
Do you know any good equivalent with similar features for Linux?
Thanks,
Pierre-Luc Soucy
> PHPEdit i use it personally www.phpedit.net
attached mail follows:
That is the advantage of Zend Studio is that it is Java and will run on Win, Mac OSX and Linux.
That is one of the reasons we use Zend Studio is that we can get our designers on OSX, geeks on linux/unix and executive types mostly Windows all using the same application for code writing, maintenance and soon management with the introduction of CVS integration (2.6) just announced on zend.com
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: tim
hitcho.com.au
> -----Original Message-----
> From: Pierre-Luc Soucy [mailto:php
crealabs.com]
> Sent: Wednesday, 8 January 2003 12:07 PM
> To: php-general
lists.php.net
> Subject: Re: [PHP] PHP Editors
>
>
> Do you know any good equivalent with similar features for Linux?
>
> Thanks,
>
> Pierre-Luc Soucy
>
> > PHPEdit i use it personally www.phpedit.net
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
> I'm running Apache 2.0 as a service and PHP (like a > module) onto a Windows Advanced Server. I´m looking > for a good and free Editor to use with PHP (With > debugging features). Can anyone with experience guide > me?
Look up archives. You will get full list of PHP editors.
-- Krzysztof Dziekiewicz
attached mail follows:
Hi,
Wednesday, January 8, 2003, 12:29:50 AM, you wrote: DB> I want to be able to retrieve POST variable in one PHP script (which is DB> straight-forward) and then send these from the script to another one DB> returning the processed input.
DB> I have written a script that will parse a frames-based page and render it as DB> a flat page (i.e. all frames displayed as a table in one HTML file) - this DB> is so that I can create a website using frames, and still let browsers that DB> don't support frames to access it without my having to create a separate DB> version of the site.
DB> e.g.: DB> http://www.redradish.co.uk/rr/index.htm (frames based site) DB> http://www.redradish.co.uk/php/framesprocessor.php?Frameset=http://www.redra DB> dish.net/rr/index.htm&RenderMethod=1&MainFrame=main&AllHead=1 DB> (the same site DB> rendered as single page).
DB> The problem is that if in the frames-based site one of the frames is a form DB> submission, I need to be able to send this data to the original form and DB> retrieve the output to display in the rendered page.
DB> e.g. DB> http://www.redradish.co.uk/php/framesprocessor.php?Frameset=http://www.redra DB> dish.net/rr/index.htm&TargetName=main&Target=http://www.redradish.net/rr/con DB> tact/contactF.htm&MainFrame=main&RenderMethod=1&LinkSearch=1&AllHead=1&Debug DB> =1 DB> (this is a page that has a contact form).
DB> I can't find any information on how to forward such a request.
DB> The script in question is located at: DB> http://www.redradish.co.uk/php/framesprocessor.php
DB> It uses these variables (passed using GET or POST): DB> Frameset frameset page. This needs to be parsed and a static HTML page DB> created. DB> Target (optional) full URL of page to be displayed in frmae named DB> TargetName. DB> TargetName (optional) name of the frame that $Target should appear in. DB> MainFrame (optional) is the frame from which header info, etc. is DB> taken. DB> Default is first frame. DB> AllHead (optional) If set (is 1 or more), copies <HEAD> content from all DB> frames. DB> RenderMethod (optional) defines how the frameset is to be represented: DB> 1 - All frames dumped into new page in order they appear in DB> frameset. DB> 2 - tables are used to attempt to recreate original format DB> Default is 1. DB> LinkSearch (optional) how links are replaced: DB> 1 - Only specific tags are replaced DB> 2 - Anything within quotes (' or ") that contains document path is DB> replaced DB> Default is 1. DB> Debug If set (greater than 0), debug info is added in comments.
DB> It works to a good degree on most frames-based sites, but does have a couple DB> of failings (such as the one mentioned) that I would like to overcome.
DB> The other problem is handling JavaScript in e.g. <frame DB> src="JavaScript:openpage(xx)">. There is no way to process JavaScript in DB> PHP that I am aware of - does anyone have a workaround for this? i.e. so DB> that my script can process the JavaScript function and retrieve the relevant DB> page for inclusion in the rendered page.
DB> Hope someone can help!
DB> Thanks.
DB> Dave
I would do it like this:
$posted = base64_encode(serialize($_POST))); echo '<input type="hidden" name="posted" value="'.$posted.'">';
on the receiving end you need:
$posted = unserialize(base64_decode($_POST['posted']));
-- regards, Tom
attached mail follows:
Hi all,
Has anyone got a function or regexp floating around that will convert behave like htmlspecialchars() or htmlentities() (eg converting & to &, " to "e;, etc etc) BUT NOT DESTROY HTML TAGS?
Eg:
"hello" said <a href="fred.php">Fred</a> & Judy
should become:
"hello" said <a href="fred.php">Fred & Judy
NOT: "hello" said <a href="fred.php">Fred & Judy
????
I guess it's stripped down or limited version of htmlspecialchars() or htmlentities().
Justin
attached mail follows:
Hi Justin,
You have to specify the list of tags you want preserved in an array, but this function from phpDocumentor will do it:
/**
* smart htmlentities, doesn't entity the allowed tags list
* Since version 1.1, this function uses htmlspecialchars instead of
htmlentities, for international support
*
param string $s
*
return string browser-displayable page
*/
function adv_htmlentities($s,$html_allowed)
{
$___htmltemp = array_flip($html_allowed);
$___html1 = array();
foreach($___htmltemp as $tag => $trans)
{
$___html1['<'.$tag.'>'] = htmlentities('<'.$tag.'>');
$___html1['</'.$tag.'>'] = htmlentities('</'.$tag.'>');
}
$_html = array_flip($___html1);
}
$result = htmlspecialchars($s);
$entities = array_flip(get_html_translation_table(HTML_SPECIALCHARS));
$result = strtr($result,$_html);
$matches = array();
preg_match_all('/(<img.*>)/U',$result,$matches);
for($i=0;$i<count($matches[1]);$i++)
{
$result =
str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
ation_table(HTML_SPECIALCHARS))),$result);
}
preg_match_all('/(<font.*>)/U',$result,$matches);
for($i=0;$i<count($matches[1]);$i++)
{
$result =
str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
ation_table(HTML_SPECIALCHARS))),$result);
}
preg_match_all('/(<ol.*>)/U',$result,$matches);
for($i=0;$i<count($matches[1]);$i++)
{
$result =
str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
ation_table(HTML_SPECIALCHARS))),$result);
}
preg_match_all('/(<ul.*>)/U',$result,$matches);
for($i=0;$i<count($matches[1]);$i++)
{
$result =
str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
ation_table(HTML_SPECIALCHARS))),$result);
}
preg_match_all('/(<li.*>)/U',$result,$matches);
for($i=0;$i<count($matches[1]);$i++)
{
$result =
str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
ation_table(HTML_SPECIALCHARS))),$result);
}
preg_match_all('/(<a .*>)/U',$result,$matches);
for($i=0;$i<count($matches[1]);$i++)
{
$result =
str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
ation_table(HTML_SPECIALCHARS))),$result);
}
return $result;
}
Regards, Greg
-- phpDocumentor http://www.phpdoc.org "Justin French" <justinindent.com.au> wrote in message news:BA41E11F.1BC59%justin
indent.com.au... > Hi all, > > Has anyone got a function or regexp floating around that will convert behave > like htmlspecialchars() or htmlentities() (eg converting & to &, " to > "e;, etc etc) BUT NOT DESTROY HTML TAGS? > > Eg: > > "hello" said <a href="fred.php">Fred</a> & Judy > > should become: > > "hello" said <a href="fred.php">Fred & Judy > > NOT: > "hello" said <a href="fred.php">Fred & Judy > > ???? > > I guess it's stripped down or limited version of htmlspecialchars() or > htmlentities(). > > > Justin >
attached mail follows:
Is that going to take care of Nested Tags??
Timothy Hitchens (HiTCHO)
Open Platform Consulting
e-mail: tim
hitcho.com.au
> -----Original Message-----
> From: Greg Beaver [mailto:greg
chiaraquartet.net]
> Sent: Wednesday, 8 January 2003 3:06 PM
> To: php-general
lists.php.net
> Subject: [PHP] Re: htmlspecialchars() or htmlentities without
> destroying tags?
>
>
> Hi Justin,
>
> You have to specify the list of tags you want preserved in an
> array, but this function from phpDocumentor will do it:
>
> /**
> * smart htmlentities, doesn't entity the allowed tags list
> * Since version 1.1, this function uses htmlspecialchars
> instead of htmlentities, for international support
> *
param string $s
> *
return string browser-displayable page
> */
> function adv_htmlentities($s,$html_allowed)
> {
> $___htmltemp = array_flip($html_allowed);
> $___html1 = array();
> foreach($___htmltemp as $tag => $trans)
> {
> $___html1['<'.$tag.'>'] = htmlentities('<'.$tag.'>');
> $___html1['</'.$tag.'>'] = htmlentities('</'.$tag.'>');
> }
> $_html = array_flip($___html1);
> }
> $result = htmlspecialchars($s);
> $entities =
> array_flip(get_html_translation_table(HTML_SPECIALCHARS));
> $result = strtr($result,$_html);
> $matches = array();
> preg_match_all('/(<img.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g
> et_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<font.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g
> et_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<ol.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g
> et_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<ul.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g
> et_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<li.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g
> et_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<a .*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(g
> et_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> return $result;
> }
>
> Regards,
> Greg
> --
> phpDocumentor
> http://www.phpdoc.org
> "Justin French" <justin
indent.com.au> wrote in message
news:BA41E11F.1BC59%justin
indent.com.au...
> Hi all,
>
> Has anyone got a function or regexp floating around that will convert
behave
> like htmlspecialchars() or htmlentities() (eg converting & to &, "
> to "e;, etc etc) BUT NOT DESTROY HTML TAGS? > > Eg: > > "hello" said <a href="fred.php">Fred</a> & Judy > > should become: > > "hello" said <a href="fred.php">Fred & Judy > > NOT: > "hello" said <a href="fred.php">Fred & > Judy > > ???? > > I guess it's stripped down or limited version of htmlspecialchars() or
> htmlentities(). > > > Justin >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
Thanks,
I'll give it a whrrrl :)
Justin
on 08/01/03 4:05 PM, Greg Beaver (greg
chiaraquartet.net) wrote:
> Hi Justin,
>
> You have to specify the list of tags you want preserved in an array, but
> this function from phpDocumentor will do it:
>
> /**
> * smart htmlentities, doesn't entity the allowed tags list
> * Since version 1.1, this function uses htmlspecialchars instead of
> htmlentities, for international support
> *
param string $s
> *
return string browser-displayable page
> */
> function adv_htmlentities($s,$html_allowed)
> {
> $___htmltemp = array_flip($html_allowed);
> $___html1 = array();
> foreach($___htmltemp as $tag => $trans)
> {
> $___html1['<'.$tag.'>'] = htmlentities('<'.$tag.'>');
> $___html1['</'.$tag.'>'] = htmlentities('</'.$tag.'>');
> }
> $_html = array_flip($___html1);
> }
> $result = htmlspecialchars($s);
> $entities = array_flip(get_html_translation_table(HTML_SPECIALCHARS));
> $result = strtr($result,$_html);
> $matches = array();
> preg_match_all('/(<img.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<font.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<ol.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<ul.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<li.*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> preg_match_all('/(<a .*>)/U',$result,$matches);
> for($i=0;$i<count($matches[1]);$i++)
> {
> $result =
> str_replace($matches[1][$i],strtr($matches[1][$i],array_flip(get_html_transl
> ation_table(HTML_SPECIALCHARS))),$result);
> }
> return $result;
> }
>
> Regards,
> Greg
> --
> phpDocumentor
> http://www.phpdoc.org
> "Justin French" <justin
indent.com.au> wrote in message
> news:BA41E11F.1BC59%justin
indent.com.au...
>> Hi all,
>>
>> Has anyone got a function or regexp floating around that will convert
> behave
>> like htmlspecialchars() or htmlentities() (eg converting & to &, " to
>> "e;, etc etc) BUT NOT DESTROY HTML TAGS?
>>
>> Eg:
>>
>> "hello" said <a href="fred.php">Fred</a> & Judy
>>
>> should become:
>>
>> "hello" said <a href="fred.php">Fred & Judy
>>
>> NOT:
>> "hello" said <a hr