php-general Digest 31 Oct 2006 12:50:31 -0000 Issue 4432

2006-10-31 Thread php-general-digest-help
php-general Digest 31 Oct 2006 12:50:31 - Issue 4432 Topics (messages 243918 through 243943): Re: How do I get ini_set('output_handler', '') to work?! 243918 by: Daevid Vincent 243923 by: Ed Lazor Re: Decide witch table within a union 243919 by: Ed Lazor

php-general Digest 1 Nov 2006 01:18:08 -0000 Issue 4433

2006-10-31 Thread php-general-digest-help
php-general Digest 1 Nov 2006 01:18:08 - Issue 4433 Topics (messages 243944 through 243979): Re: IIS Rewrite or Mod_Rewrite 243944 by: Jochem Maas 243948 by: Kevin Re: PHP Memory Allocation (checked via TOP) 243945 by: Jon Anderson Re: No Error Messages

[PHP] IIS Rewrite or Mod_Rewrite

2006-10-31 Thread Kevin
Hi, I have created a website which is using the iis rewrite module to write the following: index.php?tn_id=5ln_id=4 to something like /contact/directions.html and this works fine however I have a link at the bottom which needs to pass another variable through the query string before it

[PHP] PHP Memory Allocation (checked via TOP)

2006-10-31 Thread Cabbar Duzayak
Hi, I have written a simple test program to see how php allocates memory. Test code allocates ~10 Meg of RAM in an array within a loop till it runs out of memory as: $str = rand(65, 95) . rand(65, 95) . rand(65, 95) . rand(65, 95) . rand(65, 95); $aa[] = str_repeat($str, 200); What I

[PHP] Re: PHP Memory Allocation (checked via TOP)

2006-10-31 Thread Cabbar Duzayak
As a side note, even though user is shown as apache, this code was executed from command line. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] counting records in db

2006-10-31 Thread Ivo F.A.C. Fokkema
On Mon, 30 Oct 2006 12:28:29 +0100, Robin Vickery wrote: On 30/10/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Sun, 29 Oct 2006 23:40:47 -0600, Richard Lynch wrote: On Fri, October 27, 2006 4:53 pm, Børge Holen wrote: On Friday 27 October 2006 19:34, Richard Lynch wrote: And the

[PHP] need help with foreach

2006-10-31 Thread melinem
I want to tell the server to do 2 things when I click on the jobType link. This is the code that I have now which displays the art when I click on jobType foreach($row as $jobType) { $row = mysql_fetch_array($result2,MYSQL_ASSOC); echo a

Re: [PHP] only one at atime

2006-10-31 Thread Ahmad Al-Twaijiry
We have a virtual stock exchange site (for learning purpose) we put all the bids and offers in a table and every minute we run the php script to make the exchange but my customer want to make it less than 1 minute On 10/31/06, Ed Lazor [EMAIL PROTECTED] wrote: On Oct 30, 2006, at 10:14 AM,

Re: [PHP] need help with foreach

2006-10-31 Thread Dave Hamber
Its not very clear what you want to achieve with that code snippet. If you are pulling database rows out of your database with mysql_fetch_array(), then you do not need a foreach loop. I think you may want something like this, but without knowing your database table structure and the query

Re: [PHP] counting records in db

2006-10-31 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2006-10-27 20:14:58 +0200: And the header(Location: ...) requires a full URL. Why? HTTP protocol specification[1] says: 14.30 Location The Location response-header field is used to redirect the recipient to a location other than the Request-URI for completion of

Re: [PHP] Run script every 30 seconds

2006-10-31 Thread Ahmad Al-Twaijiry
yes, I think you can call it ,semi-real-time monitoring because we want the script when it run it should read some records in database and update other records On 10/31/06, Ed Lazor [EMAIL PROTECTED] wrote: On Oct 30, 2006, at 10:26 AM, Ahmad Al-Twaijiry wrote: is it possible to link the

Re: [PHP] only one at atime

2006-10-31 Thread Ahmad Al-Twaijiry
BTW: we use PDO functions to connect to the database and we also made the tables innodb type so if we use $dbh-beginTransaction(); is it will be safe to run the script more than one in the same time ? On 10/31/06, Ahmad Al-Twaijiry [EMAIL PROTECTED] wrote: We have a virtual stock exchange

Re: [PHP] counting records in db

2006-10-31 Thread Robin Vickery
On 30/10/06, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2006-10-30 at 12:28 +0100, Robin Vickery wrote: On 30/10/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Sun, 29 Oct 2006 23:40:47 -0600, Richard Lynch wrote: On Fri, October 27, 2006 4:53 pm, Børge Holen wrote: On

[PHP] channels attribute value returns wrong

2006-10-31 Thread dhatri gmail
Hello, using function getimagesize(); I am trying to get channels attribute value of image, it returns 3 for cmyk image actually it should return 4, can you tell me why it happens so? regds. dmt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] PHP IMAP with Attachments!?

2006-10-31 Thread Andy
Hi to all, I need a class that reads emails from a server and reads the attachments from the mail. The mailservers is an IMAP for mail reading. The attachment types can be: images/pdf/text documents. Any suggestions? On phpclasses.org did not find any which works well. Regards,

[PHP] No Error Messages

2006-10-31 Thread Sancar Saran
Hi, Recenly I face very disturbing problem. If page has some errors it stop producing any error messages. Neither page nor syslog. I get blank page. System Debian Unstable Apache 2 Php 5.1.6 Apc Memcached Obhandler with gzip and I store entire page output then printed out. And I found if my

Re: [PHP] No Error Messages

2006-10-31 Thread clive
Sancar Saran wrote: If page has some errors it stop producing any error messages. Neither page nor syslog. have you looked at the error_reporting setting in your php.ini file. perhaps set it too E_ALL, mine was set to E_ALL ~E_NOTICE by default on ubuntu 6.10. -- PHP General Mailing

[PHP] Re: Imagecopyresampled creates black pictures

2006-10-31 Thread Martin Hochreiter
Tedd, may I ask you what GD library version and php version are you using? I am using: php5-5.1.2 gd-2.0.32-23 All Suse 10.1 machines using that versions and on all that machines I have the same problem ... lg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] IIS Rewrite or Mod_Rewrite

2006-10-31 Thread Kevin
Jochem Maas wrote: Kevin wrote: Hi, I have created a website which is using the iis rewrite module to write the following: index.php?tn_id=5ln_id=4 to something like /contact/directions.html and this works fine however I have a link at the bottom which needs to pass another variable

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-31 Thread Ed Lazor
On Oct 30, 2006, at 11:34 PM, Google Kreme wrote: So, do I whack up something where I just load the file into a HTML Textarea and then write it back (simple enough, though possibly rather dangerous), or is there something straightforward I should go ahead and use that might find use

Re: [PHP] Run script every 30 seconds

2006-10-31 Thread Ed Lazor
On Oct 31, 2006, at 2:48 AM, Ahmad Al-Twaijiry wrote: yes, I think you can call it ,semi-real-time monitoring because we want the script when it run it should read some records in database and update other records That's kind of vague. I'm not able to give better advice without more

Re: [PHP] Is there such a thing?

2006-10-31 Thread Rory Browne
Do these qualify? http://www.roadsend.com/home/index.php?SMC=1pageID=compiler http://www.priadoblender.com It would be helpful if people would read the link the OP provided, as opposed to just the URL to that link. The page isn't about compiling PHP source into a binary. It's about

Re: [PHP] PHP Memory Allocation (checked via TOP)

2006-10-31 Thread Jon Anderson
Cabbar Duzayak wrote: Hi, I have written a simple test program to see how php allocates memory. Test code allocates ~10 Meg of RAM in an array within a loop till it runs out of memory as: $str = rand(65, 95) . rand(65, 95) . rand(65, 95) . rand(65, 95) . rand(65, 95); $aa[] =

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 1:34 am, Google Kreme wrote: So, do I whack up something where I just load the file into a HTML Textarea and then write it back (simple enough, though possibly rather dangerous), or is there something straightforward I should go ahead and use that might find use

Re: [PHP] Decide witch table within a union

2006-10-31 Thread Ed Lazor
On Oct 30, 2006, at 9:20 PM, Børge Holen wrote: On Tuesday 31 October 2006 02:27, Ed Lazor wrote: Someone asked what it was to be used for. It's for combining 4 forums into one witch shows the latest movement among them. More like an introduction sort of... Sounds cool. Are you using a

Re: [PHP] Sorting Multidimensional Array

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 11:10 am, Keith Spiller wrote: RE: Sorting Multidimensional Array I'm trying to sort a multidimensional array. The data was taken from a mysql query: $myrow = mysql_fetch_row($result) { query[] = $myrow; } The purpose is to retrieve the table data and

Re: [PHP] channels attribute value returns wrong

2006-10-31 Thread Ed Lazor
Just getting, but is there a 0, 1, 2, and 3 channel? On Oct 31, 2006, at 3:10 AM, dhatri gmail wrote: Hello, using function getimagesize(); I am trying to get channels attribute value of image, it returns 3 for cmyk image actually it should return 4, can you tell me why it happens so?

Re: [PHP] IIS Rewrite or Mod_Rewrite

2006-10-31 Thread Jochem Maas
Kevin wrote: Hi, I have created a website which is using the iis rewrite module to write the following: index.php?tn_id=5ln_id=4 to something like /contact/directions.html and this works fine however I have a link at the bottom which needs to pass another variable through the query

Re: [PHP] No Error Messages

2006-10-31 Thread Jochem Maas
Sancar Saran wrote: Hi, Recenly I face very disturbing problem. If page has some errors it stop producing any error messages. Neither page nor syslog. I get blank page. System Debian Unstable Apache 2 Php 5.1.6 Apc Memcached Obhandler with gzip and I store entire page output

Re: [PHP] [ACIDIC HUMOR] Re: [PHP] IIS Rewrite or Mod_Rewrite

2006-10-31 Thread Stut
Jochem Maas wrote: Kevin wrote: Jochem Maas wrote: yes Apache, are you allowed/able to use apache? no only allowed to use windows server ah and I see your company lives off ill-managed/spent NHS-pork - i.e. the latest bullshit multi-billion pound NHS IT overhaul with

Re: [PHP] Sorting Multidimensional Array

2006-10-31 Thread Keith Spiller
Thanks Richard, But wouldn't order by z interfere with my original order by values? My code is as follows: $fields1 = ID, Title, Label, Location, Start, End, Time, ; $fields1 .= Description, Organization, Department, Contact, ; $fields1 .= Phone, Email, Global, Board, Committee,

[PHP] Sorting Multidimensional Array

2006-10-31 Thread Keith Spiller
Hi, RE: Sorting Multidimensional Array I'm trying to sort a multidimensional array. The data was taken from a mysql query: $myrow = mysql_fetch_row($result) { query[] = $myrow; } The purpose is to retrieve the table data and manually add a record, then sort ASC by the startdate which is

Re: [PHP] need help with foreach

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 4:09 am, [EMAIL PROTECTED] wrote: I want to tell the server to do 2 things when I click on the jobType link. This is the code that I have now which displays the art when I click on jobType foreach($row as $jobType) {

Re: [PHP] only one at atime

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 4:50 am, Ahmad Al-Twaijiry wrote: we use PDO functions to connect to the database and we also made the tables innodb type so if we use $dbh-beginTransaction(); is it will be safe to run the script more than one in the same time ? It should be safe from the

RE: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-31 Thread Richard Lynch
On Mon, October 30, 2006 7:19 pm, Daevid Vincent wrote: Thank you for the reply Richard (and Tom). That news sucks however. Seems that the PHP pre-parser should handle this better. It's not like it's a one-pass parser (like Ruby). ?php ini_set('output_handler', 'mb_output_handler'); echo

RE: [PHP] Is there such a thing?

2006-10-31 Thread Jay Blanchard
[snip] The page isn't about compiling PHP source into a binary. It's about creating a method of using web applications ( php ) without the help of a seperate web-server. [/snip] That is an oxymoron, a web app w/o a web-server? The items mentioned have built-in webservers which is as close to not

Re: [PHP] counting records in db

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 4:58 am, Robin Vickery wrote: On 30/10/06, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2006-10-30 at 12:28 +0100, Robin Vickery wrote: On 30/10/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Sun, 29 Oct 2006 23:40:47 -0600, Richard Lynch wrote: On

Re: [PHP] Is there such a thing?

2006-10-31 Thread Ed Lazor
On Oct 31, 2006, at 8:25 AM, Rory Browne wrote: It would be helpful if people would read the link the OP provided, as opposed to just the URL to that link. The page isn't about compiling PHP source into a binary. It's about creating a method of using web applications ( php ) without the

Re: [PHP] counting records in db

2006-10-31 Thread Robert Cummings
On Tue, 2006-10-31 at 11:58 +0100, Robin Vickery wrote: On 30/10/06, Robert Cummings [EMAIL PROTECTED] wrote: On Mon, 2006-10-30 at 12:28 +0100, Robin Vickery wrote: On 30/10/06, Ivo F.A.C. Fokkema [EMAIL PROTECTED] wrote: On Sun, 29 Oct 2006 23:40:47 -0600, Richard Lynch wrote:

Re: [PHP] No Error Messages

2006-10-31 Thread Børge Holen
PHP 5.1 is broken in debian testing right now. Dunno 'bout Sid On Tuesday 31 October 2006 18:00, Richard Lynch wrote: On Tue, October 31, 2006 6:24 am, Sancar Saran wrote: If page has some errors it stop producing any error messages. Neither page nor syslog. I get blank page. If it's

Re: [PHP] No Error Messages

2006-10-31 Thread Richard Lynch
On Tue, October 31, 2006 6:24 am, Sancar Saran wrote: If page has some errors it stop producing any error messages. Neither page nor syslog. I get blank page. If it's a fatal error, or one too serious to be trapped by an error handler, then your script will just stop. System Debian

[PHP] [ACIDIC HUMOR] Re: [PHP] IIS Rewrite or Mod_Rewrite

2006-10-31 Thread Jochem Maas
Kevin wrote: Jochem Maas wrote: Kevin wrote: Hi, I have created a website which is using the iis rewrite module to write the following: index.php?tn_id=5ln_id=4 to something like /contact/directions.html and this works fine however I have a link at the bottom which needs to pass

[PHP] Re: PHP IMAP with Attachments!?

2006-10-31 Thread Manuel Lemos
Hello, on 10/31/2006 01:36 PM Andy said the following: I need a class that reads emails from a server and reads the attachments from the mail. The mailservers is an IMAP for mail reading. The attachment types can be: images/pdf/text documents. Any suggestions? On phpclasses.org did not

Re: [PHP] only one at atime

2006-10-31 Thread Ed Lazor
On Oct 31, 2006, at 2:29 AM, Ahmad Al-Twaijiry wrote: We have a virtual stock exchange site (for learning purpose) we put all the bids and offers in a table and every minute we run the php script to make the exchange but my customer want to make it less than 1 minute I can tell there's

[PHP] Manually Inserted Row

2006-10-31 Thread Keith Spiller
Hi, RE: Manually Inserted Row I'm using PHP to retrieve the values for the manual insert... I originally tried using an array created from the mysql query and adding one row manaually and then sorting the multidimensional array. As Richard pointed out, sorting using the database would be

[PHP] Remote Robot Control with PHP

2006-10-31 Thread Prathaban Mookiah
Hello List, I thought of sharing my experience of writing a controller to remotely control a robot through a webserver using PHP. Though I could not use PHP alone to do the entire job due the high delay it takes to connect to the telnet port on the robot, (I adopted the PHPTelnet class written

Re: [PHP] Remote Robot Control with PHP

2006-10-31 Thread Dan McCullough
Cool! On 10/31/06, Prathaban Mookiah [EMAIL PROTECTED] wrote: Hello List, I thought of sharing my experience of writing a controller to remotely control a robot through a webserver using PHP. Though I could not use PHP alone to do the entire job due the high delay it takes to connect to the

[PHP] Add buttons on the fly

2006-10-31 Thread Wang Chen
I would like to add two buttons on a page form infomation confirmation, however, the html code in php nest can not be known by browser if I put form xxx input xx /form into there. Besically, there is a mail form to enter iterm infomaiton, if it exist before, prompt its iterm id., if

Re: [PHP] Manually Inserted Row

2006-10-31 Thread Børge Holen
Have a look at my (and others previous mails) with the Topic : Decide witch table within a union There you'll find my orginal post with a working union, easy to figure out how it works. Hi, RE: Manually Inserted Row I'm using PHP to retrieve the values for the manual insert... I

[PHP] Re: Remote Robot Control with PHP

2006-10-31 Thread Manuel Lemos
Hello, on 10/31/2006 10:54 PM Prathaban Mookiah said the following: I thought of sharing my experience of writing a controller to remotely control a robot through a webserver using PHP. Though I could not use PHP alone to do the entire job due the high delay it takes to connect to the

Re: [PHP] Add buttons on the fly

2006-10-31 Thread Chris
Wang Chen wrote: I would like to add two buttons on a page form infomation confirmation, however, the html code in php nest can not be known by browser if I put form xxx input xx /form into there. Besically, there is a mail form to enter iterm infomaiton, if it exist before, prompt

RE: [PHP] How do I get ini_set('output_handler', '') to work?!

2006-10-31 Thread Daevid Vincent
There is nothing to re-compile here. The command line has an existing flag for you to specify the php.ini file, or to override any setting[s] within the php.ini file. Mebbe so, but that's equally obnoxious to pass this command line parameter to a lot of existing scripts. It's just easier to

[PHP] 301 redirect returning 302 instead

2006-10-31 Thread ianevans
Having a problem here trying to redirect some old pages. I've recently noticed using a server header check that my 301 redirects in PHP are returning 302 instead. I'm using the following code: header('HTTP/1.1 301 Moved Permanently'); header('Location: newurl'); exit(); The header checker is

[PHP] php.ini ini_set

2006-10-31 Thread Beauford
I am working on a website for a friend that is being hosted by a third party (which uses Linux) and I don't have access to the php.ini or any other system files. The problem I am having is this. When an email is sent from the website and the user receives it, it says it is from [EMAIL PROTECTED]

Re: [PHP] php.ini ini_set

2006-10-31 Thread Chris
Beauford wrote: I am working on a website for a friend that is being hosted by a third party (which uses Linux) and I don't have access to the php.ini or any other system files. The problem I am having is this. When an email is sent from the website and the user receives it, it says it is from

RE: [PHP] php.ini ini_set

2006-10-31 Thread Beauford
Can you be more specific. I only see 4 parameters and none of them apply. -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: October 31, 2006 9:13 PM To: Beauford Cc: PHP Subject: Re: [PHP] php.ini ini_set Beauford wrote: I am working on a website for a friend that is

Re: [PHP] php.ini ini_set

2006-10-31 Thread Chris
Beauford wrote: Can you be more specific. I only see 4 parameters and none of them apply. Oops sent you to the wrong page. http://www.php.net/manual/en/function.mail.php There are 5 parameters: bool mail ( string to, string subject, string message [, string additional_headers [, string

Re: [PHP] PHP Memory Allocation (checked via TOP)

2006-10-31 Thread Rasmus Lerdorf
$str is 10 bytes then you repeat it 200 times That gives you 2000 bytes. That's 20M not 10M -Rasmus Cabbar Duzayak wrote: Hi, I have written a simple test program to see how php allocates memory. Test code allocates ~10 Meg of RAM in an array within a loop till it runs out of

RE: [PHP] php.ini ini_set

2006-10-31 Thread Beauford
That doesn't work. Here is what I have. mail($email,$subject,$body,$from); Which is (senders address, the subject, the body of the message, and the from address) The from address is taken from this, and I added the -f in front of it. define(regaddress, [EMAIL PROTECTED]); It still says it

FW: [PHP] php.ini ini_set

2006-10-31 Thread Beauford
Sorry, this should be. Which is (to address, the subject, the body of the message, and the from address) - That doesn't work. Here is what I have. mail($email,$subject,$body,$from); Which is (senders address, the subject, the body of the message, and the from address) The from address

Re: [PHP] php.ini ini_set

2006-10-31 Thread Chris
Beauford wrote: That doesn't work. Here is what I have. mail($email,$subject,$body,$from); Which is (senders address, the subject, the body of the message, and the from address) The from address is taken from this, and I added the -f in front of it. define(regaddress, [EMAIL PROTECTED]);

Re: [PHP] Stupid question of the day (Editing text file in $HOME via web)

2006-10-31 Thread Google Kreme
On 31 Oct 2006, at 09:20 , Ed Lazor wrote: On Oct 30, 2006, at 11:34 PM, Google Kreme wrote: So, do I whack up something where I just load the file into a HTML Textarea and then write it back (simple enough, though possibly rather dangerous), or is there something straightforward I should

[PHP] Probably a dumb question but...

2006-10-31 Thread Tom Ray [Lists]
I've just installed PHP 4.4.4 with CLI disabled and CGI enabled. With CLI I can find the PHP executable in $prefix/bin/php but with CGI I can't find it. I need the path to the PHP executable so I can install suPHP but $prefix/bin/php no longer exists and all I have in $prefix/bin is php-config

RE: [PHP] Probably a dumb question but...

2006-10-31 Thread Jay Blanchard
[snip] I've just installed PHP 4.4.4 with CLI disabled and CGI enabled. With CLI I can find the PHP executable in $prefix/bin/php but with CGI I can't find it. I need the path to the PHP executable so I can install suPHP but $prefix/bin/php no longer exists and all I have in $prefix/bin is

Re: [PHP] php.ini ini_set

2006-10-31 Thread M.Sokolewicz
Why can't you just add a From: Registrar [EMAIL PROTECTED] header? =/ - tul Chris wrote: Beauford wrote: That doesn't work. Here is what I have. mail($email,$subject,$body,$from); Which is (senders address, the subject, the body of the message, and the from address) The from address is