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

2008-06-16 Thread Chris
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://www.php.net/manual/en/mbstring.supported-encodings.php -- Postgresql php

Re: [PHP] Apache RewriteRule Help!!!!

2008-06-16 Thread Miguel J. Jiménez
El Fri, 13 Jun 2008 10:23:29 -0400 Daniel Brown [EMAIL PROTECTED] escribió: You can start by asking your question on an Apache list. This has nothing to do with PHP. ;-P To answer your question, use this in your .htaccess file: RewriteCond %{SCRIPT_FILENAME} index RewriteCond

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

2008-06-16 Thread hce
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:

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:

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 canvas, but your example says a lot, I think. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[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] 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

Re: [PHP] Canvas examples

2008-06-16 Thread Richard Heyes
I thought it was pretty cool too - I didn't know about canvas, 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

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 canvas, 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

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 of hours,

[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*

[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*

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:

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_REFERER.

Re: [PHP] Canvas examples

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

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] 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] 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

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 -- /Daniel P. Brown

[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,

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? Can you

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;

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

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 those pigs are back

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

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

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 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] Canvas examples

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

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

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

[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] 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/server

[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] 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... :-) Must be a windozes

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 form tag contains 'enctype=multipart/form-data' and there is

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 money

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

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 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] 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) { tr td File 1/td tdThis is the file/td tdDelete/td /tr }else{ tr tdFile1/td td/td tdAdd/td /tr } } What is the

[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

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 echoed

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

[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: