Re: [PHP] Re: help with multi dimensional arrays

2007-05-25 Thread Navid Yar
Hello Everyone, I have a problem with GET strings. I use $_SERVER[REDIRECT_QUERY_STRING] to get the value-pairs in the URL. The problem is that there is a cID variable that keeps amending itself to the string continuously everytime someone clicks on a different category link on the website. For

Re: [PHP] Re: RE: Cannot access file on Network Drive (Windows 2003)

2007-05-25 Thread Tijnema
On 5/24/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: You may have something here. Problem is, I don¹t know how to mess with how under what user Apache is running ­ and no one else here does either so basically I have to figure this one out! I would like to, as you suggested, try and ³get

[PHP] setting windows folder to chmod 644

2007-05-25 Thread blueboy
How can I do the equivalent of this in windows or is there a tool I can use? R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Re: help with multi dimensional arrays

2007-05-25 Thread Jared Farrish
Hello Everyone, I have a problem with GET strings. I use $_SERVER[REDIRECT_QUERY_STRING] to get the value-pairs in the URL. The problem is that there is a cID variable that keeps amending itself to the string continuously everytime someone clicks on a different category link on the website. For

Re: [PHP] Re: Protecting MySQL Injection from PHP form

2007-05-25 Thread Jochem Maas
check this, check that. granted the OP posted quite a bit of irrelevant code with regard to SQL injection protection. BUT his use of parameterized queries should protect against injection because MySQL knows what to do with the data (i.e. escape it), which only leaves the question as to whether

Re: [PHP] System wide variable

2007-05-25 Thread Darren Whitlen
Richard Lynch wrote: On Wed, May 23, 2007 4:27 am, Darren Whitlen wrote: John Comerford wrote: Not thought about the memory engine actually. Will give that a try and see how it turns out. Let us know. Finaly managed to get it going (uses AJAX which im not to great at..), and the database

Re: [PHP] convert numerical day of week

2007-05-25 Thread tedd
What a hoot! When I saw the the number of post to this thread, I figured someone got their shorts in a knot. Only a bunch of geeks could get into this much discussion of what day of the week it is. Aren't we a sad lot? Cheers, tedd -- --- http://sperling.com http://ancientstones.com

Re: [PHP] Re: Protecting MySQL Injection from PHP form

2007-05-25 Thread Jason Pruim
On May 25, 2007, at 8:47 AM, Jochem Maas wrote: check this, check that. granted the OP posted quite a bit of irrelevant code with regard to SQL injection protection. BUT his use of parameterized queries should protect against injection because MySQL knows what to do with the data (i.e.

Re: [PHP] Form Validation Issues

2007-05-25 Thread tedd
At 8:57 AM -0700 5/23/07, Jim Lucas wrote: kvigor wrote: if($value != 'Alabama' || $value!= 'AL' || $value != 'Alaska' || $value!= 'AK' || $value != -snip- Ok, here is something that might help you. $states['AL'] = 'Alabama'; $states['AK'] = 'Alaska'; -snip- $states['WY'] = 'Wyoming';

Re: [PHP] convert numerical day of week

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 09:10 -0400, tedd wrote: What a hoot! When I saw the the number of post to this thread, I figured someone got their shorts in a knot. Only a bunch of geeks could get into this much discussion of what day of the week it is. Aren't we a sad lot? Only if we take

Re: [PHP] Include file questions

2007-05-25 Thread tedd
At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: .inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use that as the basis for figuring out a way

Re: [PHP] Include???

2007-05-25 Thread tedd
At 3:28 PM +0100 5/23/07, Richard Davey wrote: if ($_POST['status_code'] == 'C') ^^ Read-up on the if/else structure and comparison operators. You'd never use a single equals sign in this example. Rich: Read up on different font sizes that people use and you'll

Re[2]: [PHP] Include???

2007-05-25 Thread Richard Davey
Hi Tedd, Friday, May 25, 2007, 2:42:34 PM, you wrote: At 3:28 PM +0100 5/23/07, Richard Davey wrote: if ($_POST['status_code'] == 'C') ^^ Read-up on the if/else structure and comparison operators. You'd never use a single equals sign in this example. Rich: Read

Re: [PHP] Cannot access file on Network Drive (Windows 2003)

2007-05-25 Thread Rahul Sitaram Johari
At this point having gone through all sorts of permissions and running Apache as User and what not - I'm pretty close to giving up myself. Fortunately I do have other alternates to running this particular application - but it would have helped if things worked. On 5/24/07 6:23 PM, David

Re: [PHP] Include???

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 09:42 -0400, tedd wrote: At 3:28 PM +0100 5/23/07, Richard Davey wrote: if ($_POST['status_code'] == 'C') ^^ Read-up on the if/else structure and comparison operators. You'd never use a single equals sign in this example. Rich: Read

Re: [PHP] setting windows folder to chmod 644

2007-05-25 Thread Tijnema
On 5/25/07, blueboy [EMAIL PROTECTED] wrote: How can I do the equivalent of this in windows or is there a tool I can use? R. Windows file systems don't have permissions like Unix-bases file systems. For FAT16/FAT32 there are only a few (Read-Only Hidden), for NTFS file system there are more

Re: [PHP] Include???

2007-05-25 Thread tedd
At 9:49 AM -0400 5/25/07, Robert Cummings wrote: On Fri, 2007-05-25 at 09:42 -0400, tedd wrote: At 3:28 PM +0100 5/23/07, Richard Davey wrote: if ($_POST['status_code'] == 'C') ^^ Read-up on the if/else structure and comparison operators. You'd never use a

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 16:17 +0200, Tijnema wrote: On 5/25/07, Edward Kay [EMAIL PROTECTED] wrote: Why are your include files in your web root in the first place? Move them elsewhere on your filesystem and then it's not even possible to access them via the web. Edward Oh, I don't want

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Edward Kay [EMAIL PROTECTED] wrote: -Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] Sent: 25 May 2007 15:00 To: tedd Cc: Kevin Murphy; Stephen; php Subject: Re: [PHP] Include file questions On 5/25/07, tedd [EMAIL PROTECTED] wrote: At 1:55 PM -0700

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 16:00 +0200, Tijnema wrote: On 5/25/07, tedd [EMAIL PROTECTED] wrote: At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: .inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, tedd [EMAIL PROTECTED] wrote: At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: .inc files have a disadvantage in that if you view the file: http://www.yoursite.com/file.inc you can see the php code. I prefer not to use those just on the off chance that someone can see my code and use

RE: [PHP] Include file questions

2007-05-25 Thread Edward Kay
-Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] Sent: 25 May 2007 15:00 To: tedd Cc: Kevin Murphy; Stephen; php Subject: Re: [PHP] Include file questions On 5/25/07, tedd [EMAIL PROTECTED] wrote: At 1:55 PM -0700 5/23/07, Kevin Murphy wrote: .inc files have a

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-25 Thread Jared Farrish
On 5/25/07, Jason Pruim [EMAIL PROTECTED] wrote: I apologize for posting the entire add script, but I wasn't sure what was needed to check if I was doing it right or not. I figured in this case it was better to give to much info rather then not enough. My big main goal it to make this bit of

Re[2]: [PHP] Include???

2007-05-25 Thread tedd
At 2:46 PM +0100 5/25/07, Richard Davey wrote: Hi Tedd, Friday, May 25, 2007, 2:42:34 PM, you wrote: At 3:28 PM +0100 5/23/07, Richard Davey wrote: if ($_POST['status_code'] == 'C') ^^ Read-up on the if/else structure and comparison operators. You'd never use a

RE: [PHP] Include file questions

2007-05-25 Thread Edward Kay
-Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] It's just the way you write script, my included files contain only functions variables, no executing code. 99% I have a class around it. If you write it like that, than there's no problem with execution the

[PHP] Re: Protecting MySQL Injection from PHP form

2007-05-25 Thread Darren Whitlen
Jared Farrish wrote: On 5/25/07, Jason Pruim [EMAIL PROTECTED] wrote: I apologize for posting the entire add script, but I wasn't sure what was needed to check if I was doing it right or not. I figured in this case it was better to give to much info rather then not enough. My big main goal it

Re: [PHP] Re: Protecting MySQL Injection from PHP form

2007-05-25 Thread Jason Pruim
On May 25, 2007, at 10:44 AM, Darren Whitlen wrote: Jared Farrish wrote: On 5/25/07, Jason Pruim [EMAIL PROTECTED] wrote: I apologize for posting the entire add script, but I wasn't sure what was needed to check if I was doing it right or not. I figured in this case it was better to

Re: [PHP] Check if Record was Entered Today.

2007-05-25 Thread Rahul Sitaram Johari
WORKS!! Thanks. On 5/24/07 5:34 PM, Richard Lynch [EMAIL PROTECTED] wrote: $db = dbase_open(try.dbf, 0); if ($db) { $exists = false; $today = false; $record_numbers = dbase_numrecords($db); for ($i = 1; $i = $record_numbers; $i++) { $row =

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Edward Kay [EMAIL PROTECTED] wrote: -Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] It's just the way you write script, my included files contain only functions variables, no executing code. 99% I have a class around it. If you write it like

[PHP] Re: PHP Text-To-Speech Function txt2wav()

2007-05-25 Thread Daniel Brown
On 5/25/07, tedd [EMAIL PROTECTED] wrote: If you find any bugs --- and I'm sure you will --- report them on the SourceForge project page. And don't mind the cluttered code. It's also in the process of being revamped. Thanks. -- Daniel P. Brown Daniel: Your demo:

Re: [PHP] convert numerical day of week

2007-05-25 Thread Jochem Maas
Robert Cummings wrote: On Fri, 2007-05-25 at 09:10 -0400, tedd wrote: What a hoot! When I saw the the number of post to this thread, I figured someone got their shorts in a knot. Only a bunch of geeks could get into this much discussion of what day of the week it is. Aren't we a sad lot?

Re: [PHP] Re: Check if Record was Entered Today.

2007-05-25 Thread Rahul Sitaram Johari
I guess one of the problems is that PHP has a limited number of dbase functions and I'm not able to run SQL Queries on a dbf database. Basically I have to make-do with the few dbase() functions I have available in PHP. But I do get your logic and it's pretty helpful. I did re-write the code

Re: [PHP] convert numerical day of week

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 17:26 +0200, Jochem Maas wrote: Robert Cummings wrote: On Fri, 2007-05-25 at 09:10 -0400, tedd wrote: What a hoot! When I saw the the number of post to this thread, I figured someone got their shorts in a knot. Only a bunch of geeks could get into this much

Re: [PHP] using mysql_escape_string with implode() !!

2007-05-25 Thread Zoltán Németh
2007. 05. 25, péntek keltezéssel 11.32-kor Rahul Sitaram Johari ezt írta: Ave, I¹m inserting values out of an array into mySQL. There¹s other values besides the array values that are being inserted as well. This is my simple INSERT code: $sql = INSERT INTO db

Re: [PHP] Re: Check if Record was Entered Today.

2007-05-25 Thread Jared Farrish
On 5/25/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: I guess one of the problems is that PHP has a limited number of dbase functions and I'm not able to run SQL Queries on a dbf database. Basically I have to make-do with the few dbase() functions I have available in PHP. But I do get

Re: [PHP] setting windows folder to chmod 644

2007-05-25 Thread Daniel Brown
On 5/25/07, Tijnema [EMAIL PROTECTED] wrote: On 5/25/07, blueboy [EMAIL PROTECTED] wrote: How can I do the equivalent of this in windows or is there a tool I can use? R. Windows file systems don't have permissions like Unix-bases file systems. For FAT16/FAT32 there are only a few

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: On 5/25/07, Edward Kay [EMAIL PROTECTED] wrote: -Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] It's just the way you write script, my included files contain only functions variables, no executing code.

[PHP] using mysql_escape_string with implode() !!

2007-05-25 Thread Rahul Sitaram Johari
Ave, I¹m inserting values out of an array into mySQL. There¹s other values besides the array values that are being inserted as well. This is my simple INSERT code: $sql = INSERT INTO db (Date,Time,Phone,Account,AccountType,RateClass,VoltLevel,IsoZone,TaxDist,Loa

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: On 5/25/07, Edward Kay [EMAIL PROTECTED] wrote: -Original Message- From: Tijnema [mailto:[EMAIL PROTECTED] It's just the way you write script, my included files

Re: [PHP] setting windows folder to chmod 644

2007-05-25 Thread Edward Vermillion
On May 25, 2007, at 10:50 AM, Daniel Brown wrote: On 5/25/07, Tijnema [EMAIL PROTECTED] wrote: On 5/25/07, blueboy [EMAIL PROTECTED] wrote: How can I do the equivalent of this in windows or is there a tool I can use? R. Windows file systems don't have permissions like Unix-bases file

Re: [PHP] Creating an executer

2007-05-25 Thread Daniel Brown
On 5/24/07, Richard Lynch [EMAIL PROTECTED] wrote: I only skimmed this, but afaik the only way to get the child PID is to fork rather than to exec. On Thu, May 24, 2007 10:10 am, [EMAIL PROTECTED] wrote: Hi, Summary: 1. I execute script1 that will run in the background (daemon) 2. script1

Re: [PHP] zend framework

2007-05-25 Thread Edward Vermillion
On May 24, 2007, at 6:15 PM, Jochem Maas wrote: Richard Lynch wrote: On Wed, May 23, 2007 9:58 am, Greg Donald wrote: Has anyone looked at the Zend Framework lately? http://framework.zend.com/manual I've been playing with a few parts of it off and on the past couple of days. It seems

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: I like to keep it simple, just like this: / /data /http

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: I like to keep it simple, just like this: / /data /http /project1 /includes config.php

Re: [PHP] Creating an executer

2007-05-25 Thread Daniel Brown
On 5/25/07, Daniel Brown [EMAIL PROTECTED] wrote: On 5/24/07, Richard Lynch [EMAIL PROTECTED] wrote: I only skimmed this, but afaik the only way to get the child PID is to fork rather than to exec. On Thu, May 24, 2007 10:10 am, [EMAIL PROTECTED] wrote: Hi, Summary: 1. I execute

Re: [PHP] zend framework

2007-05-25 Thread Greg Donald
On 5/24/07, Richard Lynch [EMAIL PROTECTED] wrote: If you don't find anything useful in the Zend stuff, don't use it. Thanks for the useless input captain obvious. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Include file questions

2007-05-25 Thread Robert Cummings
On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 17:07 +0200, Tijnema wrote: I like to keep it simple,

Re: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 18:20 +0200, Tijnema wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 18:04 +0200, Tijnema wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: On Fri, 2007-05-25 at 17:07

Re[2]: [PHP] Include file questions

2007-05-25 Thread Richard Davey
Hi Tijnema, Friday, May 25, 2007, 5:58:46 PM, you wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: Very. Each directory contains very specific types of code/content. Tracking down where any given function, class, custom tag, behaviour, etc is defined is extremely simple. Cheers,

Re: [PHP] using mysql_escape_string with implode() !!

2007-05-25 Thread Rahul Sitaram Johari
Ok, I'm not able to use array_map() at all to my benefit, or at least I can't figure out how to. I'm trying to generate the string with escape slashes before I put it in the INSERT statement, but it's not working primarily because values have to be enclosed in Single Quotes while inserting into

Re: [PHP] using mysql_escape_string with implode() - SOLVED!

2007-05-25 Thread Rahul Sitaram Johari
Ave, Alright, here's I solved it. Used the array_walk function. This is my code: function test_alter($item1) { $item1 = mysql_escape_string($item1); } array_walk($var, 'test_alter'); $var = implode(',', $var); $sql = INSERT INTO

Re: Re[2]: [PHP] Include file questions

2007-05-25 Thread Tijnema
On 5/25/07, Richard Davey [EMAIL PROTECTED] wrote: Hi Tijnema, Friday, May 25, 2007, 5:58:46 PM, you wrote: On 5/25/07, Robert Cummings [EMAIL PROTECTED] wrote: Very. Each directory contains very specific types of code/content. Tracking down where any given function, class, custom tag,

Re: [PHP] PHP debugger

2007-05-25 Thread Jochem Maas
Miles Thompson wrote: Suggestions will be most welcome. Also, I'm not married to this, so if anyone thinks there is a better debugger, please jump in. I'm not going to jump in there ... I almost drown in that quagmire everytime I have to get a debugger setup working ... but ...

[PHP] Downloading a file from MySQL

2007-05-25 Thread [EMAIL PROTECTED]
I am trying to download a file from MySQL using the following code, but it doesn't display a file just a list of files in the database. Anyone have any suggestions? Code Begin ? if(isset($_GET['id'])) { include 'library/config.php'; include 'library/opendb.php';

Re: [PHP] PHP debugger

2007-05-25 Thread Miles Thompson
On 5/25/07, Jochem Maas [EMAIL PROTECTED] wrote: Miles Thompson wrote: Suggestions will be most welcome. Also, I'm not married to this, so if anyone thinks there is a better debugger, please jump in. I'm not going to jump in there ... I almost drown in that quagmire everytime I have to

[PHP] installing error

2007-05-25 Thread Rafael Mora
Hello does anyone know the correct way to install PHP and APACHE (last versions both of them) on WinXP???, Im doing it with the installers and I cannot even run phpinfo(); script, I see apache's error log and it says that i cant find SAM directory Thank you in advance Rafa

[PHP] Using PHP to retrieve and display file from MySQL database

2007-05-25 Thread [EMAIL PROTECTED]
I am trying to download a file from MySQL and display it using the following PHP script, but it isn't displaying the file just a list of files in the database. Please help. Code Begin ? if(isset($_GET['id'])) { include 'library/config.php'; include 'library/opendb.php';

[PHP] Re: Using PHP to retrieve and display file from MySQL database

2007-05-25 Thread Jared Farrish
a href=download.php?id=?=$id;??=$name;?/a br Is there a valid $id being passed through a query ($_GET) variable, like so?: http://www.filecircus.com/somewhere/outthere/gimme.php?id=badphoto103 What happens when you click on that? -- Jared Farrish Intermediate Web Developer Denton, Tx