|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 18 Apr 2000 04:58:10 -0000 Issue 1614
From: php3-digest-help
lists.php.netDate: Mon Apr 17 2000 - 23:58:10 CDT
- Next message: php3-digest-help
lists.php.net: "php3 Digest 18 Apr 2000 16:58:06 -0000 Issue 1615"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 17 Apr 2000 16:58:13 -0000 Issue 1613"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 18 Apr 2000 04:58:10 -0000 Issue 1614
Topics (messages 86361 through 86412):
Regex - Expanding URLs
86361 by: "Martin Edelius" <martin.edelius
spirex.se>
Shutting down scripts
86362 by: "Tom Rhodes" <trho_ewu
ispchannel.com>
86379 by: Doug Semig <dougslist
c3net.net>
Help - why does this array sort act weird?
86363 by: Gudmundur Helgason <gummi
hugvit.is>
86367 by: "Robert V. Zwink" <rzwink
microcenter.com>
RES: php and FileDSN
86364 by: ".j o h a n" <johan
logik.nu>
[Q] How to open a URL from within PHP?
86365 by: "Robert V. Zwink" <rzwink
microcenter.com>
Installation for PWS
86366 by: "Goforth" <jonathan
emeraldis.com>
How to establish connection between PHP and MS SQL Server??
86368 by: "Pierre-Alain Joye" <pajoye
toseeclub.ch>
86370 by: "Frank M. Kromann" <fmk
swwwing.com>
using file_exists()
86369 by: "Andrew Sheh" <ashea
dmetechnologies.com>
PHP / IE Problems
86371 by: Joe Stump <jstump
online.emich.edu>
86373 by: Sascha Schumann <sascha
schumann.cx>
ms access in php
86372 by: Jêdrzej Kolesiñski <jedrek
plj.pl>
writing to the file
86374 by: "Bartosz Aninowski" <bart
sonik.pl>
86375 by: Pablo A.Godel <godel
conectacom.com>
86376 by: Francisco Ganacim <francisco
conectiva.com.br>
php job opportunity
86377 by: David Hobbs <jobs
forumone.com>
[Q] Session ID Not there.... (2nd Post)
86378 by: "A Robertson" <elite2000
btinternet.com>
writing to ... - next step
86380 by: "Bartosz Aninowski" <bart
sonik.pl>
php4RC1 make errors
86381 by: "Mark Maggelet" <maggelet
mminternet.com>
Building php3.0.16 for apache1.3.12
86382 by: Pete Nelson <pete.nelson
ci.stpaul.mn.us>
Determining the From address in an email header
86383 by: "hboyce" <hboyce
eab.co.uk>
Recursive function calling.
86384 by: "Richard Heyes" <php
heyes-computing.net>
86390 by: "James Moore" <james
prospect-enterprises.co.uk>
86391 by: Marcus D Hanwell <linux
cryos.net>
86392 by: "James Moore" <james
prospect-enterprises.co.uk>
*Native* IBM DB2 support for PHP?
86385 by: Deirdre Saoirse <deirdre
deirdre.net>
Hello
86386 by: "Cristian" <cristiansantana
hotmail.com>
86387 by: "Cristian" <cristiansantana
hotmail.com>
Holding Values of Fields
86388 by: "Jacqueline Miao" <jackie
akula.com>
info
86389 by: "Jason" <jason
laker.net>
dbase
86393 by: "Burlot Mary" <mburlot
hotmail.com>
php3 and (x)emacs
86394 by: Arcady Genkin <a.genkin
utoronto.ca>
Where can I download php_odbc.dll?
86395 by: Todd Cary <todd
aristesoftware.com>
San Francisco Bay Area PHP User's Group Meeting
86396 by: bob scott <bob
phpgroup.org>
Loading another page in an IF statement
86397 by: Paul Cohen <pcohen
networkoil.com>
86399 by: "Boget, Chris" <chris
wild.net>
86405 by: Bob Lutz <php3
lutz-engr.com>
COldFusion/Netobjects v.s. PHP
86398 by: Toshihide Nakamura <tony
crystaldonuts.com>
86404 by: "Mike Sheldon" <msheldon
desertraven.com>
86411 by: Rasmus Lerdorf <rasmus
php.net>
Recall: mail() function never work.
86400 by: chchar <chchar
mcms.com>
86401 by: chchar <chchar
mcms.com>
mail() function never work.
86402 by: chchar <chchar
mcms.com>
86403 by: chchar <chchar
mcms.com>
86412 by: "Manuel Lemos" <mlemos
acm.org>
Stopping a script from being started twice
86406 by: "Tom Rhodes" <trho_ewu
ispchannel.com>
This is the one !
86407 by: "TV Karthick Kumar" <tvkarthick
mailops.com>
86409 by: "TV Karthick Kumar" <tvkarthick
mailops.com>
php and FileDSN
86408 by: "TV Karthick Kumar" <tvkarthick
mailops.com>
Renaming table in postgres
86410 by: Toshihide Nakamura <tony
crystaldonuts.com>
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
> Don't forget about <img src=""> links which will probably be the hardest
> part of the regex because src does not have to be first with all the
height,
> width, border, hspace, and othe attributes in an image tag.
And neither does the href part of an <A> tag. I quite often put the class
attribute before href.
Best regards,
Martin Edelius
Spirex Digital Design
--------------------------------
www: http://www.spirex.se
Mail: martin.edelius
spirex.se
Phone: +46-31-514651, 0708-113711
Fax: +46-31-514331
Aröds Industriväg 3c
S-422 43 Hisings Backa
--------------------------------
If I haven't got back to you or done what I'm supposed to, let me know again
as I have too much to do for my own good...
attached mail follows:
Does anyone know how to shut down PHP without having to reboot in win98
using php 4.0 RC1 and PWS 4.0? When you press ctr-alt-del no process comes
up.. Supposedly ISAPI applications are supposed to shut themselves down but
there is also supposed to be a way to kill them. Does anyone know how?
Thanks
Tom
attached mail follows:
The Windows 98 Resource Kit contains a kill program that might do the trick.
http://mspress.microsoft.com/reslink/win98/toolbox/default.asp?filechosen=ht
m/kill.htm
Doug
Tom Rhodes was heard at 10:18 AM 4/17/00 -0700 to say:
>Does anyone know how to shut down PHP without having to reboot in win98
>using php 4.0 RC1 and PWS 4.0? When you press ctr-alt-del no process comes
>up.. Supposedly ISAPI applications are supposed to shut themselves down but
>there is also supposed to be a way to kill them. Does anyone know how?
>Thanks
>
>Tom
>
attached mail follows:
Howdy folks :)
I have the code here below in one of my Commander templates to print out
dates and text for medals received. It works just fine _unless_ the person
in question got 2 medals on the same day (happened a few times).
When that happens it just prints out the former medal and gives up (if the
man won 5 medals and 2 on the same date this program will return 4 ignoring
the latter duplicate).
**************************************************************************************************
// Here we must build this string using only elements which are non-empty,
// otherwise the last empty item is always printed out.
// $medal_0 etc. are date-fields (i.e. '1943-07-07').
$fruits = array("$medal_0"=>"Descriptive text for Medal 1",
"$medal_1"=>"Descriptive text for Medal 1",
"$medal_2"=>"Descriptive text for Medal 2",
"$medal_3"=>"Descriptive text for Medal 3",
"$medal_4"=>"Descriptive text for Medal 4",
"$medal_5"=>"Descriptive text for Medal 5",
"$medal_6"=>"Descriptive text for Medal 6",
"$medal_7"=>"Descriptive text for Medal 7");
ksort($fruits);
for(reset($fruits); $key = key($fruits); next($fruits)) {
if ($key > 0) {
echo "<tr><td width=90 valign=top align=right>";
$decoration_date = new_date($key);
echo "$decoration_date";
echo "</td><td valign=top width=220>".$fruits[$key]."";
if (($key > $dead) and ($dead > 0)) echo " (posthumous)";
echo "</td></tr>";
}
}
**************************************************************************************************
Can anybody tell me what is wrong with this (I know this code will not win any
awards :) and perhaps
how to solve the problem?
Thanks in advance,
Gudmundur Helgason
http://uboat.net
attached mail follows:
Gudmundur Helgason wrote:
>
> // Here we must build this string using only elements which are non-empty,
> // otherwise the last empty item is always printed out.
>
> // $medal_0 etc. are date-fields (i.e. '1943-07-07').
>
> $fruits = array("$medal_0"=>"Descriptive text for Medal 1",
> "$medal_1"=>"Descriptive text for Medal 1",
> "$medal_2"=>"Descriptive text for Medal 2",
> "$medal_3"=>"Descriptive text for Medal 3",
> "$medal_4"=>"Descriptive text for Medal 4",
> "$medal_5"=>"Descriptive text for Medal 5",
> "$medal_6"=>"Descriptive text for Medal 6",
> "$medal_7"=>"Descriptive text for Medal 7");
>
> ksort($fruits);
> for(reset($fruits); $key = key($fruits); next($fruits)) {
>
> if ($key > 0) {
>
> echo "<tr><td width=90 valign=top align=right>";
> $decoration_date = new_date($key);
> echo "$decoration_date";
> echo "</td><td valign=top width=220>".$fruits[$key]."";
> if (($key > $dead) and ($dead > 0)) echo " (posthumous)";
> echo "</td></tr>";
>
> }
>
> }
>
If you are going to use dates as your array indexes then any duplicate
indexes are going to overwrite the previous one. Your indexes have to
be unique to attain the requested functionality. You can not have:
$fruits[1943-07-07] = "Big Dog Award"
and
$fruits[1943-07-07] = "Fluffy Award"
You could have
$fruits[1943-07-07 20:32:00] = "Big Dog Award"
and
$fruits[1943-07-07 14:23:45] = "Fluffy Award"
Because the indexes would be unique.
Simplified:
You can not have:
$fruits[1] = "Big Dog Award"
and
$fruits[1] = "Fluffy Award"
You could have
$fruits[1] = "Big Dog Award"
and
$fruits[2] = "Fluffy Award"
Hope this helps,
Robert V. Zwink
attached mail follows:
> I'm quite sure you can't use a file dsn to connect to a database thru php.
> Instead create a system dsn to do this.
> The dsn string is just the name of the dsn you created.
The problem is that the client that I am working for does
not like the extra cost that a SystemDSN brings.
So I am forced to use FileDSN, I know it work in
ASP but I since I am using some functions in PHP
that is not available in ASP, ASP is not an option.
-- //---johan persson //e - m a i l a l i a s w e b s i t e johan
logik.nu - surak
efnet - kawaii.logik.nu
attached mail follows:
"Donovan J. Edye" wrote: > > G'Day All, > > Can anyone tell me how I can achieve the following WITHOUT using Header() > calls? > > if (ValidLogin) > { > OpenSomeURL() > } else > { > OpenSomeOtherURL() > } > > I have seen the following done and would like to know how I would do this > using PHP. >
You can echo the following as a response. If the browser accepts redirects in META format, then it will go there automatically. Its kinda cool to also add some phrase like "COMPLETE!", wait 2 seconds then refresh to the next page. Just change the 0 to 2
<? echo " <HTML> <HEAD> <META HTTP-EQUIV=\"Refresh\" CONTENT=\"0;URL=page_you_want_to_go_to?option=$value\"> </HEAD> <A HREF='page_you_want_to_go_to.phtml?option=$value'></HTML>"; ?>
Robert V. Zwink
attached mail follows:
I am at my wits end. I have a problem, and if no on you can help me with it, I am afraid I shall be forced to admit myself into the nearest mental institution.
For a couple of reasons, several days ago I decided to change from using .php3 to .php. This in itself was not that big of a problem. However my situation is such that I have to be able to test my pages on my Win98 computer without uploading them, and when I went to test the page through Microsoft Personal Web Server, I found that the .php extension did not work. I checked in the registry and all of the entries were exactly the same for the extensions .php .php3 and .phtm3 in both HKEY_CLASSES_ROOT and HEKY_LOCAL_MACHINE, but only the .php3 and .phtm3 extensions worked. I checked everything I could think of where and problem might exist and found none, so I decide to reinstall PWS and PHP. This was a bad idea however, for now no extensions work. After the reinstallation, regardless of what extension I used it, in Netscape it would attempt to download the file, and in IE would should a quick download box then open a DOS box with the following text:
X-Powered-by: PHP/3.0.13 Content-type: text/html
<font color=ff0000><br> <b>Fatal Error</b>: Unable to open C:\Windows\Temporary in <b>-</b> on line<b>0</b><br> </font>
It was shortly after this that I decided to see what would happen if you took out %s %s from the registry entries. This resulted in both Netscape and IE saying "No input file specified". So added back the %s %s, but this did not take me back to the previous state. I am currently getting a No input file specified whenever I ask for a php file through a browser.
Please if anyone can help me I would greatly appreciate it.
jonathan goforth
jonathan
emeraldis.com
attached mail follows:
Hello,
Sometimes it's good to read the php docs : http://www.php.net/manual/html/ref.mssql.html
_¸,ø¤°`¯`°¤ø,¸_¸,ø¤°`¯`°¤ø,¸_¸,ø¤°`¯`°¤ø,¸_ (¯`·._ (¯`·._--={PA Joye}=--_.·`¯) _.·`¯) (¯`·._ (¯`·._--={Fight for your mind}=--_.·`¯) _.·`¯) ¯`°¤ø,¸_¸,ø¤°`¯`°¤ø,¸_¸,ø¤°`¯``°¤ø,¸_¸,ø¤°`¯
attached mail follows:
Hi,
On what platform are you using php ?
If both MS SQL Server and php is on Windows NT/95/98 you can use either buld in support for ODBC of you might use dl("php3_mssql.dll") or dl("php_mssql.dll") for php3/php4 to load the mssql_* functions.
on other platforms you might use ODBC or the sybase module (this will only work with MS SQL 6.5).
- Frank
>Hi,
> How to establish connection between PHP and MS SQL Server??
> Do there need ODBC?
> Thanks.
>
> liwei
> liwei
sepaeic.gov.cn
>
>
>--
>PHP 3 Mailing List <http://www.php.net/>
>To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
>To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
>To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
>To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
Swwwing A/S Frank M. Kromann VP Development Phone: +45 70 20 77 20 Fax: +45 70 20 77 21 http://www.swwwing.com
attached mail follows:
>-----Original Message-----
>From: Darwis Fadhli [mailto:darwis
piksi.itb.ac.id]
>Sent: Monday, April 17, 2000 7:57 AM
>To: PHP
>Subject: [PHP3] using file_exists()
>
>
>
>Dear Lists..
>
>I want to check whether file exists or not.. so if the file is exists
>then i want to open it.. and if it doesn't.. i dont want to
>open without
>any error message
>
>i'm using function file_exists() or is_file()
>when i call funtion file_exists and if the file doesn't exists
>then the error message still appear...
>
>so.. how can i check the existance of file without any error message..
>
>TIA,
>
>--
>Darwis Fadhli
>------------------------------------------------
>Koleksi Aplikasi Database berbasis Web
>http://kakilima.web.id
>
If you handle for situations where the file does not exist later in your
code, you can try adding "
" to the statement you want the error
messages not to be displayed.
andrew
attached mail follows:
I have figured out the problem and as far as I can see it IS a bug in PHP's setcookie() function. IE WILL NOT accept cookies or SET cookies when using this function...however header(Set-Cookie name=var); does work in setting the cookies. The pages will load but my problems came when we wanted to add/update contents in the basket (which relies on cookies). The wierd thing is that the setcookie() works on www.miester.org/acinc/php but does not work on a2.acinc.com/ I have figure out that they are running php 3.0.7 (we are running 3.0.15) and apache 1.3.6 (we were running 1.3.12) so I am now configuring our site with those versions. I will keep you posted on my findings ....maybe apache is sending the cookies out wierd? i dunno...
--Joe
On Sat, Apr 15, 2000 at 07:18:24PM -0700, Rasmus Lerdorf wrote:
> This can't possibly be a PHP problem. PHP has no idea what sort of
> browser is on the other end. It is some sort of client-side cacheing
> problem in IE most likely.
>
> -Rasmus
>
> On Sat, 15 Apr 2000, Joe Stump wrote:
>
> > On Sat, Apr 15, 2000 at 07:58:48PM +0200, Martin Edelius wrote:
> > > Hmmm... I have never run into this problem myself. It shouldn't matter as
> > > the PHP is parsed on the server. When you say that the HMTL is not even
> > > being passed from PHP to IE, what do you mean? Doesn't anything at all show
> > > up in the browser?
> > >
> >
> > There is no HTML (when there should be) in the source file when I click on view source.
> >
> > > BTW, your example site doesn't scale well above 1024x768. The 'Contact'
> > > graphic and one or two other items needs to be left aligned.
> > >
> >
> > I will tell the graphics guy :o)
> >
> > >
> > > Best regards,
> > > Martin Edelius
> > >
> > > Spirex Digital Design
> > > --------------------------------
> > > www: http://www.spirex.se
> > > Mail: martin.edelius
spirex.se
> > > Phone: +46-31-514651, 0708-113711
> > > Fax: +46-31-514331
> > > Aröds Industriväg 3c
> > > S-422 43 Hisings Backa
> > > --------------------------------
> > > If I haven't got back to you or done what I'm supposed to, let me know again
> > > as I have too much to do for my own good...
> > >
> > > ----- Original Message -----
> > > From: "Joe Stump" <jstump
online.emich.edu>
> > > To: <lynch
lscorp.com>
> > > Cc: <php3
lists.php.net>
> > > Sent: Saturday, April 15, 2000 7:25 PM
> > > Subject: [PHP3] PHP / IE Problems
> > >
> > >
> > > > While working on our site I have noticed a problem - Internet Explorer is
> > > not correctly rendering php pages. In fact the HTML is not even being passed
> > > from PHP to IE - but it works fine in Netscape. And the worst part is that
> > > it works on one server (www.miester.org/acinc/php) and not on another
> > > (a2.acinc.com)
> > > >
> > > > I noticed that there was a posting in the FAQ about Netscape having this
> > > problem because of \0 characters so I tried it and ran it through the
> > > following command.
> > > >
> > > > php -q [page.php] | od -c | grep '\\0'
> > > >
> > > > and it returned nothing.
> > > >
> > > > any ideas would be great! Thanks!
> > > >
> > > > --
> > > > Joe Stump
> > > > http://www.miester.org
> > > > Mobile: 734.717.5500
> > > >
> > > > <?
> > > > echo $linux;
> > > > ?>
> > > >
> > > > --
> > > > PHP 3 Mailing List <http://www.php.net/>
> > > > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> > > > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> > > > To search the mailing list archive, go to:
> > > http://www.php.net/mailsearch.php3
> > > > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP 3 Mailing List <http://www.php.net/>
> > > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> > > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> > > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> > > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> > --
> > Joe Stump
> > http://www.miester.org
> > Mobile: 734.717.5500
> >
> > <?
> > echo $linux;
> > ?>
> >
> > --
> > PHP 3 Mailing List <http://www.php.net/>
> > To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> > To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> > To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> > To contact the list administrators, e-mail: php-list-admin
lists.php.net
> >
> >
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- Joe Stump http://www.miester.org Mobile: 734.717.5500<? echo $linux; ?>
attached mail follows:
On Mon, Apr 17, 2000 at 02:57:00PM -0400, Joe Stump wrote: > I have figured out the problem and as far as I can see it IS a bug in PHP's setcookie() function. IE WILL NOT accept cookies or SET cookies when using this function...however header(Set-Cookie name=var); does work in setting the cookies. The pages will load but my problems came when we wanted to add/update contents in the basket (which relies on cookies). The wierd thing is that the setcookie() works on www.miester.org/acinc/php but does not work on a2.acinc.com/ I have figure out that they are running php 3.0.7 (we are running 3.0.15) and apache 1.3.6 (we were running 1.3.12) so I am now configuring our site with those versions. I will keep you posted on my findings ....maybe apache is sending the cookies out wierd? i dunno...
Did you enable y2k_compliance?
$ grep y2k_comp php3.ini-dist y2k_compliance = Off ; whether to be year 2000 compliant (will cause problems with non y2k compliant browsers)
- Sascha
attached mail follows:
Hi,
Well i've installed this php3 and apache and its working (quite slowe but still its something). But the question is :
How to work with MS_Access base ? How to connect etc. ODBC ? The file is called : jedrek.mdb Maybe this : <? $connection = odbc_connect("jedrek.mdb", "", "");
$query = "SELECT * "; $query .= "FROM jedrek "; $result = odbc_do($connection, $query);
odbc_result_all($result, "BORDER=1");
odbc_close($connection); ?> but it gives me some errors....(partly in polish .... but if you understand :))
Warning: SQL error: [Microsoft][Mene¿er sterowników ODBC] Nazwa ¼ród³a danych nie zosta³a znaleziona a nie ma podanego sterownika domy¶lnego, SQL state IM002 in SQLConnect in c:\apache\htdocs/start.php3 on line 1
Warning: Bad ODBC connection number (0) in c:\apache\htdocs/start.php3 on line 1
Warning: Bad result index 0 in c:\apache\htdocs/start.php3 on line 1
Waiting for support ...
Jedrek
attached mail follows:
I have somthing like this $fp = fopen("/tmp/test", "w+"); fwrite($fp, "$string\n"); fclose($fp);
and it is working but when next time $string is definied scripts overwrite existing (in test) but I want to add each new $string like new line. a b c d etc
attached mail follows:
You should use fopen("/tmp/test", "a");
to append in the file...
Quoting Bartosz Aninowski <bart
sonik.pl>:
> I have somthing like this
> $fp = fopen("/tmp/test", "w+");
> fwrite($fp, "$string\n");
> fclose($fp);
>
> and it is working but when next time $string is definied scripts
overwrite
> existing (in test) but I want to add each new $string like new line.
> a
> b
> c
> d
> etc
>
>
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-
unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-
subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-
admin
lists.php.net
>
>
-- Pablo Godel godelconectacom.com Conectacom, Inc.
attached mail follows:
Em seg, 17 abr 2000, Bartosz Aninowski escreveu: > I have somthing like this > $fp = fopen("/tmp/test", "w+"); > fwrite($fp, "$string\n"); > fclose($fp); > > and it is working but when next time $string is definied scripts overwrite > existing (in test) but I want to add each new $string like new line. > a > b > c > d > etc > > Use a+
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
-- Francisco Ganacim <franciscoconectiva.com.br>
attached mail follows:
As these jobs have a php component, I thought you may have an interest in the following jobs for developing database-driven web sites at Forum One Communications. Please see www.forumone.com/consult/ for details.
SENIOR WEB PROGRAMMER 6+ yrs exp. Unix/CGI programming, with 2+ yrs developing dynamic database web sites w/ at least 2 of JavaScript, Java, DHTML, SSI, PHP, mySQL.
WEB DEVELOPER 1-2 yrs. proven exp. in basic html web dev.
-- David Hobbs
attached mail follows:
Use session_register to store the value of the named variable to the session, not retrive it, and the storage is not done until you call page_close(); Bearing that in mind walk through your code:
session_start(); //run 1 creates new session //run 2 reloads session and stored variables
session_register("sess_user_verified"); //run 1 tells session to store a variable with this name on page_close() but does NOT create new global PHP variable, ie session will store empty variable unless you set it before calling page_close() session_register("sess_userid"); //as above
if (!isset($sess_user_verified)) //run 1 this variable is NOT set in script's scope because you haven't defined it anywhere yet //run 2 empty variable with this name has been reloaded from the session, so it is now technicaly 'set' although still 'empty'. { $sess_user_verified = FALSE; //run 2 this is the first time you actually set this variable to anything meaningful print("in Here"); print($PHPSESSID); }
what you need to do is something like: $sess_user_verified = TRUE; before storing or testing it, otherwise it does not really 'exist'.
HTH Adam
attached mail follows:
Now I have got something like this <?php
$string;
if(!$string) { die ("Musisz podaæ adres e-mail.") ; }
elseif (!ereg("
", $string)) {
die ("Z³y format adresu") ; } else {
$fp = fopen("/tmp/test", "a"); fwrite($fp, "$string\n");
fclose($fp); }
?> This simple add e-mail addres to text file, what I should use to check if $string already exists in txt file? and if it exists - die ("already bla bla bla")
attached mail follows:
here's the error I get at the bottom of running make:
Making all in standard make[2]: Entering directory `/home/root/apachebuild/php-4.0RC1/ext/standard' make[3]: Entering directory `/home/root/apachebuild/php-4.0RC1/ext/standard' gcc -DHAVE_CONFIG_H -I. -I/root/apachebuild/php-4.0RC1/ext/standard -I../.. -I../../Zend -I/root/apachebuild/php-4.0RC1 -I/root/apachebuild/apache_1.3.12/src/include -I/root/apachebuild/apache_1.3.12/src/os/unix -I/root/apachebuild/imap-4.1.FINAL/c-client -I/root/apachebuild/mysql-3.23.14-alpha/include -I/root/apachebuild/php-4.0RC1/ext/xml/expat/xmltok -I/root/apachebuild/php-4.0RC1/ext/xml/expat/xmlparse -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall -c basic_functions.c && touch basic_functions.lo basic_functions.c:324: `php_if_dl' undeclared here (not in a function) basic_functions.c:324: initializer element for `basic_functions[201].handler' is not constant basic_functions.c: In function `php_info_basic': basic_functions.c:708: warning: implicit declaration of function `php_info_dl' make[3]: *** [basic_functions.lo] Error 1 make[3]: Leaving directory `/home/root/apachebuild/php-4.0RC1/ext/standard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/root/apachebuild/php-4.0RC1/ext/standard' make[1]: *** [all] Error 1 make[1]: Leaving directory `/home/root/apachebuild/php-4.0RC1/ext' make: *** [all-recursive] Error 1
anyone know what the problem is here?
thanks, - Mark
attached mail follows:
One of apache-1.3.12's auto-generated header files does not work with php-3.0.16 (at least when I try). The header file has a nested '#if' that kills the make process for php. Apache, and Apache JServ have no trouble with this. What did I do wrong?
-- Pete Nelson, Web Developer City of Saint Paul, Minnesota http://www.ci.stpaul.mn.us/ <pete.nelsonci.stpaul.mn.us>
attached mail follows:
> looking > through the headers tells me nothing. I see the server that the mail > originated from and the apparent name of the user that sent it, but > the actual email address is not there (example header included below)
These headers look mildly edited, but I'll take them as they come and hope you didn't edit out a vital clue.
The mailbox may be present, but you are just not recognising it as such ... but first, some comments about the alternatives you suggest:
> I know I could "guess" at the originating email address by sticking
> the from name in front of the server name with
in the middle, but
> that will not always work
No, this is not at all reliable. You will more often be wrong than right doing this.
> For example, email addresses at my work
> follow the format: first.last
work.com, but a mail recieved from my
> work shows the server to be: mail.work.com,
Don't assume that the mail server host domain is the same as the domain it serves; although it *may* be so, it is often - as in this case - subordinate to the domain it serves, and may even be in an entirely different domain.
> and the sender to be: first last (without the period(.))
This looks odd. Unless the canonical form of your workplace's addresses does not have the period, something is doing non-standard re-writing of local parts. This may be something to draw to the attention of your local mail server admin.
> My question is, if the originating > email address does not show up in the headers, how do mail clients > like Netscape and Outlook determine what the email address is? Or, am > I simply not getting all the headers? Or, is my mail server not set up > correctly?
None of the above, although there's a possibility your mail server isn't set up correctly.
> It seems to me the "Received: (from mail
localhost)" should
> be where the email address shows up, but every message shows the same
> thing.
Never use Received: headers (or even Return-Path:) for this purpose. Received: headers don't contain what you seem to think (they actually contain information about the route the mail took to get to you).
Return-Path: may be accurate (although it's very suspect below :), but it's intended for mail server use and may not represent the originator you expect (if there's a Sender:, it probably reflects that rather than From:), and should not be used by end-user software.
>
> example header:
> ----------------------------
> Return-Path:
> Received: (from mail
localhost)
> by ceres.host4u.net (8.8.5/8.8.5) id AAA30195
> for crushandswill
crushandswill.com; Fri, 14 Apr 2000 00:25:25 -0500
> Received: from mail.satx.rr.com (sm2.texas.rr.com [24.93.35.55]) by
> ceres.host4u.net (8.8.5/8.8.5) with ESMTP id AAA30177 for ; Fri, 14
> Apr 2000 00:25:23 -0500
> Received: from satx.rr.com ([24.26.231.62]) by
> mail.satx.rr.com with Microsoft SMTPSVC(5.5.1877.357.35); Fri, 14 Apr
> 2000 00:13:44 -0500
> Message-ID: <38F6AB7D.EF4F25E1
satx.rr.com>
> Date: Fri, 14 Apr 2000 00:24:13 -0500
> From: Bertog
> X-Mailer: Mozilla 4.72[en] (Win98; I)
> X-Accept-Language: en
> MIME-Version: 1.0
> To: abul
crushandswill.com
> Subject: This is a test
> Content-Type: text/plain; charset=us-ascii
> Content-Transfer-Encoding: 7bit
> Status: RO
>
> Hey dude, what is up?!?
> ----------------------------
OK, time to cut through the mystery. The only possibly 'legal' email address' is in the From header, since there's no other possibility:
>From: Bertog
This may be 'legal' if the message has never left your local mail domain, in which case delivery is a purely local matter, and reply to that mailbox ought to be handled purely locally as well. There's no Reply-To: or Sender: headers, nor any Resent- derivatives, so there's no other possible source of address you can use.
However, it's probably not a local matter. I see from the Received
headers that it has passed through several different Mail servers,
and since the addressee <abul
crushandswill> is in a different domain
from you (<bertog
satx.rr.com>), whom I assume was the originator,
then the From: address really ought to have been re-written to
include your domain, at the latest when it left the server relaying
it out of the local domain, but more usually by the injecting mail
client. So yes, you should ask your local mail administrator about
this.
You should also be aware that there may be other headers from which you might obtain an address from, in particular
Reply-To: (if present) Sender: (shouldn't be used normally) Resent-Reply-to: (unlikely) Resent-From: (even less likely).
See section 4.4.4 of RFC822 for guidance on the automatic use of these headers.
David.
hboyce
eab.co.uk
attached mail follows:
Is calling a (user defined) function from within that function bad in any way shape or form? Not a large amount of times (ie <20 usually).
TIA
-- Richard Heyes
attached mail follows:
Hi Richard,
In my experiance this is fine, as long as the function unwinds properly. This recursive calling is used in decimal to binary conversions and it works a treat for me. But just make sure you done get stuck in a look
James
attached mail follows:
James Moore wrote:
> Hi Richard, > > In my experiance this is fine, as long as the function unwinds properly. > This recursive calling is used in decimal to binary conversions and it works > a treat for me. But just make sure you done get stuck in a look > > James >
Sorry, this is just totally out of interest. What is the advantage of doing this, to using a loop such as a for or while loop?
Marcus
attached mail follows:
>> Hi Richard, >> >> In my experiance this is fine, as long as the function unwinds properly. >> This recursive calling is used in decimal to binary conversions and it works >> a treat for me. But just make sure you done get stuck in a look >> >> James >> > >Sorry, this is just totally out of interest. What is the advantage of doing >this, to using a loop such as a for or while loop? > >Marcus
Im not sure, another usage of recusive calling is searching binary trees, Im not sure if converting from decimal to binary would work using for loops. I just do it the way I always have and was taught.
James
attached mail follows:
On Tue, 11 Apr 2000, Rasmus Lerdorf wrote:
> > If PHP is compiled with support for IBM DB2 is it able to retrieve > > data from AS/400 to Linux with no addicional client software? > > Nope. However if your DB2 is running on an AIX machine and you have > the libdb2.a library for your Linux box, then yes, you can speak > directly to DB2 running on AIX. DB2 on AS/400 and OS/390 is a different > beast altogether.
It's my understanding, from those within IBM, that there are three separate codebases for DB2: Unix, OS/400 and big systems (including OS/390). That said, some AS/400s *do* run Unix (including AIX) http://www.as400.ibm.com/news/clips01_00.htm so the question isn't as clearly answered as whether or not it's on an AS/400.
My guess is that if you have an AS/400 with AIX, it would probably work as Rasmus states above. Too bad I don't work as an AIX admin any longer, it might be fun to test.
-- _Deirdre * http://www.linuxcabal.org * http://www.deirdre.net "Dictators ride to and fro upon tigers which they dare not dismount. And the tigers are getting hungry." -- Winston Churchill
attached mail follows:
php3 db: mysql
I have a form where I have the possibility of saving the data of a consultation to Excel format (xls). my question is: since this in php3 becomes
help me.
attached mail follows:
I have a form where I have the possibility of saving the data of a consultation to Excel format (xls). my question is: since this in php3 becomes
help me
cristiansantana
hotmail.com
attached mail follows:
Yo Phppies, Sorry for acting completely dead for the past, um maybe close to a year?!
Anyway, I have a valid question.
To hold the value of a textfield when using $PHP_SELF can be solved by setting <input type=\"text\" name=\"my_fat_uncle\" value=\"$my_fat_uncle\">
How do you do the same for checkboxes, radio buttons, and select menus? Any help will be greatly appreciated.
Jackie
Jacqueline Miao Technical Consultant http://www.jackiemiao.com
--------------------------------------
----- Original Message -----
From: Mark Maggelet <maggelet
mminternet.com>
To: <php3
lists.php.net>
Sent: Monday, April 17, 2000 5:43 PM
Subject: [PHP3] php4RC1 make errors
> here's the error I get at the bottom of running make:
>
> Making all in standard
> make[2]: Entering directory
`/home/root/apachebuild/php-4.0RC1/ext/standard'
> make[3]: Entering directory
`/home/root/apachebuild/php-4.0RC1/ext/standard'
>
gcc -DHAVE_CONFIG_H -I. -I/root/apachebuild/php-4.0RC1/ext/standard -I../..
-I../../Zend -I/root/apachebuild/php-4.0RC1 -I/root/apachebuild/apache_1.3.1
2/src/include -I/root/apachebuild/apache_1.3.12/src/os/unix -I/root/apachebu
ild/imap-4.1.FINAL/c-client -I/root/apachebuild/mysql-3.23.14-alpha/include
-I/root/apachebuild/php-4.0RC1/ext/xml/expat/xmltok -I/root/apachebuild/php-
4.0RC1/ext/xml/expat/xmlparse -DXML_BYTE_ORDER=12 -D_REENTRANT -g -O2 -Wall
-c basic_functions.c && touch basic_functions.lo
> basic_functions.c:324: `php_if_dl' undeclared here (not in a function)
> basic_functions.c:324: initializer element for
`basic_functions[201].handler' is not constant
> basic_functions.c: In function `php_info_basic':
> basic_functions.c:708: warning: implicit declaration of function
`php_info_dl'
> make[3]: *** [basic_functions.lo] Error 1
> make[3]: Leaving directory
`/home/root/apachebuild/php-4.0RC1/ext/standard'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory
`/home/root/apachebuild/php-4.0RC1/ext/standard'
> make[1]: *** [all] Error 1
> make[1]: Leaving directory `/home/root/apachebuild/php-4.0RC1/ext'
> make: *** [all-recursive] Error 1
>
> anyone know what the problem is here?
>
> thanks,
> - Mark
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
attached mail follows:
attached mail follows:
question : I want make a comparison between a input data (via a HTML input box)and a data contaning in an access 2000 database. How can I do ? I saved my database in dbase5 format and I try do compare it with = but it's not working. Please help.
Mary Burlot ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com
attached mail follows:
Gianmarco Giovannelli <gmarco
giovannelli.it> writes:
> Hi, I was trying to know if there is a way to configure xemacs to "syntax > highlight" the php3 tags like it does with other languages (C,HTML...)
http://www.cs.huji.ac.il/~baryudin/php3_mode.html
-- Arcady Genkin http://www.thpoon.com Nostalgia isn't what it used to be.
attached mail follows:
Where can I download the ODBC driver?
Thank you......
Todd
-- Todd Cary Ariste Software toddaristesoftware.com
attached mail follows:
For those of you in the San Francisco Bay Area interested in meeting other PHP minded people......
The San Francisco Bay Area PHP User's Group (BAPUG) will have it's first ever meeting on April 27, 2000 at 7:00 PM.
The meeting will be held at CoffeeNet at 744 Harrison in San Francisco.
Our speaker and special guest will be the one and only Rasmus Lerdorf, our esteemed creator of PHP. Rasmus will bring along his O'Reilly pocket PHP Reference Manual to be raffled off to 25 lucky attendees so come check it out and join in on the fun!
To register at BAPUG and RSVP this meeting go to :
Hope to see you there!!
Bob Scott
Coordinator, BAPUG
bob
phpgroup.org
attached mail follows:
I am trying to redirect users after evaluating a conditional statement. The only ways I know how to do this are: include(); require(); and fopen(); followed by fpassthru(); In all of these cases however the code of the new page is evaluated and appended to the bottom of the existing page. I need to redirect them to a clean page and then have the browser read the script, or I just need to send them to the new page. Any suggestions? Thx, Paul
attached mail follows:
First, out of curtesy <sp>, please post to the list in text format. There are many people who have email clients that have a real hard time reading HTML formatted messages.
> I am trying to redirect users after evaluating a conditional statement. > The only ways I know how to do this are: > include(); require(); > and > fopen(); > followed by > fpassthru(); > In all of these cases however the code of the new page is evaluated and > appended to the bottom of the existing page. I need to redirect them to > a clean page and then have the browser read the script, or I just need to > send them to the new page. > Any suggestions?
Check out the header() function.
Chris
attached mail follows:
Paul,
Try using JavaScript as in the following sample:
$t = time(); print("<SCRIPT LANGUAGE=\"JavaScript1.1\">\n"); print("location = \"NewPage.php?tm=$t\";\n"); print("</SCRIPT>");
The $t variable is necessary to force a reload of the page you are re-directing to (in this case "NewPage.php").
Bob
Paul Cohen wrote:
> I am trying to redirect users after evaluating a conditional > statement. The only ways I know how to do this > are:include();require();and fopen();followed byfpassthru();In all of > these cases however the code of the new page is evaluated and appended > to the bottom of the existing page. I need to redirect them to a > clean page and then have the browser read the script, or I just need > to send them to the new page.Any suggestions?Thx,Paul
attached mail follows:
I started out with ColdFusion, and I like PHP better. I still like ColdFusion OK, but pure fact is that PHP seem to be more flexible with everything. PHP can be installed in many different platforms, and ColdFusion runs pretty much only on Windows and Linux(recently).
PHP, as a programming language, is a lot more structured than the CFScript, and has lots more funtions to it. ColdFusion restricts any third-party functions as an addition, whereas ColFusion functions are free to be developed. The functions of PHP are written in C, so it's possible to make your own functions.
PHP also has multi-language support. As far as I know at least the Japanese support in PHP is pretty advanced and complete.
PHP evolves faster than ColdFusion. Just read the news about PHP4 and Zend optimizer.
There's tons more, but I just got a feeling that PHP is a lot more structured AND flexible...
Tony
On Mon, 17 Apr 2000, Greg Donald wrote:
> A few realistic reasons would be the difference in cost, support, and source
> status. PHP is FREE and has the best support of any application I've ever
> seen.
>
> And of course there's my personal opinion as why to use php instead off CF,
> and that's cause Cold Fusion sucks. Just go and try to do something with it
> that it's not specifically designed to do... I find PHP more robust, and
> did I mention it was FREE?
>
> This subject has been beat to death, check any of the list serve archives
> for tons more reasons.
>
> HPH,
> Greg
>
>
> -----Original Message-----
> From: brad
kieser.net [mailto:brad
kieser.net]
> Sent: Monday, April 17, 2000 10:40 AM
> To: PHP mailing list
> Subject: [PHP3] COldFusion/Netobjects v.s. PHP
>
>
> Anyone care to give some bulletpoints as to why one should choose PHP above
> ColdFusion/Netobjects?
>
> It would come in very handy when presenting the case for PHP.
>
> Thanks!
>
> Brad
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
I actively develop in both CF and PHP, and tend to use each for their strengths.
Platform Support: CF has a relatively limited platform selection. Windows, Solaris, Linux or HP/UX. (Note, initial feedback shows that the Linux version may outperform the Windows version by as much as 150%, woo hoo!) PHP, if you can compile it, it will run.
Language: CF is built for display code. It's scripting language is primitive and does not support standard operator syntax or user-defined functions. But, it's really fast and easy for display pages and database interaction. PHP is built to write applications. The language is strong and very flexible. Not as easy for the easy stuff, but much easier for the hard stuff.
Database Support: CF abstracts database connections, making them simple to use, and very easy to change DB platform with no code changes. (With CF I can easily develop on one database, and deploy on another.) Native DB support is only available in the Enterprise product, and limited to just a few large products. Primary DB support is through ODBC, which is fine with Windows, but is a PITA with other platforms. PHP has extremely strong native DB support. Different DBs have different command syntax, making mid-stream database changes painful. A bit more complex to retrieve results.
File-System Support: CF has adequate file support, but is quirky and not feature-rich. PHP has comprehensive file system support.
Regular Expressions: CF has a basic RegEx capability. PHP is on par with PERL for Regex.
Error-handling: CF has good try/catch functionality, making formal error handling possible. PHP has no formal error handling. (This can REALLY bite! Throwing error messages to the browser is not acceptable behaviour.) What little error-handling exists is inconsistent, and many errors cannot be trapped in code at all.
Search Capability: CF is bundled with Verity, a *very* capable and feature-rich "fuzzy" search engine for both file searches and database content searches. I really miss this when working with PHP. PHP has no search capability.
Date-Handling: CF will recognize just about any date format and convert on-the-fly with all date functions. PHP strtotime() can convert a couple of standard date formats (But is undocumented). Dates must be converted to timestamp format for nearly all functions.
Summary:
CF: Platforms: Adequate Language: Primitive, but passable Database: Great syntax and abstraction File handling: Adequate RegEx: Adequate Error Handling: Good Search: Outstanding Date-Handling: Nearly idiot-proof Cost: $$$ to $$$$$$$$
PHP: Platforms: Where do you want to run today? Language: Feature-rich and flexible Database: Great native support, bloated syntax File handling: Comprehensive RegEx: Outstanding Error Handling: Poor Search: Non-Existent Date-Handling: Primitive Cost: null
It's interesting to note that Allaire is moving strongly toward the Java platform, and reports are that CF 5.0 will be an abstraction layer on a Java Servlet engine. Allaire is also very definitely focusing on the Enterprise market, and IMHO is not paying much attention to the "Pro" market anymore. While the profit margins are definitely better in the Enterprise market, there's a whole ton more volume in the rest of the market, which is ripe for PHP to dominate.
Just my $.02
Michael J. Sheldon Internet Applications Developer Phone: 480.699.1084 http://www.desertraven.com/ PGP Key Available on Request
-----Original Message-----
From: Toshihide Nakamura [mailto:tony
crystaldonuts.com]
Sent: Monday, April 17, 2000 17:47
To: Greg Donald
Cc: Bradley Kieser; PHP mailing list
Subject: RE: [PHP3] COldFusion/Netobjects v.s. PHP
I started out with ColdFusion, and I like PHP better. I still like ColdFusion OK, but pure fact is that PHP seem to be more flexible with everything. PHP can be installed in many different platforms, and ColdFusion runs pretty much only on Windows and Linux(recently).
PHP, as a programming language, is a lot more structured than the CFScript, and has lots more funtions to it. ColdFusion restricts any third-party functions as an addition, whereas ColFusion functions are free to be developed. The functions of PHP are written in C, so it's possible to make your own functions.
PHP also has multi-language support. As far as I know at least the Japanese support in PHP is pretty advanced and complete.
PHP evolves faster than ColdFusion. Just read the news about PHP4 and Zend optimizer.
There's tons more, but I just got a feeling that PHP is a lot more structured AND flexible...
Tony
On Mon, 17 Apr 2000, Greg Donald wrote:
> A few realistic reasons would be the difference in cost, support, and
source
> status. PHP is FREE and has the best support of any application I've ever
> seen.
>
> And of course there's my personal opinion as why to use php instead off
CF,
> and that's cause Cold Fusion sucks. Just go and try to do something with
it
> that it's not specifically designed to do... I find PHP more robust, and
> did I mention it was FREE?
>
> This subject has been beat to death, check any of the list serve archives
> for tons more reasons.
>
> HPH,
> Greg
>
>
> -----Original Message-----
> From: brad
kieser.net [mailto:brad
kieser.net]
> Sent: Monday, April 17, 2000 10:40 AM
> To: PHP mailing list
> Subject: [PHP3] COldFusion/Netobjects v.s. PHP
>
>
> Anyone care to give some bulletpoints as to why one should choose PHP
above
> ColdFusion/Netobjects?
>
> It would come in very handy when presenting the case for PHP.
>
> Thanks!
>
> Brad
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
> PHP has extremely strong native DB support. Different DBs have different > command syntax, making mid-stream database changes painful. A bit more > complex to retrieve results.
Database abstraction is included in PHP 4. I still question this argument every time it comes up. By far the least of your worries when switching databases halfway through a project is the few PHP-level calls you will need to change. Modifying your schemas, stored procedures, triggers and SQL syntax will take much much more effort and none of this is made any easier by a database abstraction layer.
> PHP has no formal error handling. (This can REALLY bite! Throwing error > messages to the browser is not acceptable behaviour.) What little > error-handling exists is inconsistent, and many errors cannot be trapped in > code at all.
This is actually not true. All error messages can be trapped and/or redirected to an error_log file. You can easily prevent any and all error messages from showing up in the browser.
> PHP has no search capability.
I'd venture to say that such a search functionality has no place in a web scripting language. There are plenty of very good search engines out there. That's like the often-heard Apache criticism. "Apache is not a full featured web server because it doesn't support ftp." Apache happens to not support ftp because it is an http server and not an ftp server. PHP doesn't support site-wide searching because it is a web scripting language and not a search engine.
> It's interesting to note that Allaire is moving strongly toward the Java > platform, and reports are that CF 5.0 will be an abstraction layer on a Java > Servlet engine. Allaire is also very definitely focusing on the Enterprise > market, and IMHO is not paying much attention to the "Pro" market anymore. > While the profit margins are definitely better in the Enterprise market, > there's a whole ton more volume in the rest of the market, which is ripe for > PHP to dominate.
PHP 4 can access Java methods running in a servlet engine.
-Rasmus
attached mail follows:
chchar would like to recall the message, "mail() function never work.".
begin 600 winmail.dat
M>)\^(
!`0:0"``$```````!``$``0>0!
`(````Y`0```````#H``$(
`<`
M$P```$E032Y/=71L;V]K+E)E8V%L;`""!
$%
`,`#
```-`'!``1`!(`.P`E
M``$`7P$!((`#``X```#0!P0`$0`3````!0`!``4!`0F``0`A````-S
P131%
M1C=%13$S1#0Q,3DX-C4P,#8P.3<S0S
V1C(`$`<!!(`!`"0```!296-A;&PZ
M(&UA:6PH*2!F=6YC=&EO;B!N979E<B!W;W)K+
!X#`$-
`0``
````(``
`!
M`Y`&`/P%```E`````P`F``$````#`&&`""`&``````#`````````1
`````:
MA0```0````(!`&
!````$````*8-3O?N$]01F&4`8)<\AO(#``%H`P```!X`
M`F
!````"0```$E032Y.;W1E``````(!,0`!````:
$``%!#1$9%0C`Y``$`
M`
!W`````````#BANQ`%Y1`:H;L(`"LJ5L(``$5-4TU$0BY$3$P`````````
M`!M5^B"J9A'-F\
`J
`OQ%H,````7T--4S`S15A#2#$`+V\]36EC<F]N+V]U
M/4--4S`S+V-N/45X8VAA;F=E(%5S97)S+V-N/6-H8VAA<
`N`````````'&`
M_%$MXM,1F%H`8)<\AO(!`+J+\R^R*-,1F"(`8)<\AO(```".Z
<``$8`````
M````<8#\42WBTQ&86
!
ESR&\
<`NHOS+[(HTQ&8(
!
ESR&\
```([J!P``
MNHOS+[(HTQ&8(
!
ESR&\
```([RI0``+
````````!Q
/Q1+>+3$9A:`&"7
M/(;R`0"ZB_,OLBC3$9
B`&"7/(;R````CNH'```0````I
U.]^X3U!&890!
MESR&\AP```!M86EL*"D
9G5N8W1I;VX
;F5V97(
=V]R:RX````+``-H`0``
M`$``%0!
Z%:U8ZJ_`0(!"1`!````H
```)X```#V````3%I&=>)S4?&'``H!
M#0-#=&5X=`'W_P*D`^0%ZP*#`%`"\P:T`H,F,
/%`
!C:`K`<V78=#`
!Q,"
M
'T*
`C/OPG9`H`*A`LW$L(!T"`38`D38B!W"&!L9"!L
&EK92!T;R`50&9C
M!T`#('1H&-`'
7/`86=E+"`B`,`#$``H*2!F=6YC=,)I`B`
;F5V!)`8,4!R
M:RXB+GT<4````P#]/^0$``!``#D`H%1Q7M&HOP$#`/$_"00``!X`,4`!````
M+P```"]//4U)0U)/3B]/53U#35,P,R]#3CU%6$-(04Y'12!54T524R]#3CU#
M2$-(05(```,`&D``````'
`P0`$````O````+T\]34E#4D].+T]5/4--4S`S
M+T-./4580TA!3D=%(%5315)3+T-./4-(0TA!4
```P`90``````"`7$``0``
M`!8````!OZC17G'W3
YY$^X1U)AE`&"7/(;R```#`#8``````!X`<``!````
M'````&UA:6PH*2!F=6YC=&EO;B!N979E<B!W;W)K+
`"`4<``0```#0```!C
M/553.V$](#MP/4UI8W)O;CML/5]#35,P,T580T
Q+3`P,#0Q.#`P-3DS-UHM
M,C0U-3```
'Y/P$```!+`````````-RG0,C`0A`:M+D(`"LOX8(!````````
M`"]//4U)0U)/3B]/53U#35,P,R]#3CU%6$-(04Y'12!54T524R]#3CU#2$-(
M05(``!X`^#\!````!P```&-H8VAA<
``'
`X0`$````O````+T\]34E#4D].
M+T]5/4--4S`S+T-./4580TA!3D=%(%5315)3+T-./4-(0TA!4
```
'[/P$`
M``!+`````````-RG0,C`0A`:M+D(`"LOX8(!`````````"]//4U)0U)/3B]/
M53U#35,P,R]#3CU%6$-(04Y'12!54T524R]#3CU#2$-(05(``!X`^C\!````
M!P```&-H8VAA<
``'
`Y0`$````O````+T\]34E#4D].+T]5/4--4S`S+T-.
M/4580TA!3D=%(%5315)3+T-./4-(0TA!4
``0``',"!(/U[1J+\!0``(,&):
MZ6[1J+\!'
`]``$````)````4F5C86QL.B``````'
`=#
$````<````;6%I
M;"
I(&9U;F-T:6]N(&YE=F5R('=O<FLN``L`*0``````"P`C```````#``80
M+`E<WP,`!Q`[`````P`0$``````#`!$0`0```!X`"!`!````/````$-(0TA!
M4E=/54Q$3$E+151/4D5#04Q,5$A%34534T%'12PB34%)3"
I1E5.0U1)3TY.
,159%4E=/4DLB`"9V
`
end
attached mail follows:
chchar would like to recall the message, "mail() function never work.".
begin 600 winmail.dat
M>)\^(
!`0:0"``$```````!``$``0>0!
`(````Y`0```````#H``$(
`<`
M$P```$E032Y/=71L;V]K+E)E8V%L;`""!
$%
`,`#
```-`'!``1`!,````&
M``$`!
$!((`#``X```#0!P0`$0`3````!
`!``8!`0F``0`A````-T,P131%
M1C=%13$S1#0Q,3DX-C4P,#8P.3<S0S
V1C(`&P<!!(`!`"0```!296-A;&PZ
M(&UA:6PH*2!F=6YC=&EO;B!N979E<B!W;W)K+
!X#`$-
`0``
````(``
`!
M`Y`&`/P%```E`````P`F``$````#`&&`""`&``````#`````````1
`````:
MA0```0````(!`&
!````$````*8-3O?N$]01F&4`8)<\AO(#``%H`P```!X`
M`F
!````"0```$E032Y.;W1E``````(!,0`!````:
$``%!#1$9%0C`Y``$`
M`
!W`````````#BANQ`%Y1`:H;L(`"LJ5L(``$5-4TU$0BY$3$P`````````
M`!M5^B"J9A'-F\
`J
`OQ%H,````7T--4S`S15A#2#$`+V\]36EC<F]N+V]U
M/4--4S`S+V-N/45X8VAA;F=E(%5S97)S+V-N/6-H8VAA<
`N`````````'&`
M_%$MXM,1F%H`8)<\AO(!`+J+\R^R*-,1F"(`8)<\AO(```".Z
<``$8`````
M````<8#\42WBTQ&86
!
ESR&\
<`NHOS+[(HTQ&8(
!
ESR&\
```([J!P``
MNHOS+[(HTQ&8(
!
ESR&\
```([RI0``+
````````!Q
/Q1+>+3$9A:`&"7
M/(;R`0"ZB_,OLBC3$9
B`&"7/(;R````CNH'```0````I
U.]^X3U!&890!
MESR&\AP```!M86EL*"D
9G5N8W1I;VX
;F5V97(
=V]R:RX````+``-H`0``
M`$``%0`
\S&8ZJ_`0(!"1`!````H
```)X```#V````3%I&=>)S4?&'``H!
M#0-#=&5X=`'W_P*D`^0%ZP*#`%`"\P:T`H,F,
/%`
!C:`K`<V78=#`
!Q,"
M
'T*
`C/OPG9`H`*A`LW$L(!T"`38`D38B!W"&!L9"!L
&EK92!T;R`50&9C
M!T`#('1H&-`'
7/`86=E+"`B`,`#$``H*2!F=6YC=,)I`B`
;F5V!)`8,4!R
M:RXB+GT<4````P#]/^0$``!``#D`\)'(;]&HOP$#`/$_"00``!X`,4`!````
M+P```"]//4U)0U)/3B]/53U#35,P,R]#3CU%6$-(04Y'12!54T524R]#3CU#
M2$-(05(```,`&D``````'
`P0`$````O````+T\]34E#4D].+T]5/4--4S`S
M+T-./4580TA!3D=%(%5315)3+T-./4-(0TA!4
```P`90``````"`7$``0``
M`!8````!OZC1;\CW3
Y]$^X1U)AE`&"7/(;R```#`#8``````!X`<``!````
M'````&UA:6PH*2!F=6YC=&EO;B!N979E<B!W;W)K+
`"`4<``0```#0```!C
M/553.V$](#MP/4UI8W)O;CML/5]#35,P,T580T
Q+3`P,#0Q.#`Q,#`P-EHM
M,C0U-3(``
'Y/P$```!+`````````-RG0,C`0A`:M+D(`"LOX8(!````````
M`"]//4U)0U)/3B]/53U#35,P,R]#3CU%6$-(04Y'12!54T524R]#3CU#2$-(
M05(``!X`^#\!````!P```&-H8VAA<
``'
`X0`$````O````+T\]34E#4D].
M+T]5/4--4S`S+T-./4580TA!3D=%(%5315)3+T-./4-(0TA!4
```
'[/P$`
M``!+`````````-RG0,C`0A`:M+D(`"LOX8(!`````````"]//4U)0U)/3B]/
M53U#35,P,R]#3CU%6$-(04Y'12!54T524R]#3CU#2$-(05(``!X`^C\!````
M!P```&-H8VAA<
``'
`Y0`$````O````+T\]34E#4D].+T]5/4--4S`S+T-.
M/4580TA!3D=%(%5315)3+T-./4-(0TA!4
``0``',$ZAM6_1J+\!0``(,&!0
MPF_1J+\!'
`]``$````)````4F5C86QL.B``````'
`=#
$````<````;6%I
M;"
I(&9U;F-T:6]N(&YE=F5R('=O<FLN``L`*0``````"P`C```````#``80
M+`E<WP,`!Q`[`````P`0$``````#`!$0`0```!X`"!`!````/````$-(0TA!
M4E=/54Q$3$E+151/4D5#04Q,5$A%34534T%'12PB34%)3"
I1E5.0U1)3TY.
,159%4E=/4DLB`#9X
`
end
attached mail follows:
Hi,
I try out the mail() function in PHP, but it never work. I'm using PHP3 in Apache Redhat 6.0. My mail server is MS Exchange 4.
Here is my example, but it never send email back to me :
mail("chchar
mcms.com", "test subject", "message 123");
Do I need to set any configuration file when I install PHP in my linux machine ? Please advice. TIA.
Regards,
begin 600 winmail.dat
M>)\^(B\!`0:0"``$```````!``$``0>0!
`(````Y`0```````#H``$(
`<`
M&````$E032Y-:6-R;W-O9G0
36%I;"Y.;W1E`#$(`06``P`.````T`<$`!$`
M$
`I``,``0`K`0$
`,`#
```-`'!``1`!,``P`M``$`,`$!"8`!`"$```!!
M-C!$-$5&-T5%,3-$-#$Q.3
V-3`P-C`Y-S-#.#9&,
`7!P$$
`$`'````&UA
M:6PH*2!F=6YC=&EO;B!N979E<B!W;W)K+
#+"0$-
`0``
````(``
`!`Y`&
M`/0&```K`````P`[
`
!
``````P````````$8`````4H4``+<-```>`#R`
M""`&``````#`````````1
````!4A0```0````0````X+C```P`]
`
!
``
M````P````````$8``````84````````+`#Z`""`&``````#`````````1
``
M```#A0````````L`/X`((`8``````,````````!&``````Z%`````````P!`
M
`
!
``````P````````$8`````$(4````````#`$&`""`&``````#`````
M````1
`````1A0````````,`0H`((`8``````,````````!&`````!B%````
M````'
!#
`
!
``````P````````$8`````-H4```$````!`````````!X`
M1(`((`8``````,````````!&`````#>%```!`````0`````````>`$6`""`&
M``````#`````````1
`````XA0```0````$``````````
$)$`$```#0`0``
MS`$``&8"``!,6D9U-L5UXP,`"
!R8W!G,3(U%C(`^`M
;
X0,#,SG0'W(`*D
M`^,"`&-H"L#
<V5T,"`'$P*#`%`O`U00V0=M`H!]"H%U8X<`4`L#"[4
2&DL
M"J(+"H0*
"`6H$D
='(,>2`(8`5`=&AE(`,`P`,0*"D
9G5N*&-T:0(
(`N`
M(%"
2%`L(&(706D%0$AN978$D"!W!;!KPBX6P"=M('4`D`\
]1C2,QBB00JP
M$/`7D!7DCE()
!$`!4`V+C`:0-9-%Q`7LB`1,'(9P
0`.07217
0\0\
%Y`T
M+C,5Z
KT<V(/0`%`<V%?(%$5H`20%Y`>`6T7$&5H>&%M"U!E&1T1,&Y69"&0
M'4-B`-!K%N!ONQ>
%Y`Z%>42$
OP-!:A#1>D(A#P$/)`;6-M)',N!:!M(AD0
M(G1#!Y`%0'-U8FH%D'0?)N('
2"0'L$.(#,B*>X['WH+MA961"00%M`9H'<)
M
"/R$3$
`'`7$`6
;OAF:6<(<!R0&'(L0"'P_QGP%X`#H!;0"X`G0`=``R"7
M&.$8HB%Q;`N`=7
7H5<0\`N`%Y`_%D90(?!A4Q$P*\!D=
W
91I`5*Q)01\+
M'%!G"Q%S%=4%%&$`,U`+``(``0```!X`<``!````'````&UA:6PH*2!F=6YC
M=&EO;B!N979E<B!W;W)K+
`"`7$``0```!8````!OZC.R3JE.(#4%+T1U)'F
M`*`DZ'&+``!``#D`(%]`QLZHOP$#`/$_"00``!X`,4`!````+P```"]//4U)
M0U)/3B]/53U#35,P,R]#3CU%6$-(04Y'12!54T524R]#3CU#2$-(05(```,`
M&D``````'
`P0`$````O````+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!
M3D=%(%5315)3+T-./4-(0TA!4
```P`90``````#`/T_Y`0```,`)
``````
M`P`V```````#`(`0_____P(!1P`!````-````&,]55,[83T
.W`]36EC<F]N
M.VP]7T--4S`S15A#2#$M,#`P-#$X,#`T,3`S6BTR-#4Q-0`"`?D_`0```$L`
M````````W*=`R,!"$!JTN0
`*R_A
$`````````+T\]34E#4D].+T]5/4--
M4S`S+T-./4580TA!3D=%(%5315)3+T-./4-(0TA!4
``'
#X/P$````'````
M8VAC:&%R```>`#A``0```"\````O3SU-24-23TXO3U4]0TU3,#,O0TX]15A#
M2$%.1T4
55-%4E,O0TX]0TA#2$%2```"`?L_`0```$L`````````W*=`R,!"
M$!JTN0
`*R_A
$`````````+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!
M3D=%(%5315)3+T-./4-(0TA!4
``'
#Z/P$````'````8VAC:&%R```>`#E`
M`0```"\````O3SU-24-23TXO3U4]0TU3,#,O0TX]15A#2$%.1T4
55-%4E,O
M0TX]0TA#2$%2``!```<P.+_:^\RHOP%```
P$/TW\M&HOP$>`#T``0````$`
M````````'
`=#
$````<````;6%I;"
I(&9U;F-T:6]N(&YE=F5R('=O<FLN
M``L`*0``````"P`C```````#``807JD#=0,`!Q`8`0```P`0$``````#`!$0
M`````!X`"!`!````90```$A)+$E44EE/55142$5-04E,*"E&54Y#5$E/3DE.
M4$A0+$)55$E43D5615)73U)+24U54TE.1U!(4#-)3D%004-(15)%1$A!5#8P
35E-04E,4T525D5225--4T580TA!3D=%-$
`````S7
=
`
end
attached mail follows:
Hi,
I try out the mail() function in PHP, but it never work. I'm using PHP3
in Apache
Redhat 6.0. My mail server is MS Exchange 4.
Here is my example, but it never send email back to me.
mail("chchar
mcms.com", "test subject", "message 123");
I already configured the php3.ini configuration file and set the sendmail path to : ###### sendmail_path = "/usr/sbin/sendmail -t"
#####
I also checked the sendmail daemon is running ok.
#########
[root
INFONET lib]# ps -ax | grep sendmail
16420 ? S 0:00 sendmail: accepting connections on port 25
#########
Any help will be appreciated. TIA.
Regards,
begin 600 winmail.dat
M>)\^(
X!`0:0"``$```````!``$``0>0!
`(````Y`0```````#H``$(
`<`
M&````$E032Y-:6-R;W-O9G0
36%I;"Y.;W1E`#$(`06``P`.````T`<$`!$`
M$P`'``D``0`0`0$
`,`#
```-`'!``1`!,`!
`,``$`$
$!"8`!`"$````W
M13!%-$5&-T5%,3-$-#$Q.3
V-3`P-C`Y-S-#.#9&,
`=!P$$
`$`'````&UA
M:6PH*2!F=6YC=&EO;B!N979E<B!W;W)K+
#+"0$-
`0``
````(``
`!`Y`&
M`#
)```L`````P`[
`
!
``````P````````$8`````4H4``+<-```>`#R`
M""`&``````#`````````1
````!4A0```0````0````X+C```P`]
`
!
``
M````P````````$8``````84````````+`#Z`""`&``````#`````````1
``
M```#A0````````L`/X`((`8``````,````````!&``````Z%`````````P!`
M
`
!
``````P````````$8`````$(4````````#`$&`""`&``````#`````
M````1
`````1A0````````,`0H`((`8``````,````````!&`````!B%````
M````'
!#
`
!
``````P````````$8`````-H4```$````!`````````!X`
M1(`((`8``````,````````!&`````#>%```!`````0`````````>`$6`""`&
M``````#`````````1
`````XA0```0````$``````````
$)$`$```"8`
``
ME`(``/P#``!,6D9U9MY3V
,`"
!R8W!G,3(U%C(`^`M
;
X0,#,SG0'W(`*D
M`^,"`&-H"L#
<V5T,"`'$P*#`%!_`U00V0=M`H,.4`15`
!P?')Q$B$0]PA5
M![("
'TY"H%U8P!0"P,+M2!(7&DL"J(*A`J`(!E`26`
=')Y(`A
!4!T&&AE
M(`#``Q`H*2!`9G5N8W1I`B`
`0N`(%!(4"P
8D49X6D%0&YE=A:!=PD%L&LN
M&6`G;2!UUP"0#R`;<C,;0D$*L!#P.QHP&(12"8`1``5`-BY:,!S
31FP&E(
M$3!RYQQB!``%TD5X$/$/(!HPS#0N&(
+,'-B#T`!0/QS82*1&4$80`20&C`
MH4)M&;!E>&%M"U!ELQN]$3!N9"0`'^-B`-#J:QF`;QI`92&F$A(+\#8T(R(:
M4R(0\!#R0&V08VUS+
6
;2(;L`PB=`>0!4!S=6)J?060="E"!X$BT"%A#B`S
M^"(I.R&Z)N47Y1E#!T`9"7!A9!FP!:!N9FD.9PAP"8`:`W!H<#/Z+
N`:2W'
M'S`;$BX`)&#_+4`ED1$Q&
,E<AI2&(0*L&L:$"9B.AB$(S,3)M8R53$W7S(C
M/2E
+QU`<IXO(G`+
#5
,54
+2HP?R,B-K\WSSAG,KD8C"TR<Y\F
!Y1)D`N
M537'9&$EP+L;(
0
<AK0`P`=<6\<T`LRNC-'6P-
;W1`20!.1D].150
;#!I
M8ETC+K`$("UA4'
?"`)P7`Q/3%T-C08(3\X9
7P.&,PECHC`3%&.BU`8V-!
M4'\;`!UQ+=$<0!KS!"`;(7`]"1$
#C`^'
$Q&)M!;ML9L!H
;$%
`_!L)
$P
M85YP%4`%D`<P*8!D'.!4K$E!(:D>TF<+$7,8=047`0!,L`L``
`!````'
!P
M``$````<````;6%I;"
I(&9U;F-T:6]N(&YE=F5R('=O<FLN``(!<0`!````
M%
````&_J,[).J4X
-04O1'4D>8`H"3H<8L``$``.0"<*I%KTJB_`0,`\3\)
M!```'
`Q0`$````O````+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%
M(%5315)3+T-./4-(0TA!4
```P`:0``````>`#!``0```"\````O3SU-24-2
M3TXO3U4]0TU3,#,O0TX]15A#2$%.1T4
55-%4E,O0TX]0TA#2$%2```#`!E`
M``````,`_3_D!````
$Q``$```!J`0``4$-$1D5",#D``0`"`'<`````````
M.*&[$`7E$!JANP
`*RI6P
``14U3341"+D1,3```````````&U7Z(*IF$<V;
MR`"J`"_$6
P```!?0TU3,#-%6$-(,0`O;SU-:6-R;VXO;W4]0TU3,#,O8VX]
M17AC:&%N9V4
57-E<G,O8VX]8VAC:&%R`"X`````````<8#\42WBTQ&86
!
MESR&\
$`NHOS+[(HTQ&8(
!
ESR&\
```([J!P``1
````````!Q
/Q1+>+3
M$9A:`&"7/(;R!P"ZB_,OLBC3$9
B`&"7/(;R````CNH'``"ZB_,OLBC3$9
B
M`&"7/(;R````CO*E```N`````````'&`_%$MXM,1F%H`8)<\AO(!`+J+\R^R
M*-,1F"(`8)<\AO(```".Z
<``!````"F#4[W[A/4$9AE`&"7/(;R'````&UA
M:6PH*2!F=6YC=&EO;B!N979E<B!W;W)K+
````,`)
```````P`V```````"
M`4<``0```#0```!C/553.V$](#MP/4UI8W)O;CML/5]#35,P,T580T
Q+3`P
M,#0Q.#`Q,#<P.5HM,C0U-C0`0`!(`(`Y&L;.J+\!`
'Y/P$```!+````````
M`-RG0,C`0A`:M+D(`"LOX8(!`````````"]//4U)0U)/3B]/53U#35,P,R]#
M3CU%6$-(04Y'12!54T524R]#3CU#2$-(05(``!X`^#\!````!P```&-H8VAA
M<
``'
`X0`$````O````+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%
M(%5315)3+T-./4-(0TA!4
```
'[/P$```!+`````````-RG0,C`0A`:M+D(
M`"LOX8(!`````````"]//4U)0U)/3B]/53U#35,P,R]#3CU%6$-(04Y'12!5
M4T524R]#3CU#2$-(05(``!X`^C\!````!P```&-H8VAA<
``'
`Y0`$````O
M````+T\]34E#4D].+T]5/4--4S`S+T-./4580TA!3D=%(%5315)3+T-./4-(
M0TA!4
``0``',**+X&_1J+\!0``(,#ZU`TK2J+\!'
`]``$````!````````
M`!X`'0X!````'````&UA:6PH*2!F=6YC=&EO;B!N979E<B!W;W)K+
`+`"D`
M``````L`(P```````P`&$%!7L$(#``<0X0$```,`$!```````P`1$``````>
M``
0`0```&4```!(22Q)5%)93U545$A%34%)3"
I1E5.0U1)3TY)3E!(4"Q"
M551)5$Y%5D525T]22TE-55-)3D=02%`S24Y!4$%#2$52141(050V,$U934%)
;3%-%4E9%4DE335-%6$-(04Y'131(`````!DA
`
end
attached mail follows:
Hello chchar,
On 17-Apr-00 23:07:09, you wrote:
> I try out the mail() function in PHP, but it never work. I'm using PHP3
>in Apache
>Redhat 6.0. My mail server is MS Exchange 4.
> Here is my example, but it never send email back to me.
> mail("chchar
mcms.com", "test subject", "message 123");
> I already configured the php3.ini configuration file and set the sendmail >path to : >###### >sendmail_path = "/usr/sbin/sendmail -t"
Sendmail on Linux will use the SMTP server on the same machine to deliver the message. It won't use MS Exchange on another machine (Windows) unless you configure the Linux sendmail server to use the Windows machine gateway.
If the Linux machine is properly configure it may deliver the message by itself (without the need for the MS Exchange) unless the Linux box can't get through an eventual firewall that prevents to Linux box to access other Internet mail servers directly.
Alternatively you may try to use PHP to deliver the messages to the MS Exchange using SMTP directly. In that case you may like to try this SMTP class and also the MIME composing message class below to doing the delivery without using the mail() function.
http://phpclasses.UpperDesign.com/browse.html/package/14
http://phpclasses.UpperDesign.com/browse.html/package/9
Regards, Manuel Lemos
Web Programming Components using PHP Classes.
Look at: acm.org">http://phpclasses.UpperDesign.com/?user=mlemos
acm.org
-- E-mail: mlemosacm.org URL: http://www.mlemos.e-na.net/ PGP key: http://www.mlemos.e-na.net/ManuelLemos.pgp --
attached mail follows:
How do I make a script not be started twice? The script writes data to a file and I only want one version started. Thanks
Tom
attached mail follows:
Yes.........I want the same thing. But I want all the vlaues to go into the database under one field (named, 'category'). How's that possible ?. Please write to me..
Thanks !.
-- K
----- Original Message -----
From: Martin Edelius <martin.edelius
spirex.se>
To: TV Karthick Kumar <tvkarthick
mailops.com>; <php3
lists.php.net>
Sent: Monday, April 17, 2000 6:04 PM
Subject: Re: [PHP3] This is the one !
> Ok... Settle down a bit. 8)
>
> Do I understand you correctly if I think that you have 10 checkboxes that
> has the same name but different values? These values needs to be inserted
> into a database all in one query and in different fields? Or should the
> values go into the same field?
>
> Anyhow, here's how you use arrays in HTML (code is shortened a bit):
>
> <form...>
> <input type="checkbox" name="messagecat[]" value="Business"> Business<br>
> <input type="checkbox" name="messagecat[]" value="Computers">
Computers<br>
> <input type="checkbox" name="messagecat[]" value="Sports"> Sports<br>
> <input type="checkbox" name="messagecat[]" value="Weather"> Weather<br>
> <input type="submit">
> </form>
>
> When this gets submitted to your script used for handling the results you
> will have an indexed array called $messagecat that you can uas any kind of
> array functions on.
>
> If you want to take all the values in the $messagecat array and convert
them
> to a string you use implode():
> $NewString=implode(",",$messagecat);
>
> Is this even close to what you want to do?
>
>
> Best regards,
> Martin Edelius
>
> Spirex Digital Design
> --------------------------------
> www: http://www.spirex.se
> Mail: martin.edelius
spirex.se
> Phone: +46-31-514651, 0708-113711
> Fax: +46-31-514331
> Aröds Industriväg 3c
> S-422 43 Hisings Backa
> --------------------------------
> If I haven't got back to you or done what I'm supposed to, let me know
again
> as I have too much to do for my own good...
>
> ----- Original Message -----
> From: "TV Karthick Kumar" <tvkarthick
mailops.com>
> To: <php3
lists.php.net>
> Sent: Monday, April 17, 2000 2:14 PM
> Subject: [PHP3] This is the one !
>
>
> Yes ..This is the one which I also wanted like running on my script. Have
> anyone worked with a
> script like this. If yes, Please mail / write me as it's very urgent for
me
> to implement and
> I shall proceed with my works.
> Thanks in advance.
> -- K
> [prev in list] [next in list] [prev in thread] [next in thread]
>
> List: php3-general
> Subject: Re: [PHP3] checkbox form handling
> From: Mike Robinson <mgrphp3
cgocable.net>
> Date: 1999-10-11 22:45:22
> [Download message RAW]
>
> At 03:00 PM 11/10/99 -0500, you wrote:
> >Hello,
> >
> >When submitting a form containing multiple checkboxes of the
> >same name bit with different values, does PHP automatically build
> >that into an array? If not, how does PHP see this data?
>
> PHP will have the last value passed to the variable with the same name.
>
> Instead of 'name=yada' use 'name=yada[]', and you'll get the array.
> Search the list archives for more info on multiple checkboxes and selects.
> There's tons there.
>
> Mike
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
> [prev in list] [next in list] [prev in thread] [next in thread]
>
>
> Log in / Log out
> About MARC
> We're Hiring!
> Want to add a list? Tell us about it.
> The AIMS Group
>
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hi..
Yes. What you have written me is what I want !. Thanks a lot.
" inserted into a database all in one query and in different fields? Or should the values go into the same field? >"
-- Here the values has to go into the SAME field (category -field name) and I don't have separate fields for all of them. At the sametime, I would also like to store all the records, for example -> if the user has chosen 10 checkboxes 10 records will go into the database with different category names (in the field). I think you understand / got what I've said. It should be as 10 records with different values in the same field and this will be useful for me to read from the database while I want to show the (whole) message as a Board to the user.
Please write me the solution and if you have any other suggestion also. Thanks in advance..
-- K
>Ok... Settle down a bit. 8)
>
>Do I understand you correctly if I think that you have 10 checkboxes that
>has the same name but different values? These values needs to be inserted
>into a database all in one query and in different fields? Or should the
>values go into the same field?
>
>Anyhow, here's how you use arrays in HTML (code is shortened a bit):
>
><form...>
><input type="checkbox" name="messagecat[]" value="Business"> Business<br>
><input type="checkbox" name="messagecat[]" value="Computers"> Computers<br>
><input type="checkbox" name="messagecat[]" value="Sports"> Sports<br>
><input type="checkbox" name="messagecat[]" value="Weather"> Weather<br>
><input type="submit">
></form>
>
>When this gets submitted to your script used for handling the results you
>will have an indexed array called $messagecat that you can uas any kind of
>array functions on.
>
>If you want to take all the values in the $messagecat array and convert
them
>to a string you use implode():
>$NewString=implode(",",$messagecat);
>
>Is this even close to what you want to do?
>
>
>Best regards,
>Martin Edelius
>
>Spirex Digital Design
>--------------------------------
>www: http://www.spirex.se
>Mail: martin.edelius
spirex.se
>Phone: +46-31-514651, 0708-113711
>Fax: +46-31-514331
>Aröds Industriväg 3c
>S-422 43 Hisings Backa
>--------------------------------
>If I haven't got back to you or done what I'm supposed to, let me know
again
>as I have too much to do for my own good... =
attached mail follows:
Hi
I think there's no way of File DSN ing... in PHP. I was told like that only.
Is that right list ?. Please respond.
-- K
----- Original Message -----
From: .j o h a n <johan
logik.nu>
To: <php3
lists.php.net>
Sent: Monday, April 17, 2000 9:57 PM
Subject: [PHP3] php and FileDSN
> hi.
>
> I am forced to use FileDSN when connecting to a Ms Access
> database file. I have tried everything that I can think of.
>
> When I connect I use the
>
> odbc_connect(string dsn, string user, string password, int [cursor_type]);
>
> What I am wondering is how the dsn string should look, and a simple
> example of a FileDSN file would be nice.
>
> --
> file://---johan persson //
>
> e - m a i l a l i a s w e b s i t e
> johan
logik.nu - surak
efnet - kawaii.logik.nu
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
attached mail follows:
Hello all,
I, the newbie, have yet another simple question in postgresql. The question is simple: How do I rename the table? When I issue the following command, alter table whatever rename to newtable; it gives the following error: ERROR: renamerel: unable to rename file: jobseeker Does anyone have idea why?
Tony
- Next message: php3-digest-help
lists.php.net: "php3 Digest 18 Apr 2000 16:58:06 -0000 Issue 1615"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 17 Apr 2000 16:58:13 -0000 Issue 1613"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]