php-windows Digest 4 Mar 2004 14:15:17 -0000 Issue 2149
Topics (messages 23052 through 23055):
Re: SMTP ERROR
23052 by: Manuel Lemos
Re: session problems
23053 by: Sudeep Sarath
Re: Remote execution WAS: [PHP-WIN] start an external program (is qlw.exe)
23054 by: Svensson, B.A.T. (HKG)
Specific Regular Expression issue
23055 by: Jim MacDiarmid
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 ---
Hello,
On 03/03/2004 06:03 PM, Carlos Castillo wrote:
When i try to send a mail i receive the followin error
Warning: mail() [function.mail]: SMTP server response: 503 Comando o
secuencia de comandos inesperados in
E:\wwwroot\helpdesk_imagine\classes\helpdesk.class.php on line 1054
But the mail is sent, it occurs sometimes not always.
This is probably a bug of the mail() function under Windows.
You may want to try this class that comes with a wrapper function named
smtp_mail(). It emulates the mail() using a direct SMTP connection to
the SMTP server that you choose. You can enabled debugging in the
smtp_mail.php wrapper script so you can see what is the problem in case
any error occurs. If no error occurs, the problem is in the mail()
function are you are safe by using this replacement function.
http://www.phpclasses.org/mimemessage
You also need this for the actual SMTP delivery.
http://www.phpclasses.org/smtpclass
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
--- End Message ---
--- Begin Message ---
Hi Dear,
First of all let me warn u that sessions in PHP need to be handled very carefully. It
is very sensitive. Now to your problem....If there is an error with session.save_path
u need to configure the php.ini file. If u are using a remote server to run ur php
files then the path of session.save_path cannot be like D:\PHP\temp. U have to mention
the absolute path of your server......To verify this make a php file with script
<?php echo phpinfo();?> and run that.
See the path of session.save_path.
...SuDeEp....
carlos castillo <[EMAIL PROTECTED]> wrote:
Hi, i have the followin problem, i have a site that use sessions,
sometimes when i want to write on the session i get the followin error:
Warning: Unknown(): The session id contains invalid characters, valid
characters are only a-z, A-Z and 0-9 in Unknown on line 0
Warning: Unknown(): Failed to write session data (files). Please verify
that the current setting of session.save_path is correct (D:\PHP\tmp) in
Unknown on line 0
I see the folder D:\PHP\tmp and there is the session file, so i dont
know whats the problem, also the script works ok, the problem is that at
the end of the html show the warnings.
Any clue?, thanks.
Carlos A. Castillo.
Ingeniero de desarrollo
[EMAIL PROTECTED]
____________________________________
Su Aliado Efectivo en Internet
www.imagine.com.co
(57 1)2182064 - (57 1)6163218
Bogotá - Colombia
____________________________________
- Soluciones web para Internet e Intranet
- Soluciones para redes
- Licenciamiento de Software
- Asesoría y Soporte Técnico
____________________________________
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and
more.
--- End Message ---
--- Begin Message ---
> Cold you imaginne what would happen if a web server could
> start programs on the client maschine?
Yeah, you get flashy popup-windows and other annoying stuff on your screen.
:)
--- End Message ---
--- Begin Message ---
Could someone shed some light on this for me? I'm trying to capture the
URL and the Numerical count from the following line:
Trav2.http://travelersnetwork.net/Nick/HoneyIsland.dsv..fd287747 HAS 0
spaces
This is what I'm using as a regular expression and it's results
\s+Trav[0-9]\.(http://[^\s]+)
http://travelersnetwork.net/Nick/HoneyIsland.dsv..fd287747
How can I select just the url, excluding the two dots and the hex
address?
Thank you,
Jim
--- End Message ---