php-general Digest 3 Jun 2010 07:07:35 -0000 Issue 6779

2010-06-03 Thread php-general-digest-help
php-general Digest 3 Jun 2010 07:07:35 - Issue 6779 Topics (messages 305745 through 305767): Re: regular expression 305745 by: Richard Quadling Preg Match Problem 305746 by: Alice Wei 305747 by: Peter Lind 305748 by: Alice Wei 305767 by: Simcha

Re: [PHP] Preg Match Problem

2010-06-03 Thread Simcha Younger
On Wed, 2 Jun 2010 12:14:47 -0400 Alice Wei aj...@alumni.iu.edu wrote: Hi, I have a code snippet here as in the following: [CODE] $keywords = preg_split(/[\s,]+/, $day); $count = count($keywords); if(preg_match((Mon|Tue|Wed|Thu|Fri)/i, $keywords[$i])) { //line 40 $day_query

Re: [PHP] Set up MySQL + Apache 2.2.4 on Win XP

2010-06-03 Thread Shreyas
Shiplu, Not sure what you meant by that. I never had to restore anything. Would be happy to know if I have misunderstood anything. Regards, Shreyas On Thu, Jun 3, 2010 at 4:52 AM, shiplu shiplu@gmail.com wrote: Actually you just restore your NS schema in the new EasyPHP stack. Shiplu

RE: [PHP] Set up MySQL + Apache 2.2.4 on Win XP

2010-06-03 Thread Bob McConnell
From: Shreyas Not sure what you meant by that. I never had to restore anything. Would be happy to know if I have misunderstood anything. On Thu, Jun 3, 2010 at 4:52 AM, shiplu shiplu@gmail.com wrote: Actually you just restore your NS schema in the new EasyPHP stack. The fact that you

RE: [PHP] Set up MySQL + Apache 2.2.4 on Win XP

2010-06-03 Thread Ashley Sheridan
On Thu, 2010-06-03 at 08:29 -0400, Bob McConnell wrote: From: Shreyas Not sure what you meant by that. I never had to restore anything. Would be happy to know if I have misunderstood anything. On Thu, Jun 3, 2010 at 4:52 AM, shiplu shiplu@gmail.com wrote: Actually you just

Re: [PHP] Set up MySQL + Apache 2.2.4 on Win XP

2010-06-03 Thread Shreyas
Ash - Yes, the service was stopped and then it was copied. --Shreyas On Thu, Jun 3, 2010 at 7:07 PM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Thu, 2010-06-03 at 08:29 -0400, Bob McConnell wrote: From: Shreyas Not sure what you meant by that. I never had to restore anything.

[PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
Good morning, I have a PHP form that I have been using for some time now on a Macbook Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this morning, when I submitted (it is a journaling application) it came up with the following error: No such file or directory

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Ashley Sheridan
On Thu, 2010-06-03 at 08:56 -0500, Steve Marquez wrote: Good morning, I have a PHP form that I have been using for some time now on a Macbook Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this morning, when I submitted (it is a journaling application) it came

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Nilesh Govindarajan
On Thu, Jun 3, 2010 at 7:26 PM, Steve Marquez smarq...@marquez-design.com wrote: Good morning, I have a PHP form that I have been using for some time now on a Macbook Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this morning, when I submitted (it is a

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
Sorry I wasn't specific enough. I'll include the files.!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head titlePrayer Form/title meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 link href=css/prayer.css rel=stylesheet

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Jim Lucas
Steve Marquez wrote: Good morning, I have a PHP form that I have been using for some time now on a Macbook Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this morning, when I submitted (it is a journaling application) it came up with the following error:

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Jim Lucas
Steve Marquez wrote: I am running Apache (not sure which version, where do I find that?) it is running on a Macbook Pro. The error happened when I submitted the form. Sorry, should have been more specific. Where did you see the error? In your browser, error logs of your web server, etc...

RE: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread HallMarc Websites
the path and the name of the file that was being called; then go and look to see if the file exists. __ Information from ESET Smart Security, version of virus signature database 5169 (20100603) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Shreyas
database 5169 (20100603) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Regards, Shreyas

RE: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread HallMarc Websites
and well. Business has slowed down enough that I had time to actually read a few posts! Marc Hall HallMarc Websites www.hallmarcwebsites.com __ Information from ESET Smart Security, version of virus signature database 5169 (20100603) __ The message was checked by ESET Smart

[PHP] CakePHP, alternatives?

2010-06-03 Thread Shreyas
Folks, Just quite could not stop taking your inputs before I start my learning curve to shape up. Should I use one of these frameworks or just *K*eep *I*t *S*imple and *S*tupid and learn it the traditional way? Thoughts? -- Regards, Shreyas

Re: [PHP] CakePHP, alternatives?

2010-06-03 Thread la...@garfieldtech.com
First spend time working with straight up PHP, writing your own stuff, throwing it away, and writing it again. What you'll learn that way is immeasurable. Then pick a framework (Cake, Drupal, Symfony, Zend, PEAR, whatever) and learn it, maybe two. Try working with it and extending it.

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
Strangest thing... it just started working again. Odd. Is there an easy way to view the error logs? As you can tell, I am still a novice at this. I am on Apache2 Thanks for your help. -- Steve Marquez Marquez Design e-mail: smarq...@marquez-design.com web: http://www.marquez-design.com

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Ashley Sheridan
On Thu, 2010-06-03 at 12:58 -0500, Steve Marquez wrote: Strangest thing... it just started working again. Odd. Is there an easy way to view the error logs? As you can tell, I am still a novice at this. I am on Apache2 Thanks for your help. It depends. On most Linux distros there

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Shreyas
Steve, Do you know where Apache is installed? If yes, you have something like error.log and access.log. Find them and nail them them down. I am a novice, too and the best way to learn is to answer here and getting corrected by other PHP gurus! So, all in the name of learning! :) --Shreyas On

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Ashley Sheridan
On Fri, 2010-06-04 at 00:25 +0530, Shreyas wrote: Steve, Do you know where Apache is installed? If yes, you have something like error.log and access.log. Find them and nail them them down. I am a novice, too and the best way to learn is to answer here and getting corrected by other PHP

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Shreyas
True. Since I am a Windows user, I find it here : *C:\Program Files\EasyPHP 3.0\apache\logs* --Shreyas On Fri, Jun 4, 2010 at 12:27 AM, Ashley Sheridan a...@ashleysheridan.co.ukwrote: On Fri, 2010-06-04 at 00:25 +0530, Shreyas wrote: Steve, Do you know where Apache is installed? If yes,

Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
I am on Mac OS 10.6 I found the logs using the console. It was pretty easy and displays nicely. I am reviewing the entries now. Thanks for your help. -- Steve Marquez Marquez Design e-mail: smarq...@marquez-design.com web: http://www.marquez-design.com phone: 479-648-0325 On Jun 3, 2010, at

[PHP] convert files utf8

2010-06-03 Thread Tanel Tammik
Hi, does anyone know how to convert all files in a directory and in it's subdirectories into utf8 encoding? i am using komodo edit as text-editor. may it has a feature which i cannot find... Br Tanel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] CakePHP, alternatives?

2010-06-03 Thread Shreyas
Larry, That's a very nice way to learn stuff. That's what I am doing but probably in a very crude way. I am just reading a PHP book and doing those examples. Would you recommend any other innovative way of learning and mastering this language? Regards, Shreyas On Thu, Jun 3, 2010 at 11:25 PM,

[PHP] Re: convert files utf8

2010-06-03 Thread Tanel Tammik
OP win xp pro Tanel Tammik keevit...@gmail.com wrote in message news:91.07.07323.be028...@pb1.pair.com... Hi, does anyone know how to convert all files in a directory and in it's subdirectories into utf8 encoding? i am using komodo edit as text-editor. may it has a feature which i cannot

Re: [PHP] Re: convert files utf8

2010-06-03 Thread Ashley Sheridan
On Fri, 2010-06-04 at 00:38 +0300, Tanel Tammik wrote: OP win xp pro Tanel Tammik keevit...@gmail.com wrote in message news:91.07.07323.be028...@pb1.pair.com... Hi, does anyone know how to convert all files in a directory and in it's subdirectories into utf8 encoding? i am using

Re: [PHP] Parse info from 1,000 files to file

2010-06-03 Thread Jim Lucas
Sam Smith wrote: Can someone briefly point me to the functions I'll need to parse some information from thousands of files in a single directory and then prepare the extracted info into a single file for SQL import? Like file() or readfile() and some regex and writefile?? Thanks since