php-windows Digest 1 Feb 2003 10:56:14 -0000 Issue 1566
Topics (messages 18280 through 18287):
รู้จักมั้ย...โบว์(อีกครั้ง)
18280 by: Matrix
Apache 2.0.44; PHP 4.3.0; CGI implemented WinXP Home
18281 by: Shaggy
Something like trim()
18282 by: Cam Dunstan
18287 by: Jill.Ramonsky.Aculab.com
error - permissions?
18283 by: Pat Johnston
Re: Mail newbie Question
18284 by: toby z
Re: Wierd Windows Problems
18285 by: Bobo Wieland
Multiple MySQL Queries
18286 by: Uttam
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 ---
ไม่รู้เหมือนกันนะว่าmailอันนี้มันมาได้ยังไง
แต่ในถานะที่เราเคยอยู่อังกฤษมาก่อน
เรารู้แค่ว่าพี่โบว์ดูถูกคนจนนะ
อย่างเราก้อเคยโดน
ตอนเราไปที่นั่นใหม่ๆมีพี่คนนึงเค้ามาชวนเราไปเที่ยว
พี่ผู้หญิงนะ เค้าเล่าว่าเนี่ยคนชื่อโบว์นะน่ารักมากเลย
คนจีบเยอะมาก เราก้ออยากเจอ
เลยบอกให้พี่เค้าพาไปเจอหน่อยสิ
โหเจอครั้งแรกน่ารักมากกกกกกกกกกกกกกกกกกกกกกกกกกกก
แต่พูดจาไม่ค่อยดีอ่ะ เค้าแบบเหมือนดูถูกๆเลยอ่ะ
ตอนที่เค้าสั่งเบียร์เค้าก้อต้องแบบเอาที่ดีที่สุดนะ
ไม่งั้นโบว์ไม่ดื่ม เราก้อแบบไม่มีตัง
เค้าก้อหันมามองถามว่าไม่ดื่มเหรอ
อายุไม่ถึงเหรอ เราก้อตอบว่าอืมไม่อยากใช้เงินน่ะพี่
กลัวไม่พอ เค้าก้อยิ้มๆ
ถามเราว่าน้องกลัวจนเหรอ
งั้นไปประเทศอื่นสิจะได้ไม่จน..........
(ตอนนั้นเราไม่รู้ว่าพี่เค้าเมารึเปล่าคือเค้าอาจจะเมาก้อได้)
แต่เค้าชอบไปผับนะไปกับผู้ชายทั้งนั้นด้วยล่ะ
เค้าจะคบแต่พวกไฮโซ ฐานะธรรมดาเค้าไม่คบอ่ะ.. พูดถึงผับนะ
นานๆเราไปทีแต่ก้อเจอพี่เค้าทุกวันเลย....
เค้าพวกชอบปาร์ตี้อ่ะ
ตอนนี้เราอยู่นิวซีแลนด์เพราะแม่ส่งอังกฤษไม่ไหว
พี่โบว์เค้าก้อโทรมาหาเรา อ้าวจะย้ายเหรอ
ทำเสียงเหมือนดูถูกๆเราก้อโกรธเค้านะ
แบบเค้าดูถูกเราบ่อยอ่ะเพราะเราจนไม่ไฮโซเหมือนคนอื่นอ่ะ
เราเลยตอบไปว่า ใช่ค่ะ
กลัวจนไงเลยต้องย้าย เค้าคงรู้ว่าเราประชด
เลยตอบเราแบบกระแทกๆๆว่า อีห่า
แล้ววางไปเลยอ่ะ.......
--------- ไม่ได้เขียนเองนะ
ก๊อบมาจากเพื่อนที่อยู่Auckland
เค้าไปเขียนลงกระทู้ๆนึงมา-------------
คือเราก็ก๊อบมาอีกทีง่ะ อันนี้ไม่แรงเท่าไหร่
แต่ตอนที่เราอ่านมันมีรูปด้วยง่ะ
เป็นรูปโบกะเพื่อนผู้ชายแบบใส่เกาะอกโชสะดือดูเมาๆ
ดังนั้นเราไม่รู้ว่ามันจริงมั้ย
******************************
ความเห็นที่ 504
เป็นคนหนึ่งที่ได้อ่านเมลล์อ่ะนะ เราเชื่อ
ไม่มีมูลหมามันไม่ขี้หร้อก อีสองคนนี้ ตอแหล
มาแต่ไหนแต่ไรแล้ว มีเพื่อนที่เรียน อังกฤษหรือ เมกา
หรือป่าวล่ะลองไปถามเพื่อนคุณดูสิว่าสองคนนี้ เป็นอย่างไร
แต่ที่เพื่อนเราเคยโดนนะ แบมเนี้ยะ
เค้ามีร้านประจำ และมีที่นั่งประจำของเค้า แล้วบังเอิญว่า
วันนั้นเพื่อนเราดันกรรมเวรมาบังตาเสือกไปนั่งที่ประจำของคุณเธอเข้าพอดี
คุณเธอก็ดันมากินข้าวร้านในวันนั้นอีกด้วย
แบมเห็นเข้าไม่พอใจ บอกให้ลุกไปนี่ที่ประจำของเค้า
เพื่อนเรางี้งง เป็นไก่ตาแตกเลยอ่ะ
แถมมีว่าเกรี้ยวกราดอีกด้วย
นี่ขนาดตอนนั้นคุณเธอยังไม่ได้เล่นการเมืองอ่ะนะ ยังไม่ดังด้วย
แล้วตอนนี้คุณเธอจะเป็นยังไงบ้างก็ไม่รู้
คิดเอาเองล่ะกัน
คอนเฟริ์ม ว่า ข่าวนี้ 100% จ้า ไม่ได้โม้
เคยสงสัยมั้ยว่าทำไมฟลุคถึงไม่ค่อยมีงานออกมาช่วงนี้บ้าง
ตอบเพราะว่าโบว์สั่งไม่ให้รับงานและโบว์ยังชอบให้ฟลุคออกค่าชุดให้เวลา
โบว์ไปออกงาน ข่าวนี้confremชัวร์
เพราะฟลุคเป็นคนบ่นเอง และยังมีความจริงอีกมากที่คุณไม่รู้เกี่ยวกับผู้หญิงคนนี้
เขาไม่ได้เป็นแบบที่พวกเราเห็น
ข้อ comment เล่นๆที่คิดเอาเอง
ตอนแรกบอกว่าจะหมั้น 2 ตุลา แต่ง 22 ตุลา
ตดยังไม่ทันหายเหม็นก็หมั้นก่อนซะแล้ว
จดทะเบียนสมรสอีก สายฟ้าแลบมาก
ประมาณว่าโบคำนวณอายุลูกในครรภ์ แล้วคิดใหม่
กลัวลูกจะไม่ครบเจ็ดเดือนแล้วอ้างว่าลูกคลอดก่อนกำหนดไม่ได้
เลยรีบแต่ง รีบมีข่าวว่าท้องแล้ว 1 เดือน
แต่ความจริงปาเข้าไป 3-4 เดือนแล้ว มั้ง
ม่ายรู้สิ สงสัยว่ะ คู่นี้ลนลาน ลุกลี้ลุกลนชอบกล
ก็ขอให้อยู่กันยืดๆก็แล้วกัน
โบก็อย่าติดนิสัยแม่มาล่ะ เพราะแม่เธอก็หย่าตั้งสองครั้ง
ไม่อยากเม้าท์ ถ้า โบ จะท้องก่อนแต่งเพราะประวัติเธอโชคโชนมาก
ตอนอยู่ที่อังกฤษน่ะ แฟนเก่าเขาเป็นคนจ่ายให้ทุกอย่าง
ทั้งค่าเล่าเรียน ค่ากินอยู่ จบมาได้ก็เพราะผู้ชายเลี้ยง
จ่ายให้ทุกอย่าง พอผู้ชายเลิกถึงได้กลับมาเมืองไทยไง
เพราะไม่มีปัญญาอยู่ต่อ คนไทยใน london ก็รู้กันหมด
ตอนนี้คงสบายขึ้นหน่อยเพราะจับผู้ชายหน้าโง่ๆแต่มีตังค์แต่งงานด้วยได้
แต่ไม่นานก็เลิกคอยดูดิ ประวัติไม่ดีทั้งสองสามีภรรยา
--- End Message ---
--- Begin Message ---
Hi there =D;
i got the following problem:
When i want to use variables in URLs
for example:
http://192.168.0.1/Treff/index2.php?site=events
i got this error:
Warning: main(.php) [function.main]: failed to create stream: No such file
or directory in c:\stuff\homepage\treff\index2.php on line 34
Warning: main() [function.main]: Failed opening '.php' for inclusion
(include_path='.;c:/stuff/homepage/treff;c:/stuff/homepage/magus;c:/stuff/ho
mepage/bgallery') in c:\stuff\homepage\treff\index2.php on line
i discovered that the $site variable is empty
next is my php.ini
it seems, that there are workarounds
with some kind of magicvariables but i donดt want to change my code
so plzzzzzzz do u have any suggestions?
thx so far
Shaggy
--- End Message ---
--- Begin Message ---
Cybot, try this ....
function string_dryclean($dirtystring) {
$cleanstring = str_replace("\n", " ", $dirtystring);
$cleanstring = trim(str_replace("\t", " ", $cleanstring));
do {
$cleanstring = str_replace(" ", " ", $cleanstring);
} while (strpos($cleanstring, " ") > 0);
return $cleanstring;
}
use it like this...
$ugly_evil_string = " hello \n\n \n\t world \n\n\t ";
$decent_law_abiding_string = string_dryclean($ugly_evil_string);
----- Original Message -----
From: "cybot" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 01, 2003 1:58 AM
Subject: Re: [PHP-WIN] Something like trim()
> is there no more complicated solution for this? ;-)
>
> nothing for bad!
>
> B.A.T. Svensson wrote:
> > Something like (not tested and compiled - please find the bugs :))
> > will remove white space dups:
> >
> > char *TrimInString(char *pzWashMe)
> > {
> > if (!pzWashMe) return NULL;
> >
> > register char *pzMarker = pzWashMe;
> > bool bStillTrimingString = false;
> >
> > while (StrReplacee("\t", " ", pzMarkerrReplacee("\n", " ", pzMarker))
> > ;;
> >
> > while (*pzMarker) { // loop 1
> > bool bStillTrimingString = false;
> >
> > while (*pzMarker && !isspace(*(pzMarker++)) // loop 2
> > ;;
> >
> > register int nIndex = 0;
> > while (isspace(*(pzMarker+nIndex++)) { // loop 3
> > bStillTrimingString = true;
> > }
> >
> > if (nIndex) {
> > strcpy(pzMarker, (pzMarker + nIndex));
> > }
> >
> > }
> >
> > return pzMarker;
> >
> > }
> >
> > First it replace tabs and newlines with blank spaces, then
> > the function will scann the string after a whitespace (loop 2).
> > If it finds one. Then it will try to justify the hypothese H that
> > this white space is followed by another white space (loop 3). If
> > H is true it will count the number of whitepace, and then move
> > the moving down data to just leave the first white space left.
> >
> > After that it falls into loop 1 again and check if we reach the
> > end of the string or not, if not, we do all the things once again.
> >
> >
> >
> >>-----Original Message-----
> >>From: Bobo Wieland [mailto:[EMAIL PROTECTED]]
> >>Sent: Thursday, January 30, 2003 8:26 AM
> >>To: [EMAIL PROTECTED]
> >>Subject: [PHP-WIN] Something like trim()
> >>
> >>
> >>Is there an easy way to get rid off white space characters in a string?
Like
> >>trim() but for the whole string and leaving single white spaces as they
are
> >>but removing all occurences of '\t','\n' and ' '(leaving a single '
> >>')...
> >>
> >>I've tried the manual but couldn't find anything...
> >>
> >>
> >>
> >>. bobo . www.elstudion.com . www.elstudion.com/bobo .
> >>
> >>
> >>--
> >>PHP Windows Mailing List (http://www.php.net/)
> >>To unsubscribe, visit: http://www.php.net/unsub.php
> >>
>
> --
> Sebastian Mendel
>
> [EMAIL PROTECTED]
>
> www.sebastianmendel.de
> www.tekkno4u.de
> www.nofetish.com
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Or just
$cleanstring = ereg_replace("[ \t\n]+"," ",trim($dirtystring));
Jill
-----Original Message-----
From: Cam Dunstan [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 01, 2003 2:24 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Something like trim()
Cybot, try this ....
function string_dryclean($dirtystring) {
$cleanstring = str_replace("\n", " ", $dirtystring);
$cleanstring = trim(str_replace("\t", " ", $cleanstring));
do {
$cleanstring = str_replace(" ", " ", $cleanstring);
} while (strpos($cleanstring, " ") > 0);
return $cleanstring;
}
use it like this...
$ugly_evil_string = " hello \n\n \n\t world \n\n\t ";
$decent_law_abiding_string = string_dryclean($ugly_evil_string);
--- End Message ---
--- Begin Message ---
Hi
I get this error in a login page I've created. I am using root for testing
purposes only on localhost, but it keeps comming up with access denied.
I am wondering if this is a Windows 2000 permissions problem or are new
users denied in MySQL? Any idea?
Regards, PJ
Warning: mysql_connect() [function.mysql-connect]: Access denied for user:
'root@localhost' (Using password: YES) in c:\web\saddlerat\create_users.php
on line 19
--- End Message ---
--- Begin Message ---
hi duncan
i have to do this job for a client in a week or so
im sure its possible ..... ill start at it in a while
n ill let u no whatever it is k ?
good luck
toby ....
--- Duncan <[EMAIL PROTECTED]> wrote: > Hi All,
>
> Is it possible to create a page where visitors can for example
> submit their
> email address and a list of their demands, then the page mails it
> to a
> support address?
>
> Would I have to use a mail server of any kind to send the emails?
>
> Where could I find an example script that could do this?
>
>
>
> Many thx in adv
>
>
__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com
--- End Message ---
--- Begin Message ---
> imo: <button> tag isn't standard HTML..
well... you're wrong there... here's a little from the html-manual:
"Buttons created with the BUTTON element function just like buttons created
with the INPUT element, but
they offer richer rendering possibilities: the BUTTON element may have
content. For example, a BUTTON
element that contains an image functions like and may resemble an INPUT
element whose type is set to
"image", but the BUTTON element type allows content.
Visual user agents may render BUTTON buttons with relief and an up/down
motion when clicked, while
they may render INPUT buttons as a "flat" images."
.bobo
--- End Message ---
--- Begin Message ---
in MySQL client i can run multiple queries in a single statement like:
"CREATE TEMPORARY TABLE x (a CHAR(6), b FLOAT(12,4)); INSERT INTO x SELECT
a, sum(*blah*)..FROM y ; SELECT * FROM x INNER JOIN z ....;"
but in PHP ";" is not allowed in function mysql_query().
Is there some workaround for running the above query in PHP in a SINGLE
mysql_query() call?
thanx!
--- End Message ---