php-windows Digest 4 May 2002 21:02:49 -0000 Issue 1127
Topics (messages 13531 through 13543):
Re: Testing...pls ignore
13531 by: theN
13533 by: Webmaster
win 2000 smtp server
13532 by: Paul Roberts
13541 by: Ross Fleming
or die
13534 by: Raidell Avello
13535 by: Waldemar Brand Neto
13537 by: Raidell Avello
redirection help
13536 by: Zac Hillier
PHP stopped working
13538 by: Jerry
13540 by: Jerry
fatal error .... failed opening ..... ????
13539 by: toby z
Good Book for PHP ??
13542 by: theN
13543 by: Christoph Grottolo
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 ---
pls ignore this...i am testing news reader software. Sorry if this
causes any trouble
On Sat, 4 May 2002 07:39:32 GMT, [EMAIL PROTECTED] (Then) wrote:
>pls ignore this
--- End Message ---
--- Begin Message ---
Ok I am ignoring this....
Webmaster
(http://www.baarnhosting.nl)
(http://www.baarnhosting.d2g.com)
"Then" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> pls ignore this
--- End Message ---
--- Begin Message ---
can anyone recommend a smtp mail server for windows 2000 pro.( free if possible)
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
--- End Message ---
--- Begin Message ---
No not really, given that a lot of mail servers won't trust a private smtp
server (in case of spamming), I went down that path myself once, and several
institutes will just reject the mail outright.
Ross
-----Original Message-----
From: Paul Roberts [mailto:[EMAIL PROTECTED]]
Sent: 04 May 2002 11:59
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] win 2000 smtp server
can anyone recommend a smtp mail server for windows 2000 pro.( free
if possible)
Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
hi
a have this code
$link = mysql_pconnect ("localhost", "sa", "sa") {
or die ("Could not connect");
}
and i receive
Parse error: parse error in c:\htdocs\otra.php on line 2
and rewrite the code like this
if (!$link = mysql_pconnect ("localhost", "sa", "sa")) {
echo "Could not connect";
}
and work
what's wrong???
regards
RAM
--- End Message ---
--- Begin Message ---
The first example fixed:
$link = mysql_pconnect ("localhost", "sa", "sa") or die ("Could not
connect");
or die is an option of mysql_pconnect so you donīt need the {}.
In the second example you can use {} for the if.
[]īs Waldemar
----- Original Message -----
From: "Raidell Avello" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, May 04, 2002 1:33 PM
Subject: [PHP-WIN] or die
> hi
> a have this code
> $link = mysql_pconnect ("localhost", "sa", "sa") {
> or die ("Could not connect");
> }
> and i receive
> Parse error: parse error in c:\htdocs\otra.php on line 2
>
> and rewrite the code like this
> if (!$link = mysql_pconnect ("localhost", "sa", "sa")) {
> echo "Could not connect";
> }
> and work
> what's wrong???
> regards
> RAM
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
thanks, now work
the problems is i copy this sample from distribution chm manual
i'll send a message inform that...
The whole sample is:
<?php
$link = mysql_pconnect ("kron", "jutta", "geheim") {
or die ("Could not connect");
}
mysql_select_db ("samp_db") {
or die ("Could not select database");
}
$query = "SELECT last_name, first_name FROM friends";
$result = mysql_query ($query) {
or die ("Query failed");
}
# fetch rows in reverse order
for ($i = mysql_num_rows ($result) - 1; $i >=0; $i--) {
if (!mysql_data_seek ($result, $i)) {
printf ("Cannot seek to row %d\n", $i);
continue;
}
if(!($row = mysql_fetch_object ($result)))
continue;
printf ("%s %s<BR>\n", $row->last_name, $row->first_name);
}
mysql_free_result ($result);
?>
> The first example fixed:
> $link = mysql_pconnect ("localhost", "sa", "sa") or die ("Could not
> connect");
>
> or die is an option of mysql_pconnect so you donīt need the {}.
>
> In the second example you can use {} for the if.
>
> []īs Waldemar
>
>
> ----- Original Message -----
> From: "Raidell Avello" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, May 04, 2002 1:33 PM
> Subject: [PHP-WIN] or die
>
>
> > hi
> > a have this code
> > $link = mysql_pconnect ("localhost", "sa", "sa") {
> > or die ("Could not connect");
> > }
> > and i receive
> > Parse error: parse error in c:\htdocs\otra.php on line 2
> >
> > and rewrite the code like this
> > if (!$link = mysql_pconnect ("localhost", "sa", "sa")) {
> > echo "Could not connect";
> > }
> > and work
> > what's wrong???
> > regards
> > RAM
> >
> >
> > --
> > PHP Windows Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi,
Have been coding in asp for the past 18 months but have now decided to move our site
to php and mysql.
In asp we used a function response.redirect to send the user to another page as
required, is there a similar function in php that can work from within side the page
rather than the header area? We get
Warning: Cannot add header information - headers already sent by (output started at
D:\php-dev\includes\lg.php:2) in D:\php-dev\includes\lg.php on line 26
When using header("Location:
Many thanks for any help.
Zac
--- End Message ---
--- Begin Message ---
Hello,
I recently installed Apache, MySQL, PERL, and PHP using PHP Triad
a Win98. After starting Apache I loaded the test document
hphinfo.php and it worked fine. I then installed PHPEdit and
Dreamweaver MX. PHP no longer works. I have not made any changes
to php.ini. I am guessing that the problem may have to do with
file associations. Does anyone have any ideas as to what could be
wrong?
TIA,
Jerry
--- End Message ---
--- Begin Message ---
I am not sure why but PHP is now working fine.
Jerry
--- End Message ---
--- Begin Message ---
hi
im trying to take input from a form & upload a file
too ......
n im getting this error messege ....
Fatal error: Failed opening required 'common.php'
(include_path='c:\php4\pear')
in d:\inetpub\wwwroot\proceed.php on line 7
i ve tried changin the include path in php.ini ....
but that didn help ....
ne idea whats rong .... n how i can fix it ?????
toby ....
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
--- End Message ---
--- Begin Message ---
Could some one please suggest a good book on PHP for a newbie with no
idea of OOP and CGI. I am in the process of reading the PHP manual
online, but a more book would help me a lot.
--
Lots of Luck
theN
[EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
http://www.php.net/books.php
Christoph
Then wrote:
> Could some one please suggest a good book on PHP for a newbie with no
> idea of OOP and CGI. I am in the process of reading the PHP manual
> online, but a more book would help me a lot.
>
> theN
> [EMAIL PROTECTED]
--- End Message ---