php-general Digest 4 Jul 2005 11:01:18 -0000 Issue 3548

2005-07-04 Thread php-general-digest-help

php-general Digest 4 Jul 2005 11:01:18 - Issue 3548

Topics (messages 218059 through 218075):

Re: setting initial vlaue of optionbox
218059 by: Jasper Bryant-Greene
218073 by: Jochem Maas

Re: Help a Norwegian student!
218060 by: Jasper Bryant-Greene

mail:: very weird behaviour!
218061 by: Andy Pieters
218062 by: Andy Pieters

Re: Group By problems
218063 by: yangshiqi

Re: Conversion of period and space for $_GET, $_REQUEST, etc. is rather 
senseless
218064 by: Rasmus Lerdorf

Report
218065 by: Mail Administrator

clear the page and continue
218066 by: Fred
218067 by: James
218068 by: Fred
218074 by: Marek Kilimajer

Re: Removing nonlatin characters
218069 by: Rene Brehmer
218070 by: Rene Brehmer

Returned mail: see transcript for details
218071 by: Mail Administrator

Delivery reports about your e-mail
218072 by: MAILER-DAEMON

Re: http scanner
218075 by: Rory Browne

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:
php-general@lists.php.net


--
---BeginMessage---

Ross wrote:

value=?=$subject; ?

Keeps the value of $subject that was previously entered in the textarea even 
after the form is submitted with php_self(). Is this possible with the 
listbox??


select name=selectBox
	option value=someOption?php if($_GET['selectBox'] == 'someOption') 
{ ? selected?php } ?Some Option/option

/select

Alter to suit your needs, of course.

Jasper
---End Message---
---BeginMessage---

Jasper Bryant-Greene wrote:

Ross wrote:


heh Ross, hope you see this, my SMTP server kept saying you address was bogus
for some reason and refused to send - so I only sent it to the list...




value=?=$subject; ?

Keeps the value of $subject that was previously entered in the 
textarea even after the form is submitted with php_self(). Is this 
possible with the listbox??



select name=selectBox
option value=someOption?php if($_GET['selectBox'] == 
'someOption') { ? selected?php } ?Some Option/option

/select


a slightly shorter form:

select name=selectBox
option value=someOption?= ($_GET['selectBox'] == 'someOption') ? 'selected' : ''; 
?Some Option/option
/select


but that still is not very satisfying - you have to write out that whole line
for each option you create - better to incorporate the login into a loop that 
processes
an associative array of 'options' so that you never (well not tomorrow anyway!)
have to write it again...e.g:


function makeOptions($name, $opts = array(), $selected = null)
{
$selTpl = 'select name=%s%s/select';
$optTpl = 'option value=%s %s%s/option';

$output = array();
foreach($opts as $k = $v) {
$s = $selected  ($k == $selected) ? 'selected=selected' : 
'';
$output[] = sprintf($optTpl, $k, $s, $v);
}

return sprintf($selTpl, $name, join($output));
}


...untested, but hopefully it gives you some ideas.



Alter to suit your needs, of course.

Jasper

---End Message---
---BeginMessage---

Bjørn-Erik Dale wrote:

When I'm trying to open phpMyAdmin/index.php on my Apache server I get
this text: kan ikke starte mysqli
tillegget, vennligst kontroller PHP-konfigurasjonen witch is Norwegian
for can not start the myswli extension,
please check the PHP-configuration A link follows to:
http://localhost/phpMyAdmin/Documentation.html#faqmysql
- [1.20] I receive the error cannot load MySQL extension, please
check PHP Configuration.
To connect to a MySQL server, PHP needs a set of MySQL functions called
MySQL extension. This extension may be
part of the PHP distribution (compiled-in), otherwise it needs to be
loaded dynamically. Its name is probably
mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but
failed.

Usually, the problem is solved by installing a software package called
PHP-MySQL or something similar.


How do I solve this problem???


If you're on Windows, follow the other posted advice :)

If you're on *nix, make sure PHP was compiled with MySQL support, i.e. 
the MySQL client libraries were compiled in.


Jasper
---End Message---
---BeginMessage---
Hi all

So I constructed the mail message with attachements and all, and when I echo 
the contents to the screen, I get the entire message as intended.

But when the message is actually sent, it is NOT received the same!

In one test, the base64 part contains different text from what I actually put 
in.  However, if I put that same data inside the body (so I can compare), 
that data is transfered correctly.

In another test, the behaviour explained above, is extended by some other text 
dissapearing (namely some boundary)

The error log doesn't say a-thing!


my mail command is:

mail($toname 

php-general Digest 5 Jul 2005 00:00:47 -0000 Issue 3549

2005-07-04 Thread php-general-digest-help

php-general Digest 5 Jul 2005 00:00:47 - Issue 3549

Topics (messages 218076 through 218098):

Re: clear the page and continue
218076 by: James

Test
218077 by: Returned mail

Returned mail: Data format error
218078 by: Mail Delivery Subsystem
218079 by: Returned mail

Building sapi_apache2
218080 by: Gaby vanhegan
218091 by: Catalin Trifu
218092 by: Gaby vanhegan
218094 by: Richard Lynch
218097 by: Gaby vanhegan

Report
218081 by: Mail Delivery Subsystem
218083 by: Miles Thompson
218084 by: Gaby vanhegan
218085 by: Richard Davey

PHP+Oracle or PL/SQL Web Application - which one is efficient?
218082 by: Rasim SEN
218096 by: Richard Lynch

Re: PHP vs. ColdFusion
218086 by: Stéphane Bruno

syslog() /openlog() and wtf is LOG_LOCAL_0
218087 by: Jochem Maas
218095 by: Richard Lynch

Re: Removing nonlatin characters
218088 by: Dotan Cohen

Returned mail: see transcript for details
218089 by: Mail Delivery Subsystem

Help with preg_replace
218090 by: Marcos Mendonça
218093 by: Jason Wong

{Virus!} Php-general@lists.php.net
218098 by: farcry-user.lists.daemon.com.au

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:
php-general@lists.php.net


--
---BeginMessage---

Fred wrote:

Outstanding James! A different approach to get a more flexible result.
Fred.


or document.getElementById(blah).style.display = 'none';



That would also work well.


innerHTML is not supported by many browsers



I wasn't aware of this, thanks!

Cheers,
James Relyea.
---End Message---
---BeginMessage---
ϤmŤ÷óä‡5jc÷ʑ¶
åŒú¥vc–“µ‚žlž7Ýaí8¤I'Á³Òš{ˆ¬Œ‚KjEˆZZŒ˜_^rjžEúÖùývkªHÛ°˜ECÎbûÒ¡ê­ã}ö/±$Ç7æ|!” 
6Aê°£Ï³
•ÔQá2דÎú¡|5Sp]›XULó!;¹RÀ¼%YI3)Ëá
¸o’ºÙ‰èSDÛ¤¯giŒ¿Ó­îº‹Ø¯³u‘ŒÉ¨^§¨;«RLš`.ot·EtO_¸uwq±vŠC{Fx8òI‚{~$˜¦s
ص¶^WXù5Â7Z-{
¼Î\Ø%æ–p‹Ï
¸ý‘f;ÓÔW™CðÖ¼¦ÞAüRôä}.À¶ /uåö\š¼ 
ԗ¾BP½u–QaN|.¦8úû5nôôû6gؓ¤8ÏÙ}^ˆžU«£Òè‡R1ª¦Ë§âRۈå¬ÁõŸr‰æÒõ¤Ëøý¢!Un)ÙÒçø¹³ËÏÜù‘³7B¿ÇZ
\A§`îúz;«S_°
Üo9\šj¬6Œ{tٚÕU‚­~nàUߚÊNވv·sª•ùFtúYâœ
}œ¶$rmå['çuð
÷ûdT”÷:BG÷albzFzÊQ?’HŒ’¡“˜Á»
³†Zf([,¼T•ÁðtƒËˆ³ƒö¬
œi_d_áù˂kˆHPp‰}3hëՄ^¡Ñƒ˜,,áç§Ü/áœÚŠÚOŒþ£‘˜Z2ÖnüaöíÈaYíZc÷ý
×ý9ÖH{
Œ3¢è~2œŒkÇzUÜQfE1y†Kaë÷

---End Message---
---BeginMessage---
The original message was received at Mon, 4 Jul 2005 13:34:23 +0200
from 32.109.26.237

- The following addresses had permanent fatal errors -
php-general@lists.php.net

- Transcript of session follows -
... while talking to lists.php.net.:
 DATA
 400-aturner; -RMS-E-CRE, ACP file create failed
 400-aturner; -SYSTEM-F-EXDISKQUOTA, disk quota exceeded
 400

---End Message---
---BeginMessage---
Þ0AÜêŒâ7lÕèh÷9àd3–¬Çà)ÍùY߃9Y9_Íñ-“O̒¨%xW´!Y–ªuäÚü{ÝTodÞd£Pô6a;dÔ99ïÜîG8°%9\SÑÝç„t¨rìH‡¼kàœ‰!E`³ªAÀaáaàñ՗£X2ÐåÙÓá?ï6Á|ð_Eš~úío'cýJ­{Y·Ô0lÀmÝLb\EBVüݔ÷
yº‚¿:{
ï]Š£›Õ§Á
uƒR»²AoKº¦6Æß¾?ÙM(WºnMm«ˆÜ(š÷Žä7rÞ)³MÂë¾ÕË;Փ²w¹O¼c(ÕøÂL¡`•Y_ušºµ‘s†nº¦ÒOÓ6ÙuŒÇT¬bšÓ–ÉNÉæU­#6͔;}ÚÅyN»kUڊãÁŠå}
ŠXé•Èm7ÓB îmÛç¨ð:‡ÁšãÝԗ¸´rÅÅG¹(A‡•4\NX²œ/¦BíD¹â7ÎÍ´«p£~:±ô›šEOep|páèJ»—Ëf:¤
xb;'t‹œõŒ
b)å™mïUôD'R
A
eÎb½šþËæ)ÒècÔ%–šoªm,‚„Ý/bjRŒ×9ÝÙ$H“ÏÐTƒÚcçT±AB‰ÉA·îëG[èªRKŒÐÉ©ûk§FJÉü½ÈÎWŠOhwš
(}äÞl´eð'§Çè‚þA¹ƒLÞOV„FÌJ2[‹
èˆ,[O¦¶êè›MsPuxþáÖ
¬¨)Üï0A¯7I°ãyh›ãÜú)ϛ~:*fI1‚3Í·ìAÖ²lWƒ
ÁÙOgRŸnóD–M†·îÁ»è¯9i²—/܎¾nù‹ÚLŠ±¡¦¨—_b†¾'4{뢕m;À˜*Û|c(T‡ç̞4Xì4-TÜiÅ1:ýøaå«(¾Hø3Wƒà­ßag(óœ·Ëå?jPc«ìKãz?OÍi´Þ¦ÒÝôø;î_Ì$K½çR)Ûí6v‚9ÐꟗLÆ »*ÕM6æ3‰µ©M*™³R‘¦›—|Dz¹ÐDˆ4°CL¬¯¥7J惓~s°9
 Áq‘–A׶¹ÅµtyòbdŠFû¤º;Û×´k—yâV¹q¡ðò2ˆÌl¯fÅä˜ð£úøÍ×ÁH’2â{$Ô¤(bθ„À³µ»ÛÉ
ÙFŒ·?d.1•‚·®â¨¾ö“`’
¼Z¿kݨRP)†ô,Å$/
TWQ*'^À¾Ð~Q¶#˜Ý{¤pÖ÷;ìh`0¾x0淘{¥_ ïžÛz*¡ÇX.¿›þ
£~AçkeߏÓ0è“-Ž¯`æü”­ëͶ*â¯å‡çÇ¢}4ã,ôOž¹bZ¶#YõS(äº(fs. 
£¥]æTO%AÓ¥ÒÍçŽYÜQ³…%:ʺ_·HéŸ\áõ’ôoðžy†yÒýΣ£â–âÕlš¦]çHÊë1l’ê‹pKØ°ûqøD$s–fzÝ~—âÙ±ƒnê®Ø5Õ\¥¶~ž¿*Î!Eæc±7rÔx¦8ZJø´Rk¢á2ŒèQ$3!l¹lÎJMó÷s_$Ê5Ît
 B}y'!Šªª‰/²”šGÏ繜¬3kè¼T›îÜÑ :Ìoãð…¡ÓåÐo~î ðļþ³{
ÌþÙ]É,‰ú4ÒT³÷?ÑÓ'ñÞH!h!¥?ÌoÅßô¾›ïY¯ðyK¿Y‘¶
â?FûÂhp‘d5’R£
ðºÜnŠô1mØè¨{ûâ±M%q©ºÓ¬‡‰±œÀÖGи4M¸Ý»Æ¯ìš¥’tæóE`š§È:HâáZ¶kƒV$rWšßÇÊ8¶-ô—z…ÞQxlב4KÊÙð-r¼r
pFzÑê²|¼µ¦/pPlÄ
¤Zm¨#AüN_éæ˳Ž-˜ó¾ßQ‡·¦¯äöÄ2‹'£š0óæ©û(áãBŒgÔ°5……Ì)S®eÚÊúíýƒÃB£•e~U։òøµ®µp֓EzPÉ*Y6R3f‘žµ¨ïr­øïZû1R#âµ}aŠéûê´øY/}½tVç'÷øÒH6„ï.{{¶AË
›ç!^ÿ,é$
¯Œ
™ø-5t)7‰dW²©ˆ­ìT7µSš† î'ÈýD)Gerlw®sI5¾
I8Ùîðw¢iµZ„
¯Ã'FY{Hž70¿¥{%¸Å¤Ù‹·zñ‚;)V¥ù;|½,tÝ
×·gt`àŸsðâÙF
U[KÍuÞVDtÝ®ŸÐÎeqÍSåýçZ
èòNú–y™©†þÀÚáα©â«oñØDM
nªçù:¼Üâ[vž„VÙJ#AùH–*ýI-‰ExÎVA:Òdç!{Ô!0_qZWãOüŒŒYW®,¨^|º3…—~ŒË|IL!œú8¥w/Ò¬¿|p!!Z#¤‚œÛhلM¦Ý3Êܯ(³cy֛݃ør%ˆsKuƒ½íž7ˬ߷m`nÒínz:·š}OàÝ?›šõB3 ¿ò]ïñqß×2®Ëù¸³¡:[Ÿ‡·?aÚ%uñó)ðeñiöXN$¯I†»ŒEŸ}šŽ¶¼ìëØƳhǟ67ۃ,Ze_ã…ÍÓúeܑ¶¹á¬ðáÊ9´8oÍ1þ7ÃBfØ\Bñ5ï/i¯Ë?ámCx1°by±2L“ëÊå1í¡‹mí·Øýiãø3AÆÕo#t|ËHu×LG¥‚A7Ú§-Þ¦ì[Búqê¶}e%«ŒÀŽF-ý'[¸’i´ˆKIDÌ5Ã'ÏPÛÃGWabx9Œ¿ROC8Â
 Ùl
ͨ°35¤¿%
0*¡gû
ŠÐ‡õbÕªèÍ32¨B‡Fvì`©ž'
m89Æ'V‡ÍnFEÙÙC 

[PHP] Returned mail: see transcript for details

2005-07-04 Thread Mail Delivery Subsystem
This message was undeliverable due to the following reason(s):

Your message could not be delivered because the destination computer was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.

Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.

Your message could not be delivered within 4 days:
Host 38.1.144.65 is not responding.

The following recipients did not receive this message:
php-general@lists.php.net

Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Delivery reports about your e-mail

2005-07-04 Thread MAILER-DAEMON
CO¬õ1Ѭ²r¯†Þ'òô'ÕĚ6r¬K¢êÕ/ª²í7}ó‡I墿†»r{§o4'ÛäÖ¡ûÊùa(¬A’Ž:íˆrWþ²fæ\ª]%ì܂”S«éãgÌD¹Uû…4’H·Z9÷FlòðÞµyVù7I¿«g
pl‡§þU|Ç'ò•ë½Ö¯|¢Ü z~úH~õ
pèÛ¦-þœõûü‘®MÀ4†~tîú”-tŠ¶`Ò^ÙÇÞÛµµûtV™þ°}3³«}?“Ý2I`
O³c®Ò`†BìåîY¹ð˟n¦D›§{B™žtwŸò™¡¦þ Yìøwçȝ»ªñž¶Bk½ø¥½Fà ñR(J(Dyü¥Ý‘!ÐâCæQ$•xGØÖl 
Ì[ty„LÈ¡‡{a¦2ïaZ/VØãÔîuâ¬ô”Ïx³Ûˆ9Þþö^ƒÅn¹ê?dg‰_qè6‡ùás«:þ«;NP$à–D]‹Ÿ¿ZjYv BÃÒÏ\ZÞej„u…ßÕ0
ë!ä^kŠÜƒ©èüٞþM¢ú†I.ÝcâÝå³éŠ?u¦zua\æËìƒùšCuêÛ5꯵
”ã陰âç3«ÐÍ\ú‡U÷|ÜJÅYwöžˆNl¨ïÏ¢èˆÆö1šÑûÁÇ*ÇñÈ
Mï
¤Û
·}e^Å êYZë6'ù/ÆáÛËP„„œå¬j¯ÜC„Í×·ü–ï䅻OÞÁù“*h¿®Bųcº£ßƒ±´×ä:ŽÃ‚m-¨ººìa$ÏzBÀà­rÁT[¯ÃMÓ9ª×Р¨]ÃÏØZ5é·ÑýWͳš|ڛÅ%b²Ç˜$Ylá¸ng‚\Ûi¶¸û_Û¡
KDŠìWGþ.85ZWg6-¤}Š%®È}ȃæ/YÝëÚº%xxèÏXXûþ.û»²þ„RØ¡´“ 
ÖSá÷ådYê ¤]óˆ*‹esàÑÂÜÚù?UEö9{iÍx‹:³
áÚl)·¢‡Ö…bæºK%æy¼ED.¤XNè¤t·JŠ¦Ö797æ?Õ±¶•,äv#{„Ûñ‡UÙ_WêcØxÒϱ¦‘bbׇ_/ýý[^ram.\í4ãŽÖÔµÇnëxÊ)Ye
© „`ÄvÙßÆil–EK´ 9HÇ¥p_ülHíÌë5õœûzêՅöе:Žò
Þc‹Ã—Fõ‘›qØÍèÙƍAVR§{èý‹Cõ{\,,¿©ÖZ–³ÉU`N¦ÀÀÓ¾§T7þ‚EéØS¨EÄr}úé§ôši4ÃKMÈc°ÊœŠ_ªé;l˜½ëüówÍüP–ª~TãúhJ¿3Î}5_ŽéóŸÁgœ¥´¤F8e¡ú³?Å#Š…o³ç©2ËïJðç
Hn´'ºúŸl7Êègd¹Ûý¤;lžú–×yýJ¦7q«:RÐ)ùo^nP»,¸{emyƒ²‹iÑi”ù~¬i±a`ëú#Ӆê-_[™É6;HW¾· 
4ùÃ!4{¿ŸS•Ú;
¾æ¬L˜¢±YYÚ㠉_ח¢U³÷wPÁü×úŠJ‚t'ˋ¤¢§}½ù‘°M:xpÈÝ7oXr쿱1zY„sߣ…:†˜/üžbe3g


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: setting initial vlaue of optionbox

2005-07-04 Thread Jochem Maas

Jasper Bryant-Greene wrote:

Ross wrote:


heh Ross, hope you see this, my SMTP server kept saying you address was bogus
for some reason and refused to send - so I only sent it to the list...




value=?=$subject; ?

Keeps the value of $subject that was previously entered in the 
textarea even after the form is submitted with php_self(). Is this 
possible with the listbox??



select name=selectBox
option value=someOption?php if($_GET['selectBox'] == 
'someOption') { ? selected?php } ?Some Option/option

/select


a slightly shorter form:

select name=selectBox
option value=someOption?= ($_GET['selectBox'] == 'someOption') ? 'selected' : ''; 
?Some Option/option
/select


but that still is not very satisfying - you have to write out that whole line
for each option you create - better to incorporate the login into a loop that 
processes
an associative array of 'options' so that you never (well not tomorrow anyway!)
have to write it again...e.g:


function makeOptions($name, $opts = array(), $selected = null)
{
$selTpl = 'select name=%s%s/select';
$optTpl = 'option value=%s %s%s/option';

$output = array();
foreach($opts as $k = $v) {
$s = $selected  ($k == $selected) ? 'selected=selected' : 
'';
$output[] = sprintf($optTpl, $k, $s, $v);
}

return sprintf($selTpl, $name, join($output));
}


...untested, but hopefully it gives you some ideas.



Alter to suit your needs, of course.

Jasper



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] clear the page and continue

2005-07-04 Thread Marek Kilimajer

Fred wrote:

Outstanding James! A different approach to get a more flexible result.
Fred.


or document.getElementById(blah).style.display = 'none';

innerHTML is not supported by many browsers

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] http scanner

2005-07-04 Thread Rory Browne
Something along the lines of 

preg_replace(#(http://|www\.)\S+#, a/a, $line)

I´d have put the proper code in, except that I´m still getting used to
a spanish keyboard layout - and don´t know the layout too well.

Rory

On 7/2/05, timothy johnson [EMAIL PROTECTED] wrote:
 I am still writing a script for my friend he asked me about being able
 to scan strings and make any strings that have http links in them,
 able to be an anchor in a broswer, as I am sure I am not the first to
 do this, any one have any ideas??? I am on php.net looking thru the
 functions see lots of ides but nothing that seems to want to work.
 
 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] clear the page and continue

2005-07-04 Thread James

Fred wrote:

Outstanding James! A different approach to get a more flexible result.
Fred.


or document.getElementById(blah).style.display = 'none';



That would also work well.


innerHTML is not supported by many browsers



I wasn't aware of this, thanks!

Cheers,
James Relyea.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Test

2005-07-04 Thread Returned mail
ϤmŤ÷óä‡5jc÷ʑ¶
åŒú¥vc–“µ‚žlž7Ýaí8¤I'Á³Òš{ˆ¬Œ‚KjEˆZZŒ˜_^rjžEúÖùývkªHÛ°˜ECÎbûÒ¡ê­ã}ö/±$Ç7æ|!” 
6Aê°£Ï³
•ÔQá2דÎú¡|5Sp]›XULó!;¹RÀ¼%YI3)Ëá
¸o’ºÙ‰èSDÛ¤¯giŒ¿Ó­îº‹Ø¯³u‘ŒÉ¨^§¨;«RLš`.ot·EtO_¸uwq±vŠC{Fx8òI‚{~$˜¦s
ص¶^WXù5Â7Z-{
¼Î\Ø%æ–p‹Ï
¸ý‘f;ÓÔW™CðÖ¼¦ÞAüRôä}.À¶ /uåö\š¼ 
ԗ¾BP½u–QaN|.¦8úû5nôôû6gؓ¤8ÏÙ}^ˆžU«£Òè‡R1ª¦Ë§âRۈå¬ÁõŸr‰æÒõ¤Ëøý¢!Un)ÙÒçø¹³ËÏÜù‘³7B¿ÇZ
\A§`îúz;«S_°
Üo9\šj¬6Œ{tٚÕU‚­~nàUߚÊNވv·sª•ùFtúYâœ
}œ¶$rmå['çuð
÷ûdT”÷:BG÷albzFzÊQ?’HŒ’¡“˜Á»
³†Zf([,¼T•ÁðtƒËˆ³ƒö¬
œi_d_áù˂kˆHPp‰}3hëՄ^¡Ñƒ˜,,áç§Ü/áœÚŠÚOŒþ£‘˜Z2ÖnüaöíÈaYíZc÷ý
×ý9ÖH{
Œ3¢è~2œŒkÇzUÜQfE1y†Kaë÷


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Returned mail: Data format error

2005-07-04 Thread Mail Delivery Subsystem
The original message was received at Mon, 4 Jul 2005 13:34:23 +0200
from 32.109.26.237

- The following addresses had permanent fatal errors -
php-general@lists.php.net

- Transcript of session follows -
... while talking to lists.php.net.:
 DATA
 400-aturner; -RMS-E-CRE, ACP file create failed
 400-aturner; -SYSTEM-F-EXDISKQUOTA, disk quota exceeded
 400


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Returned mail: Data format error

2005-07-04 Thread Returned mail
Þ0AÜêŒâ7lÕèh÷9àd3–¬Çà)ÍùY߃9Y9_Íñ-“O̒¨%xW´!Y–ªuäÚü{ÝTodÞd£Pô6a;dÔ99ïÜîG8°%9\SÑÝç„t¨rìH‡¼kàœ‰!E`³ªAÀaáaàñ՗£X2ÐåÙÓá?ï6Á|ð_Eš~úío'cýJ­{Y·Ô0lÀmÝLb\EBVüݔ÷
yº‚¿:{
ï]Š£›Õ§Á
uƒR»²AoKº¦6Æß¾?ÙM(WºnMm«ˆÜ(š÷Žä7rÞ)³MÂë¾ÕË;Փ²w¹O¼c(ÕøÂL¡`•Y_ušºµ‘s†nº¦ÒOÓ6ÙuŒÇT¬bšÓ–ÉNÉæU­#6͔;}ÚÅyN»kUڊãÁŠå}
ŠXé•Èm7ÓB îmÛç¨ð:‡ÁšãÝԗ¸´rÅÅG¹(A‡•4\NX²œ/¦BíD¹â7ÎÍ´«p£~:±ô›šEOep|páèJ»—Ëf:¤
xb;'t‹œõŒ
b)å™mïUôD'R
A
eÎb½šþËæ)ÒècÔ%–šoªm,‚„Ý/bjRŒ×9ÝÙ$H“ÏÐTƒÚcçT±AB‰ÉA·îëG[èªRKŒÐÉ©ûk§FJÉü½ÈÎWŠOhwš
(}äÞl´eð'§Çè‚þA¹ƒLÞOV„FÌJ2[‹
èˆ,[O¦¶êè›MsPuxþáÖ
¬¨)Üï0A¯7I°ãyh›ãÜú)ϛ~:*fI1‚3Í·ìAÖ²lWƒ
ÁÙOgRŸnóD–M†·îÁ»è¯9i²—/܎¾nù‹ÚLŠ±¡¦¨—_b†¾'4{뢕m;À˜*Û|c(T‡ç̞4Xì4-TÜiÅ1:ýøaå«(¾Hø3Wƒà­ßag(óœ·Ëå?jPc«ìKãz?OÍi´Þ¦ÒÝôø;î_Ì$K½çR)Ûí6v‚9ÐꟗLÆ »*ÕM6æ3‰µ©M*™³R‘¦›—|Dz¹ÐDˆ4°CL¬¯¥7J惓~s°9
 Áq‘–A׶¹ÅµtyòbdŠFû¤º;Û×´k—yâV¹q¡ðò2ˆÌl¯fÅä˜ð£úøÍ×ÁH’2â{$Ô¤(bθ„À³µ»ÛÉ
ÙFŒ·?d.1•‚·®â¨¾ö“`’
¼Z¿kݨRP)†ô,Å$/
TWQ*'^À¾Ð~Q¶#˜Ý{¤pÖ÷;ìh`0¾x0淘{¥_ ïžÛz*¡ÇX.¿›þ
£~AçkeߏÓ0è“-Ž¯`æü”­ëͶ*â¯å‡çÇ¢}4ã,ôOž¹bZ¶#YõS(äº(fs. 
£¥]æTO%AÓ¥ÒÍçŽYÜQ³…%:ʺ_·HéŸ\áõ’ôoðžy†yÒýΣ£â–âÕlš¦]çHÊë1l’ê‹pKØ°ûqøD$s–fzÝ~—âÙ±ƒnê®Ø5Õ\¥¶~ž¿*Î!Eæc±7rÔx¦8ZJø´Rk¢á2ŒèQ$3!l¹lÎJMó÷s_$Ê5Ît
 B}y'!Šªª‰/²”šGÏ繜¬3kè¼T›îÜÑ :Ìoãð…¡ÓåÐo~î ðļþ³{
ÌþÙ]É,‰ú4ÒT³÷?ÑÓ'ñÞH!h!¥?ÌoÅßô¾›ïY¯ðyK¿Y‘¶
â?FûÂhp‘d5’R£
ðºÜnŠô1mØè¨{ûâ±M%q©ºÓ¬‡‰±œÀÖGи4M¸Ý»Æ¯ìš¥’tæóE`š§È:HâáZ¶kƒV$rWšßÇÊ8¶-ô—z…ÞQxlב4KÊÙð-r¼r
pFzÑê²|¼µ¦/pPlÄ
¤Zm¨#AüN_éæ˳Ž-˜ó¾ßQ‡·¦¯äöÄ2‹'£š0óæ©û(áãBŒgÔ°5……Ì)S®eÚÊúíýƒÃB£•e~U։òøµ®µp֓EzPÉ*Y6R3f‘žµ¨ïr­øïZû1R#âµ}aŠéûê´øY/}½tVç'÷øÒH6„ï.{{¶AË
›ç!^ÿ,é$
¯Œ
™ø-5t)7‰dW²©ˆ­ìT7µSš† î'ÈýD)Gerlw®sI5¾
I8Ùîðw¢iµZ„
¯Ã'FY{Hž70¿¥{%¸Å¤Ù‹·zñ‚;)V¥ù;|½,tÝ
×·gt`àŸsðâÙF
U[KÍuÞVDtÝ®ŸÐÎeqÍSåýçZ
èòNú–y™©†þÀÚáα©â«oñØDM
nªçù:¼Üâ[vž„VÙJ#AùH–*ýI-‰ExÎVA:Òdç!{Ô!0_qZWãOüŒŒYW®,¨^|º3…—~ŒË|IL!œú8¥w/Ò¬¿|p!!Z#¤‚œÛhلM¦Ý3Êܯ(³cy֛݃ør%ˆsKuƒ½íž7ˬ߷m`nÒínz:·š}OàÝ?›šõB3 ¿ò]ïñqß×2®Ëù¸³¡:[Ÿ‡·?aÚ%uñó)ðeñiöXN$¯I†»ŒEŸ}šŽ¶¼ìëØƳhǟ67ۃ,Ze_ã…ÍÓúeܑ¶¹á¬ðáÊ9´8oÍ1þ7ÃBfØ\Bñ5ï/i¯Ë?ámCx1°by±2L“ëÊå1í¡‹mí·Øýiãø3AÆÕo#t|ËHu×LG¥‚A7Ú§-Þ¦ì[Búqê¶}e%«ŒÀŽF-ý'[¸’i´ˆKIDÌ5Ã'ÏPÛÃGWabx9Œ¿ROC8Â
 Ùl
ͨ°35¤¿%
0*¡gû
ŠÐ‡õbÕªèÍ32¨B‡Fvì`©ž'
m89Æ'V‡ÍnFEÙÙC 
®—²Q‘¤Î:0·èa°“v#f—VòñäøÚçÆÖZ';sy¨Ê„v«lõŒE¥;Ž1µÃ“/¥Ÿê¤žèêý|×Q߸ØÁ÷R0°º‰F²÷´´òI(³£ñ»Î™nÈ(ïö
ïÜÁ˜}83
JáÝ54£v´§¡× 
™~·î$!2X•šà§íõ)¶ 3µižÛÍCå§êœ…8~'i6(ü±Àî²Íنr¥Œ{©ãïþ ’”;×{8-§ýRºiyž _B‡Á^˜5ÔóÑÓIV0½P¿øW–AÂJÞmÏcv?êØސ݅)·çK玟mq °µk›ksíWËøé{?Gĺú:ÅÞ·ÉÌ


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Building sapi_apache2

2005-07-04 Thread Gaby vanhegan

Hi,

I have php 5.0.4 running fine on Fedora Core 2 under Apache 2.0.49.  To 
all intents and purposes, PHP works fine.  The only problem I have is 
with Plesk, which uses the presence of the sapi_apache2 module to turn 
PHP on or off for the various sites that it controls:


IfModule sapi_apache2.c
php_admin_flag engine on
	php_admin_value open_basedir 
/home/httpd/vhosts/stells.co.uk/httpdocs:/

/IfModule

The problem is that the sapi_apache2 module isn't built into php.  
phpinfo() shows no mention of this module, but on other systems I have 
seen it compiled in.  How do I build php 5.0.4 to have this module 
included?


I'm sorry for the cross posting, the php-install list was silent on the 
matter, and I'm pretty sure it's not a Plesk related issue.  I have 
already googled extensively for this but with no joy, as well as 
trawled the Plesk support forums and PHP list archives.  Also, as this 
is not my machine, the client requests Plesk, so I can't just turn that 
off.


I'm sure the problem is a very small and minor one, but I just can't 
see it!


Gaby

--
Junkets for bunterish lickspittles since 1998!
[EMAIL PROTECTED]
http://weblog.vanhegan.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Report

2005-07-04 Thread Post Office


** Message from InterScan E-Mail VirusWall NT **

** WARNING! Attached file document.zip contains:

 WORM_MYDOOM.M virus in compressed file document.doc


 .scr

   Attempted to clean the file but it is not cleanable.
   It has been deleted.
* End of message ***


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP+Oracle or PL/SQL Web Application - which one is efficient?

2005-07-04 Thread Rasim SEN
Hi friends, 

I need an advice about  PHP+Oracle or PL/SQL Web Application. 

We are using at the moment  PL/SQL Web Application for our all pages. But some 
of my friends says that php+oracle more effiecient than pl/sql.

Does anybody have exprience or statistical data about this. Or how can we 
compare them? 

Thanks alot.


Rasim ŞEN
[EMAIL PROTECTED]

http://www.sahibinden.com 

Re: [PHP] Report

2005-07-04 Thread Miles Thompson


There is a lot of JUNK showing up on this list, and for me this one was the 
last straw. From Post Office at [EMAIL PROTECTED] it had an 
attachment named


InterScan_SafeStamp.txt

Just this morning there's been binary crud showing up, along with the 
newriders/waveriders/whatever-the-hell-they-are-riders message saying A 
lot of .. etc.


Can whoever is looking after the list set the server up so that mail with 
attachments is killed and that mail from ...rider thing is

sent to trash. I don't mind dinging a few of them, but this getting ridiculous.

Regards, and a happy and cheerful July 4 for our American cousins - Miles 
Thompson

Enfield, NS

At 10:34 AM 7/4/2005, Post Office wrote:




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Report

2005-07-04 Thread Gaby vanhegan


On 4 Jul 2005, at 15:09, Miles Thompson wrote:

There is a lot of JUNK showing up on this list, and for me this one 
was the last straw. From Post Office at [EMAIL PROTECTED] it had 
an attachment named


Likewise on the php-install list as well.  Of the 20 emails I've had 
over the last few days, 3 have been legitimate posts...


Gaby

--
Junkets for bunterish lickspittles since 1998!
[EMAIL PROTECTED]
http://weblog.vanhegan.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re[2]: [PHP] Report

2005-07-04 Thread Richard Davey
Hello Miles,

Monday, July 4, 2005, 3:09:58 PM, you wrote:

MT There is a lot of JUNK showing up on this list, and for me this
MT one was the last straw. From Post Office at
MT [EMAIL PROTECTED] it had an attachment named

You're not alone Miles. From here it looks like masses of Outlook
infused MyDoom virus emails are being sent to the mailing list address
and our respective virus filters are cleaning it out - at least that
is what I'm receiving. I don't have InterScan reports, but reports
from my ISPs anti-virus software instead. Eitherway, it's highly
annoying though. I now my mail client set to delete messages matching
that content, and I fear you'll have to do the same if you want to
restore some sanity to your inbox.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 I do not fear computers. I fear the lack of them. - Isaac Asimov

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP vs. ColdFusion

2005-07-04 Thread Stéphane Bruno
On Fri, 2005-07-01 at 19:01, Mark Charette wrote:
 It is always funny to read that one needs OO approches to do anything 
 useful. What one needs is a modular approach, re-factoring, and knowing 

I never said that you NEED OO approach to do anything. I found some
problems where an OO approach helped me better than a linear approach,
and the inverse is also true.

My point was that a language that gives you the choice of programming
style is interesting. Both CF and PHP give you the choice to use OOP or
not.

Today, everyone agrees that procedural languages are an evolution from
BASIC-style linear programming.

Also, one can agree that OOP is an evolution from procedural
programming. Now, one can choose to stick with linear programming,
procedural programming or OOP. This is a matter of personal taste,
trade-offs that have a different meaning from one individual to another.

You can achieve modularity with procedural coding. But, you need to do
it yourself, while modularity is at the heart of OOP. You may prefer
linear or procedural coding over OOP, but surely not for modularity.

Stéphane

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] syslog() /openlog() and wtf is LOG_LOCAL_0

2005-07-04 Thread Jochem Maas

hi everyone,

is there anyone out there that can explain the following constants:

LOG_LOCAL0
LOG_LOCAL1
...
LOG_LOCAL*

in relation to openlog() and syslog()

basically I want to do two things:

1. log to the apache error log from a script called via the webserver
2. log to the apache error log from a script called via the cmdline (usually
cron)

I have 1. working on a dev server - but the live server doesn't seem to
want to log jackshit. 2. I can't get working for the life of me

anybody been down this rabbit hole? care to show an example to this
desperate fool? or something?

rgds,
Jochem

(I have googled/ read the manpage,etc, etc - but I'm at a total loss)

(please someone help, before I gouge my eyes out ... I can almost hear you lot
not speaking up on purpose ;-)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Removing nonlatin characters

2005-07-04 Thread Dotan Cohen
On 7/4/05, Rene Brehmer [EMAIL PROTECTED] wrote:
 Documented research indicate that on Fri, 1 Jul 2005 13:58:23 +0300, Dotan
 Cohen wrote:
 
  On 6/29/05, Rene Brehmer [EMAIL PROTECTED] wrote:
  I think you mean something like this:
 
  function stripAccents($string) {
$returnString = strtr($string,
'àáâãäçèéêëìíîïñòóôõöšùúûüýÀÁÂÃÄÇÈÉÊËÌÍÎÏÑÒÓÔÕÖŠÙÚÛÜÝ',
  'acnosyACNOSY');
$returnString =
  str_replace('æ','ae',str_replace('Æ','AE',$returnString));
$returnString =
  str_replace('ø','oe',str_replace('Ø','OE',$returnString));
$returnString = str_replace('ß','ss',$returnString);
return $returnString;
  }
 
  This function is part using code once posted on this list, part my own
  creation.
 
 Thank you Rene. Does this approach have any special advantages over
 recode_string?
 
 Totally forgot ... there is one advantage that you can control what the
 characters are replaced with ... but I dunno if recode_string does as good
 a job ...
 
 --
 Rene Brehmer
 aka Metalbunny
 
 We have nothing to fear from free speech and free information on the
 Internet, but pop-up advertising!
 
 http://metalbunny.net/
 My little mess of things...
 

You should see how windows tries to alphabetize hebrew! Actually, XP
is not so bad (unless the hebrew has vowels), but what is annoying is
the inconsistency. Winamp (not a MS product) and Media Player 10 
organize differently- and neither of them are correct!

I suppose that I could add hebrew to your function. I would just
replace every hebrew character with ? as hebrew is not mixed in with
latin letters in normal usage (nor is it very compatable). Would you
like me to send to you the function afterward?

Dotan
http://lyricslist.com/lyrics/artist_albums/238/guns_n_roses.php
Guns N' Roses Song Lyrics


[PHP] Returned mail: see transcript for details

2005-07-04 Thread Mail Delivery Subsystem
Your message was undeliverable due to the following reason(s):

Your message could not be delivered because the destination server was
not reachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.

Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.

Your message was not delivered within 6 days:
Server 96.8.92.88 is not responding.

The following recipients could not receive this message:
php-general@lists.php.net

Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Help with preg_replace

2005-07-04 Thread Marcos Mendonça
Hi list

I need help to solve a preg_replace() problem.

I have a snippet of html code that contains some links.

I have an array thats contains all links inside that snippet of html code.

What i need to do is replace all the links in the code by another on.

So this is what i´m trying to do:

//links that should be replaced
$url = array(
array(id = 0, url = 
http://www.silika.com.br/conarh/mala3;),
array(id = 1, url = http://www.conarh.com.br;),
array(id = 2, url =
http://www.conarh.com.br/main_frameset.php?secao=congressoidioma=portpagina=http://www.conarh.com.br/programacao/pub/index.php?tipo_barra=laranja;),
array(id = 3, url =
http://www.conarh.com.br/main_frameset.php?secao=congressoidioma=portpagina=http://www.conarh.com.br/mensagem/pub/mensagem.php?id_mensagem=insc_temptipo_barra=laranja;),
array(id = 4, url =
http://www.silika.com.br/conarh/patrocinio/patrocinio.htm;));

$escape_chars = array(?, /);
$escaped_chars = array(\?, \/);

$matches = array();

foreach ($url as $link) {
$pattern = / . str_replace($escape_chars, $escaped_chars, 
$link[url]) ./;
$newurl = URL_LINKS.linkId=.$link[id].rId=1;
$body_html = preg_replace($pattern, $newurl, $body_html, 1);
}

This works fine for links with id 0, 1 and 4. But i haven´t been able
to figure out how to match and replace links with id 2 and 3.

How do I get my regex to match and replace those links as well? Any
help appreciated.

Thanks.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: Building sapi_apache2

2005-07-04 Thread Catalin Trifu
I think you are looking for IfModule mod_php5.c or IfModule mod_php4.c
These are valid in case you compiled and loaded PHP as an Apache module.

Catalin


Gaby vanhegan wrote:
 Hi,
 
 I have php 5.0.4 running fine on Fedora Core 2 under Apache 2.0.49.  To
 all intents and purposes, PHP works fine.  The only problem I have is
 with Plesk, which uses the presence of the sapi_apache2 module to turn
 PHP on or off for the various sites that it controls:
 
 IfModule sapi_apache2.c
 php_admin_flag engine on
 php_admin_value open_basedir
 /home/httpd/vhosts/stells.co.uk/httpdocs:/
 /IfModule
 
 The problem is that the sapi_apache2 module isn't built into php. 
 phpinfo() shows no mention of this module, but on other systems I have
 seen it compiled in.  How do I build php 5.0.4 to have this module
 included?
 
 I'm sorry for the cross posting, the php-install list was silent on the
 matter, and I'm pretty sure it's not a Plesk related issue.  I have
 already googled extensively for this but with no joy, as well as trawled
 the Plesk support forums and PHP list archives.  Also, as this is not my
 machine, the client requests Plesk, so I can't just turn that off.
 
 I'm sure the problem is a very small and minor one, but I just can't see
 it!
 
 Gaby
 
 -- 
 Junkets for bunterish lickspittles since 1998!
 [EMAIL PROTECTED]
 http://weblog.vanhegan.net

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Building sapi_apache2

2005-07-04 Thread Gaby vanhegan

On 4 Jul 2005, at 19:58, Catalin Trifu wrote:

I have php 5.0.4 running fine on Fedora Core 2 under Apache 2.0.49.  
To

all intents and purposes, PHP works fine.  The only problem I have is
with Plesk, which uses the presence of the sapi_apache2 module to turn
PHP on or off for the various sites that it controls:

IfModule sapi_apache2.c
php_admin_flag engine on
php_admin_value open_basedir
/home/httpd/vhosts/stells.co.uk/httpdocs:/
/IfModule


I think you are looking for IfModule mod_php5.c or IfModule 
mod_php4.c
These are valid in case you compiled and loaded PHP as an Apache 
module.


Catalin


True, but this is Plesk that is doing this, not my Apache 
configuration.  I've seen PHP5 on Apache2 servers that have the 
sapi_apache2 module installed, and the module being listed in 
phpinfo(), but I can't work out how to force it to compile the module 
in...


Gaby

--
Junkets for bunterish lickspittles since 1998!
[EMAIL PROTECTED]
http://weblog.vanhegan.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Help with preg_replace

2005-07-04 Thread Jason Wong
On Tuesday 05 July 2005 02:21, Marcos Mendonça wrote:

 This works fine for links with id 0, 1 and 4. But i haven´t been able
 to figure out how to match and replace links with id 2 and 3.

Works for me. Check whether $body_html really does contain what you're 
looking for in id 2  id 3.

You may also want to consider using preg_quote() instead of str_replace().

-- 
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems Integrators
* Web Design  Hosting * Internet  Intranet Applications Development *
--
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
--
New Year Resolution: Ignore top posted posts

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Building sapi_apache2

2005-07-04 Thread Richard Lynch
On Mon, July 4, 2005 12:14 pm, Gaby vanhegan said:
 On 4 Jul 2005, at 19:58, Catalin Trifu wrote:
 True, but this is Plesk that is doing this, not my Apache
 configuration.  I've seen PHP5 on Apache2 servers that have the
 sapi_apache2 module installed, and the module being listed in
 phpinfo(), but I can't work out how to force it to compile the module
 in...

WILD GUESS ALERT!!!

Maybe that's only on if you've compiled Apache in that threaded mode
as aopposed to the non pre-fork mode or whatever it is...

This is nothing more than a guess.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] syslog() /openlog() and wtf is LOG_LOCAL_0

2005-07-04 Thread Richard Lynch
On Mon, July 4, 2005 8:32 am, Jochem Maas said:
 hi everyone,

 is there anyone out there that can explain the following constants:

 LOG_LOCAL0
 LOG_LOCAL1
 ...
 LOG_LOCAL*

 in relation to openlog() and syslog()

 basically I want to do two things:

 1. log to the apache error log from a script called via the webserver
 2. log to the apache error log from a script called via the cmdline
 (usually
 cron)

 I have 1. working on a dev server - but the live server doesn't seem to
 want to log jackshit. 2. I can't get working for the life of me

#1 works if you set up php.ini and httpd.conf with their default values
and use http://php.net/error_log

#1 doesn't work if you change around your httpd.conf and/or php.ini to log
stuff somewhere else, or turn off error_log entirely.

#2 will probably work best if you use logger
man logger
Only I'm not 100% sure you can force logger to stick stuff into Apache's
log, and *WHY* you would do that when Apache IS NOT INVOLVED from your
command line is beyond my ken...

Seems to me you're just going to confuse things by sending error messages
to Apache's logs when they are NOT going through Apache.

Better to have a /var/log/php that the command line sends stuff to, imho.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] PHP+Oracle or PL/SQL Web Application - which one is efficient?

2005-07-04 Thread Richard Lynch
On Mon, July 4, 2005 6:36 am, Rasim SEN said:
 I need an advice about  PHP+Oracle or PL/SQL Web Application.

 We are using at the moment  PL/SQL Web Application for our all pages. But
 some of my friends says that php+oracle more effiecient than pl/sql.

 Does anybody have exprience or statistical data about this. Or how can we
 compare them?

You should probably Google for benchmark Oracle PL/SQL and see what
turns up.

Odds are really good somebody has made a comparison before...

Of course, you have to be REALLY careful that the comparison was made by a
relatively unbiased entity, that they are using the same versions of the
software as you, that they used similar hardware, that their needs/usage
are similar, that...

Hmmm.  Maybe you'd be better off just testing it for yourself. :-^

I have no doubt that some benchmark can prove Oracle is faster/slower
than PL/SQL. I also have no doubt that *SOME* benchmark can prove MS
Access is faster than Oracle. :-v

So unless Google turns up a BUNCH of benchmarks and they ALL say X is
better, you're gonna need to test for yourself.

-- 
Like Music?
http://l-i-e.com/artists.htm

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Building sapi_apache2

2005-07-04 Thread Gaby vanhegan


On 4 Jul 2005, at 21:35, Richard Lynch wrote:


On Mon, July 4, 2005 12:14 pm, Gaby vanhegan said:

On 4 Jul 2005, at 19:58, Catalin Trifu wrote:
True, but this is Plesk that is doing this, not my Apache
configuration.  I've seen PHP5 on Apache2 servers that have the
sapi_apache2 module installed, and the module being listed in
phpinfo(), but I can't work out how to force it to compile the module
in...


WILD GUESS ALERT!!!

Maybe that's only on if you've compiled Apache in that threaded 
mode

as aopposed to the non pre-fork mode or whatever it is...

This is nothing more than a guess.


Thank you for the suggestion Richard.  This is something that had 
occurred to me as well, as the httpd was the stock version that shipped 
with Fedora Core 2.  However, there is no mention of sapi_apache2 
anywhere in the httpd source tree for version 2.0.49 (the stock version 
on Fedora Core 2) and on the latest 2.0.51 version.  The only mention 
that I can find is in the php5 source, in the apache2_handler and 
apache2_filter code.


Is there a specific compile switch that I need to build Apache with in 
order to allow php5 to see and use the sapi_apache2 module?  I could 
see nothing specific in a ./configure --help for either Apache or 
php.  I have the rpm .spec file, so I could theoretically do a nice 
clean rebuild if I needed to.


Gaby

--
Junkets for bunterish lickspittles since 1998!
[EMAIL PROTECTED]
http://weblog.vanhegan.net

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] {Virus!} [EMAIL PROTECTED]

2005-07-04 Thread farcry-user
Atención: Este mensaje contenía uno o más anexos que han sido eliminados
Atención: (letter.zip).
Atención: Por favor, lea el(los) anexo(s) VirusWarning.txt para más 
información.

Your message was not delivered due to the following reason:

Your message could not be delivered because the destination server was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.

Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.

Your message was not delivered within 4 days:
Server 83.131.228.15 is not responding.

The following recipients did not receive this message:
php-general@lists.php.net

Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.

Este es un mensaje del Servicio de Protección de Virus para Correo
Electrónico MailScanner
--
El archivo anexado original letter.zip
se considera que ha sido infectado por un virus y el mismo
ha sido reemplazado por este mensaje de aviso.

Si desea recibir una copia del archivo anexado original *infectado*, 
por favor envíe un correo electrónico al departamento de soporte 
incluyendo este mensaje. Alternativamente, puede llamar a dicho
departamento de, teniendo el contenido de este mensaje a mano.

El Mon Jul  4 19:09:12 2005 el analizador de virus dijo:
   F-Prot: letter.zip-letter.exe  Infection: W32/[EMAIL PROTECTED]

Nota para el departamento de soporte: Revisar en the MailScanner en 
/var/spool/MailScanner/quarantine
(mensaje j6508viN026484).
--
Postmaster

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Returned mail: Data format error

2005-07-04 Thread The Post Office
The message was not delivered due to the following reason:

Your message could not be delivered because the destination server was
not reachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.

Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.

Your message was not delivered within 1 days:
Server 6.124.196.194 is not responding.

The following recipients did not receive this message:
php-general@lists.php.net

Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Returned mail: see transcript for details

2005-07-04 Thread Bounced mail
The message was not delivered due to the following reason(s):

Your message could not be delivered because the destination computer was
unreachable within the allowed queue period. The amount of time
a message is queued before it is returned depends on local configura-
tion parameters.

Most likely there is a network problem that prevented delivery, but
it is also possible that the computer is turned off, or does not
have a mail system running right now.

Your message was not delivered within 4 days:
Server 70.0.111.253 is not responding.

The following recipients could not receive this message:
php-general@lists.php.net

Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] clear the page and continue

2005-07-04 Thread Fred
OK that works as well. Thanks again.

James [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
 Fred wrote:
 Outstanding James! A different approach to get a more flexible result.
 Fred.

 or document.getElementById(blah).style.display = 'none';


 That would also work well.

 innerHTML is not supported by many browsers


 I wasn't aware of this, thanks!

 Cheers,
 James Relyea. 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] foreach in php4

2005-07-04 Thread Dotan Cohen
I am on php 4.x. I see that in php5 I can do this (not the  before $value):
$arr = array(1, 2, 3, 4);
foreach ($arr as $value) {
   $value = $value * 2;
}
// $arr is now array(2, 4, 6, 8)

In order to create the same effect, I have been doing this:
$pre_arr = array(1, 2, 3, 4);
$arr = array();
foreach ($pre_arr as $value) {
   $arr[] = $value * 2;
}
// $arr is now array(2, 4, 6, 8)

Is there a better way? Thanks.

Dotan Cohen
http://lyricslist.com/lyrics/artist_albums/327/martin_ricky.php
Martin, Ricky Song Lyrics

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Unsubscribe me

2005-07-04 Thread anshul
Please unsubscribe me.
I don't wanna recieve many e-mails to inbox.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php