[PHP] how can convert phonetic symbols and chinese pinyin to NCR(Numeric character reference)

2008-06-16 Thread gege wan
hello all, i want convert the phonetic symbols and chinese pinyin to NCR. i use the function mb_encode_numericentity do it, but i can't got the true convmap table, so i can't convert the phonetic symbols and chinese pinyin to NCR correctly. how can i get the true convmap table? thanks for any help

RE: [PHP] Kindla 0T, but here goes...

2008-06-16 Thread Jason Norwood-Young
On Fri, 2008-06-13 at 16:32 -0500, Boyd, Todd M. wrote: > > -Original Message- > > From: Daniel Brown [mailto:[EMAIL PROTECTED] > > Sent: Friday, June 13, 2008 4:13 PM > > To: Ryan S > > Cc: php php > > Subject: Re: [PHP] Kindla 0T, but here goes... > > > > On Fri, Jun 13, 2008 at 4:49 PM

[PHP] conversion of unicode characters into utf-8

2008-06-16 Thread valsaraj
Hi, I am using code $val = htmlentities($val, ENT_QUOTES, "UTF-8"); but it's not working in version 5.2.0. Is there any additional configuration needed for this. it's working well in 5.2.2. Could you please help me??? -- View this message in context: http://www.nabble.com/conversion-of-unicode

Re: [PHP] looping through a database

2008-06-16 Thread paragasu
i am not sure what u want to do, for this case you need to tell us about your database table structure. i quess you have table like this.. assume the table name is table1 and there are ten column in it file1..file10 respectively |table1 | |member_id | |file1| |file2

Re: [PHP] mysqliconnect issue

2008-06-16 Thread Chris
Jason Pruim wrote: > Okay, So I'm going to just assume that my issue is the fact that I'm > tired... and my mind won't work properly. > > [Mon Jun 16 22:27:58 2008] [error] PHP Warning: mysqli_connect() > expects parameter 5 to be long, string given > > Now parameter 5 is the database name, I ec

[PHP] mysqliconnect issue

2008-06-16 Thread Jason Pruim
Okay, So I'm going to just assume that my issue is the fact that I'm tired... and my mind won't work properly. [Mon Jun 16 22:27:58 2008] [error] PHP Warning: mysqli_connect() expects parameter 5 to be long, string given Now parameter 5 is the database name, I echoed out each of the para

Re: [PHP] looping through a database

2008-06-16 Thread Wolf
Richard Kurth wrote: Wolf wrote: Richard Kurth wrote: Could you please give me an idea where to start looking while($row=mysql_fetch_array($sql_result)){ if ($row["number"]==1) { File 1 This is the file Delete }else{ File1 Add } } What is the query being executed? This is the

Re: [PHP] looping through a database

2008-06-16 Thread Richard Kurth
Wolf wrote: Richard Kurth wrote: I am looping through a database of files that are numbers 1 through 10 if number 1 is in the database I what to print out the first table below if it is not then print the else section below. Then loop through the database to see if 2 through 10 are there and

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Wolf
Michelle Konzack wrote: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe* **

Re: [PHP] looping through a database

2008-06-16 Thread Wolf
Richard Kurth wrote: I am looping through a database of files that are numbers 1 through 10 if number 1 is in the database I what to print out the first table below if it is not then print the else section below. Then loop through the database to see if 2 through 10 are there and do the same t

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Nathan Nobbe
On Mon, Jun 16, 2008 at 2:11 PM, Nitsan Bin-Nun <[EMAIL PROTECTED]> wrote: > Umm yes I don't think so too, but thats one of the only possibile options.. > so give it a shot because you have nothing to loose (: > > I also think he should speak to the server administrator / the guy he pays > him the

RE: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Kirk . Johnson
"Jim Feniello" <[EMAIL PROTECTED]> wrote on 06/16/2008 03:16:02 PM: > Anyone know if PHP keys off the content-disposition for form pre-processing > to populate the $_FILES array? I believe that the $_FILES array is only populated when the tag contains 'enctype="multipart/form-data"' and there

Re: [PHP] Re: Strategy to protect images

2008-06-16 Thread Daniel Brown
On Mon, Jun 16, 2008 at 5:23 PM, Jonesy <[EMAIL PROTECTED]> wrote: > On Sun, 15 Jun 2008 14:07:14 -0400, tedd wrote: >> At 4:11 PM +0100 6/15/08, Richard Heyes wrote: But, a sophisticated user will find a way around that. >>> >>>A less sophisticated one will use the PrintScr key... :-) >> >> Mu

[PHP] Re: Strategy to protect images

2008-06-16 Thread Jonesy
On Sun, 15 Jun 2008 14:07:14 -0400, tedd wrote: > At 4:11 PM +0100 6/15/08, Richard Heyes wrote: >>>But, a sophisticated user will find a way around that. >> >>A less sophisticated one will use the PrintScr key... :-) > > Must be a windozes thing. :-) Nope. Works a treat in KDE in linux. Jonesy

RE: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Jim Feniello
Anyone know if PHP keys off the content-disposition for form pre-processing to populate the $_FILES array? In my html form example, the raw data looks like: Content-Disposition: form-data; name="resp"; filename="tada.wav" Content-Type: audio/x-wav But the form posting from the voicexml browser/ser

[PHP] looping through a database

2008-06-16 Thread Richard Kurth
I am looping through a database of files that are numbers 1 through 10 if number 1 is in the database I what to print out the first table below if it is not then print the else section below. Then loop through the database to see if 2 through 10 are there and do the same thing. Of course what

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Nitsan Bin-Nun
Umm yes I don't think so too, but thats one of the only possibile options.. so give it a shot because you have nothing to loose (: I also think he should speak to the server administrator / the guy he pays him the money and ask what to do, I'm pretty sure that he had already encountered something

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Jim Lucas
Nitsan Bin-Nun wrote: Okay, I got the idea, I think you can use PHP to write .htaccess file for IP blocking or something like that (shared hosts allow this and I'm pretty sure that Apache .htaccess are able to manage IP blocking). As long as Apache allows .htaccess files But... even then wh

Re: [PHP] Canvas examples

2008-06-16 Thread Ray Hauge
Richard Heyes wrote: I guess the other browser doesn't do much with ? Nope. Eg: This gets shown on none supporting browsers, but not on supportive browsers. MSIE just shows the text and doesn't do anything with the canvas. One thing about using a canvas is bandwidth. If it's a big

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Nitsan Bin-Nun
Okay, I got the idea, I think you can use PHP to write .htaccess file for IP blocking or something like that (shared hosts allow this and I'm pretty sure that Apache .htaccess are able to manage IP blocking). HTH, Nitsan On 16/06/2008, Jim Lucas <[EMAIL PROTECTED]> wrote: > > Nitsan Bin-Nun wrote

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Jim Lucas
Nitsan Bin-Nun wrote: I think you can handle this with 2 pages, the first is checking whether the user is permitted to upload or not and if so passing him to the upload form with a simple (bool) $_SESSION variable which indicates his permissions. If you will try to access the second page and the

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Andrew Ballard
On Mon, Jun 16, 2008 at 1:01 PM, Nitsan Bin-Nun <[EMAIL PROTECTED]> wrote: > I think you can handle this with 2 pages, the first is checking whether the > user is permitted to upload or not and if so passing him to the upload form > with a simple (bool) $_SESSION variable which indicates his permis

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Nitsan Bin-Nun
I think you can handle this with 2 pages, the first is checking whether the user is permitted to upload or not and if so passing him to the upload form with a simple (bool) $_SESSION variable which indicates his permissions. If you will try to access the second page and the $_SESS variable won't ex

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Per Jessen
Jim Lucas wrote: > Per Jessen wrote: >> Michelle Konzack wrote: >> >>> My biggest problem is, that the "/fileupload.php" was always >>> references >>> from outside my webspace. OK, I was thinking this can be solved >>> by >>> using HTTP_REFERER which has then worked for some days but NOW

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Jim Lucas
Per Jessen wrote: Michelle Konzack wrote: My biggest problem is, that the "/fileupload.php" was always references from outside my webspace. OK, I was thinking this can be solved by using HTTP_REFERER which has then worked for some days but NOW those pigs are back and sending spoofed H

RE: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Jim Feniello
I can't because it's a third party provider with a voicexml browser. The best I have is this log from apache mod_security: POST /temp/save2.php HTTP/1.1 Accept: */* Host: recording.repsstudio.com User-Agent: HVP/4.2 Content-Length: 37486 Content-Type: multipart/form-data; boundary=osb_inet_multip

Re: [PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Daniel Brown
On Mon, Jun 16, 2008 at 11:14 AM, Jim Feniello <[EMAIL PROTECTED]> wrote: > Hi, > > What would cause php to not put it in _files? The obvious is the > multipart/form-data but i've confirmed that. Anything else i can look into? What does the line for the file input in the HTML source say? Ca

[PHP] Binary data in $_POST, not in $_FILES, why?

2008-06-16 Thread Jim Feniello
Hi, I'm working on an app with a external provider (voicexml), which at the end of the day is posting an html form with normal and file data. I've got 3 test cases, one is an html form with fields and a file, the other test case is another voicexml provider, and the third is my provider, whi

Re: [PHP] UK PHP Host/Developer Required

2008-06-16 Thread Daniel Brown
On Mon, Jun 16, 2008 at 5:33 AM, Robin Vickery <[EMAIL PROTECTED]> wrote: > > Having to do an emergency failover to a secondary hosting > facility on one of you busiest days of the year can put you in > a really bad mood. This no longer sounds like a hypothetical. ;-P -- Dedicated Servers

RE: [PHP] extension=mssql.so vs. ;extension=php_mssql.dll

2008-06-16 Thread Wei, Alice J.
Hi, I just realized after someone else replying to me saying that I need mssql.so instead of php_mssql.dll. What I don't understand is why every time when I tried to install this with yum by precessing yum install php, yum install apache, I can never see the phpinfo page, but when I install

Re: [PHP] Boa Webserver and PHP5

2008-06-16 Thread Daniel Brown
On Sat, Jun 14, 2008 at 11:12 AM, Michelle Konzack <[EMAIL PROTECTED]> wrote: > > * Do not Cc: me, because I READ THIS LIST, if I write here * > *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe

Re: [PHP] Re: Capture homepage screenshot

2008-06-16 Thread paragasu
well, i never try it for my self but somebody out there already develop a simple library to convert any HTML to image.. google for html2png give me http://marginalhacks.com/Hacks/html2jpg/ i believe there is more interesting solutions out there. tell me if you found one. good luck.. On 6/14/08,

Re: [PHP] Canvas examples

2008-06-16 Thread Richard Heyes
I guess the other browser doesn't do much with ? Nope. Eg: This gets shown on none supporting browsers, but not on supportive browsers. MSIE just shows the text and doesn't do anything with the canvas. One thing about using a canvas is bandwidth. If it's a big concern I would haza

Re: [PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Per Jessen
Michelle Konzack wrote: > My biggest problem is, that the "/fileupload.php" was always > references > from outside my webspace. OK, I was thinking this can be solved > by > using HTTP_REFERER which has then worked for some days but NOW > those pigs are back and sending spoofed HTTP_REFE

Re: [PHP] UK PHP Host/Developer Required

2008-06-16 Thread Richard Heyes
Out of hours technical support often gets billed at a punitive rate. Which is a bugger if their "out of hours" is your working day. >> >> It seems you haven't tried Rackspace (UK) yet. What do you mean? Personally I've had good experiences with Rackspace. -- Richard Heyes Employ me:

[PHP] Boa Webserver and PHP5

2008-06-16 Thread Michelle Konzack
* Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe* Hello,

[PHP] How to prevent DoS on PHP script?

2008-06-16 Thread Michelle Konzack
* Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe* Hello,

Re: [PHP] UK PHP Host/Developer Required

2008-06-16 Thread Robin Vickery
2008/6/14 Iv Ray <[EMAIL PROTECTED]>: > Robin Vickery wrote: >> >> Out of hours technical support often gets billed at a punitive rate. >> Which is a bugger if their "out of hours" is your working day. > > It seems you haven't tried Rackspace (UK) yet. > >> And while you might get tech support out

Re: [PHP] Canvas examples

2008-06-16 Thread Per Jessen
Richard Heyes wrote: >> I thought it was pretty cool too - I didn't know about , but >> your example says a lot, I think. > > But when you compare it to something like this: > > http://ejohn.org/apps/processing.js/examples/custom/molten.html > > it looks pretty basic (which it is). Mine is perh

Re: [PHP] Canvas examples

2008-06-16 Thread Richard Heyes
I thought it was pretty cool too - I didn't know about , but your example says a lot, I think. But when you compare it to something like this: http://ejohn.org/apps/processing.js/examples/custom/molten.html it looks pretty basic (which it is). Mine is perhaps an intro, whereas this illustrat

Re: [PHP] extension=mssql.so vs. ;extension=php_mssql.dll

2008-06-16 Thread T Lensselink
Wei, Alice J. wrote: > Hi, > > I am not sure what is exactly the problem with my configurations while I am > trying to configure Apache, PHP and FreeTDS throughout my attempts to install > these packages into my Linux. > > It appears that I am doing everything correctly as I am going through

[PHP] question about the week's data read and show

2008-06-16 Thread EVEL_LIU
Dears, Here is my question: I am write a project manage system. Now I need to echo one week’s data and send to html show. Any one got a good idea or codes? My code has some issues about the loop function. Could you help me check or give me some suggestion? The show item like this: *

Re: [PHP] Canvas examples

2008-06-16 Thread Per Jessen
Richard Heyes wrote: >> That's very cool, Richard. > > Well, thanks, but I wouldn't call it "very cool". I thought it was pretty cool too - I didn't know about , but your example says a lot, I think. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, vis

Re: [PHP] Does PHP support utf16 encode / decode

2008-06-16 Thread Lester Caine
hce wrote: On Mon, Jun 16, 2008 at 3:59 PM, Chris <[EMAIL PROTECTED]> wrote: hce wrote: Hi, I know PHP supports utf8 encode/decode, but does it support utf16 encode/decode? If yes, would you please point me a php manual URL? It's listed as supported under the mbstring functions here: http://