Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ben Dunlap
> > stripping, stemming, spelling corrections ? >  ... uhm, that's probably why they invented regular expressions, isn't it? > > As I said, at the end of the day, this will be a manual slow, potentially > wrong implementation of what we already have and use on daily basis. If you've got a regular

Re: [PHP] Magento shows blank page.

2009-09-03 Thread Ben Dunlap
> I followed this thread: > " > http://spikomoko.wordpress.com/2009/08/19/magento-not-working-on-php-5-3/ > ". > > But then, I'm bounched on this error in my webbrowser for visitting my > magento on my production server desktop: > " > .: > Fatal error: Call to a member function createDirIfNotExists

Re: [PHP] Magento shows blank page.

2009-09-03 Thread Ricky Tompu Breaky
After googling. I followed this thread: " http://spikomoko.wordpress.com/2009/08/19/magento-not-working-on-php-5-3/ ". But then, I'm bounched on this error in my webbrowser for visitting my magento on my production server desktop: " .: Fatal error: Call to a member function createDirIfNotExists()

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
stripping, stemming, spelling corrections ? ... uhm, that's probably why they invented regular expressions, isn't it? As I said, at the end of the day, this will be a manual slow, potentially wrong implementation of what we already have and use on daily basis. But obviously, everybody is free

Re: [PHP] Magento shows blank page.

2009-09-03 Thread Tommy Pham
- Original Message > From: Ricky Tompu Breaky > To: php-general@lists.php.net > Sent: Thursday, September 3, 2009 12:34:06 PM > Subject: [PHP] Magento shows blank page. > > Dear my friends, > > Anybody has ever the same experience as I am having now with PHP5CGI > and Magento? I haven'

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Paul M Foster
On Thu, Sep 03, 2009 at 12:12:40PM -0700, sono...@fannullone.us wrote: > Thanks to everyone who has responded. After reading everyone's > response, I think I have a very simple way to solve my "problem". > > Using my original example, if someone wants to find item # > 4D-2448-7PS, no

[PHP] reply to all

2009-09-03 Thread Tommy Pham
Hi all, As you've probably noticed, I'm new the list. My apologies if you're getting duplicates+ from my responses. I just realized now that PHP lists doesn't strip out other e-mail addresses other than the list's. The other lists I subscribe to does this automatically and I've taken it for

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Tommy Pham
- Original Message > From: "sono...@fannullone.us" > To: PHP General List > Sent: Thursday, September 3, 2009 12:12:40 PM > Subject: Re: [PHP] Searching on AlphaNumeric Content Only > > Thanks to everyone who has responded. After reading everyone's response, > I > think I have a

Re: [PHP] Magento shows blank page.

2009-09-03 Thread Ricky Tompu Breaky
Dear Ashley. Firstly, thank you very much for your respond. I uncommented this part of '/etc/php.ini': " display_errors Default Value: On Development Value: On Production Value: Off ". The result is my magento shows this in my webbrowser: " .: Fatal error: Method Varien_Object::__tostri

RE: [PHP] a doubt with class DOM

2009-09-03 Thread Carlos Garcia
Thanks for your answer, I change to class simplexml, the class DOM save all tree on RAM, and simplexml used a little RAM, right? He size file XMl is small no more 500 kb, i do not think having problem. Best regards.- _Karl_ Sorry for my english.- Carlos A. Garcia Hernandez José Clemen

Re: [PHP] Just a tip from one of your peers

2009-09-03 Thread tedd
At 9:27 AM -0700 9/3/09, Jim Lucas wrote: I want this to come across in the nicest way possible. Please I mean no harm by my following statements. And if you decide to hate me and never to respond to one of my posts again, well, that is your choice. -snip- After writing this, I guess it

Re: [PHP] Date Comparison

2009-09-03 Thread tedd
At 10:01 AM +0200 9/3/09, J DeBord wrote: Telling someone RTFM is just rude and mean. And not taking the time to research your question before posting is what, thoughtful and kind? The phrase RTFM is something I don't like to tell people, and from what I remember, I have never said that to

Re: [PHP] Magento shows blank page.

2009-09-03 Thread Ashley Sheridan
On Fri, 2009-09-04 at 02:34 +0700, Ricky Tompu Breaky wrote: > Dear my friends, > > Anybody has ever the same experience as I am having now with PHP5CGI > and Magento? > > I'm using Apache, MySQL and Mandriva 2009.1. > > What I've done is: > 1. Downloaded the Magento from: > http://www.magentoco

[PHP] Magento shows blank page.

2009-09-03 Thread Ricky Tompu Breaky
Dear my friends, Anybody has ever the same experience as I am having now with PHP5CGI and Magento? I'm using Apache, MySQL and Mandriva 2009.1. What I've done is: 1. Downloaded the Magento from: http://www.magentocommerce.com/getmagento/1.3.2.3/magento-1.3.2.3.zip and some other from is from: ht

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Eddie Drapkin
On Thu, Sep 3, 2009 at 3:17 PM, Ashley Sheridan wrote: > On Thu, 2009-09-03 at 12:12 -0700, sono...@fannullone.us wrote: >>       Thanks to everyone who has responded.  After reading everyone's >> response, I think I have a very simple way to solve my "problem". >> >>       Using my original examp

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ashley Sheridan
On Thu, 2009-09-03 at 12:12 -0700, sono...@fannullone.us wrote: > Thanks to everyone who has responded. After reading everyone's > response, I think I have a very simple way to solve my "problem". > > Using my original example, if someone wants to find item # > 4D-2448-7PS, no mat

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread sono-io
Thanks to everyone who has responded. After reading everyone's response, I think I have a very simple way to solve my "problem". Using my original example, if someone wants to find item # 4D-2448-7PS, no matter what they type in, I'll take the input, strip out all non-alphanumeric charac

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
> Even if the REGEXP has to change with every query? Ben, it does not matter, this is not a PHP problem but a DB structure/select/insert/update problem. Whatever REGEXP you use, a REGEXP is what you need to solve this problem, certainly not a PHP loop over each row with operations for each row

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ben Dunlap
> What's wrong with using the wildcards that are built into most SQL > variants? > > SELECT * FROM table WHERE item_id LIKE '%#abcdef' > > Will select all records where the item_id field ends in '#abcdef' That works if you know the user is always going to enter the last 7 characters of the product

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ben Dunlap
> Excuse me? Somebody suggested a PHP loop to solve a query problem and you are > saying that REGEXP should not be used? > MySQL caches queries and 100 SELECT with a REGEXP will cost zero after the > first one if nothing changed inside the table. Even if the REGEXP has to change with every query

Re: [PHP] Some help with SimpleXML :`(

2009-09-03 Thread J DeBord
You almost had it... Since clothes is the root element you can think of your initial $xml as . So, you add a child to it. That error message is kinda cryptic though. Red Gloves a pair of red gloves adult 12.99 Snow Boots some snow boots child 23.99 EOD; $sxm

RE: [PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
Hi, Thanks for trying to help me out. I don't have a schema for my XML, but here is something cool I found that worked for me: http://www.w3schools.com/PHP/func_xml_error_string.asp Alice > Date: Thu, 3 Sep 2009 07:42:00 -0700 > From: matt...@thorslund.us > To: aj...@alumni.iu.edu > CC:

Re: [PHP] Just a tip from one of your peers

2009-09-03 Thread Ashley Sheridan
On Thu, 2009-09-03 at 09:27 -0700, Jim Lucas wrote: > I want this to come across in the nicest way possible. Please I mean no > harm by my following statements. And if you decide to hate me and never > to respond to one of my posts again, well, that is your choice. > > > > I, and others too

[PHP] Just a tip from one of your peers

2009-09-03 Thread Jim Lucas
I want this to come across in the nicest way possible. Please I mean no harm by my following statements. And if you decide to hate me and never to respond to one of my posts again, well, that is your choice. I, and others too I'd expect, would appreciate it if you didn't take a response em

Re: [PHP] Array references - how to unset() ?

2009-09-03 Thread hack988 hack988
Yes,thanks and I sorry for my poor english 2009/9/3 Robert Cummings : > hack988 hack988 wrote: >> >> Reference vars in php would not be unset if it reference by another >> var,so you must keep original var had'nt being reference. > > You can't reference a reference in PHP. If you take the referenc

Re: [PHP] Date Comparison

2009-09-03 Thread Paul M Foster
On Thu, Sep 03, 2009 at 10:20:49AM +0100, Stuart wrote: > 2009/9/3 J DeBord : > > Telling someone RTFM is just rude and mean. Manipulating dates and times can > > be confusing for beginners and experienced people alike. I would suggest > > that when a question asked here causes you to respond with

[PHP] Some help with SimpleXML :`(

2009-09-03 Thread Matthew Croud
Hi foks, Could someone lend me a little hand with simpleXML ? I've been looking at examples in the PHP manual and W3C, i'm at the pinnacle of figuring it out but alas i need a hand from the mailing list dudes. My aim is to add another "item" node, so i'll start with my XML file called "it

[PHP] Validating XML Issue

2009-09-03 Thread Alice Wei
Hi, This seems like a small problem that I have read from http://us.php.net/manual/en/xmlreader.isvalid.php. I have the code snippet here as follows: setParserProperty(XMLReader::VALIDATE, true); if ($xml->isValid()) echo "true"; else echo "NOT"; ?> Here is the contents of hello.xml:

Re: [PHP] Validating XML Issue

2009-09-03 Thread Mattias Thorslund
I'd say your XML document is not "well formed", but validity depends on whether it conforms to the rules expressed in a schema. Mattias Alice Wei wrote: Hi, This seems like a small problem that I have read from http://us.php.net/manual/en/xmlreader.isvalid.php. I have the code snippet he

Re: [PHP] Array references - how to unset() ?

2009-09-03 Thread Robert Cummings
hack988 hack988 wrote: Reference vars in php would not be unset if it reference by another var,so you must keep original var had'nt being reference. You can't reference a reference in PHP. If you take the reference of a variable that is itself a reference then you are taking a reference to th

Re: [PHP] Array references - how to unset() ?

2009-09-03 Thread hack988 hack988
Reference vars in php would not be unset if it reference by another var,so you must keep original var had'nt being reference. 2009/9/3 Martin Zvarík : > AHA !!! > > OMG... how come I did not see that!? > > Instead this: > $array =& $array[$final]; > unset($array); > > This: > unset($array[$final]);

Re: [PHP] windows 5.2.10 PHP not working with phpinfo

2009-09-03 Thread hack988 hack988
HTTP 403.1 Forbidden: Execute Access Forbidden Internet Information Services IIS: properties->home directory->configuration->execute permissions set it to script and execute . 2009/9/3 Fred Silsbee : > THANKS! > > Here is my current situation (if you care to look at it (under the windows ) > l

Re: [PHP] a doubt with class DOM

2009-09-03 Thread Raymond Irving
It works ok for me and I think it's very reliable. You might want to run a few test on it though. Another approach is to break up your xml into smaller documents and then use php string functions to merge them together. __ Raymond Irving Rich Ajax/PHP Development http://raxanpdi.com --- On

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
> Indeed you could do it via a regexp, but that uses up quite some memory. > Every time you do a SELECT. You can simply add a table column with the > stripped value and let the table update itself (with an ON UPDATE ON > INSERT trigger, which takes the input value for the itemID and strips it

Re: [PHP] Date Comparison

2009-09-03 Thread Stuart
2009/9/3 J DeBord : > Telling someone RTFM is just rude and mean. Manipulating dates and times can > be confusing for beginners and experienced people alike. I would suggest > that when a question asked here causes you to respond with RTFM, don't > respond at all. Save yourself the time and trouble

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
Which DB? If it is MySQL, as example, you can simply use REGEXP syntax "^[a-zA-Z0-9]+$" via SELECT Regards > From: sono...@fannullone.us > To: php-general@lists.php.net > Date: Wed, 2 Sep 2009 20:47:15 -0700 > Subject: [PHP] Searching on AlphaNumeric Content Only > > Is there is a way to

Re: [PHP] CodeWorks 09

2009-09-03 Thread Luke
2009/9/2 Ben Dunlap > > What I would do for UK PHP events :-( > > Something like this perhaps? > > http://conference.phpnw.org.uk/phpnw09/ > > Ben > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > Nice one, I might be able to get to

Re: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Ashley Sheridan
On Wed, 2009-09-02 at 21:30 -0700, Ben Dunlap wrote: > >Is there is a way to search only for the alphanumeric content of > > field in a db? I have an itemID field that contains item #'s that include > > dashes, forward slashes, etc, and I want people to be able to search for an > > item #

Re: [PHP] Date Comparison

2009-09-03 Thread J DeBord
Telling someone RTFM is just rude and mean. Manipulating dates and times can be confusing for beginners and experienced people alike. I would suggest that when a question asked here causes you to respond with RTFM, don't respond at all. Save yourself the time and trouble and save the person asking