Re: [PHP] PHP4/Apache2 Content-Length stripped?

2005-01-29 Thread Stoian Ivanov
Richard Lynch wrote: Stoian Ivanov wrote: I'm writing a wap download script involving dynamic image resizing and so on. I've notice that some phones are quitting in the mids of http transfer. After looking further I found out that headers() is sometimes ignored or stripped. I've googled

[PHP] Returning reference problem

2005-01-29 Thread Jon
Starting over since my last thread had too little effort put in it. I have this script that should create a multi-demensional array that would resemble a directory structure. The problem is that after adding one element to a folder it appears to be creating a new object instead of adding another

[PHP] Re: mail problem at interland

2005-01-29 Thread Ben Ramsey
David Edwards wrote: Hi, I have a fairly simple script written that uses the mail() function on a client site hosted at Interland. I have used a similar script quite a few times before with no problem. However although the script generates no errors, no emails appear at their intended

RE: [PHP] Regex help

2005-01-29 Thread Michael Sims
[EMAIL PROTECTED] wrote: OK, this is off-topic like every other regex help post, but I know some of you enjoy these puzzles :) This isn't an exam question, is it? ;) I need a validation regex that will pass a string. The string can be no longer than some maximum length, and it can contain

Re: [PHP] PHP4/Apache2 Content-Length stripped?

2005-01-29 Thread Jason Barnett
Stoian Ivanov wrote: Richard Lynch wrote: Stoian Ivanov wrote: I'm writing a wap download script involving dynamic image resizing and so on. I've notice that some phones are quitting in the mids of http transfer. After looking further I found out that headers() is sometimes ignored or stripped.

[PHP] Re: [PHP-WIN] Random

2005-01-29 Thread Leif Gregory
Hello SargeTron, Wednesday, January 19, 2005, 10:10:20 AM, you wrote: S rand() only returns an int (number), but I would like something S like dd75$6*, you know, containing any character. I would like it S only to do a certain string ONCE, so there are no duplicates (in a S for loop). Hopefully I

[PHP] Re: Trying to compile PECL fileinfo on Windows

2005-01-29 Thread Jason Barnett
Chris wrote: Hi, Are there any places that might have instructions on compiling PECL extensions on Windows? I tried going the pear install package route, but fileinfo is not considered stable yet. Chris Trying a PEAR or PECL list might do you more good. That being said... are you trying to

Re: [PHP] PHP4/Apache2 Content-Length stripped?

2005-01-29 Thread Stoian Ivanov
Jason Barnett wrote: Stoian Ivanov wrote: Richard Lynch wrote: Stoian Ivanov wrote: I'm writing a wap download script involving dynamic image resizing and so on. I've notice that some phones are quitting in the mids of http transfer. After looking further I found out that headers() is

[PHP] Sessions memory allocation problem

2005-01-29 Thread adrian zaharia
Hi, I am testing the following code that pushes a file to the browser (Apache 1.3 + PHP 4.3.8 but tested also under several other configs) Try it with a BIG test1.zip (e.g. 100M in size) ?php ignore_user_abort(); set_time_limit(0); session_save_path('/tmp'); session_start(); $sFileName =

RE: [PHP] Regex help

2005-01-29 Thread Bret Hughes
On Sat, 2005-01-29 at 08:58, Michael Sims wrote: [EMAIL PROTECTED] wrote: OK, this is off-topic like every other regex help post, but I know some of you enjoy these puzzles :) This isn't an exam question, is it? ;) I need a validation regex that will pass a string. The string can be

Re: [PHP] Re: [PHP-WIN] Random

2005-01-29 Thread trobi
Leif Gregory wrote / napsal (a): Hello SargeTron, Wednesday, January 19, 2005, 10:10:20 AM, you wrote: S rand() only returns an int (number), but I would like something S like dd75$6*, you know, containing any character. I would like it S only to do a certain string ONCE, so there are no

RE: [PHP] Regex help

2005-01-29 Thread Michael Sims
Bret Hughes wrote: On Sat, 2005-01-29 at 08:58, Michael Sims wrote: [EMAIL PROTECTED] wrote: I need a validation regex that will pass a string. The string can be no longer than some maximum length, and it can contain any characters except two consecutive ampersands () anywhere in the string.

[PHP] Permissions on uploaded image don't allow for over writing

2005-01-29 Thread Dave
PHP List, The Situation: I am building a content management system where users can, among other things, upload images into a directory. The Problem: The image uploads fine, but once it's there, it can't be over written. So if a user uploads an image, and then changes his or her mind

Re: [PHP] Returning reference problem

2005-01-29 Thread Jochem Maas
Jon wrote: Starting over since my last thread had too little effort put in it. I have this script that should create a multi-demensional array that would resemble a directory structure. The problem is that after adding one element to a folder it appears to be creating a new object instead of

Re: [PHP] Re: Trying to compile PECL fileinfo on Windows

2005-01-29 Thread Frank M. Kromann
FileInfo is not available on win32. - Frank Chris wrote: Hi, Are there any places that might have instructions on compiling PECL extensions on Windows? I tried going the pear install package route, but fileinfo is not considered stable yet. Chris Trying a PEAR or PECL list

[PHP] Regexp stopped working on my site

2005-01-29 Thread Kristian Hellquist
Hi! I had a script for parsing text into html, similar to phpBB. Everything has been working fine until now. Some of my 'pseudotags' like [b] are still recognized (parsed into b) but some more advanced pattern matching is not. I haven't changed the code, but the php-version on the server has

Re: [PHP] Regexp stopped working on my site

2005-01-29 Thread Marek Kilimajer
Kristian Hellquist wrote: Hi! I had a script for parsing text into html, similar to phpBB. Everything has been working fine until now. Some of my 'pseudotags' like [b] are still recognized (parsed into b) but some more advanced pattern matching is not. I haven't changed the code, but the

Re: [PHP] Looking for ideas on scheduling

2005-01-29 Thread Marek Kilimajer
John Nichel wrote: Chris W. Parker wrote: Hello, I'm looking to make a simple scheduler for myself and I'd like to get some feedback on how to handle the events and their being executed at the right time. The two options I've come up with both involve adding a job(s) to crontab. 1. Individual jobs

Re: [PHP] Permissions on uploaded image don't allow for over writing

2005-01-29 Thread Hugh Danaher
Use php's ftp commands. Hugh - Original Message - From: Dave [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Saturday, January 29, 2005 11:11 AM Subject: [PHP] Permissions on uploaded image don't allow for over writing PHP List, The Situation: I am building a content

Re: [PHP] Re: Trying to compile PECL fileinfo on Windows

2005-01-29 Thread Chris
Jason Barnett wrote: Chris wrote: Hi, Are there any places that might have instructions on compiling PECL extensions on Windows? I tried going the pear install package route, but fileinfo is not considered stable yet. Chris Trying a PEAR or PECL list might do you more good. That being said...

[PHP] best way to handle user authentication, PHP vs. apache

2005-01-29 Thread Raymond Still
Hello; I'm trying to figure out the best (most secure and most user friendly, security of primary importance) way to let a user log-in. I am setting up a web application (database application) that will be for private use only and I want to keep it secure. As I understand it, using the Apache

[PHP] Regular expressions stopped working

2005-01-29 Thread Kristian Hellquist
Hi! I had a script for parsing text into html, similar to phpBB. Everything has been working fine until now. Some of my 'pseudotags' like [b] are still recognized (parsed into b) but some more advanced pattern matching is not. I haven't changed the code, but the php-version on the server has

Re: [PHP] Regex help

2005-01-29 Thread kjohnson
Michael Sims wrote: I need a validation regex that will pass a string. The string can be no longer than some maximum length, and it can contain any characters except two consecutive ampersands () anywhere in the string. Yup, use this perl regex: /^(?:()(?!)|[^]){1,5}$/ [snip] Hope

Re: [PHP] Permissions on uploaded image don't allow for over writing

2005-01-29 Thread John Hicks
Dave wrote: PHP List, The Situation: I am building a content management system where users can, among other things, upload images into a directory. The Problem: The image uploads fine, but once it's there, it can't be over written. So if a user uploads an image, and then changes his

Re: [PHP] Re: [PHP-WIN] Random

2005-01-29 Thread Leif Gregory
Hello trobi, Saturday, January 29, 2005, 12:05:33 PM, you wrote: t whatabout uniqid()? He also wanted symbols [EMAIL PROTECTED]*() etc. Cheers, Leif Gregory -- TB Lists Moderator (and fellow registered end-user) PCWize Editor / ICQ 216395 / PGP Key ID 0x7CD4926F Web Site

Re: [PHP] Creating a webpage from an HTML form via PHP

2005-01-29 Thread Marek Kilimajer
Mike Milligan wrote: I'm have a PHP created HTML form that I want a user to be able to enter data into, then see it as the PHP/HTML will format it, then post it to an HTML file. I've been trying all day to find something similar on your site, but to no avail. I am really new to PHP so I may not

[PHP] Image Creation and Saving

2005-01-29 Thread NathanielGuy#21
Hello everyone, I have been troubleshooting a problem with one of my scripts for a while now, its purpose is to allow a user to upload a file, save it to the server, resize it into a thumbnail, and save the thumbnail as well. In my script all goes well until it comes to saving the images, the

[PHP] design pattern/code generators

2005-01-29 Thread robert mena
Hi All, I am looking for advice regarding design patterns/code generation in PHP5. I have a simple code generation tool (written in PHP) to interface with database. It works fine for simple situations but seems a little strange for more complex ones. Suppose I have a table user (id, name, age)

[PHP] Is this a mysql_connect() bug?

2005-01-29 Thread tom soyer
Hi, I tried mysql_connect() function, and it won't reture FALSE if connection failed. Instead, the script times out after 30 seconds and displays an Fatal error message Maximum execution time of 30 seconds exceeded. For example: mysql_connect(' ',' '); returns TRUE because mysql logs in the user

Re: [PHP] Is this a mysql_connect() bug?

2005-01-29 Thread trlists
On 29 Jan 2005 tom soyer wrote: I tried mysql_connect() function, and it won't reture FALSE if connection failed. Instead, the script times out after 30 seconds and displays an Fatal error message Maximum execution time of 30 seconds exceeded. I think the issue here is if the server does

Re: [PHP] Is this a mysql_connect() bug?

2005-01-29 Thread tom soyer
Thanks for the error handling code. I think PHP still has a basic problem. If mysql sever connection times out because wrong username or password was used, then mysql_connect() should return FALSE. But this is not the case, why? Is it possible that mysql_connect() could not read the connection

RE: [PHP] Is this a mysql_connect() bug?

2005-01-29 Thread Michael Sims
tom soyer wrote: Thanks for the error handling code. I think PHP still has a basic problem. If mysql sever connection times out because wrong username or password was used, then mysql_connect() should return FALSE. It does, at least for me on PHP 4.3.10 connecting to a local MySQL 4.0.23

Re: [PHP] Is this a mysql_connect() bug?

2005-01-29 Thread Burhan Khalid
tom soyer wrote: Thanks for the error handling code. I think PHP still has a basic problem. If mysql sever connection times out because wrong username or password was used, then mysql_connect() should return FALSE. But this is not the case, why? Is it possible that mysql_connect() could not read