Re: [PHP] METHOD=POST not worikng

2006-05-13 Thread Chris
IraqiGeek wrote: On Sunday, May 14, 2006 2:01 AM GMT, chris smith <[EMAIL PROTECTED]> wrote: On 5/14/06, IraqiGeek <[EMAIL PROTECTED]> wrote: On Saturday, May 13, 2006 4:59 PM GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: AFAIK it should be working just fine. I'm not aware of POST not

Re: [PHP] Wierd ass code...

2006-05-13 Thread Gonzalo Monzón
Satyam escribió: - Original Message - From: "Satyam" <[EMAIL PROTECTED]> To: "Ryan A" <[EMAIL PROTECTED]>; "php php" Sent: Saturday, May 13, 2006 9:53 PM Subject: Re: [PHP] Wierd ass code... - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: "php php" Sent: Saturd

Re: [PHP] MySQL - HEAP table type

2006-05-13 Thread John Nichel
Martin Zvarík wrote: Hi, I am sorry for this not being really a PHP question So you know it's off topic, yet you're going to ask anyway. MySQL database, I have a table, which is HEAP (memory) type and I found out I can store only about 22000 entries in it, then when I want to insert new e

Re: [PHP] METHOD=POST not worikng

2006-05-13 Thread IraqiGeek
On Sunday, May 14, 2006 2:01 AM GMT, chris smith <[EMAIL PROTECTED]> wrote: On 5/14/06, IraqiGeek <[EMAIL PROTECTED]> wrote: On Saturday, May 13, 2006 4:59 PM GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: AFAIK it should be working just fine. I'm not aware of POST not working in any circu

Re: [PHP] Uploading large files

2006-05-13 Thread chris smith
is there a way to upload large files (e.g. 15mb) without changing the default settings in php.ini***? According to this page: http://www.php.net/manual/en/ini.php#ini.list You can do it with a htaccess file. See comments at the bottom. Preferably by using php, but if not is there another web

Re: [PHP] Security Concerns with Uploaded Images:

2006-05-13 Thread chris smith
On 5/14/06, Nick Wilson <[EMAIL PROTECTED]> wrote: Hi all, are there any security concerns with uploaded images? My thought is that it wouldnt be too hard to have some kind of script masquerade as a gif file, and perhaps cause damage. I cant find anyway to check a file really is a gif/png/jpg

Re: [PHP] METHOD=POST not worikng

2006-05-13 Thread chris smith
On 5/14/06, IraqiGeek <[EMAIL PROTECTED]> wrote: On Saturday, May 13, 2006 4:59 PM GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > AFAIK it should be working just fine. I'm not aware of POST not > working in any circumstance other than PHP not working at all. > > Can you post your test scri

Re: [PHP] Failing FastCGI PHP

2006-05-13 Thread chris smith
On 5/14/06, Frank de Bot <[EMAIL PROTECTED]> wrote: I'll start by compiling php with --enable-debug At the moment I get backtrace results like this: #0 0x48c7d95b in memcpy () from /usr/lib/libc_r.so.4 #1 0x8977280 in ?? () #2 0x10 in ?? () #3 0x894e500 in ?? () #4 0x894dc00 in ?? () #5 0

Re: [PHP] MySQL - HEAP table type

2006-05-13 Thread chris smith
On 5/14/06, Martin Zvarík <[EMAIL PROTECTED]> wrote: Hi, I am sorry for this not being really a PHP question, anyway I use MySQL database, I have a table, which is HEAP (memory) type and I found out I can store only about 22000 entries in it, then when I want to insert new entry it gives me a

Re: [PHP] Is it a bug ?

2006-05-13 Thread chris smith
On 5/14/06, Fourat Zouari <[EMAIL PROTECTED]> wrote: Code 1 : - var_dump(stream_get_contents($rr)); - Output 1 - string(185) "HTTP/1.1 202 Accepted Server: Apache2 Content-Length: 24 Connection: close Content-type: text/html

Re: [PHP] Wierd ass code...

2006-05-13 Thread Robert Cummings
On Sat, 2006-05-13 at 19:37, Rory Browne wrote: > > I would submit that the error suppression operator isn't BAD BAD BAD > per se - it's just like goto, in that 99% of its use is bad. In the > absence of a comment justifying it, the error-suppressed expression is > BAD. > > There are some cases w

Re: [PHP] Wierd ass code...

2006-05-13 Thread Rory Browne
> > // Add to the running totals > @$hits["$username|$subnet"]++; > @$bytes["$username|$subnet"]+=$byte; > @$baps["$username|$subnet|$this_second"]++; > @$bapm["$username|$subnet|$this_minute"]++; > > What kind of arrays are the above? I have never seen > nor worked with arrays like them before. >

Re: [PHP] Security Concerns with Uploaded Images:

2006-05-13 Thread Rory Browne
getimagesize() - I wouldn't worry about people trying to upload scripts - assuming you limit file-extensions to .gif, .bmp, .jpg, etc. .jpgs generally don't get executed - unless you have a screwed up webserver install. The best they will be able to do is have others download the script / code.

[PHP] Is it a bug ?

2006-05-13 Thread Fourat Zouari
Code 1 : - var_dump(stream_get_contents($rr)); - Output 1 - string(185) "HTTP/1.1 202 Accepted Server: Apache2 Content-Length: 24 Connection: close Content-type: text/html Pragma: no-cache Cache-Control: no-cache 0: Accepted

[PHP] MySQL - HEAP table type

2006-05-13 Thread Martin Zvarík
Hi, I am sorry for this not being really a PHP question, anyway I use MySQL database, I have a table, which is HEAP (memory) type and I found out I can store only about 22000 entries in it, then when I want to insert new entry it gives me an error that the table is full. The question is: H

[PHP] Security Concerns with Uploaded Images:

2006-05-13 Thread Nick Wilson
Hi all, are there any security concerns with uploaded images? My thought is that it wouldnt be too hard to have some kind of script masquerade as a gif file, and perhaps cause damage. I cant find anyway to check a file really is a gif/png/jpg (i assume the mimetype available in $_FILES could b

Re: [PHP] Failing FastCGI PHP

2006-05-13 Thread Frank de Bot
I'll start by compiling php with --enable-debug At the moment I get backtrace results like this: #0 0x48c7d95b in memcpy () from /usr/lib/libc_r.so.4 #1 0x8977280 in ?? () #2 0x10 in ?? () #3 0x894e500 in ?? () #4 0x894dc00 in ?? () #5 0x8962000 in ?? () #6 0x8960200 in ?? () #7 0x894e4e

Re: [PHP] Wierd ass code...

2006-05-13 Thread Ryan A
Thanks Rob, Satyam, I understood the error supression but never came across arrays where people were creating keys on the fly like this and incrementing themjust looked a bit weird to me. Cheers! Ryan --- Robert Cummings <[EMAIL PROTECTED]> wrote: > On Sat, 2006-05-13 at 15:20, Ryan A wrot

Re: [PHP] Wierd ass code...

2006-05-13 Thread Satyam
- Original Message - From: "Satyam" <[EMAIL PROTECTED]> To: "Ryan A" <[EMAIL PROTECTED]>; "php php" Sent: Saturday, May 13, 2006 9:53 PM Subject: Re: [PHP] Wierd ass code... - Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: "php php" Sent: Saturday, May 13, 200

Re: [PHP] Wierd ass code...

2006-05-13 Thread Robert Cummings
On Sat, 2006-05-13 at 15:20, Ryan A wrote: > Hey, > Been reading some other code that I got from the net, > and have come across some wierd looking code, would > appreciate it if someone could explain it to me: > > $hits = array(); > $bytes = array(); > $blocked = array(); > $baps = array(); > $b

Re: [PHP] Wierd ass code...

2006-05-13 Thread Satyam
- Original Message - From: "Ryan A" <[EMAIL PROTECTED]> To: "php php" Sent: Saturday, May 13, 2006 9:20 PM Subject: [PHP] Wierd ass code... Hey, Been reading some other code that I got from the net, and have come across some wierd looking code, would appreciate it if someone could

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread Ryan A
Hey Tedd, John and Ed, Will look into what you wrote, am testing some stuff and comparing speeds and performance right now. Ed, the mod/access is used for other stuff like "expiring files" so I dont think I will be able to go with your idea. I appreciate all your input.Thanks! -Ryan --- tedd <[

[PHP] Wierd ass code...

2006-05-13 Thread Ryan A
Hey, Been reading some other code that I got from the net, and have come across some wierd looking code, would appreciate it if someone could explain it to me: $hits = array(); $bytes = array(); $blocked = array(); $baps = array(); $bapm = array(); So far so good then further down: // Add t

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread Edward Vermillion
On May 13, 2006, at 7:48 AM, Ryan A wrote: Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question i

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread John Hicks
Ryan A wrote: Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question is which would you recommend, do

Re: [PHP] Uploading large files

2006-05-13 Thread Rory Browne
possibly by using CGI/php, and changing the relevent vaules, on the command line. Why don't you want to change the php.ini values if you legitimately want to upload these files? On 5/13/06, php @ net mines <[EMAIL PROTECTED]> wrote: Hi all is there a way to upload large files (e.g. 15mb) wit

Re: [PHP] METHOD=POST not worikng

2006-05-13 Thread IraqiGeek
On Saturday, May 13, 2006 4:59 PM GMT, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: AFAIK it should be working just fine. I'm not aware of POST not working in any circumstance other than PHP not working at all. Can you post your test script? We could better judge what's happening based off th

Re: [PHP] touch()ing it....advise needed.

2006-05-13 Thread tedd
At 5:48 AM -0700 5/13/06, Ryan A wrote: Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question is whi

[PHP] METHOD=POST not worikng

2006-05-13 Thread IraqiGeek
Hi all, I'm learning PHP on a Debian Etch with Apache 2.0.54 and PHP 4.3.10, and using Firefox 1.5.3 on a Windows XP box to browse the sample site. I wrote a small form to get user input. If I use METHOD=GET, then the form works fine, without any glitches. However, if I use METHOD=POST in the

[PHP] Uploading large files

2006-05-13 Thread php @ net mines
Hi all is there a way to upload large files (e.g. 15mb) without changing the default settings in php.ini***? Preferably by using php, but if not is there another web tech (e.g. Java applets) that will allow me to do this? Thanks in advance Mario -- PHP General Mailing List (http://www.p

Re: [PHP] LDAP Authentication

2006-05-13 Thread Sameer N Ingole
Sameer N Ingole wrote: Thomas Bonham wrote: Hello, I'm trying to do a ldap authentication page. I can get there username and I don't know how to get the password from ldap. It didn't show up in the the search for the command line. So how do I get the password of the users? Hope you are doing

Re: [PHP] LDAP Authentication

2006-05-13 Thread Sameer N Ingole
Thomas Bonham wrote: Hello, I'm trying to do a ldap authentication page. I can get there username and I don't know how to get the password from ldap. It didn't show up in the the search for the command line. So how do I get the password of the users? Hope you are doing this using PHP and your

[PHP] touch()ing it....advise needed.

2006-05-13 Thread Ryan A
Hey, Heres my setup, I have a directory full of files and I get a request with an array of filenames For this example: a.txt b.txt c.txt if the above files dont already exist I need to create them (I am using touch() instead of fopen()) My question is which would you recommend, doing a readdir()

Re: [PHP] suExec problem

2006-05-13 Thread Laszlo Nagy
chris smith írta: On 5/12/06, Laszlo Nagy <[EMAIL PROTECTED]> wrote: Hello, I have a SuSe 9.3 server, with apache version 2.0.53 and suexec configured. It was working for months. One day, it stopped working for ALL virtual hosts. I might have misconfigured something, but I'm not sure what is

Re: [PHP] php.dev, network timeout??

2006-05-13 Thread Porpoise
"Jon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] According to my thunderbird configuration I am using news.php.net. As far as I know our office's ISP does not have any sort of transparent cache or proxy for newsgroups, however I am having someone try to verify that for m