Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-05 Thread Jim Lucas
kvigor wrote: where is the part that it join()'s things together? it's: $in_list = '.join(',',$list).'; Good what is the output of the join() call it's: '7orange50lbs','8purple60lbs' //once echo'd Fine $query_One = SELECT * FROM shoe WHERE CONCAT(size,color,weight) IN({$in_list});

[PHP] Re: PHP as a strategic BUSINESS language

2007-07-05 Thread Colin Guthrie
Mark Allen wrote: I had high hopes for it when I started down the path, and was glad to find this list thinking that it would be a great resource for using PHP to help solve BUSINESS issues but basically 80% of the questions have nothing to do with BUSINESS issues but how do I do X questions

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Zoltán Németh
hmm I work for a large multinational transporting/logistics company, and the complete business management/tracking/billing/etc system is written in PHP... and it is working with almost zero downtime since the last four or five years... however it does have bugs and flaws in it - but those are the

Re: [PHP] Memory_limit higher than 256MB

2007-07-05 Thread Tobias Vollmer
Hello Chris, Chris wrote: Maybe in the typo3 code they have a memory_limit set: Yes! You were right. There was a ini_set('memory_limit', '256M'); hardcoded in the extension. (for the archive: it was in typo3_src-4.1.1/typo3/sysext/impexp/class.tx_impexp.php on line 183) Commenting the

Re: [PHP] Re: Re 2D: [ 2CPHP 2D] 2CRe 2D: 2Cphp security books

2007-07-05 Thread Jochem Maas
Andrew Hutchings wrote: In article [EMAIL PROTECTED] [EMAIL PROTECTED](Jochem Maas) wrote: OK, well, for example page 3 of the book suggests making PHP output errors into Apache's error_log. To do this on Linux it means PHP would have to be run as root. huh? funny thing is that on

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Stut
Mark Allen wrote: I had high hopes for it when I started down the path, and was glad to find this list thinking that it would be a great resource for using PHP to help solve BUSINESS issues but basically 80% of the questions have nothing to do with BUSINESS issues but how do I do X questions

[PHP] NAT Traversal

2007-07-05 Thread Fahad Pervaiz
Hello, I want to get the actual IP of a client behind NAT or a Firewall. Is there anyway to traverse NAT to get the actuall/real IP of the client to check weather its reachable directly or not. OR Is there anyother way to do that. Plz suggest -- Regards Fahad Pervaiz www.ecommerce-xperts.com

Re: [PHP] NAT Traversal

2007-07-05 Thread Stut
Fahad Pervaiz wrote: Hello, I want to get the actual IP of a client behind NAT or a Firewall. Is there anyway to traverse NAT to get the actuall/real IP of the client to check weather its reachable directly or not. OR Is there anyother way to do that. Plz suggest No, you can't. And even if

Re: [PHP] NAT Traversal

2007-07-05 Thread Stut
Please include the list when replying. Fahad Pervaiz wrote: Thanks for the reply!!! I need to get the internal IP of the client. Is it possible to get it via javascript?? I have tried to search some scripts but found nothing useful. No, you can't. Javascript runs in a sandbox that limits

[PHP] Re: NAT Traversal

2007-07-05 Thread Colin Guthrie
Stut wrote: Fahad Pervaiz wrote: Hello, I want to get the actual IP of a client behind NAT or a Firewall. Is there anyway to traverse NAT to get the actuall/real IP of the client to check weather its reachable directly or not. OR Is there anyother way to do that. Plz suggest No, you

Re: [PHP] NAT Traversal

2007-07-05 Thread Fahad Pervaiz
What i am trying to do is that, i have an ecommerce shopping cart application developed and deployed on many servers. Now i want to put support for the clients having cookies disabled. There are two options to do it. 1. Pass session id in the url ($_GET) array (encrypted or unencrypted) 2.

Re: [PHP] NAT Traversal

2007-07-05 Thread Stut
Fahad Pervaiz wrote: What i am trying to do is that, i have an ecommerce shopping cart application developed and deployed on many servers. Now i want to put support for the clients having cookies disabled. There are two options to do it. 1. Pass session id in the url ($_GET) array

Re: [PHP] NAT Traversal

2007-07-05 Thread Fahad Pervaiz
Thanx Rick is there any solution that u recommend or is there any tutorial available that can help in resloving this problem Also i have observed that websites like ebay and amazon uses option1 approach i.e. they pass encrypted key on each page. On 7/5/07, [EMAIL PROTECTED] [EMAIL

[PHP] Re: help curl followlocation

2007-07-05 Thread Gowranga
Hello, Thanks for your mail. However, I am not clear on how to use curl for my purpose. Kindly help me. In order to authenticate myself on a remote server, I have tried the following two ways: Method I ?php header(Location: http://remote.site.address;); ? On the resulting html page containing

[PHP] Magis_qoutes + linux + smarty

2007-07-05 Thread chetan rane
Hi Guys I have a Problem wioth Smarty i have set the MAGIC_QOUTES_GPC =ON and the templates are not getting created. however when it is off ther created and everything is working fine. thsi happens only on linux. On windows it has no problem -- Have A plesant Day Chetan. D. Rane Location:

Re: [PHP] Magis_qoutes + linux + smarty

2007-07-05 Thread Stut
chetan rane wrote: Hi Guys I have a Problem wioth Smarty i have set the MAGIC_QOUTES_GPC =ON and the templates are not getting created. however when it is off ther created and everything is working fine. thsi happens only on linux. On windows it has no problem This list is for general PHP

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Jason Pruim
I believe that any programming language is what you make of it... if you use it to write games, it's a games language Write webapps for your business, it's a business language... And this is by far the best resource I have found for getting answers to questions about PHP... It's taken

Re: [PHP] Re: how PHP is batter?

2007-07-05 Thread David Robley
Chris wrote: Either phrase can be a good or a bad thing, it all depends on tone - Scottish is very like Japanese in that respect :p with regard to batter - isn't it the scots that have pechant for covering marsbars with the stuff and deepfrying them? The aussies do it too - are we just

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Jochem Maas
let's break this down shall we. 1. there is no such thing a business [programming] language (you can lie through your teeth and sell shit in any language ;-), although some language may be synonymous with business because of their frequent use to solve business specific logic problems. 2.

Re: [PHP] Re: developer seeking document writer

2007-07-05 Thread tedd
At 10:15 AM -0400 7/4/07, Robert Cummings wrote: On Wed, 2007-07-04 at 10:04 -0400, tedd wrote: Plus, documenting someone else's code always pays less than documenting you're own. I'm not so sure, I found documenting my own stuff paid 0 whereas documenting stuff while being paid hourly or

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 10:19 -0400, Daniel Brown wrote: An easy one going on a previous theme. And see? Every so often, I come up with some good ideas like this thread albeit more intrusive than productive :-\ ? global $eggs; global $chickens; function hatch($eggs) {

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Daniel Brown
On 7/4/07, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-07-04 at 19:38 +0100, Colin Guthrie wrote: Robert Cummings wrote: For every action there is an equal and opposite reaction. Thanks Abe, Sir Abraham Newton - father of modern mechanics! It's the new physics where you have to

RE: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Jay Blanchard
[snip] I had high hopes for it when I started down the path, and was glad to find this list thinking that it would be a great resource for using PHP to help solve BUSINESS issues but basically 80% of the questions have nothing to do with BUSINESS issues but how do I do X questions which IMO should

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-05 Thread kvigor
Sorry, That was a typo there's on one IN clause. here is how it reads: SELECT * FROM central WHERE CONCAT(strName,strCity,strState) IN('7orange50lbs','8purple60lbs'). So in my table I have 8 in size column, purple in color column, and 60lbs in weight column. Since the concatenated value will

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Alan Milnes
On 05/07/07, Jochem Maas [EMAIL PROTECTED] wrote: 6. IBM, Oracle and others seem to be less sure about whether php will ever be a major player in the business solutions arena (often referred to as 'being enterprise ready') ... there may be some way to go in this sense but there are plenty of

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Nathan Nobbe
I'll keep it in my toolbox for the simple, quick way to get something to the inter/intranet but other than that it's not ever going to be a major player in Real World business solutions. i usually take a statement of this nature to mean the person saying it doesnt know much about php. have you

[PHP] Real-World BUSINESS Problem

2007-07-05 Thread Jay Blanchard
PROBLEM I need to automatically create packing lists at the end of each day for items ordered through our warehouse inventory control system. Each packing list is related to a retail location. The packing list must be printed so that order pickers can get the materials and package for shipment to

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Daniel Brown
{snip=all} Actually, PHP is a phenomenal, scalable, and brilliantly-extensible ?=strtolower(BUSINESS);? language. Yahoo!, IBM, Google, and (of course) Zend are just a few of the multi-million and billion dollar players. The company for whom I'm building web and desktop-level, as well, a

Re: [PHP] Real-World BUSINESS Problem

2007-07-05 Thread Stut
Jay Blanchard wrote: PROBLEM I need to automatically create packing lists at the end of each day for items ordered through our warehouse inventory control system. Each packing list is related to a retail location. The packing list must be printed so that order pickers can get the materials and

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread tedd
At 10:17 PM -0400 7/4/07, Mark Allen wrote: I had high hopes for it when I started down the path, and was glad to find this list thinking that it would be a great resource for using PHP to help solve BUSINESS issues but basically 80% of the questions have nothing to do with BUSINESS issues but

Re: [PHP] Re: php security books

2007-07-05 Thread tedd
At 11:23 AM -0400 7/4/07, Andrew Hutchings wrote: In article [EMAIL PROTECTED] [EMAIL PROTECTED](Mark Kelly) wrote: Hi. On Wednesday 04 July 2007 13:01, Andrew Hutchings wrote: Avoid the O'Reilly one as it is flawed. In what way? Its written by Chris Shiflett, isn't that

[PHP] PHP - QuickBooks

2007-07-05 Thread Daniel Brown
I usually don't post a question to the list, since Google is my friend, but this is somewhat of an urgent question that I don't feel qualified to answer 100% affirmatively. So as I research the Internet for some quality information, I'm hoping one (or more) of you have had some experience in

Re: [PHP] PHP - QuickBooks

2007-07-05 Thread Leonard Burton
Hi Daniel, There is a QB format. What you will have to do AFAIK is have PHP create the file then have QB import it. As far as Live changes, the only thing I have even glanced at is: http://www.devx.com/xml/Article/30482 Take care, Leonard On 7/5/07, Daniel Brown [EMAIL PROTECTED] wrote:

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Jochem Maas
Alan Milnes wrote: On 05/07/07, Jochem Maas [EMAIL PROTECTED] wrote: 6. IBM, Oracle and others seem to be less sure about whether php will ever be a major player in the business solutions arena (often referred to as 'being enterprise ready') ... there may be some way to go in this sense

Re: [PHP] PHP - QuickBooks

2007-07-05 Thread Daniel Brown
On 7/5/07, Leonard Burton [EMAIL PROTECTED] wrote: Hi Daniel, There is a QB format. What you will have to do AFAIK is have PHP create the file then have QB import it. As far as Live changes, the only thing I have even glanced at is: http://www.devx.com/xml/Article/30482 Take care, Leonard

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-05 Thread Jim Lucas
kvigor wrote: Sorry, That was a typo there's on one IN clause. here is how it reads: SELECT * FROM central WHERE CONCAT(strName,strCity,strState) IN('7orange50lbs','8purple60lbs'). So in my table I have 8 in size column, purple in color column, and 60lbs in weight column. Since the

Re: [PHP] Real-World BUSINESS Problem

2007-07-05 Thread Dan Shirah
Okay. All of the orders are in your database, correct? 1. Write a query that selects all of the days orders from 12:00am-11:59pm. 2. Create a form for the specific data and layout you want in your packing slip. 3. In your loop for each record, send the data to a printer. 4. For your electronic

Re: [PHP] PHP as a strategic BUSINESS language

2007-07-05 Thread Jochem Maas
Daniel Brown wrote: {snip=all} Actually, PHP is a phenomenal, scalable, and brilliantly-extensible ?=strtolower(BUSINESS);? language. Yahoo!, IBM, Google, and (of course) Zend are just a few of the multi-million and billion dollar players. The company for whom I'm building web and

Re: [PHP] mail function problem

2007-07-05 Thread Daniel Brown
On 7/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Chris a écrit : web2 wrote: Chris a écrit : Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; if(mail([EMAIL PROTECTED],essai,test,$headers)) { echo OK:

Re: [PHP] PHP - QuickBooks

2007-07-05 Thread Daniel Brown
On 7/5/07, Bob Covell [EMAIL PROTECTED] wrote: Daniel, We have found that changing data (correctly) in QB quite a task. Once we saw how we could really mess up data integrity we opted for a read only solution by pulling out the exact tables we needed. We used AccessBooks RT from synergration.

Re: [PHP] mail function problem

2007-07-05 Thread web2
Chris a écrit : web2 wrote: Chris a écrit : Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n; if(mail([EMAIL PROTECTED],essai,test,$headers)) { echo OK: .ini_get('sendmail_path'); } else { echo NOK:

Re: [PHP] mail function problem

2007-07-05 Thread Tijnema
On 7/5/07, Daniel Brown [EMAIL PROTECTED] wrote: On 7/5/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Chris a écrit : web2 wrote: Chris a écrit : Try this: ? $email = [EMAIL PROTECTED]; $headers = From: .$email.\r\n; $headers .= X-Mailer: PHP/.phpversion().\r\n;

Re: [PHP] mail function problem

2007-07-05 Thread Daniel Brown
On 7/5/07, Tijnema [EMAIL PROTECTED] wrote: he's running it on the web, as the CLI worked ;) Yeah, I knew it was mentioned before, but I couldn't remember. I think I have early-onset Alzheimer's. -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 -- PHP General

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-05 Thread K. Hayes
No not trying to trick you at all. It's just that because of an incident I had on a previous site with giving actual table names etc. I had another one helping me through forums. I actually share too much info. as a result my DB was ruined... At any rate had no clue about combined_string it

Re: [PHP] Re: php security books

2007-07-05 Thread Chris Shiflett
Andrew Hutchings wrote: Avoid the O'Reilly one as it is flawed. Hollow claims are disrespectful and harmful to professional discourse. Perhaps you are motivated to persuade others that this is true and will do so at any cost, even if it means spreading misinformation. I'm aware of one person who

Re: [PHP] Selecting Rows Based on Row Values Being in Array

2007-07-05 Thread Jim Lucas
K. Hayes wrote: No not trying to trick you at all. It's just that because of an incident I had on a previous site with giving actual table names etc. I had another one helping me through forums. I actually share too much info. as a result my DB was ruined... At any rate had no clue about

Re: [PHP] About DREAMWEAVER

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 11:52 -0700, Kelvin Park wrote: I'm trying to get rid of all the comments that are in a different language in dreamweaver. Anyone know how to do that automatically? I have like 1000 php files with full of comments in different language. I do not intend on translating them

Re: [PHP] About DREAMWEAVER

2007-07-05 Thread Dan Shirah
There is a Find and Replace function in Dreamweaver, but it is very specific and will only find specific words/tags. If these comments are from outside of Dreamweaver and it does not recognize them, then it is probably interpreting them as basic HTML text. And as such there would be no way for

[PHP] About DREAMWEAVER

2007-07-05 Thread Kelvin Park
I'm trying to get rid of all the comments that are in a different language in dreamweaver. Anyone know how to do that automatically? I have like 1000 php files with full of comments in different language. I do not intend on translating them or doing anything with em, I just wanna get rid of them

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread tedd
$which = isset($_GET['chicken']) ? $_GET['egg'] : null; Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] housekeeping program

2007-07-05 Thread scott flemming
Hi, I have built a server program. This program collects the data from the user. In the meantime, I have written another program to do housekeeping work: process user's data, send an alert email and delete old files. How can I ensure the housekeeping program run 24/7? If the server is rebooted,

RE: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Kaleb Pomeroy
Which came first, the chicken or the egg? -Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: Thursday, July 05, 2007 2:56 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: PHP Brain Teasers $which = isset($_GET['chicken']) ? $_GET['egg'] : null; Cheers, tedd --

Re: [PHP] housekeeping program

2007-07-05 Thread Stut
scott flemming wrote: Hi, I have built a server program. This program collects the data from the user. In the meantime, I have written another program to do housekeeping work: process user's data, send an alert email and delete old files. How can I ensure the housekeeping program run 24/7? If

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Daniel Brown
On 7/5/07, tedd [EMAIL PROTECTED] wrote: $which = isset($_GET['chicken']) ? $_GET['egg'] : null; Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 15:04 -0500, Kaleb Pomeroy wrote: Which came first, the chicken or the egg? The egg, fish were laying them long before chickens walked the earth :) Cheers, Rob. -- .. | InterJinn Application Framework -

RE: [PHP] PHP Brain Teasers

2007-07-05 Thread Chris Boget
while( TRUE ) { $actions++; $words--; } $bets = array(1,2,3,4,5); unset( $bets ); $arr = array( 'this', 'that', 'times' ); $arr[] = 'behind'; for( $i = 0; $i = 6; $i++ ) { $deep++; } for( $i = 0; $i = 5; $i++ ) { $flies--; } thnx, Chris -- PHP General Mailing List

[PHP] About Website Search Engine

2007-07-05 Thread Kelvin Park
I'm trying to build a search engine for my website (with php), it will have functions such as finding product names and their codes from the mysql database. Does anyone know any good tutorial or reference on any website, or any good books out there that you might recommend? I couldnt' find any

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Daniel Brown
Let's get obscure try to guess it before running the code. It actually shouldn't be difficult. ? class Brainteaser { function paint($original_image,$rgb_string1,$rgb_string2,$input1,$input2) { header(Content-type: image/png); $im = imagecreatefromjpeg($original_image);

Re: [PHP] PHP Brain Teasers

2007-07-05 Thread Daniel Brown
On 7/5/07, Chris Boget [EMAIL PROTECTED] wrote: while( TRUE ) { $actions++; $words--; } Actions speak louder than words. $bets = array(1,2,3,4,5); unset( $bets ); All bets are off. $arr = array( 'this', 'that', 'times' ); $arr[] = 'behind'; Behind the times. for( $i = 0; $i =

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Daniel Brown
On 7/5/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-07-05 at 15:04 -0500, Kaleb Pomeroy wrote: Which came first, the chicken or the egg? The egg, fish were laying them long before chickens walked the earth :) Yeah, good point, smartass. ;-P -- Daniel P. Brown [office]

[PHP] Stop Download managers

2007-07-05 Thread Pieter du Toit
Hi Is there a way to stop download managers on my php webpages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Brain Teasers

2007-07-05 Thread Chris Boget
Actions speak louder than words. Yup. All bets are off. Indeed. Behind the times. Correct. Deep Six. Got it. for( $i = 0; $i = 5; $i++ ) { $flies--; } Time flies backwards? // Not sure on this one. I wasn't sure if this one was done well enough; I guess it wasn't. The

Re: [PHP] About Website Search Engine

2007-07-05 Thread Daniel Brown
On 7/5/07, Kelvin Park [EMAIL PROTECTED] wrote: I'm trying to build a search engine for my website (with php), it will have functions such as finding product names and their codes from the mysql database. Does anyone know any good tutorial or reference on any website, or any good books out there

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 16:08 -0400, Daniel Brown wrote: That's the question that still perplexes even the greatest of minds. I've never found it very perplexing :| Cheers, Rob. -- .. | InterJinn Application Framework -

Re: [PHP] Stop Download managers

2007-07-05 Thread Daniel Brown
On 7/5/07, Pieter du Toit [EMAIL PROTECTED] wrote: Hi Is there a way to stop download managers on my php webpages? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You could do it by restricting the user agents like so ?

Re: [PHP] About Website Search Engine

2007-07-05 Thread Daniel Brown
On 7/5/07, Kelvin Park [EMAIL PROTECTED] wrote: Yes my website is dynamically driven from content within mysql. The products and the product information is within the datase. I was looking for a way to allow people to efficiently search for an item, for example if a customer types in, bunny, it

Re: [PHP] how PHP is batter?

2007-07-05 Thread Adam Schroeder
Crayon Shin Chan wrote: On Tuesday 03 July 2007 22:56, Stut wrote: I saw there is a free version of Studio, but I think it's for students... You cannot go build a corporate project with it I think... More FUD. Go read the licence before claiming to know what it says!

[PHP] Re: Real-World BUSINESS Problem

2007-07-05 Thread Colin Guthrie
Jay Blanchard wrote: PROBLEM I need to automatically create packing lists at the end of each day for items ordered through our warehouse inventory control system. Each packing list is related to a retail location. The packing list must be printed so that order pickers can get the materials

[PHP] Re: PHP Brain Teasers

2007-07-05 Thread Colin Guthrie
Chris Boget wrote: I wasn't sure if this one was done well enough; I guess it wasn't. The answer is 'Dropping like flies'. :p Well you can't make it too easy... I like it :) (didn't get it but I like it!!) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Real-World BUSINESS Problem

2007-07-05 Thread Colin Guthrie
Colin Guthrie wrote: Jay Blanchard wrote: PROBLEM I need to automatically create packing lists at the end of each day for items ordered through our warehouse inventory control system. Each packing list is related to a retail location. The packing list must be printed so that order pickers

[PHP] ob_start eval?

2007-07-05 Thread blackwater dev
I have a template system that takes some data, scrubs it and then with a load method includes the required template. I need to add a param so it doesn't simply include but returns the contents of the template in a string with all of the vars populated. I tried: ob_start(); include my template

[PHP] Suggestion re: PHP Brain Teasers

2007-07-05 Thread Steve Edberg
Proposal - Perhaps we could separate Brain Teasers, Obfuscated PHP challenges, and what-have-you to a separate mailing list, say php-fun (php-phun? PHPhun?)? Maybe you could also include 'use of eval()' in that list, since I think 97.004% of the time using eval() inevitably leads to

Re: [PHP] Stop Download managers

2007-07-05 Thread Dan
Yeah, but a good portion of Download managers clone the useragent field anyway so this wouldn't really stop them. The only reliable way I've ever heard of people doing this is if they see two connections from the same IP at the same time. I assume you're talking about how to stop download

Re: [PHP] Suggestion re: PHP Brain Teasers

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 16:27 -0700, Steve Edberg wrote: Proposal - Perhaps we could separate Brain Teasers, Obfuscated PHP challenges, and what-have-you to a separate mailing list, say php-fun (php-phun? PHPhun?)? Maybe you could also include 'use of eval()' in that list, since I think

[PHP] Re: PHP Courses in India

2007-07-05 Thread Dan
You go to an institute in India to learn PHP? Isn't it more of a language that you could get from a book? I know there's been lots of book discussions on this newsgroup, your English seems pretty good that would probably be the best option. As far as an institute goes I have no idea. Sorry

Re: [PHP] ob_start eval?

2007-07-05 Thread Larry Garfield
If I understand what you're doing correctly, then it should work and I've done it many times. First thing you should do, though, is switch from short tags to proper tags, ?php echo $whatever; ?. If you have short tags disabled, it will not parse ?= syntax. On Thursday 05 July 2007,

Re: [PHP] Suggestion re: PHP Brain Teasers

2007-07-05 Thread Steve Edberg
At 7:37 PM -0400 7/5/07, Robert Cummings wrote: On Thu, 2007-07-05 at 16:27 -0700, Steve Edberg wrote: Proposal - Perhaps we could separate Brain Teasers, Obfuscated PHP challenges, and what-have-you to a separate mailing list, say php-fun (php-phun? PHPhun?)? Maybe you could also include

[PHP] Help with HttpRequest -- avoiding 417s from Lighttpd

2007-07-05 Thread Ben Blank
Is there a way to prevent HttpRequest (from the pecl_http extension) from using an Expect: 100-continue on large POSTs? I've a script which needs to submit pages to a host running Lighttpd v1.4, which does not support section 8.2.3 of the HTTP/1.1 spec and so always returns a 417 Expectation

Re: [PHP] Re: parsin XML with DOM

2007-07-05 Thread 邱慧剑
Maybe you can set preserveWhiteSpace to ignore whitespace,like this: $RSS_DOM = new DomDocument(); $RSS_DOM-preserveWhiteSpace = false; On 6/27/07, M. Sokolewicz [EMAIL PROTECTED] wrote: Mikey wrote: [EMAIL PROTECTED] wrote: [snip] its type is not DomNode, but DomText. Only the 2nd

Re: [PHP] ob_start eval?

2007-07-05 Thread blackwater dev
We have short tags enabled as our templates work fine with them. Thanks! On 7/5/07, Larry Garfield [EMAIL PROTECTED] wrote: If I understand what you're doing correctly, then it should work and I've done it many times. First thing you should do, though, is switch from short tags to proper

[PHP] Loading a URL

2007-07-05 Thread Kaleb Pomeroy
/*I am trying to load an XML file from the following site, which btw is a working site you can put in the address bar.*/ $url = http://isbndb.com/api/books.xml?access_key=WC2BD24Wresults=pricesindex1=isbnvalue1=030681496x;; //open the url if(!($handle = fopen($url, r))){ echo Error

Re: [PHP] Loading a URL

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 20:39 -0500, Kaleb Pomeroy wrote: /*I am trying to load an XML file from the following site, which btw is a working site you can put in the address bar.*/ $url = http://isbndb.com/api/books.xml?access_key=WC2BD24Wresults=pricesindex1=isbnvalue1=030681496x;; //open the

RE: [PHP] Loading a URL

2007-07-05 Thread Kaleb Pomeroy
That's it. Thanks a bunch Robert -Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: Thu 05-Jul-07 8:53 PM To: Kaleb Pomeroy Cc: php-general@lists.php.net Subject: Re: [PHP] Loading a URL On Thu, 2007-07-05 at 20:39 -0500, Kaleb Pomeroy wrote: /*I am trying to

Re: [PHP] About Website Search Engine

2007-07-05 Thread Nathan Nobbe
Kevin, just like Daniel said, $sql .= OR product_description *LIKE '%.$terms.%'*; most of the *search engines* ive seen revolve around the use of the LIKE constructhttp://dev.mysql.com/doc/refman/5.1/en/string-comparison-functions.html#operator_like which is a simplified regex mechanism for

Re: [PHP] Re: PHP Courses in India

2007-07-05 Thread Nathan Nobbe
you might try the online training courses from php architecthttp://hades.phparch.com/socrates/ . -nathan On 7/5/07, Dan [EMAIL PROTECTED] wrote: You go to an institute in India to learn PHP? Isn't it more of a language that you could get from a book? I know there's been lots of book

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread tedd
At 4:17 PM -0400 7/5/07, Robert Cummings wrote: On Thu, 2007-07-05 at 16:08 -0400, Daniel Brown wrote: That's the question that still perplexes even the greatest of minds. I've never found it very perplexing :| Cheers, Rob. Yeah, but he did say the greatest of minds. :-) Cheers, tedd

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 22:37 -0400, tedd wrote: At 4:17 PM -0400 7/5/07, Robert Cummings wrote: On Thu, 2007-07-05 at 16:08 -0400, Daniel Brown wrote: That's the question that still perplexes even the greatest of minds. I've never found it very perplexing :| Cheers, Rob. Yeah,

RE: [PHP] PHP Brain Teasers

2007-07-05 Thread tedd
2b || !2b Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread tedd
At 4:48 PM -0400 7/5/07, Daniel Brown wrote: On 7/5/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-07-05 at 15:04 -0500, Kaleb Pomeroy wrote: Which came first, the chicken or the egg? The egg, fish were laying them long before chickens walked the earth :) Yeah, good point,

Re: [PHP] About Website Search Engine

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 22:26 -0400, Nathan Nobbe wrote: Kevin, just like Daniel said, $sql .= OR product_description *LIKE '%.$terms.%'*; most of the *search engines* ive seen revolve around the use of the LIKE

RE: [PHP] PHP Brain Teasers

2007-07-05 Thread tedd
My favorite. /world Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP Brain Teasers

2007-07-05 Thread tedd
At 9:20 PM +0100 7/5/07, Chris Boget wrote: while( TRUE ) { $actions++; $words--; } $bets = array(1,2,3,4,5); unset( $bets ); $arr = array( 'this', 'that', 'times' ); $arr[] = 'behind'; for( $i = 0; $i = 6; $i++ ) { $deep++; } for( $i = 0; $i = 5; $i++ ) { $flies--; } thnx, Chris

Re: [PHP] PHP Brain Teasers

2007-07-05 Thread heavyccasey
To be.. or not to be? On 7/5/07, tedd [EMAIL PROTECTED] wrote: 2b || !2b Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General

Re: [PHP] About Website Search Engine

2007-07-05 Thread Nathan Nobbe
note: i never said this was an optimal solution; i just said thats what ive seen. obviously i havent worked on any major search engine to date. in fact i was fishing a bit for some info on how to do it right. On 7/5/07, Robert Cummings [EMAIL PROTECTED] wrote: If you need to use MySQL use the

Re: [PHP] Re: PHP Brain Teasers

2007-07-05 Thread Robert Cummings
On Thu, 2007-07-05 at 22:44 -0400, tedd wrote: At 4:48 PM -0400 7/5/07, Daniel Brown wrote: On 7/5/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-07-05 at 15:04 -0500, Kaleb Pomeroy wrote: Which came first, the chicken or the egg? The egg, fish were laying them long before

[PHP] mailparse_msg_extract_part_file error

2007-07-05 Thread Bruce Cowin
I have written a PHP (v5.1) app to parse a bunch of MIME files. It works for the vast majority, but sometimes I get this error: mailparse_msg_extract_part_file(): mbstring doesn't know how to decode plain transfer encoding! It appears to be when messages have Content-Type: text/plain;

[PHP] Adding the array in to each element of another one array

2007-07-05 Thread sivasakthi
Hi Guys, I have a array like that below, $values = (name1 %we %tr , name2 %de.%ty %sd, name3 %we 5te %mt/% Hs); another one array like that, $tmp = (%tr, %uy, %xc); I need to add the array of $tmp in to each element of array $values.Also i need to add the $tmp array in to after the name