php-general Digest 2 Nov 2003 11:00:46 -0000 Issue 2391
Topics (messages 168291 through 168325):
mail function error - win32
168291 by: orlandopozo.icnet.com.ve
168292 by: orlandopozo.icnet.com.ve
168293 by: Julien Wadin
168296 by: Manuel Lemos
Re: recursive acronym - PHP
168294 by: Nathan Taylor
168295 by: Nathan Taylor
168308 by: Becoming Digital
168310 by: John Nichel
eliminating dupes from MySQL query results
168297 by: Robb Kerr
168301 by: Joachim Krebs
168307 by: Chris Wanstrath
mail() another example - error
168298 by: orlandopozo.icnet.com.ve
168299 by: orlandopozo.icnet.com.ve
168300 by: orlandopozo.icnet.com.ve
168325 by: Boyan Nedkov
Re: PHP 5
168302 by: Chris Shiflett
168303 by: Pedro Pais
168304 by: Marek Kilimajer
168306 by: Leonel Nunez
php selecting problem
168305 by: Ryan A
168317 by: David Otton
Re: Web Applications and C++?
168309 by: Becoming Digital
168319 by: David Otton
Scripts not running on OS X 10.3
168311 by: Ken Tozier
168312 by: John Nichel
168313 by: Ken Tozier
168318 by: John Nichel
168321 by: Ken Tozier
168322 by: John Nichel
168323 by: Ken Tozier
168324 by: Kim Kohen
Re: deleting characters from strings
168314 by: Tom Rogers
168320 by: David Otton
Object Aggregation Usage - OK for production use?
168315 by: MFriedman.symcor.com
Test, Please Ignore.
168316 by: MFriedman.symcor.com
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 ---
I try to send from my pc a mail with the function mail(), but if doesn't work, I have
tried several time, but nothing, I don't know what could be, because the same script
work well in a remote host.
in my php.ini, I put:
[mail function]
; For Win32 only.
SMTP = mail.serbis.com
I also put
[mail function]
; For Win32 only.
SMTP = mail.webdevfm.com
I also put (the local mail server that I have):
[mail function]
; For Win32 only.
SMTP = ojpp.myftp.org
--------------------------------
the errors are the follow:
** First error - When the mailserver (ojpp.myftp.org - localhost) is deactivated
Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port 25, verify
your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in
d:\htdocs\ojpp\ojppresume\contact.php on line 118
Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port 25, verify
your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in
d:\htdocs\ojpp\ojppresume\contact.php on line 138
** Code in line 118
$validar = mail('', $materia, $cuerpo,
"To: $para\n" .
"From: test <$email>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
** Code in line 138
$validar = mail('', $materia, $cuerpo,
"To: $para\n" .
"From: Webdevfm <$email>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
** Second error - When the mailserver (mail.webdevfm.com) is actived
Warning: mail(): SMTP server response: 503 valid RCPT command must precede DATA in
d:\htdocs\ojpp\ojppresume\contact.php on line 118
** Third error - When the mailserver (mail.serbis.com) is actived
Warning: mail(): SMTP server response: 503 must have sender and recipient first in
d:\htdocs\ojpp\ojppresume\contact.php on line 118
Error enviando correo electrónico a [EMAIL PROTECTED]
** fourth error - When the mailserver (ojpp.myftp.org - localhost) is actived
Warning: mail(): SMTP server response: 503 Bad sequence of commands in
d:\htdocs\ojpp\ojppresume\contact.php on line 118
---
thanks, for the help.
--- End Message ---
--- Begin Message ---
I try to send from my pc a mail with the function mail(), but if doesn't
work, I have tried several time, but nothing, I don't know what could be,
because the same script work well in a remote host.
in my php.ini, I put:
[mail function]
; For Win32 only.
SMTP = mail.serbis.com
I also put
[mail function]
; For Win32 only.
SMTP = mail.webdevfm.com
I also put (the local mail server that I have):
[mail function]
; For Win32 only.
SMTP = ojpp.myftp.org
--------------------------------
the errors are the follow:
** First error - When the mailserver (ojpp.myftp.org - localhost) is
deactivated
Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
in d:\htdocs\ojpp\ojppresume\contact.php on line 118
Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
in d:\htdocs\ojpp\ojppresume\contact.php on line 138
** Code in line 118
$validar = mail('', $materia, $cuerpo,
"To: $para\n" .
"From: test <$email>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
** Code in line 138
$validar = mail('', $materia, $cuerpo,
"To: $para\n" .
"From: Webdevfm <$email>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
** Second error - When the mailserver (mail.webdevfm.com) is actived
Warning: mail(): SMTP server response: 503 valid RCPT command must precede
DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118
** Third error - When the mailserver (mail.serbis.com) is actived
Warning: mail(): SMTP server response: 503 must have sender and recipient
first in d:\htdocs\ojpp\ojppresume\contact.php on line 118
Error enviando correo electrónico a [EMAIL PROTECTED]
** fourth error - When the mailserver (ojpp.myftp.org - localhost) is
actived
Warning: mail(): SMTP server response: 503 Bad sequence of commands in
d:\htdocs\ojpp\ojppresume\contact.php on line 118
---
thanks, for the help.
--- End Message ---
--- Begin Message ---
When you use the mail function, you must give the first argument. The 'to'
is not in the headers
Try this, it should work
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : samedi 1 novembre 2003 22:11
À : [EMAIL PROTECTED]
Objet : [PHP] mail function error - win32
I try to send from my pc a mail with the function mail(), but if doesn't
work, I have tried several time, but nothing, I don't know what could be,
because the same script work well in a remote host.
in my php.ini, I put:
[mail function]
; For Win32 only.
SMTP = mail.serbis.com
I also put
[mail function]
; For Win32 only.
SMTP = mail.webdevfm.com
I also put (the local mail server that I have):
[mail function]
; For Win32 only.
SMTP = ojpp.myftp.org
--------------------------------
the errors are the follow:
** First error - When the mailserver (ojpp.myftp.org - localhost) is
deactivated
Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
in d:\htdocs\ojpp\ojppresume\contact.php on line 118
Warning: mail(): Failed to connect to mailserver at "ojpp.myftp.org" port
25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
in d:\htdocs\ojpp\ojppresume\contact.php on line 138
** Code in line 118
$validar = mail('', $materia, $cuerpo,
"To: $para\n" .
"From: test <$email>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
** Code in line 138
$validar = mail('', $materia, $cuerpo,
"To: $para\n" .
"From: Webdevfm <$email>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
** Second error - When the mailserver (mail.webdevfm.com) is actived
Warning: mail(): SMTP server response: 503 valid RCPT command must precede
DATA in d:\htdocs\ojpp\ojppresume\contact.php on line 118
** Third error - When the mailserver (mail.serbis.com) is actived
Warning: mail(): SMTP server response: 503 must have sender and recipient
first in d:\htdocs\ojpp\ojppresume\contact.php on line 118
Error enviando correo electrónico a [EMAIL PROTECTED]
** fourth error - When the mailserver (ojpp.myftp.org - localhost) is
actived
Warning: mail(): SMTP server response: 503 Bad sequence of commands in
d:\htdocs\ojpp\ojppresume\contact.php on line 118
---
thanks, for the help.
--- End Message ---
--- Begin Message ---
Hello,
On 11/01/2003 07:10 PM, [EMAIL PROTECTED] wrote:
I try to send from my pc a mail with the function mail(), but if doesn't work, I have tried several time, but nothing, I don't know what could be, because the same script work well in a remote host.
You need to specify valid sender and recipient addresses. If you still
have problems, you may want to try this class that has workarounds for
some of the problems of the mail() function:
http://www.phpclasses.org/mimemessage
--
Regards,
Manuel Lemos
Free ready to use OOP components written in PHP
http://www.phpclasses.org/
--- End Message ---
--- Begin Message ---
Why must the powers that be create such mind-bendingly painful terms such as these?
They are the sort of things that send my brain into an infinite loop.
Nathan
----- Original Message -----
From: Joachim Krebs
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 3:23 PM
Subject: Re: [PHP] recursive acronym - PHP
Or LAME for "Lame Ain't an MP3 Encoder"
Larry E . Ullman wrote:
>> Why PHP is a recursive acronym?, I know that before was called
>> Personal Home Page, I now is Hypertext PreProcessor, but why is
>> recursive?, I person told me that it could be wroten as Pre Hypertxt
>> Processor, thanks.
>
>
> PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive
> acronym because it uses itself in its definition. Another example: GNU,
> for "GNU's Not Unix".
>
> Larry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Why must the powers that be create such mind-bendingly painful terms such as these?
They are the sort of things that send my brain into an infinite loop.
Nathan
----- Original Message -----
From: Joachim Krebs
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 3:23 PM
Subject: Re: [PHP] recursive acronym - PHP
Or LAME for "Lame Ain't an MP3 Encoder"
Larry E . Ullman wrote:
>> Why PHP is a recursive acronym?, I know that before was called
>> Personal Home Page, I now is Hypertext PreProcessor, but why is
>> recursive?, I person told me that it could be wroten as Pre Hypertxt
>> Processor, thanks.
>
>
> PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive
> acronym because it uses itself in its definition. Another example: GNU,
> for "GNU's Not Unix".
>
> Larry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Personally, I love things like this. I have a feeling that those of us not fond of
such recursive acronyms are also not fan's of the old "Who's on first?" routine.
Edward Dudlik
"Those who say it cannot be done
should not interrupt the person doing it."
wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU
----- Original Message -----
From: "Nathan Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Joachim Krebs" <[EMAIL PROTECTED]>
Sent: Saturday, 01 November, 2003 16:28
Subject: Re: [PHP] recursive acronym - PHP
Why must the powers that be create such mind-bendingly painful terms such as these?
They are the sort of things that send my brain into an infinite loop.
Nathan
----- Original Message -----
From: Joachim Krebs
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 3:23 PM
Subject: Re: [PHP] recursive acronym - PHP
Or LAME for "Lame Ain't an MP3 Encoder"
Larry E . Ullman wrote:
>> Why PHP is a recursive acronym?, I know that before was called
>> Personal Home Page, I now is Hypertext PreProcessor, but why is
>> recursive?, I person told me that it could be wroten as Pre Hypertxt
>> Processor, thanks.
>
>
> PHP stands for "PHP: Hypertext Preprocessor". It's called a recursive
> acronym because it uses itself in its definition. Another example: GNU,
> for "GNU's Not Unix".
>
> Larry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Becoming Digital wrote:
Personally, I love things like this. I have a feeling that those of us not fond of such recursive acronyms are also not fan's of the old "Who's on first?" routine.
I don't give a damn. ;)
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--- End Message ---
--- Begin Message ---
It's not exactly a Php problem, but MySQL and Php seem to be so intertwined
and this newsgroup has been so unbelievably helpful that I thought I'd post
the question here.
I've got a query which returns a group of records. the field which I want
to display in a list contains many duplicates. I need to remove all
duplicates so that each entry is only displayed once. Another query based
upon a selection from this list will display all of the appropriate
records.
Can anybody help with the syntax? Do I need a loop or is there a MySQL
command/function which I am overlooking?
Thanx,
--
Robb Kerr
Digital IGUANA
Helping Digital Artists Achieve their Dreams
http://www.digitaliguana.com
http://www.cancerreallysucks.org
--- End Message ---
--- Begin Message ---
Look into the DISTINCT keyword for MySQL.
Robb Kerr wrote:
It's not exactly a Php problem, but MySQL and Php seem to be so intertwined
and this newsgroup has been so unbelievably helpful that I thought I'd post
the question here.
I've got a query which returns a group of records. the field which I want
to display in a list contains many duplicates. I need to remove all
duplicates so that each entry is only displayed once. Another query based
upon a selection from this list will display all of the appropriate
records.
Can anybody help with the syntax? Do I need a loop or is there a MySQL
command/function which I am overlooking?
Thanx,
--- End Message ---
--- Begin Message ---
On Sat, 2003-11-01 at 16:29, Robb Kerr wrote:
> It's not exactly a Php problem, but MySQL and Php seem to be so intertwined
> and this newsgroup has been so unbelievably helpful that I thought I'd post
> the question here.
>
> I've got a query which returns a group of records. the field which I want
> to display in a list contains many duplicates. I need to remove all
> duplicates so that each entry is only displayed once. Another query based
> upon a selection from this list will display all of the appropriate
> records.
>
> Can anybody help with the syntax? Do I need a loop or is there a MySQL
> command/function which I am overlooking?
>
> Thanx,
> --
> Robb Kerr
> Digital IGUANA
> Helping Digital Artists Achieve their Dreams
> http://www.digitaliguana.com
> http://www.cancerreallysucks.org
You'll want to do a SELECT DISTINCT rather than simply a SELECT for your
SQL query.
SELECT DISTINCT filters out duplicate results from a query. Hope this
helps.
- Chris
--- End Message ---
--- Begin Message ---
I use this script:
<?
/**
in php.ini - localhost
[mail function]
SMTP = mail.serbis.com; only win32
sendmail_from = [EMAIL PROTECTED];
*/
$msg = "this is a test";
$senderFrom = "[EMAIL PROTECTED]";
$receiverTo = "[EMAIL PROTECTED]";
$subject = "test of the mail function";
$mailHeaders = "From: $senderFrom\n";
$mailHeaders .= "Reply-to: $senderFrom\n";
$mailHeaders .= "Message-Id: 16295644\n";
mail($receiverTo, $subject, $msg, $mailHeaders);
?>
I got this error:
Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org,
not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19
thanks, for any help.
--- End Message ---
--- Begin Message ---
I use this script:
<?
/**
[mail function]
; For Win32 only.
SMTP = ojpp.myftp.org
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
*/
$msg = "this is a test";
$senderFrom = "[EMAIL PROTECTED]";
$receiverTo = "[EMAIL PROTECTED]";
$subject = "test of the mail function";
$mailHeaders = "From: $senderFrom\n";
$mailHeaders .= "Reply-to: $senderFrom\n";
$mailHeaders .= "Message-Id: 16295644\n";
mail($receiverTo, $subject, $msg, $mailHeaders);
?>
I got this error:
Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org, not a
gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19
--- End Message ---
--- Begin Message ---
I use this script:
<?
/**
[mail function]
; For Win32 only.
SMTP = ojpp.myftp.org
; For Win32 only.
sendmail_from = [EMAIL PROTECTED]
*/
$msg = "this is a test";
$senderFrom = "[EMAIL PROTECTED]";
$receiverTo = "[EMAIL PROTECTED]";
$subject = "test of the mail function";
$mailHeaders = "From: $senderFrom\n";
$mailHeaders .= "Reply-to: $senderFrom\n";
$mailHeaders .= "Message-Id: 16295644\n";
mail($receiverTo, $subject, $msg, $mailHeaders);
?>
I got this error:
Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org,
not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19
--- End Message ---
--- Begin Message ---
This time your script is ok, the connection to the SMTP server is
established, but because the host name of the machine that executes your
php script is not a valid host name in the SMTP server's local network,
the server refuses to accept your request for security reasons (smtp
relaying blocked for external hosts).
To avoid this you have (at least) 2 options:
- to use the SMTP server of your provider, i.e. SMTP server for which
you are a valid local network host. Keep in mind that the SMTP server
does not care about the host name you provide in your code ('$senderFrom
= "[EMAIL PROTECTED]";'), but just takes the real host name of machine
executing the script.
- to find and use an open relay SMTP server, that smells very much to a
spamming activity, so I strongly suggest you to don't do that.
Boyan
--
[EMAIL PROTECTED] wrote:
I use this script:
<?
/**
in php.ini - localhost
[mail function]
SMTP = mail.serbis.com; only win32
sendmail_from = [EMAIL PROTECTED];
*/
$msg = "this is a test";
$senderFrom = "[EMAIL PROTECTED]";
$receiverTo = "[EMAIL PROTECTED]";
$subject = "test of the mail function";
$mailHeaders = "From: $senderFrom\n";
$mailHeaders .= "Reply-to: $senderFrom\n";
$mailHeaders .= "Message-Id: 16295644\n";
mail($receiverTo, $subject, $msg, $mailHeaders);
?>
I got this error:
Warning: mail(): SMTP server response: 550 not local host ojpp.myftp.org,
not a gateway in D:\htdocs\ojpp\functions\mail\2.php on line 19
thanks, for any help.
--- End Message ---
--- Begin Message ---
--- Leonel Nunez <[EMAIL PROTECTED]> wrote:
> When php 5 is released will there be support for php 4.3.x?
Support from whom? What type of support?
Do you consider there to be support for 4.3.x now?
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp
--- End Message ---
--- Begin Message ---
He is obviously asking if PHP 5 will support (run, execute, bla bla bla)
code that currently runs in 4.3.x!
P.S.: I don't know the answer!
Chris Shiflett wrote:
--- Leonel Nunez <[EMAIL PROTECTED]> wrote:
When php 5 is released will there be support for php 4.3.x?
Support from whom? What type of support?
Do you consider there to be support for 4.3.x now?
Chris
=====
My Blog
http://shiflett.org/
HTTP Developer's Handbook
http://httphandbook.org/
RAMP Training Courses
http://www.nyphp.org/ramp
--- End Message ---
--- Begin Message ---
There will certainly be security updates, but it will not be futher
enhanced.
Leonel Nunez wrote:
hello :
When php 5 is released will there be support for php 4.3.x ?
thanks
leonel
--- End Message ---
--- Begin Message ---
On Sat, 01 Nov 2003 23:42:06 +0100, Marek Kilimajer wrote:
> There will certainly be security updates, but it will not be futher
> enhanced.
>
> Leonel Nunez wrote:
>> hello :
>>
>> When php 5 is released will there be support for php 4.3.x ?
>>
>> thanks
>>
>> leonel
>>
this is what I needed to now
Security updates
thanks I hope so
Leonel
--- End Message ---
--- Begin Message ---
Hi,
Is this PHP's or Mysql fault or my own ( most likely)?
I'm doing a simple query to the DB and want any companies which start with a
number as the first "letter" to come up...
eg:
1company
23blah company
007bonds company
7lucky seven
etc
This is my query:
if($bok==1)
{$query = "select compno,thCompany from main_company where thCompany LIKE
'%0123456789%'";}
I have looked in the DB and i see quite a few companies have a number in the
beginning, but still this returns me no rows....any ideas why?
Thanks in advance,
-Ryan
--- End Message ---
--- Begin Message ---
On Sun, 2 Nov 2003 00:06:46 +0100, you wrote:
>if($bok==1)
>{$query = "select compno,thCompany from main_company where thCompany LIKE
>'%0123456789%'";}
>
>I have looked in the DB and i see quite a few companies have a number in the
>beginning, but still this returns me no rows....any ideas why?
That query is looking for any record where thCompany includes the text
"0123456789" at any point. Compare
"LIKE '1%'"
and read the chapter on string comparison functions in the MySQL manual.
--- End Message ---
--- Begin Message ---
> but that question is rather inappropriate for this list...
Inappropirate but intruiging nonetheless. I've always been curious how Amazon handles
the amount of traffic their site generates and now I've got a slightly better idea. I
know eBay uses CGI as I've already seen discussion of it. Regardless, perhaps the
thread would have been better if prefaced by an "OT."
Thanks for the tidbit, Nathan. :)
Edward Dudlik
"Those who say it cannot be done
should not interrupt the person doing it."
wishy washy | www.amazon.com/o/registry/EGDXEBBWTYUU
----- Original Message -----
From: "Nathan Taylor" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "John Ryan" <[EMAIL PROTECTED]>
Sent: Saturday, 01 November, 2003 14:08
Subject: Re: [PHP] Web Applications and C++?
They tend to use dlls and the sort, but that question is rather inappropriate for this
list...
----- Original Message -----
From: John Ryan
To: [EMAIL PROTECTED]
Sent: Saturday, November 01, 2003 12:33 PM
Subject: [PHP] Web Applications and C++?
I assume sites like Amazon and Ebay does not use PHP to generate its pages.
Does it use CGI and C++?? If so, does that mean a C++ program is run each
time I request a page.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On Sat, 1 Nov 2003 20:19:13 -0500, you wrote:
>Inappropirate but intruiging nonetheless. I've always been curious
>how Amazon handles the amount of traffic their site generates and now
>I've got a slightly better idea. I know eBay uses CGI as I've already
>seen discussion of it.
Amazon mostly look for people with Perl, C++ and Java over Unix. Typical
example:
"Competence in C/C++, Perl, and UNIX is essential. Java is a plus."
Take a look at their job ads.
My guess would be an Oracle database (hence the Java), C++ backend, some
Perl glue around the edges, and a big, big server farm. Of course with a big
distributed application like Amazon, different bits are bound to be written
in different languages.
The net-facing machines claim to be Apache (Stronghold) over Linux, and may
have been Solaris in the past, but that doesn't tell you much.
Their desire for RPC/SOAP experience is probably more about integrating the
supply chain than improving Amazon Web Services.
All guesswork, of course. Pinch of salt advised.
--- End Message ---
--- Begin Message ---
I can't get even the test script <?php phpinfo() ?> to run on my Mac. I
turned personal web sharing on, checked the httpd.config file (all is
well) type 127.0.0.1/test.php in the browser and get a "source view"
of the page (ie: <?php phpinfo() ?> shows up in the browser winbdow).
What am I doing wrong?
Thanks
Ken
--- End Message ---
--- Begin Message ---
Ken Tozier wrote:
I can't get even the test script <?php phpinfo() ?> to run on my Mac. I
turned personal web sharing on, checked the httpd.config file (all is
well) type 127.0.0.1/test.php in the browser and get a "source view" of
the page (ie: <?php phpinfo() ?> shows up in the browser winbdow).
What am I doing wrong?
Thanks
Ken
Got a line like this in your httpd.conf....?
AddType application/x-httpd-php .php
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--- End Message ---
--- Begin Message ---
I can't get even the test script <?php phpinfo() ?> to run on my Mac.
I turned personal web sharing on, checked the httpd.config file (all
is well) type 127.0.0.1/test.php in the browser and get a "source
view" of the page (ie: <?php phpinfo() ?> shows up in the browser
winbdow).
What am I doing wrong?
Thanks
Ken
> Got a line like this in your httpd.conf....?
> AddType application/x-httpd-php .php
Yeah. both of these are uncommented in httpd.conf:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
--- End Message ---
--- Begin Message ---
Ken Tozier wrote:
I can't get even the test script <?php phpinfo() ?> to run on my Mac.
I turned personal web sharing on, checked the httpd.config file (all
is well) type 127.0.0.1/test.php in the browser and get a "source
view" of the page (ie: <?php phpinfo() ?> shows up in the browser
winbdow).
What am I doing wrong?
Thanks
Ken
> Got a line like this in your httpd.conf....?
> AddType application/x-httpd-php .php
Yeah. both of these are uncommented in httpd.conf:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Restarted Apache? Possibly have another httpd.conf file that Apache is
reading? Anything in the error logs when you start Apache?
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--- End Message ---
--- Begin Message ---
Ken Tozier wrote:
I can't get even the test script <?php phpinfo() ?> to run on my
Mac. I turned personal web sharing on, checked the httpd.config file
(all is well) type 127.0.0.1/test.php in the browser and get a
"source view" of the page (ie: <?php phpinfo() ?> shows up in the
browser winbdow).
What am I doing wrong?
Thanks
Ken
> Got a line like this in your httpd.conf....?
> AddType application/x-httpd-php .php
Yeah. both of these are uncommented in httpd.conf:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Restarted Apache?
Yep. same result.
Possibly have another httpd.conf file that Apache is reading?
Possibly. I used the package installer from Marc liyannage's web site
which seems to have done something odd to the httpd.conf file but I
don't know enough unix yet to fix it without possibly screwing up.
there are the following config files in the /private/etc/httpd
directory:
httpd.conf
httpd.conf.applesaved
httpd.conf.bak
httpd.conf.default
httpd.conf.entropy-backup.1059884513
httpd.conf.entropy-temp
In addition to these, there is another config file named
"httpd.conf.php" in the "/usr/local/php/" directory
Which one Apache is using is a mystery to me.
Anything in the error logs when you start Apache?
No. this appears to be in order.
--- End Message ---
--- Begin Message ---
Ken Tozier wrote:
Ken Tozier wrote:
I can't get even the test script <?php phpinfo() ?> to run on my
Mac. I turned personal web sharing on, checked the httpd.config file
(all is well) type 127.0.0.1/test.php in the browser and get a
"source view" of the page (ie: <?php phpinfo() ?> shows up in the
browser winbdow).
What am I doing wrong?
Thanks
Ken
> Got a line like this in your httpd.conf....?
> AddType application/x-httpd-php .php
Yeah. both of these are uncommented in httpd.conf:
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Restarted Apache?
Yep. same result.
Possibly have another httpd.conf file that Apache is reading?
Possibly. I used the package installer from Marc liyannage's web site
which seems to have done something odd to the httpd.conf file but I
don't know enough unix yet to fix it without possibly screwing up. there
are the following config files in the /private/etc/httpd directory:
httpd.conf
httpd.conf.applesaved
httpd.conf.bak
httpd.conf.default
httpd.conf.entropy-backup.1059884513
httpd.conf.entropy-temp
In addition to these, there is another config file named
"httpd.conf.php" in the "/usr/local/php/" directory
Which one Apache is using is a mystery to me.
Anything in the error logs when you start Apache?
No. this appears to be in order.
Odd. To be sure it's using the conf file you want, have you tried
starting Apache with the command.....?
/path/to/httpd -f /path/to/httpd.conf
--
By-Tor.com
It's all about the Rush
http://www.by-tor.com
--- End Message ---
--- Begin Message ---
Odd. To be sure it's using the conf file you want, have you tried
starting Apache with the command.....?
/path/to/httpd -f /path/to/httpd.conf
I tried your suggestion but the system won't let me modify it even with
su permissions. I'm too tired and frustrated to continue tonight.
Clearly, the installer must have messed something important up so I'm
just going to reinstall Panther tomorrow (have to partition my drive
anyway so what the heck)
Thanks for all your help.
Ken
--- End Message ---
--- Begin Message ---
G'day Ken
> I tried your suggestion but the system won't let me modify it even with
> su permissions. I'm too tired and frustrated to continue tonight.
> Clearly, the installer must have messed something important up so I'm
> just going to reinstall Panther tomorrow (have to partition my drive
> anyway so what the heck)
€€€€
If you're re-installing anyway, give the Complete MySQL, Complete Apache and
Complete PHP installers from serverlogistics.com a try. I have never had a
problem with them and they come with a couple of nice preference panes for
controlling things - including httpd.cong and log files.
I used to use the Entropy builds but am sold on the serverlogistics ones
now.
cheers
kim
--- End Message ---
--- Begin Message ---
Hi,
Sunday, November 2, 2003, 3:25:09 AM, you wrote:
RK> I feel really stupid posting this but I can't seem to find the correct
RK> syntax in the language guide. I have a string which has been progressively
RK> built during a FOREACH loop through an array (a SELECT statement in which
RK> the WHERE part is built with ORs from the array of entries). The final
RK> query winds up with an extra "OR" at the end. I need to simply delete
RK> characters (STRLEN($string) - 3) through STRLEN($string). What's the proper
RK> syntax?
change your logic and put the OR first like this
$string = '';
for($x=0;$x<4;$x++){
if(!empty($string)) $string .= ' OR ';
$string .= 'word';
}
This way OR only gets added if there is already something in the string
--
regards,
Tom
--- End Message ---
--- Begin Message ---
On Sat, 1 Nov 2003 11:25:09 -0600, you wrote:
>I feel really stupid posting this but I can't seem to find the correct
>syntax in the language guide. I have a string which has been progressively
>built during a FOREACH loop through an array (a SELECT statement in which
>the WHERE part is built with ORs from the array of entries). The final
>query winds up with an extra "OR" at the end. I need to simply delete
>characters (STRLEN($string) - 3) through STRLEN($string). What's the proper
>syntax?
Slightly more sensible approach:
<?
$a = array ('1', '2', '3', '4', '5');
$a = implode (' OR ', $a);
echo ($a);
?>
--- End Message ---
--- Begin Message ---
Hi,
I'm just discovering how I can effectively emulate interfaces using the
object aggregation extension. This is a major benefit to me so I'd like to
know if others are using this extension. It is marked as experimental. Does
that mean the api might change in PHP4? I'm guessing it won't - I do
understand that this extension will be removed in PHP5 but I need this
feature now so I'm looking to make use of it.
Anyone have an opinion regarding how suitable this extension is in a
production environment? I can guarantee that I'll be using at least PHP
version 4.4.3
I think if there comes a time I need to port the application to php5, I'll
be able to replace the aggregation with actual interfaces.
Thoughts?
Thanks,
Matt.
--- End Message ---
--- Begin Message ---
Test.
--- End Message ---