php-general Digest 28 Jun 2005 06:16:31 -0000 Issue 3537

2005-06-28 Thread php-general-digest-help
php-general Digest 28 Jun 2005 06:16:31 - Issue 3537 Topics (messages 217704 through 217741): Re: PHP vs. ColdFusion 217704 by: Matt Babineau shell expansion (globbing) from inside php cli script 217705 by: b-bonini.cox.net 217706 by: André Medeiros 217719

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Jasper Bryant-Greene
Kevin L'Huillier wrote: On 27/06/05, Dr. Brad Lustick [EMAIL PROTECTED] wrote: I'm a novice trying to understand the exact construction of code for doing an HTTP 301 permanent redirect for a server coded in PHP. Could someone please tell me how I would handle the following example? In your

[PHP] Zeus Technology wins again!

2005-06-28 Thread Jock Busuttil
Zeus Technology has won a further two awards from TechWorld for our groundbreaking Zeus Extensible Traffic Manager (ZXTM), an advanced load balancing and application traffic management solution. ZXTM came out on top despite stiff competition from F5 Networks' BIG-IP 6400 and Netscaler's

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Jochem Maas
Jasper Bryant-Greene wrote: Kevin L'Huillier wrote: On 27/06/05, Dr. Brad Lustick [EMAIL PROTECTED] wrote: I'm a novice trying to understand the exact construction of code for doing an HTTP 301 permanent redirect for a server coded in PHP. Could someone please tell me how I would handle the

[PHP] Files

2005-06-28 Thread Chris Grigor
Hey all, I am having a bash at working with flat files. What I am trying to achieve is the following There are 2 files with info in them, file1 has id,email and file2 has id,filename what I am trying to achieve is open up file1 get the id and email then open file2 and match the id of file1

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Jasper Bryant-Greene
Jochem Maas wrote: header('HTTP/1.1 301 Moved Permanently'); also consider that using 'Status' may be better or possibly both to cover you bases, e.g.: ?php header(HTTP/1.1 301 Moved Permanently); header(Status: 301 Moved Permanently); ? Waste of time. Go read the HTTP

RE: [PHP] Files

2005-06-28 Thread Shaw, Chris - Accenture
Hello, I am not sure what problems you are having, but Shouldn't the id's in the files match up? So, File1: 1, test@test.com 2, [EMAIL PROTECTED] 3, [EMAIL PROTECTED] File2: 1, doc1.doc 2, doc2.doc 3, doc3.doc Also, where you are comparing the $groupid to the $id, shouldn't it be:

[PHP] Re: APD Problem

2005-06-28 Thread Rory Browne
Does the /tmp/traces dir exist? What permissions does it have? If you'll only be running cli stuff, then make sure you own it, and chmod to 600(or 700 if necessary). If you're running webserver stuff, then 660, and associate the webserver group with it(usually either nobody, www-data, or

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Marek Kilimajer
Jasper Bryant-Greene wrote: Jochem Maas wrote: header('HTTP/1.1 301 Moved Permanently'); also consider that using 'Status' may be better or possibly both to cover you bases, e.g.: ?php header(HTTP/1.1 301 Moved Permanently); header(Status: 301 Moved Permanently); ? Waste of

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Jochem Maas
Jasper Bryant-Greene wrote: Jochem Maas wrote: header('HTTP/1.1 301 Moved Permanently'); also consider that using 'Status' may be better or possibly both to cover you bases, e.g.: ?php header(HTTP/1.1 301 Moved Permanently); header(Status: 301 Moved Permanently); ? Waste of

RE: [PHP] Zeus Technology wins again!

2005-06-28 Thread Jay Blanchard
[snip] If you'd like to know more or would like to try out ZXTM for yourself, I'd be happy to share further information with you. Feel free to drop me a line with your needs and I'll get back to you as soon as I can. [/snip] We need that you not spam the list with an ad. Thank you. -- PHP

Re[2]: [PHP] looking for a pure startup opportunity..

2005-06-28 Thread Richard Davey
Hello Bruce, Tuesday, June 28, 2005, 1:49:09 AM, you wrote: b they recently got ~$13million in funding... they started in b college, with not much more than a realization that they could b build this... Good for them, hope they don't blow it all on sports cars. b but the fact that you think

[PHP] Re: Files

2005-06-28 Thread Bob Winter
Chris, He's my take on your problem, I have used a few different functions but followed the same pattern as your original script. Check out http://www.php.net/manual/en/ to get the details on the ones you don't understand. I have not included error checking. This example works

[PHP] DOM XML issue

2005-06-28 Thread Andrew Kachalo
Hi! I have installed PHP 5.0.4 on MacOS X 10.3 (Panther). Everything works fine exept DOM XML parser. After using phpinfo it shows (dom section): dom DOM/XML enabled DOM/XML API Version 20031129 libxml Version 2.5.4 HTML Support enabled XPath Support enabled XPointer Support enabled Schema

Re: [PHP] Zeus Technology wins again!

2005-06-28 Thread Ryan A
SPAMMING SOB. On 6/27/2005 7:20:45 PM, Jock Busuttil ([EMAIL PROTECTED]) wrote: Zeus Technology has won a further two awards from TechWorld for our groundbreaking Zeus Extensible Traffic Manager (ZXTM), an advanced load balancing and application traffic management solution. ZXTM came out on

Re: [PHP] looking for a pure startup opportunity..

2005-06-28 Thread Jason Barnett
OK, let me put this another way... while trying to remain polite. Let's suppose that I am an unknown (to you) member of this list and I have this great idea that I want to develop. My idea is a great one and it's going to make millions. Now since I'm the one that had the idea I think it's

[PHP] Re: DOM XML issue

2005-06-28 Thread Jason Barnett
Andrew Kachalo wrote: Hi! ... Fatal error: Call to undefined function domxml_open_file() in /Users/Andrew/Sites/portfolio/index.php on line 61 This is because PHP5 now has an object-oriented approach. You use DOMDocument's and/or SimpleXML to read your XML files. Also in the newest

Re: [PHP] Zeus Technology wins again!

2005-06-28 Thread John Nichel
SPAMMERS lose again! Off to /dev/null with you and your technology. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Breaking up data efficiently

2005-06-28 Thread Jason Barnett
Kevin L'Huillier wrote: ... Create the function split_location to return the associative array or, if it is invalid, throws an exception. If PHP4, replace the exception with similar error handling. If efficiency is really the goal, then the OP probably shouldn't go the route of Exceptions.

RE: [PHP] looking for a pure startup opportunity..

2005-06-28 Thread Shaw, Chris - Accenture
Why don't you go join one of the many Think Tanks on the net, where you can form an idea, let people join in and help the idea progress. Then you can make the idea into a well executed plan. You might find that VC's scan these webpages, looking for one that is ready to get funding.

Re: [PHP] Breaking up data efficiently

2005-06-28 Thread Kevin L'Huillier
In my opinion you should save exceptions for, well, EXCEPTIONal problems. Either that or you use exceptions for a large system that discriminates against specific types of errors and handles each error type in a totally different way. Can we say bloat? Depending on the system, malformatted

RE: Re[2]: [PHP] looking for a pure startup opportunity..

2005-06-28 Thread bruce
rich, my point was/is that with the right team, and the right concept, starting, and building a business is doable. and no, you're not going to create a google/yahoo/dell... but you might create something that does $1-3 million/year... and without knowing you, i'm willing to bet that you havn't

Re[2]: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Jay Blanchard
[snip] so if you have an idea/concept, let's talk about it [/snip] The problem may be that you appear to be fishing for others to come up with an idea that would make you rich. And while you didn't cross post, per se', I saw your message on at least three different lists. So you have cast a wide

RE: [PHP] looking for a pure startup opportunity..

2005-06-28 Thread bruce
and jason... you and i and our experiences are vastly different. i'm considerably older, and been through the wars!! funding, on terms that you as an entrepreneur would accept is not 'easy' to find. a good VC/Angel funds an extremely small number of the proposals that come by their eyes.. but

RE: [PHP] looking for a pure startup opportunity..

2005-06-28 Thread bruce
chris... we actually thought there should/would be 'entrepreneurial sites' setup for just this function, of bringing people together, and building small software related businesses. we didn't find any that remotely satisfied these issues. but, as we've told others, the idea is not to find

RE: Re[2]: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Jay Blanchard
[snip] but jay, we have concepts that have been fleshed out. but rather than simply focus on what we percieve to be good, we're also open to ideas/concepts from others... which is why we posted what we did.. [/snip] Aha, why didn't you say this to begin with? Had you said this the response might

RE: Re[2]: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Shaw, Chris - Accenture
snip Bruce I am not trying to be a hard-ass here, I was just pointing out that the style in which the original message was delivered had a little smell to it, IYKWIM. /snip I thought that, but I kinda over-looked/ignored it and carried on reading. This message has

Re: [PHP] Removing nonlatin characters

2005-06-28 Thread Edward Vermillion
On Jun 27, 2005, at 3:35 PM, John Nichel wrote: Dotan Cohen wrote: snip What CAN'T php do?!? /snip I can't get it to alter space-time...yet. Actually it does this for me all the time. I sit down at my trusty editor and next thing I know I'm missing a few hours! Edward Vermillion

RE: Re[2]: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread bruce
jay... i would suggest you go back and re-read the original posting. we stated that we were open to forming a team, open to ideas, etc the fact is, you misread, misinterpreted what we stated... not my/our responsibility that you screwed up what we initially stated, and that you then reacted

RE: Re[2]: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Jay Blanchard
[snip] the fact is, you misread, misinterpreted what we stated... [/snip] Then we would be even... [snip] I was just pointing out that the style in which the original message was delivered had a little smell to it, IYKWIM. [/snip] See? P.S. It's hard to read. Why? Top posting is bad! -- PHP

Re: [PHP] Breaking up data efficiently

2005-06-28 Thread Edward Vermillion
On Jun 28, 2005, at 9:40 AM, Kevin L'Huillier wrote: In my opinion you should save exceptions for, well, EXCEPTIONal problems. Either that or you use exceptions for a large system that discriminates against specific types of errors and handles each error type in a totally different way. Can

Re: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Jason Barnett
Jay Blanchard wrote: [snip] the fact is, you misread, misinterpreted what we stated... [/snip] The fact is... there are at least 4 people that regularly post on this list that misinterpreted what you stated. Then we would be even... [snip] I was just pointing out that the style in which

Re: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Ryan A
The fact is... there are at least 4 people that regularly post on this list that misinterpreted what you stated. Umm, I dont know if you have counted me, but if you have not...make that atleast 5 ppl :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread John Nichel
Jason Barnett wrote: Jay Blanchard wrote: [snip] the fact is, you misread, misinterpreted what we stated... [/snip] The fact is... there are at least 4 people that regularly post on this list that misinterpreted what you stated. I pretty much stopped reading the original post after the

Re: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Esteamedpw
This really shouldn't be getting out of hand the way it is... if you don't like it, trust it, agree with it - why not just ignore it? It's as simple as that... don't have a stroke because of it.

RE: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Chris W. Parker
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] on Tuesday, June 28, 2005 2:23 PM said: This really shouldn't be getting out of hand the way it is... if you don't like it, trust it, agree with it - why not just ignore it? It's as simple as that... don't have a stroke because of it. Hmm...

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-28 Thread Brian V Bonini
On Mon, 2005-06-27 at 20:51, Jasper Bryant-Greene wrote: Brian V Bonini wrote: I can echo out the command and get a well formed command, i.e. one that will execute from a command prompt, but when I try to exec() $cmd from within the script the globbing is taken literally. Try

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-28 Thread Brian V Bonini
On Mon, 2005-06-27 at 22:04, Bob Winter wrote: Brian, Can you post more of the script? Sure. I also tried {{$files}} and tried calling a shell exclusively like: sh -s 'scp [EMAIL PROTECTED]' Anyway, here's more for the code surrounding the area in question, it's a little hacked up ATM but

Re: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Esteamedpw
Well, unfortunately you just contradicted yourself as well. I had about 18 e-mails of the same thing, so I was replying about those. Thanks for your input though, It's appreciated.

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Andy Pieters
Hi Actually you can get away with this: header(Location: $url,301); This will let php generate the proper headers Also, and I stress this point (again and again), the http specification clearly states that location headers need to have a *fully qualified url* not a site-specific one.

Re: [PHP] Question about HTTP 301 permanent redirects

2005-06-28 Thread Andy Pieters
On Wednesday 29 June 2005 00:31, Andy Pieters wrote: Hi Actually you can get away with this: header(Location: $url,301); Well it looks like we all make typos Header(Location: $url,true,301); is more like it This will let php generate the proper headers Also, and I stress this point

Re: [PHP] looking for a pure startup opportunity..OT

2005-06-28 Thread Ryan A
On 6/29/2005 12:16:58 AM, [EMAIL PROTECTED] wrote: Well, unfortunately you just contradicted yourself as well. I had about 18 e-mails of the same thing, so I was replying about those. Thanks for your input though, It's appreciated. Sure thing, you're welcome dude! -- PHP General Mailing

[PHP] date problem

2005-06-28 Thread Mario netMines
Hi all I have a database that holds car rental info DB: carrental_from (datetime field) carrental_to (datetime field) carrental_price (datetime field) [rates are per hour] The values I have are like: -00-00 00:00:00,-00-00 07:00:00,10 (all year around 00:00-07:00) -00-00

[PHP] Re: date problem

2005-06-28 Thread Jasper Bryant-Greene
Firstly, this shouldn't be in the PHP list, as you're asking for help with SQL. Mario netMines wrote: carrental_from (datetime field) carrental_to (datetime field) carrental_price (datetime field) [rates are per hour] carrental_price shouldn't be a datetime field, as it isn't a datetime

Re: [PHP] Re: date problem

2005-06-28 Thread Mario netMines
Hi Jasper and thanks for the quick reply. something tells me it's not a straightforward SQL query that I have to use here but a logic using PHP and SQL. Mario - Original Message - From: Jasper Bryant-Greene [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Wednesday, June 29,

Re: [PHP] ad management

2005-06-28 Thread Miles Thompson
Set up a small script which is the focus of your ads - when user clicks on an ad the key is passed and the number of views can be incremented, along with date, time and IP is you care, and as you are not outputting anything, the header() function can direct the user to the target

[PHP] force https

2005-06-28 Thread Ross
Hi, I need to force the url from http://mydomain.com to https://mydomain.com, so my ssl is active. Anyway this can be done with php? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Ke'tszeri Csaba [EMAIL PROTECTED]: About zend: sorry to say that here, but the less tools you use, the more freedom you have. Give me ssh access to any server running my php code and I can inspect it very well, may fix it in one shot :)). From anywhere. For what it's worth, I agree.

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Jochem Maas [EMAIL PROTECTED]: what is special about the MSSQL2K servers? do you have a lot of stored procedures in it? stuff like that? Exactly; the past mentality has been do everything through stored procedures, so we have a *lot*. Also, my manager's boss (who has since retired)

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Jonathan Villa [EMAIL PROTECTED]: Take a look at these, they are just some of the articles I've bookmarked over the past Oracle is now behind (well in support of) PHP http://www.oracle.com/technology/tech/php/index.html IBM is also behind PHP (well in support of)

[PHP] Re: PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Anton Kovalenko [EMAIL PROTECTED]: As to ColdFusion, It seems to me that this technology is dead already. What makes you say this? I had never heard anything like this, but it would certainly be powerful ammunition to present to my bosses. Thanks, Rick -- PHP General Mailing List

Re: [PHP] force https

2005-06-28 Thread Dan Trainor
Ross wrote: Hi, I need to force the url from http://mydomain.com to https://mydomain.com, so my ssl is active. Anyway this can be done with php? R. i'm a newbie, you've been warned header('Location: https://mydomain.com'); ? /i'm a newbie, you've been warned I don't know if that

Re: [PHP] force https

2005-06-28 Thread Robert Cummings
On Tue, 2005-06-28 at 23:26, Dan Trainor wrote: Ross wrote: Hi, I need to force the url from http://mydomain.com to https://mydomain.com, so my ssl is active. Anyway this can be done with php? i'm a newbie, you've been warned header('Location: https://mydomain.com'); ? /i'm a

Re: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Brad Pauly [EMAIL PROTECTED]: It might not be easy to put a number on, but consider your (and possibly the other developers') enthusiasm about PHP. I would guess that you will be more productive with something that you are excited about. Our senior developer and I (who come from a C

RE: [PHP] PHP vs. ColdFusion

2005-06-28 Thread Rick Emery
Quoting Matt Babineau [EMAIL PROTECTED]: Yeah - I'll second all of this. I'm a Certified Macromedia CF Developer, why do you ask am I on this list? The answer is simple, php is better. However with the recent developments in CF6, CF has become very comparable. Why would I still choose PHP over

Re: [PHP] shell expansion (globbing) from inside php cli script

2005-06-28 Thread Bob Winter
Brian, The format of your string that works for me is : $cmd = scp [EMAIL PROTECTED]:$directory/\{$files\} $tmp_dir; $files must be a comma separated string with NO SPACES. Here is my complete test script for your review: START = #!/usr/bin/php ?php $file1 = 'file_A'; $file2 =

Re: [PHP] force https

2005-06-28 Thread Dan Trainor
Robert Cummings wrote: On Tue, 2005-06-28 at 23:26, Dan Trainor wrote: Ross wrote: Hi, I need to force the url from http://mydomain.com to https://mydomain.com, so my ssl is active. Anyway this can be done with php? i'm a newbie, you've been warned header('Location:

Re: [PHP] force https

2005-06-28 Thread Jasper Bryant-Greene
Robert Cummings wrote: On Tue, 2005-06-28 at 23:26, Dan Trainor wrote: i'm a newbie, you've been warned header('Location: https://mydomain.com'); ? /i'm a newbie, you've been warned It'll work fine, but here's a something a little more generic :) header( 'Location:

Re: [PHP] Re: date problem

2005-06-28 Thread Jasper Bryant-Greene
Mario netMines wrote: Hi Jasper and thanks for the quick reply. something tells me it's not a straightforward SQL query that I have to use here but a logic using PHP and SQL. Please don't top-post. It can be done in SQL quite easily, as can many things people use PHP for. Go to the MySQL

Re: [PHP] force https

2005-06-28 Thread Robert Cummings
On Wed, 2005-06-29 at 00:44, Jasper Bryant-Greene wrote: Robert Cummings wrote: On Tue, 2005-06-28 at 23:26, Dan Trainor wrote: i'm a newbie, you've been warned header('Location: https://mydomain.com'); ? /i'm a newbie, you've been warned It'll work fine, but here's a