Gustav Wiberg wrote:
> Hi there!
>
> Anyone experienced trouble connecting to a MSSQL - Server but not every time?
> (About every third time the connection succeeds, fourth time, fitfh time and
> so on ...)
>
> (IIS + PHP + Win2003 Server)
>
>
> Best regards
> /Gustav Wiberg
Intermittent DNS
Hi George,
Imbalance of { - I think the first one/after the for!
=dn
> Hi guys,
>
> I am starting to build a calendar. I know that there are resources out
there
> but I want to learn, so I'm starting from scratch.
>
> I've got my thinking this far and I've hit an unexpected snag.
>
> When I cal
}
> $msg = "E-MAIL SENT FROM WWW SITE\n";
> $msg .= "Sender's Name:$sender_name\n";
> $msg .= "Sender's E-Mail: $sender_email\n";
> $msg .= "Message: $message\n\n";
> $to = "[EMAIL PROTECTED]";
> $s
> Sorry to be a pain... but using either:
> the address of my outgoing mail server
> or
> localhost
> still gives me:
> Warning: Failed to Connect in c:\program files\apache
> group\apache\htdocs\send_simpleform.php on line 19
Did you restart Apache after changing PHP.INI?
Please post the mail()
Ed,
> Dl, I tried that and it's still not happening. What else could you
> reccommend checking? Is there any way that I can take the guess work out
of
> this?
Here's what my dev system has:
include_path = ".;C:\Documents and Settings\Administrator\My
Documents\WebWork\Code\Includes"
Hope it he
Anthony,
> I have quoted her exactly from her book where it says:
>
> Windows Users:
>
> **Check your php.ini File**
>
> She then writes what I previously posted.
> That's it. She offers no alternatives.
Not true - you've bamboozled yourself somehow. You quoted Julie:
"1. For the SMTP entry, us
Ed,
> Still no luck with this. My include path in the php.ini is set to:
> include_path = ".;\c:\php\includes" and I have the includes directory in
the
> above listed location. Any ideas?
you don't want the first \ - before the c:\etc path
Regards,
=dn
--
PHP Windows Mailing List (http://www.
Anthony,
> The PHP mail scripts were taken from Julie Meloni's book on PHP called
"Fast
> and East" on pp. 116-117. (PrimaTech).
> In fact, she writes:
> "If you're using PHP4 on Windows, look for the following lines in your
> php.ini file:
> 1. For the SMTP entry, use 'localhost" or the name of t
PHP v4.2.3 with Apache 1.3.24 under Win2000 Prof SP2
Logging PHP errors: PHP.INI> log_errors = On
Errors are duly logged to Win2000 Application Log as:
The description for Event ID ( 2000 ) in Source ( c-client ) cannot be
found. The local computer may not have the necessary registry information o
Jim,
> I am running PHP and MySQL on the following platforms;Windows 2000, XP and
> ME and I am finding that the same code does not work. Can some one please
> explain this to me?
> It fails on the connect string every time. Is there a reason for this?
>
> Windows 2000 = No work
> XP = No work
> M
Hi Sands,
I have a PHP - MySQL site on one hand and various types of clients .. mean
to say, I hv clients who need the data in the MySQL db supplied to them in
MS Access, Excel, Dbase formats such that they can integrate the data
directly into their existing type of database.
for Excel, I can pro
gt; my navbar was incorrectly coded?
>
>
> "Dl Neil" <[EMAIL PROTECTED]> wrote in message
> 0fc601c29479$c039ead0$c900a8c0@jrbrown">news:0fc601c29479$c039ead0$c900a8c0@jrbrown...
> > Ok Joe,
> > So you want someone to write your homework for you?
>
Ok Joe,
So you want someone to write your homework for you?
This is an HTML issue. We normally think of a single web page occupying a
while window. With frames this changes. Each frame is basically a single
HTML page, and the framework allows multiple HTML pages to appear within a
single window. Ea
Bruno,
> I do not succeed to create of the tables using php follows listing
> ciao.
> # FileName="Connection_php_mysql.htm"
> # Type="MYSQL"
> # HTTP="true"
> $hostname_connLiceo = "localhost";
> $database_connLiceo = "maresped";
> $username_connLiceo = "bruno";
> $password_connLiceo = "pamela";
Marlene,
I am trying to figure out someone else's example to produce code of my own.
In the following code, what is the "createcalendar" in the second line? the
filename of the php document itself? what is case?
=if CASE is confusing you then you need to read the manual. If you have
never heard
krizz,
Apache is a web server. What you need is an SMTP (outbound email) server.
Check the PHP.INI. There are two settings to make. One of them should be the
same email server that you use for sending email from Outlook Express.
Regards,
=dn
> I have an apache server for windows, for testing
t like to try scanning some of the PHP subject sites, eg
PHPBuilder.com. They will have tutorials illustrating these concepts, that
will help you get a handle on the terminology and config details.
=Regards,
=dn
> with friendly greetings,
> Peter van Summeren
>
> >From: "DL Neil&quo
Peter,
> What must I fill in "your.smpt.server"?
> Where is my smpt-server? At this moment I hava no idea. I can get my
> address with ipconfig /all. So, I can fill in the sendmail_from address
> (although I do not want to receive e-mails at that address)Or must I
> take here some other address?.
Afan,
links to open new window, full size, full screen and according visitors
resolution I'll put appropriate image (600x480 or 800x600 or 1024x740) as a
background.
So what about the (Windows) tool bar
- is it hidden or present?
- what size is it?
- which of the four sides of the screen is it
James,
> I have a rather long list of names and I want to email the whole list and
not one by one, do you know what I mean?
May I suggest that you always reply to the list: someone else may answer
better/faster/in color...
Also how about a clear specification of need: why are you retrieving a
s
Hi James,
Please bear with my limited knowledge of PHP...
Does anyone know if it is possible to code a sql query within the message
part of the mail function, e.g.:
mail( "$to_mail","$sumject","
$sql = mysql_query("select * from table")
or die("error with query\n");
while ($row = m
Ron,
> I have been trying to create strings dynamically by combining text and
> variables. Because SQL wants single quotes surrounding the values I
> have been forced to create the string as follows (all variables have
> been previuosly set earlier on the page):
>
> $query = "select bio FROM ind
BTW for all who are following this, Patrick has cleverly illustrated
that most of the northern hemisphere locations where summer time is
observed will 'spring forward' this weekend. Most of the southern
hemisphere locations that were in summer time did their 'fall back' last
weekend!
NB the two us
LaserJetter,
> Is 192.168.0.2 a valid IP address? I didn't know you could have a zero
as
> one of the elements.
I'm not sure where this question came from, but ...
Yes you can have a zero value in IP address octets.
Obviously they all can't be zero.
(I haven't researched it, but maybe the first
> If I issue a mail() command but there is no live internet connection,
what
> happens? Will the mail be sent when there is a connection?
That is the principle of SMTP (store and forward).
I didn't find anything about this situation in the manual though.
Please tell us what happens when you try
James,
> I personally found that messages were slow on my machine (going to an
> external mail server) and I discovered that if you can use the
built-in IIS
> (Windows) SMTP mail server you'll have no more problems. The built-in
IIS
> SMTP server was easily 1000 times faster in my case. Of cour
Crizz,
You have had two good answers to your original question. One telling you
to turn errmsgs completely off, and another telling you how to turn them
on for debugging. Since then the water has been muddied by all sorts of
'jumping in'.
If you have completed your debugging (my interpretation)
Mark,
I seem to be jumping in part-way, but...
I seem to have isolated my problem. My code will only work with
non-numerical tables for some reason, which is kind of a pain.
=Why do you say that?
Is there any way to use php to connect to a mysql table that has a
numerical value as its name (1,2
crizz,
> I'm really newbye in PHP and just installed php on my IIS on my XP.
All
> sample scripts I tried returns me error messages about "Warning:
Undefined
> variable"
> It's probably something with the configuration, right?
You got it!
Check out php.ini (in Windows folder).
There is a load o
Matt,
> Everyone with mail() problems should consider www.postcastserver.com.
It's
> free SMTP server software that works quite well. Just don't forget to
> disable IIS' smtp server.
Have made a note of the product for future reference. Thanks.
>From another current conversation on PHP-email:
Hi Aris,
Still have questions, but at least you have a solution!
> Ok last thing i disocverd about this problem was
> that I was not only unable to do mail() from PHP but any other socket
> connection was not succesiful. It worked fine when i start php.exe in
> shell (command line) but the same
Scott,
> Come to think of it I have MS SMTP service from the IIS install, I
wonder
> if you install that, then point it to your ISP if that would work.
The answer is a definite "maybe"!
It is a topic that comes up on the list from time-to-time.
Some claim to have made it work.
The overwhelming
Please post the mail section of your php.ini file.
Have you checked that a email client, eg OL/OE, can use the SMTP server
successfully?
Please advise,
=dn
> i have tried that solution, but its still not working.
> do you know another method?
>
> > If your ISP does not mind just put their SMTP s
Aris,
Thanks for such a complete run-down. My comments/further questions are interposed:-
> SMTP = mail.server.com
> sendmail_from = [EMAIL PROTECTED]
> ;sendmail_path =
I can't see the mail server from 'outside', but the settings look right - when you
can, let's look at the 'real
deal' though!
Hi Aris,
> Im trying to use mail() function with PHP 4.02 under WIndows NT Server
> and IIS
> and I allways get Failed to connect
> even though the SMPT server in php.ini is setup correctly
> and i cna acces that server from webserver
>
> doing the same thing on WIndows NT Workstation and apache
Aleborg,
> I'm using PHP 4.1.1 on a Win2K server with IIS5, Dual PIII 933Mhz, 1,5GB
> SDRam.
>
> If I try to use the PHP4ISAPI.DLL and run php.info(), then I get a
> bluescreen and something abut NDIS.SYS
What networking configuration do you have set up on that machine?
=dn
--
PHP Windows
Frank,
> I am just trying to pass a value from one page to the
> next, nothing complicated. In the the addess bar I see
> the string pass, but on the page it is blank? Any
> Ideas? Oh, everything is in lower case.
>
> My code is like this for page test.html:
>
>
>
>
>
>
>
> then for the test
Forwarded to list, in case others would like to add their wisdom/benefits of their
experience.
=dn
- Original Message -
From: "DL Neil" <[EMAIL PROTECTED]>
To: "Lindsay Gillam" <[EMAIL PROTECTED]>
Sent: 25 February 2002 13:27
Subject: Re: [PHP-W
Lindsay,
[I have posted this back to the list - there are others here with greater minds than
mine!]
> It sounds as if you are opening the .htm[l] or .php file in your browser.
> Remember that PHP requires server-side
> processing, so a page must be called from a web server (which is in turn
> i
Hi Lindsay,
> These probably sound like really trivial and stupid questions to you but I
> am a newcomer in this field. I have literally started looking at PHP this
> weekend as I have been given a project in work to do and PHP seemed like the
> best option. I have some previous programming exper
Hi Dustin,
> I was wondering I am running php on a win2k server and have downloaded and
> installed phpwebdev which uses the apache webserver. I need to be able to
> send mail on this box. Can you tell me of a program that will work with php
> and windows. and what code I need besides the mail()
Hi Cary,
> I'm new to php on Windows and to this list. This is probably a really basic
> question for most of you, but I've searched the web for hours trying to
> find an answer. Hopefully somebody here will be kind enough to clue me in.
>
> Here's the question...
> When running a php script from
e why the need for
CTRL-Z? - or is CTRL-Z not used
under *nix? Any *nix bit-busters amongst us?
> /Anders - who was tempted to sporadically insert some ctrl-Z in this
> message. :)
=perversely enough, the RFC determines a different convention to denote the end of an
email msg!!!??? (probab
Sorry B.A.T,
Alain's quote is taken directly from http://www.php.net/manual/en/function.fopen.php
Using/not "b" does make a difference under Windows - haven't tested it under *nix!
The 'end' of a Windows file can be defined in two ways: an ASCII file ends with
CTRL+Z, a 'binary' file ends
wher
Hi Ziggi,
> Did you mean to run the scheduled task as a differnt user (for instance not
> as Administrator) ?
>
> By default there are two users under Win2000: Administrator and SYSTEM.
> Will setting the scheduled task under SYSTEM will stop this stupid DOS box
> from poping-up - how do you thin
Thank you Pac mon, the idea of running the scheduled tasks under a different userId
(to the console operator)
certainly does stop the 'DOS box' (console window) putting in uninvited appearance.
Neat thinking!
Many thanks to all who contributed suggestions.
Mike: if PHP is run directly (as per
Have a 'monitoring' PHP command line script timed to run hourly.
Controlled by the new?IE5.5 Scheduled Tasks facility (as listed in Windows Explorer -
not quite the same as AT
(which is what I have used previously) )
Script is kicked off by a batch file.
Batch file is object in scheduled tasks en
> > > A client is having trouble setting up SMTP services on their
> > > Windows NT machine so PHP can access it through the mail() function.
> > >
> > > SMTP is set to mail.theserver.com in the php.ini.
> > > Mail() works when set to a different mail server.
>
> > If they're on the same machine,
Hi Dave,
> I'm using win 98, php 4.04, and apache 1.3.19. Have had no problems
> executing simple scripts, including some with mySql access.
> HVR, when I uncomment any of the php dll's in the php.ini file I get the
> following message (one for each dll):
> "unable to load dynamic library 'c:\w
Dario,
> I would like to know if it's possible to make any combination of tricks to
> use the BCC header in the mail function. I've got win 2k, apache and php
> 4.05.
Check out phpguru.org
Regards,
=dn
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTEC
Jan-Volkert,
> I'm trying to use mail() and have read about all kinds of troubles, but i've
> got another one :-)
>
> The machine is running IIS5 configurated for smtp-mail.
> I've set $email, $subject, $body and $header and try to use
>$mailsend = mail("$email", "$subject", "$body", "$heade
Hello Fabian,
Please post a copy of the code you are using, as is.
=dn
> I have made a php formmailer!
>
> My Problem:
>
> When I receive the mail, in the from(sender) line is something like
> www-data, but I wont the real sender adress for example [EMAIL PROTECTED] in
> the from line not in
Hi Mike,
> I'm trying to make PHP send email from a windows server, or rather, I'm
> trying to help my girlfriend do it.
=well seeing there's a lady involved...
> in php.ini the SMTP variable is set to her mail server (which does relay
> for her netblock).
> Also, the sendmail_from line is also
> the path to php is already in the PATH variable...
>
> I'm not doing anything different that http://bugs.php.net/bug.php?id=6742
> ,but for some reason the -c doesn't make a difference...
>
> Jeff.
>
>
> "Dl Neil" <[EMAIL PROTECTED]> wro
Jeff,
The following batch files works for me (WinNTWS 4.0 SP6a):-
cd c:\program files\php
php.exe -q c:\.path.\w.php >>c:\.path.\webute.log
NB the first line reflects my PHP config - your mileage may vary!
Of course the other possibility is to add the PHP folder into the PATH environment
vari
Hi Emad - or is that "salaam"?
> I tried a lot to use the mail() function , but I'm always faced with an
> error like this "Warning: Server Error in C:\apache\htdocs\mail.php on line
> 43".
> I tried to get a script from the net, but it didn't work, I searched a lot
> about this thing.
> Do anyon
and the best-built Fords worldwide (as in, fewest warranty claims per vehicle)
are manufactured by ...
Mazda!
=dn
PS any guesses why James Bond switched his Aston Martin for a BMW?
PPS yes it is the end of the working day in Europe (9-5 day that is)
- Original Message -
From: "Svensson
Steve,
Please find a large dose of sympathy attached.
...is this a real, every-day justification for web mail services?
=dn
A great plan, however the assumption that everyone has a "reply all"
button is erroneous. I am an independent contractor working in the
pensions sector. As regards IT th
Somewhere on my travels around the many PHP/script sites, I'm sure that at one time I
noticed a date-display
utility. I cannot find it again. Please would someone point the way...
What I'm looking for:
displays a form with a variety of date/time fields, user enters a date/time into
various fiel
I have installed apache onto my machine (W2K)
but when i type "localhost" in IE5 it says page
cannot be found, apache is running as a console window
I think this means Apache is not running correctly
I have added these lines to my httpd.conf file:
LoadModule php4_module /php/sapi/php4apache.dll
> I'm running apache w/ php 4.0.6 on our win nt 4 server. I can't seem to get
> the mail function to work. It doesn't complain -- nothing complains. The
> email are not going through
> ...
> I've checked my php.ini file and have tried localhost and the direct IP of
> the server in the SMTP
t consider yourself lucky. :)
> PS You should be shot for that "clara-fy" pun!!! ;)
> DL Neil wrote:
=yes "lucky" is my middle name - in part because I've had people attempt to shoot me
for less... at last,
someone who appreciates lousy puns!
=dn
> > Ross,
&
Thanks for the added data, Spunk. I guess I should have asked for a view of the
screen/echo conversation too...
I'm not strong on RegExps so took a look at the manual
(http://www.php.net/manual/en/function.ereg-replace.php),
which says:
-
string ereg_replace (string pattern, string replacem
bearing on things? I tried it before (granted
> without the .TLD at the end) and it didn't work
>
> I'll give it a go and let you know what happens
>
> Cheers for your info! Appreciate it :)
>
> Ross
>
> DL Neil wrote:
> >
> > Ross,
> >
> &g
> We have PHP installed as an ISAP module on our W2K IIS5 server and
> its operational with no problems - phpinfo() runs just fine.
>
> But - When I uncomment the php_mssql.dll extension in php.ini I get an error
> when PHP starts up saying it cannot find the .dll file.
>
> The extension directory
Ross,
If you're still dissatisfied, here is my PHP.ini mail section - I'm using WinNT 4.0
SP6a and link into my ISP's SMTP
server (I don't run a local SMTP or POP server because the less I run on the
(portable) box itself, the faster/better I
like it!)
-
[mail function]
; For Win32 only.
S
I am using this piece of code to display news articles based on the variables inputted
by a user. However, it will only
display one article, never more, even if more are within the terms of the "WHERE"
clause. What am I doing wrong?
$search = mysql_query("SELECT news.ID, newstitle, newsdescript
> I'm developing a site on a NT box (I'm much more familiar with unix) and
> am unable to get mail to send on NT. I've edited the php.ini file so
> that SMTP = gatekeeper, which is the name of the server. That's all I
> saw in the manual and archives that would need to be changed. They have
> Exch
> Just a bit of an update. As I mentioned below, I am using virtual hosts
> to host 3 websites on my machine. I ended up copying a php file to the
> default website and lo and behold the php ran fine. Why won't it run on
> the other two sites? Does anyone have any ideas?
Jason,
How about the d
> I think the problem is the installation or configuration, if I use the
> mail() function I doesn't run, I've changed configurations, permisions, etc.
> but nothing.
>
> The system is a Win2k Server with IIS5 including its own SMTP server, after
> I've installed PHP 4.0.6 (the automatic installat
> I can't use the mail function with Win2k Server/IIS5, I'm ussing PHP4, what
> can I do???
Carlos,
It worked for me!
If you provide details of the problem we might be able to identify a solution.
Regards,
=dn
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
> How can I obtain the client's IP address in PHP? I'm trying to migrate from
> IIS/ASP to Apache & PHP and need something similar to ASP's servervariables'
> collection? (HTTP_REMOTE_ADDR)
Chris,
PHP's environment variables offer a "REMOTE_ADDR" value and
"HTTP_SERVER_VARS["REMOTE_ADDR"]".
Th
72 matches
Mail list logo