Re: [PHP] php5 threadsafe / apache2 mpm=worker

2005-01-15 Thread Jason Morehouse
Yep, that's pretty much what I got, except I haven't been able to find a list of what modules are thread safe, except mysql. Jochem Maas wrote: Jason Morehouse wrote: Hello, Just wondering if anyone is using the apache worker module with php? I've complied php5 with zend threadsafe support, and

[PHP] Re: sending attachment by email - can't find a bug?

2005-01-15 Thread pete M
You need to post some code #are you using phpMailer - makes emails a doddle http://phpmailer.sourceforge.net/ Afan Pasalic wrote: I have a form and once the form is submitted, php code build csv file with entered information and store it on server in temp file. Then send this file as an

Re: [PHP] mysql improved extensions affected_rows

2005-01-15 Thread Jochem Maas
Tom wrote: ... It correctly updates 4 rows, but returns 1 as the count. I think that this may actually be a mysql issue - I've put the same php/apache configs onto another similar box, the only difference being that the second box is mysql 5.0.1, whereas the problem is reported against 5.0.0

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Jochem Maas
Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? In other words I can create an href link and echo variable and pick them up using $_GET in the following page. No so with $_POST ? in order to create POST vars the proper request headers need to sent to the

Re: [PHP] php editor

2005-01-15 Thread Rick Fletcher
I had been using Zend Studio, but I've just about made the switch to Eclipse with the TruStudio PHP plugin. Eclipse: http://www.eclipse.org TruStudio: http://www.xored.com/trustudio/ Mostly running it in Linux (Fedora Core 3), but I've used that combination in Windows and OSX, too. --Rick --

[PHP] Re: [PHP-WIN] including an HTML file

2005-01-15 Thread Leif Gregory
Hello Gaetano, Thursday, January 13, 2005, 5:53:04 PM, you wrote: So i must do all manually i write this [snip] where $corpo is a variable for the name of the file. if the file not existe the page have a blank body I don't know of another way to do what you asked, which was to include only

[PHP] Feature request for print_r() and var_dump()

2005-01-15 Thread Daevid Vincent
I suggest a slight but useful change to these two functions, or possibly an alternate parameter. I find myself always having to do this annoyance: echo BmyDevice/BBR; print_r($myDevice); To get: myDevice Array ( [] = Array ( [range] = range_3 [scanner] =

Re: [PHP] regex help

2005-01-15 Thread Jason Morehouse
Mike Ford wrote: Just off the top of my head (and untested!), I'd try something like /b(\s+[^]*)?/ Cheers! Mike That pretty much seems to work the best. Thanks all! -- Jason Morehouse Vendorama - Create your own online store http://www.vendorama.com -- PHP General Mailing List

[PHP] Using a multi-dimensional array in a POST form?

2005-01-15 Thread Daevid Vincent
I have a lot of data I want to associate with a single line item in table of data. The current method (which feels messy to me) is to do this INPUT TYPE=HIDDEN VALUE=range_1 NAME=userange[] INPUT TYPE=HIDDEN VALUE=scanner_1 NAME=usescanner[] INPUT TYPE=HIDDEN VALUE=record_1

[PHP] Strange troule with PHP and MySQL

2005-01-15 Thread Phillip S. Baker
Greetings all, I am runnign into a strange problem. I am working on a Linux box. Running PHP 4.2.2 Apache 2.0 And it has MySQl installed on it (not sure of the version. I ran a quick script to check to make sure the connection to the DB is working fine as this is a very secure connection (have

Re: [PHP] Need help with array/foreach

2005-01-15 Thread Jochem Maas
Collin Davis wrote: Hi, Long time reader, first time poster. I've been using Dreamweaver to generate my PHP (I know - but I'm a designer... most of this makes absolutely zero sense to me), but I've run into something that I know could be done better. If you look here: http://pastebin.com/228804

[PHP] Experiences with PHP Training in US?

2005-01-15 Thread Donald Wong
Hi All, I'm looking for a PHP training course within the US, and I'm wondering if have any recommendations. Specifically, I want to know if there's any courses that will cover using Kerberos through PHP, though I don't have too much hope in that. D -- PHP General Mailing List

[PHP] PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread Kelly
I am having trouble with PHP 5.0.3. I am running Apache 1.3.29. I am running Solaris 9 x86 on an Intel box. I get no errors when I start Apache. I get no errors when I run configtest. My problem is mail() does not work. It does invoke sendmail as there is activity in sendmail log. When I

RE: [PHP] Help with encryption

2005-01-15 Thread Michael Sims
Greg Donald wrote: On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning [EMAIL PROTECTED] wrote: Could anyone point me to a web page or other documentation that shows a SIMPLE example of encryption? I know absolutely nothing about encryption. There are like 6 people in the entire world who

Re: [PHP] php5 threadsafe / apache2 mpm=worker

2005-01-15 Thread Jochem Maas
Jason Morehouse wrote: Hello, Just wondering if anyone is using the apache worker module with php? I've complied php5 with zend threadsafe support, and apache2 with the MPM worker module on a Linux box. Everything seems sweet. mysqli_thread_safe() reports true... anyone know if this configuration

[PHP] Sessions and Objects using PHP4

2005-01-15 Thread David OBrien
I have RTFM and TTFE and still am having a heck of a time getting my objects to play well between pages The only real examples are in the notes for classes objects http://us2.php.net/manual/en/language.oop.php Basic usage ? include_once(config.inc); include_once(class.php); $songbook = new

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Santa
14 2005 16:48 Stuart Felenstein (a): When using $_POST vars is it required that a form is used ? exactly

Re: [PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] strange in MySQL Query.

2005-01-15 Thread Santa
MySQL don't know what is UNION -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] 404 custom handler on a cgi-wrap PHP - No input specified error

2005-01-15 Thread Marek Kilimajer
Luke Barker wrote: Hi, This maybe a PHP problem, but is associated with Apache too - so my apologies if it is slightly off topic. My web hosts use a CGI wrap version of PHP 4.3.10 I have made a 404 custom error handler, using .htaccess in a directory - it is usppoed to route all unfound pages to

[PHP] Experiences with PHP Training in US?

2005-01-15 Thread Donald Wong
Hi All, I'm looking for a PHP training course within the US, and I'm wondering if have any recommendations. Specifically, I want to know if there's any courses that will cover using Kerberos through PHP, though I don't have too much hope in that. D -- PHP General Mailing List

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Jason Wong
On Friday 14 January 2005 21:48, Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? Better worded as if you want to pass values from one page to another and you want said values to be available in $_POST then yes, you *have* to use a form. -- Jason Wong -

[PHP] Re: sending attachment by email - can't find a bug?

2005-01-15 Thread Manuel Lemos
Hello, on 01/14/2005 03:00 PM Afan Pasalic said the following: I have a form and once the form is submitted, php code build csv file with entered information and store it on server in temp file. Then send this file as an attachment to me. Code to send an attachment is included in main code. The

[PHP] Re: Global Postal

2005-01-15 Thread Lester Caine
I'd posted this link yesterday on the geographic search engine thread, but it has not appeared. Richard Lynch wrote: Is anybody aware of any existing world-wide data-collection effort of postal codes in relation to geogrpahical coordinates (long/lat)? Just: country_code + postal_code

[PHP] Best method for threading?

2005-01-15 Thread Galen
I'm working on a web spider application where the server has considerable latency in serving the information I require, but simultaneous requests do not have a significant performance hit. I have a nice little class that handles all the sessions, cookies, etc perfectly. What's the best way to

[PHP] Search Engine Friendly URLs

2005-01-15 Thread Josh
I am converting a site to use includes instead of a Dreamweaver template. I want the URLs to look like this: www.my-site1234.com/contact instead of www.my-site1234.com/default.php?p=contact. I found some tutorials on editing the .htaccess file but where do I find it on the server? -- PHP

[PHP] Re: geographic search engine

2005-01-15 Thread Lester Caine
For those who were asking about UK post code mapping http://ibWebAdmin.lsces.co.uk/FirebirdFederationDataArchive.html I've added the GB_POSTAREA table with some 3000 primary postal area entries, all with XY coordinates which can be used on www.multimap.com As yet these are a local metric grid

[PHP] Re: Global Postal

2005-01-15 Thread Lester Caine
Richard Lynch wrote: Is anybody aware of any existing world-wide data-collection effort of postal codes in relation to geogrpahical coordinates (long/lat)? Just: country_code + postal_code (long, lat) in a one-to-one relationship, as crude as that might be. I've tried to post this twice now,

[PHP] Re: Global Postal

2005-01-15 Thread Lester Caine
Richard Lynch wrote: Is anybody aware of any existing world-wide data-collection effort of postal codes in relation to geogrpahical coordinates (long/lat)? Just: country_code + postal_code (long, lat) in a one-to-one relationship, as crude as that might be.

[PHP] Re: PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread Manuel Lemos
Hello, on 01/15/2005 12:59 AM Kelly said the following: I am having trouble with PHP 5.0.3. I am running Apache 1.3.29. I am running Solaris 9 x86 on an Intel box. I get no errors when I start Apache. I get no errors when I run configtest. My problem is mail() does not work. It does invoke

Re: [PHP] Re: calling php functions as library or cmd line

2005-01-15 Thread Jochem Maas
Cere Davis wrote: Geeze, That was obnoxious. you have to admit (well no you don't actually!) tho, it was damn tempting to just answer yes :-) anyway... Luckily google helped me out eventually: if (basename($argv[0]) == basename(__FILE__)) { ...so that bit of code allows you to differentiate

[PHP] Executing command in Linux

2005-01-15 Thread Rosen
Hi, I have this problem: Linux Red Hat 7.3 server and PHP 4.3.8 MySQL 4. When I Try to execute linux command - nothing happens and in Apache logs I see Access denied. This is about permissions in executing this command. My question is can I execute a linux command via PHP ( this is command

Re: [PHP] PHP - mail problems - HELP!!! PLEASE

2005-01-15 Thread John Hicks
Kelly wrote: I am having trouble with PHP 5.0.3. I am running Apache 1.3.29. I am running Solaris 9 x86 on an Intel box. I get no errors when I start Apache. I get no errors when I run configtest. My problem is mail() does not work. It does invoke sendmail as there is activity in sendmail

Re: [PHP] php editor

2005-01-15 Thread Jochem Maas
Greg Donald wrote: On Fri, 14 Jan 2005 18:47:14 +0100, Jochem Maas [EMAIL PROTECTED] wrote: in addition there is the xdebug extension by Derick Rethans its at version 2 but I might suggest starting with 1.3 as its alot simpler to use than 2 (then again if you have experience of things like

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Jochem Maas
Jochem Maas wrote: Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? In other words I can create an href link and echo variable and pick them up using $_GET in the following page. No so with $_POST ? in order to create POST vars the proper request headers need

Re: [PHP] Sessions and Objects using PHP4

2005-01-15 Thread Jochem Maas
David OBrien wrote: I have RTFM and TTFE and still am having a heck of a time getting my objects to play well between pages The only real examples are in the notes for classes objects http://us2.php.net/manual/en/language.oop.php (are you on php4 or php5 btw?) Basic usage ?

Re: [PHP] Help with encryption

2005-01-15 Thread Jochem Maas
Michael Sims wrote: Greg Donald wrote: On Thu, 13 Jan 2005 13:53:30 -0800, Brian Dunning [EMAIL PROTECTED] wrote: Could anyone point me to a web page or other documentation that shows a SIMPLE example of encryption? I know absolutely nothing about encryption. There are like 6 people in the entire

[PHP] Re: Search Engine Friendly URLs

2005-01-15 Thread Matthew Weier O'Phinney
* Josh [EMAIL PROTECTED]: I am converting a site to use includes instead of a Dreamweaver template. I want the URLs to look like this: www.my-site1234.com/contact instead of www.my-site1234.com/default.php?p=contact. I found some tutorials on editing the .htaccess file but where do I find it

RE: [PHP] Simple question: $_POST

2005-01-15 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm -Original Message- From: Stuart Felenstein Sent: 14/01/05 13:48 When using $_POST vars is it required that a form

[PHP] [HAB] Remove empty cells from an array

2005-01-15 Thread OOzy Pal
Dears, How can I remove empty cells/places in an array. For example: a[1]='John'; a[2]='Mike'; a[3]='Lisa'; a[4]=''; a[5]=''; How can I remove a[4] a[5], so the array is only a[1]='John'; a[2]='Mike'; a[3]='Lisa'; = Regards, OOzy What is the purpose of life?

Re: [PHP] [HAB] Force Browsers to encode in utf8

2005-01-15 Thread OOzy Pal
Thanks guys/gals, The header (.utf-8) thing worked ok. --- Jochem Maas [EMAIL PROTECTED] wrote: OOzy Pal wrote: Dears, My html templates are encoded using utf-8. When the browser reads the files as .html it encodes it fine and my characters looks fine. However, when php reads

[PHP] Date()

2005-01-15 Thread John Taylor-Johnston
I might be doing this backwards, but how do I extract the date from $week5 and display $week5 + 4 days. I would like to create a function so when I pass echo displaydate($week5); it echos February 14-18 $week0 = 2005-01-10; $week1 = 2005-01-17; $week2 = 2005-01-24; $week3 = 2005-01-31; $week4

Re: [PHP] Executing command in Linux

2005-01-15 Thread Bret Hughes
On Sat, 2005-01-15 at 11:57, Rosen wrote: Hi, I have this problem: Linux Red Hat 7.3 server and PHP 4.3.8 MySQL 4. When I Try to execute linux command - nothing happens and in Apache logs I see Access denied. This is about permissions in executing this command. My question is can I

[PHP] Re: Date()

2005-01-15 Thread Torsten Roehr
John Taylor-Johnston [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I might be doing this backwards, but how do I extract the date from $week5 and display $week5 + 4 days. I would like to create a function so when I pass echo displaydate($week5); it echos February 14-18 $week0

[PHP] Re: [HAB] Remove empty cells from an array

2005-01-15 Thread Torsten Roehr
OOzy Pal [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dears, How can I remove empty cells/places in an array. For example: a[1]='John'; a[2]='Mike'; a[3]='Lisa'; a[4]=''; a[5]=''; How can I remove a[4] a[5], so the array is only a[1]='John'; a[2]='Mike'; a[3]='Lisa';

Re: [PHP] Experiences with PHP Training in US?

2005-01-15 Thread Rasmus Lerdorf
On Fri, 14 Jan 2005, Donald Wong wrote: Specifically, I want to know if there's any courses that will cover using Kerberos through PHP, though I don't have too much hope in that. No chance. -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Best method for threading?

2005-01-15 Thread Marek Kilimajer
Galen wrote: I'm working on a web spider application where the server has considerable latency in serving the information I require, but simultaneous requests do not have a significant performance hit. I have a nice little class that handles all the sessions, cookies, etc perfectly. What's the

[PHP] Re: Feature request for print_r() and var_dump()

2005-01-15 Thread Torsten Roehr
Daevid Vincent [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I suggest a slight but useful change to these two functions, or possibly an alternate parameter. I find myself always having to do this annoyance: echo BmyDevice/BBR; print_r($myDevice); To get: myDevice Array (

Re: [PHP] Re: Persistent PHP web application?

2005-01-15 Thread Zouari Fourat
what about using $_SESSION arrays ? On Fri, 14 Jan 2005 19:28:24 -0500, Al [EMAIL PROTECTED] wrote: George Schlossnagle addresses exactly your requirement in his book Advanced PHP Programming. Josh Whiting wrote: Dear list, My web application (an online classifieds server) requires

Re: [PHP] Best method for threading?

2005-01-15 Thread Greg Donald
On Wed, 12 Jan 2005 04:13:17 -0800, Galen [EMAIL PROTECTED] wrote: What do you all do to handle situations like this? If you need threads then use a language that has threads. I'd go with Java or Perl. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List

Re: [PHP] RE: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] strange in MySQL Query.

2005-01-15 Thread John Hicks
Santa wrote: MySQL don't know what is UNION http://dev.mysql.com/doc/mysql/en/UNION.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Date()

2005-01-15 Thread John Taylor-Johnston
Don't know where my other post went, but I corrected it: echo date('F', $firstDayTs) . ' ' . date('d', $firstDayTs) . '-' . date('Y',$firstDayTs) echo date('F', $firstDayTs) . ' ' . date('d', $lastDayTs) . '-' . date('Y',$firstDayTs) Thanks, John Torsten Roehr wrote: John

[PHP] control REMOTE_ADDR header

2005-01-15 Thread Alawi Albaity
how can I can send http request with my chosen REMOTE_ADDR is there a class to do that or method in php ? -- Alawi Albaity Jeddah - KSA Mobile : +966506660442 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP5 silently throwing exceptions???

2005-01-15 Thread Gerard Samuel
Im currently using php 5.0.3 on a dev box, trying to figure out how to correctly use exceptions in my code. Per chance, I was monitoring the __autoload() function, and Im noticing that calls are being made to exception classes that I've setup. But nothing is being actually thrown. As I understand

[PHP] Re: Developement

2005-01-15 Thread thies
The sample is attached! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problems upgrading

2005-01-15 Thread Anton Krall
Guys. Maybe somebody lese has been having or had this problem while upgrading apache, mod_perl and php. I just upgraded from apache 1.3.29, mod_perl 1.29 and php 4.3.6 (due to the security issues) to apache 1.3.33, mod_perl 1.29 and php 4.3.10.. But I can get mod_perl to work... Everything

Re: [PHP] Search Engine Friendly URLs

2005-01-15 Thread Robby Russell
On Fri, 2005-01-14 at 13:46 -0500, Josh wrote: I am converting a site to use includes instead of a Dreamweaver template. I want the URLs to look like this: www.my-site1234.com/contact instead of www.my-site1234.com/default.php?p=contact. I found some tutorials on editing the .htaccess file

[PHP] use php to determine user OS

2005-01-15 Thread Graham Anderson
is there a php function out there that can get the operating system of the user...Mac/PC/Linux suppose I could do it with java, but wanted to see if I could do it all in php :) g -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Persistent PHP web application?

2005-01-15 Thread Xuefer Tinys
$_SESSION is same as it use serialize/unserialize, alghough there're some difference On Sat, 15 Jan 2005 10:06:58 +0100, Zouari Fourat [EMAIL PROTECTED] wrote: what about using $_SESSION arrays ? On Fri, 14 Jan 2005 19:28:24 -0500, Al [EMAIL PROTECTED] wrote: George Schlossnagle

Re: [PHP] Simple question: $_POST

2005-01-15 Thread Bret Hughes
On Fri, 2005-01-14 at 07:48, Stuart Felenstein wrote: When using $_POST vars is it required that a form is used ? In other words I can create an href link and echo variable and pick them up using $_GET in the following page. No so with $_POST ? You could probably create hidden vars and

Re: [PHP] Best method for threading?

2005-01-15 Thread Xuefer Tinys
nonblocking sockets wont work with select, blocking is ok On Sat, 15 Jan 2005 19:30:14 +0100, Marek Kilimajer [EMAIL PROTECTED] wrote: Galen wrote: I'm working on a web spider application where the server has considerable latency in serving the information I require, but simultaneous

[PHP] Adding up query results

2005-01-15 Thread Nathan Mealey
I hope someone can help with this frustratingly simple (I assume!) question I have. I run this mysql query: select sum(quantity)*price,price from sale where dvd_id=1 group by price; I get this result: sum(quantity)*price price 450.00 15.00 29.99 29.99 I

[PHP] imagejpeg() output

2005-01-15 Thread Steven Simmons
I'm trying to write an object oriented system for saving my uploaded files to a blog. I am using php to resize the original photos and save a thumbnail . When I get all done, I want to do something like this: $tempImageData = imagejpeg( $imageResource, '', 75 ); $outputHandler -

Re: [PHP] PHP Unit Tests - which framework to use?

2005-01-15 Thread Chris Shiflett
--- dAniel hAhler [EMAIL PROTECTED] wrote: I'm looking for a PHP Unit Test framework and found so far: SimpleTest: https://sourceforge.net/projects/simpletest/ PEAR PHPUnit: - http://pear.php.net/package/PHPUnit - http://pear.php.net/package/PHPUnit2 Sourceforge PHPUnit:

[PHP] Re: Date()

2005-01-15 Thread John Taylor-Johnston
Torsten, Whatever the combination, it echos February 02-2005brFebruary 02-2005brFebruary 02-2005. What is wrong with it? ?php $week5 = 2005-02-14; $firstDayTs = strtotime($week5); $lastDayTs = $firstDayTs + (4 * 86400); echo date('F', $firstDayTs) . ' ' . date('m', $firstDayTs) . '-' .

[PHP] Appologies

2005-01-15 Thread Stephen Craton
Hello, I just wanted to send my apologies to anyone who got bounce-backs from me repeatedly. I upgraded my hosting package at my webhost and they switched servers on me without letting me know. Everything of mine was down and just now came back up, and I could not unsubscribe from the list.

Re: [PHP] strange in MySQL Query.

2005-01-15 Thread Mattias Thorslund
... I dont know why .. is this mysql bug ? It's a known bug in MySQL. Since this is a PHP list, I leave it up to you to check what version fixed it. IIRC, it's possible to work around by making sure the first statement has the longest data type. -- More views at http://www.thorslund.us -- PHP

[PHP] Problems upgrading

2005-01-15 Thread Anton Krall
Guys. Maybe somebody lese has been having or had this problem while upgrading apache, mod_perl and php. I just upgraded from apache 1.3.29, mod_perl 1.29 and php 4.3.6 (due to the security issues) to apache 1.3.33, mod_perl 1.29 and php 4.3.10.. But I can get mod_perl to work... Everything