[PHP] list and (array) get_val

2002-12-18 Thread Ns_Andy
a.php and I typed a.php?b=c I expected c would be printed, What the problems have I made? -- Regards, Ns_Andy, [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] list and (array) get_val

2002-12-18 Thread Ns_Andy
ic, thanks all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: writing to the db on close

2003-02-05 Thread Ns_Andy
Try the window.open method to popup a php page that does the desired job. window.onunload=doRec function doRec() { window.open("writeToDB.php") } and writeToDb.php window.close() -- Regards, Ns_Andy, [EMAIL PROTECTED] "Edward Peloke" <[EMAIL PROTECTED]> wrote in

[PHP] Re: fputs / fwrites

2003-02-05 Thread Ns_Andy
yes,I think this is the script you're looking for. However,This script requires you to have lcnt.txt existing at the time this script runs. -- Regards, Ns_Andy, [EMAIL PROTECTED] "Lee Herron" <[EMAIL PROTECTED]> wrote in message 005601c2cce4$48e59350$6501a8c0@bluewebc

[PHP] Cookie header and location header.

2003-07-09 Thread Ns_Andy
In PHP4.3.x If I set a cookie with setcookie and send a location header immediately. I find no problem for the task. That is, And testcookie can be found in the latter page. However, I can't In PHP4.1.x What's the problem? A compromised method of using meta refresh of zero second is used. --

[PHP] a Question of Returning References

2002-10-12 Thread Ns_Andy
eg function &A() {.. What does & mean here? I've the reference seen ,but I still don't understand too much. Can anyone give me more examples of Returning References? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] what does _\\_ mean?

2002-10-12 Thread Ns_Andy
I ,beginner of PHP, would like to ask what _\\_ means? Here's the code: $fp = @fopen ("a.txt") while ($buf = @fgets($fp,1024) { trim($buf) if (substr($buf,-1 == _\\_) { . .. with the above code Two or more lines ended with \ will be joined, for example, aa\ a become , aaa --

[PHP] Re: what does _\\_ mean?

2002-10-13 Thread Ns_Andy
> Here's the code: > $fp = @fopen ("a.txt") > while ($buf = @fgets($fp,1024) { > trim($buf) > if (substr($buf,-1 == _\\_) { i missed a ) if (substr($buf,-1) == _\\_) { -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Regular Expression (for ereg(i))

2002-10-14 Thread Ns_Andy
if I want eregi to return false if the string contains < char, for example, "Ahttp://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] What's wrong with my regular expression?

2002-10-14 Thread Ns_Andy
$line = 'http://www.yahoo.com";>http://www.yahoo.com'; if (eregi("\"'])+([\"'])?>[^<>]+<\/a[ ]*>",$line,$matches)) { print (htmlspecialchars($matches[0])); } it works fine, however if $line .= 'Xwww.php.net'; is added before eregi, it doesn't,what's wrong with my code? -- Regards, -- PHP Gen

Re: [PHP] What's wrong with my regular expression?

2002-10-14 Thread Ns_Andy
turns the second match > } > > Also, your regular expression didn't cover all the possibility (eg: > spaces between href and =. I might have overdone it with mine but, hey, > I've got a turkey to cook and it's already late ;-) > > Cheers, > > > Marco

[PHP] __file__ and __line__

2002-10-14 Thread Ns_Andy
what's its use and how to use(Example)? Thanks -- Regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: regular expression

2002-10-15 Thread Ns_Andy
perl: preg_match '/\'"]+[\'"]?>/i' or eregi '\'"]+[\'"]?>' -- Regards, "Noodle Snacks" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > what would be a simple regular expression for ? > > for future reference are there any good references for them? > > > --

[PHP] to connect an access database,

2002-10-15 Thread Ns_Andy
which method and object should I use? and may I have some related examples? -- Regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How to use imap?

2002-10-15 Thread ns_andy
I've imap-2001a.tar downloaded, but don't know how to get it work? I am using Windows 2k , Can I have the steps of installation of imap? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to use imap?

2002-10-16 Thread Ns_Andy
please kill. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Similar settings of encoding constants as codepage in ASP?

2002-11-21 Thread Ns_Andy
Codepage can be used to set different encoding in ASP, what about PHP? -- Regards, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php