php-windows Digest 12 Jan 2002 02:05:32 -0000 Issue 948
Topics (messages 11390 through 11401):
PHP-XML DOM
11390 by: Sandeep Murphy
11392 by: Jens Wabnitz
preg replace with newline in pattern ?
11391 by: David D asi
sending email out using php?
11393 by: Brian
11394 by: Shrock, Court
11395 by: Pac mon
11396 by: Brian
11397 by: Nicole Amashta
11398 by: Nicole Amashta
11399 by: Shrock, Court
PHP2EXE?
11400 by: Brian Higgins
11401 by: alain samoun
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]
----------------------------------------------------------------------
--- Begin Message ---
hi,
I am running PHPtriad on a win2k machine... when I run phpinfo() it
displays " XML ACTIVE" but I keep getting an error "Fatal error: Call to
undefined function: xmldoc() in C:\apache\htdocs\example.php on line 24"
What needs to installed/configured ??
TIA,
sandeep
--- End Message ---
--- Begin Message ---
Hi,
> I am running PHPtriad on a win2k machine... when I run phpinfo() it
> displays " XML ACTIVE" but I keep getting an error "Fatal
> error: Call to
> undefined function: xmldoc() in C:\apache\htdocs\example.php on line 24"
>
> What needs to installed/configured ??
XML Active says that you can use the XML Parser Functions.
To activate the DOM Functions you need to uncomment the
extension=php_domxml.dll line in your php.ini.
Bye
Jens
--- End Message ---
--- Begin Message ---
Hi all,
I have problem that a newbie like me can t resolve without screaming.
I m under windows it s important because lines are delimites by \r\n not by
\n only in nix like os.
I hav a pattern like
Bonjour toto // in one line
Bonjour
toto // but can take the form too
B
onjour toto // too ...
I try to find a script wich can make replcement of this pattern, i find
preg_replace but don t find the option to work elsewhere on lines.
something like :
$data = join ("",file('./data.txt'));
$data=preg_replace('/Bonjour toto/s','Salut toi',$data);
echo $data;
thansk a lot for ur answers an 4 the forums.
a+.
--- End Message ---
--- Begin Message ---
I'm using php 4.0, winXP(pro), OmniHTTPd Pro 2.0.
i want to beable to have users register and then have my script send out an
email to them confirming registration.
i keep getting this error:
Warning: Failed to Connect in auth.php on line 168
The code in auth.php is correct because i got it off a site where people had
success using it.
In my php.ini thing (im using the 'optimized' version thats included with
the download), heres my [mail function] stuff:
SMTP = server ;for win32 only
sendmail_from = server ;for win32 only
;sendmail_path = ;for unix only...
Everything else works fine.
Any ideas?
Thanks,
Brian
--- End Message ---
--- Begin Message ---
Brian,
It seems that you are getting the message because PHP doesn't know how to
connect to "server", therefore you need to tell it where to connect to.
In you php.ini, you need to set the SMTP value where the line says "server"
to something meaningful. This value needs to point to a valid smtp relay.
For example, if your webserver also relays smtp:
SMTP = localhost ;for win32
only
sendmail_from = Webmaster <[EMAIL PROTECTED]> ;for win32
only
-----Original Message-----
From: Brian [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 12:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] sending email out using php?
I'm using php 4.0, winXP(pro), OmniHTTPd Pro 2.0.
i want to beable to have users register and then have my script send out an
email to them confirming registration.
i keep getting this error:
Warning: Failed to Connect in auth.php on line 168
The code in auth.php is correct because i got it off a site where people had
success using it.
In my php.ini thing (im using the 'optimized' version thats included with
the download), heres my [mail function] stuff:
SMTP = server ;for win32 only
sendmail_from = server ;for win32 only
;sendmail_path = ;for unix only...
Everything else works fine.
Any ideas?
Thanks,
Brian
--
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]
--- End Message ---
--- Begin Message ---
These aren't ACTUALLY set to 'server' are they? If so then you need to set
'SMTP' to an server that can send mail. Then you need to set 'sendmail_from'
to an email address i.e. [EMAIL PROTECTED]
>
>SMTP = server ;for win32 only
>sendmail_from = server ;for win32 only
>;sendmail_path = ;for unix only...
>
>Everything else works fine.
>Any ideas?
>
>Thanks,
>Brian
>
>
>
>
>--
>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]
>
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
--- End Message ---
--- Begin Message ---
can I use a yahoo account since i dont have an actual SMTP server?
"Pac Mon" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> These aren't ACTUALLY set to 'server' are they? If so then you need to set
> 'SMTP' to an server that can send mail. Then you need to set
'sendmail_from'
> to an email address i.e. [EMAIL PROTECTED]
>
> >
> >SMTP = server ;for win32 only
> >sendmail_from = server ;for win32 only
> >;sendmail_path = ;for unix only...
> >
> >Everything else works fine.
> >Any ideas?
> >
> >Thanks,
> >Brian
> >
> >
> >
> >
> >--
> >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]
> >
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.
>
--- End Message ---
--- Begin Message ---
As the others suggested, you need to specify your smtp where "server" is.
If your current server does SMTP, then set it to "localhost"
Or, if your server doesn't have SMTP setup, you can use an IP of another
smtp server or whatever ... such as "smtp.someserver.com"
or "mail.someserver.com" ... depending on whatever the name is for your smtp
provider.
good luck,
nicole
www.aeontrek.com
"Brian" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I'm using php 4.0, winXP(pro), OmniHTTPd Pro 2.0.
>
> i want to beable to have users register and then have my script send out
an
> email to them confirming registration.
> i keep getting this error:
> Warning: Failed to Connect in auth.php on line 168
> The code in auth.php is correct because i got it off a site where people
had
> success using it.
> In my php.ini thing (im using the 'optimized' version thats included with
> the download), heres my [mail function] stuff:
>
> SMTP = server ;for win32 only
> sendmail_from = server ;for win32 only
> ;sendmail_path = ;for unix only...
>
> Everything else works fine.
> Any ideas?
>
> Thanks,
> Brian
>
>
>
--- End Message ---
--- Begin Message ---
<snip>
you can use an IP of another
smtp server or whatever ... such as "smtp.someserver.com"
</snip>
Doh, I meant an IP (xxx.xxx.xxx.xx) ,,, or the name, such as
"smtp.someserver.com"
;)
nicole
www.aeontrek.com
"Nicole Amashta" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> As the others suggested, you need to specify your smtp where "server" is.
>
> If your current server does SMTP, then set it to "localhost"
>
> Or, if your server doesn't have SMTP setup, you can use an IP of another
> smtp server or whatever ... such as "smtp.someserver.com"
> or "mail.someserver.com" ... depending on whatever the name is for your
smtp
> provider.
>
> good luck,
> nicole
> www.aeontrek.com
>
> "Brian" <[EMAIL PROTECTED]> wrote in message
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > I'm using php 4.0, winXP(pro), OmniHTTPd Pro 2.0.
> >
> > i want to beable to have users register and then have my script send out
> an
> > email to them confirming registration.
> > i keep getting this error:
> > Warning: Failed to Connect in auth.php on line 168
> > The code in auth.php is correct because i got it off a site where people
> had
> > success using it.
> > In my php.ini thing (im using the 'optimized' version thats included
with
> > the download), heres my [mail function] stuff:
> >
> > SMTP = server ;for win32 only
> > sendmail_from = server ;for win32 only
> > ;sendmail_path = ;for unix only...
> >
> > Everything else works fine.
> > Any ideas?
> >
> > Thanks,
> > Brian
> >
> >
> >
>
>
--- End Message ---
--- Begin Message ---
It would be best to use the smtp server of your isp, as yahoo has disabled
public relaying (At least I hope--as should everyone else). In the info
that they sent you, they probably provided you with a name that you can use
such as "mail.yourisp.net" or "smtp.yourisp.com". Your isp knows that mail
originating from your internal IP address and therefore should route it
through. The one exception that I have found so far is MSN--they drop all
port 25 traffic destined for any server other than their relay. And they
will not relay for other domains, so you are stuck if you use MSN. If you
do, switch ISP's.
-----Original Message-----
From: Brian [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 1:36 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-WIN] sending email out using php?
can I use a yahoo account since i dont have an actual SMTP server?
--- End Message ---
--- Begin Message ---
I've been in search of a tool that would allow a PHP script to be compiled
into some sort of self contained Win32 executable. I have found a few
references in PHP forums that ultimately end with broken or outdated links.
Does anyone know if such a tool exists, and where I might it?
Your help is much appreciated.
Regards,
Brian Higgins
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
You can try:
http://www.triplehash.com/content.php?id=26
but it is limited.
If you need to protect your code, used on client side, try the Zend encoder,
or, for a small number of clients, you can use the PHP encoder of BadBlue
Enterprise:
http://badblue.com/helpphpe.htm
A+
Alain
-----Original Message-----
From: Brian Higgins [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 11, 2002 2:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] PHP2EXE?
I've been in search of a tool that would allow a PHP script to be compiled
into some sort of self contained Win32 executable. I have found a few
references in PHP forums that ultimately end with broken or outdated links.
Does anyone know if such a tool exists, and where I might it?
Your help is much appreciated.
Regards,
Brian Higgins
[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]
--- End Message ---