Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-02 Thread Rahul Sitaram Johari
On 11/2/07 11:12 AM, Daniel Brown [EMAIL PROTECTED] wrote: On 11/2/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: That sounds like a good place to look. I actually did figure out a way to make this work. It appears that Apache Web Server did not have enough permissions to read files

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-02 Thread Rahul Sitaram Johari
the process on every boot up. I had an AppleScript before to do this - but it's changed now. Thanks guys. PS: You guys are funny! And brilliant!! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I

[PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-01 Thread Rahul Sitaram Johari
as php.ini from before. Any ideas what might be causing this? Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-01 Thread Rahul Sitaram Johari
On 11/1/07 9:46 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-11-01 at 09:06 -0400, Rahul Sitaram Johari wrote: Ave, Somehow my PHP won't access, won't even acknowledge the existence of a file that is outside the /Library/WebServer/Documents folder. This was never a a problem

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-01 Thread Rahul Sitaram Johari
On 11/1/07 10:22 AM, Daniel Brown [EMAIL PROTECTED] wrote: On 11/1/07, Robert Cummings [EMAIL PROTECTED] wrote: On Thu, 2007-11-01 at 09:06 -0400, Rahul Sitaram Johari wrote: Ave, Somehow my PHP won't access, won't even acknowledge the existence of a file that is outside the /Library

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-01 Thread Rahul Sitaram Johari
On 11/1/07 10:41 AM, Daniel Brown [EMAIL PROTECTED] wrote: On 11/1/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: 1.) Did you restart Apache after making any changes to php.ini or httpd.conf? 2.) The path is cAsE-sEnSiTiVe. Did you make sure that it's EXACTLY the same? 3

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-01 Thread Rahul Sitaram Johari
On 11/1/07 12:17 PM, Daniel Brown [EMAIL PROTECTED] wrote: On 11/1/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Well FollowSymLinks was present in my httpd.conf, and it's definitely not the problem. I think the problem is the fact that on in Panther, I was able to specify Apache Web

Re: [PHP] PHP Won't Access Files Outside Web Root (Leopard/MacOS X 10.5)

2007-11-01 Thread Rahul Sitaram Johari
On 11/1/07 12:43 PM, Daniel Brown [EMAIL PROTECTED] wrote: On 11/1/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Is there a Terminal way of figuring out the UID/GID of something like admin, apache etcetera? PS: I know it's going OT! Yes, you'll find those UIDs in /etc

[PHP] Curl Timeout causing Firefox to Download PHP File ?!?

2007-09-27 Thread Rahul Sitaram Johari
; ? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

[PHP] PHP Installer on Vista

2007-09-12 Thread Rahul Sitaram Johari
Ave, Is it true that the PHP Installer does not work on Windows Vista? And if it does, it only installs the CGI version? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu

Re: [PHP] PHP Installer on Vista

2007-09-12 Thread Rahul Sitaram Johari
? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Curl redirection problem.

2007-09-06 Thread Rahul Sitaram Johari
in the cookie jar, not the client browser/machine ­ therefore ­ the redirection took me to the ³unlogged-in² page, and not the ³logged-in² page of the website. So what¹s the work around? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http

[PHP] Curl redirection problem.

2007-09-05 Thread Rahul Sitaram Johari
/index.php;); curl_setopt($curl, CURLOPT_POSTFIELDS, username=usrpassword=pwd); $xxx = curl_exec($curl); curl_close ($curl); Basically I want to redirect to: http://www.website.org/index.php after logging in using curl. Thanks. ~~~ Rahul Sitaram Johari CEO, Twenty

[PHP] CURL problems posting data

2007-08-22 Thread Rahul Sitaram Johari
in ³ACTION², it works. Why is Curl failing to log me in? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Rahul Sitaram Johari
same thing ­ you can burn it when you get home, if you like! No ­ You own it! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

Re: [PHP] OT- why is network solutions more than godaddy?

2007-08-03 Thread Rahul Sitaram Johari
Interesting read - although the whole thing is trumpeted upon their policy We have the right to terminate a service at any time without any reason - Well apparently, Network Solutions and most Major Domain Name Service vendors have a similar policy - so I wouldn't be surprised to see a

[PHP] Compiling php 5.2.3 / Mac OS X 10.3.9 / mysql configure failed

2007-08-01 Thread Rahul Sitaram Johari
. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); int main() { mysql_error() ; return 0; } Help would be appreciated. ~~~ Rahul Sitaram Johari CEO, Twenty

[PHP] Looking for PHP 5.0.1 for Mac OS X 10.3.9

2007-07-31 Thread Rahul Sitaram Johari
Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

[PHP] Compiling/Building PHP 5.2.3 on Mac OS X 10.3.9

2007-07-19 Thread Rahul Sitaram Johari
has a better solution of getting php 5.2.3 on mac os x 10.3.9 Thanks. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

Re: [PHP] Creating 'Next' 'Previous' for PHP Photo Gallery

2007-07-11 Thread Rahul Sitaram Johari
and make it work. Thanks again! On 7/10/07 11:04 AM, Jim Lucas [EMAIL PROTECTED] wrote: Rahul Sitaram Johari wrote: I¹m trying to write a Photo Gallery in PHP. Everything else is pretty much worked out ­ like thumbnails, indexes, titles all ­ the one thing I¹m stuck at is the Next Previous

Re: [PHP] Mac popup happy?

2007-07-11 Thread Rahul Sitaram Johari
Richard, I'm using Firefox on Mac OS X 10.3.9 ... Clicking your link takes me to a page with http authentication asking me for usr/pass. Where are you seeing the pop-up phenomena? I have Safari as well to check with. I can't get past the Authorization to see where you get the pop-up. On 7/11/07

[PHP] Creating 'Next' 'Previous' for PHP Photo Gallery

2007-07-10 Thread Rahul Sitaram Johari
that along to the (photo.php) page. I¹m just not able to figure out how to pick out the next previous filename and place it in the Query String. Any suggestions? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL

[PHP] Replace/Update record in dbase using dbase_replace_record()

2007-07-02 Thread Rahul Sitaram Johari
the value of the field ³A². Any suggestions? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

[PHP] Latest PHP for Mac OS X 10.3.9 (Panther)

2007-06-21 Thread Rahul Sitaram Johari
X 10.3.9? I¹m currently running PHP 5.0.1 / Apache 1.3 Thanks. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

[PHP] Catch result from an external web page

2007-06-20 Thread Rahul Sitaram Johari
or not for a service we¹re providing them. Right now we¹re trying to avoid requesting them for their source/code or help for that matter. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli

Re: [PHP] Catch result from an external web page

2007-06-20 Thread Rahul Sitaram Johari
AWESOME!!! Never worked with Curl before - but looks like a solution to my problem from what I'm reading. Thanks! I'll write back if I run into snags. On 6/20/07 11:25 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Wed, 2007-06-20 at 11:16 -0400, Rahul Sitaram Johari wrote: Ave

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] 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] 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

[PHP] using mysql_escape_string with implode() !!

2007-05-25 Thread Rahul Sitaram Johari
here with the INSERT statement. I tried it, but it¹s not working. Any clues? Thanks. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

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
the Array's Values itself, and then I just implode them with ',' and add them to the mySQL Database!! On 5/25/07 11:32 AM, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, I¹m inserting values out of an array into mySQL. There¹s other values besides the array values that are being inserted

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

2007-05-24 Thread Rahul Sitaram Johari
Ave, UNC paths didn't work, i.e., (server\\share\\Transfer\\test.dbf). I have no clue how to Run Apache as a particular User on Windows! I installed Apache using the Installer available - but I really don't know anything else 'user' related about Apache. Both SYSTEM and the Computer I'm

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

2007-05-24 Thread Rahul Sitaram Johari
How exactly do you run Apache manually as your own user on Windows 2003? On 5/24/07 5:32 AM, Stut [EMAIL PROTECTED] wrote: Does the user Apache is running as have permission to access the network at all? It's fairly common for services to lack that access for (shockingly for Windows)

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

2007-05-24 Thread Rahul Sitaram Johari
/live.txt does NOT Exist string The file Foresight//send//Transfer//LIVE//live.txt does NOT Exist ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead

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

2007-05-24 Thread Rahul Sitaram Johari
fail. Yes! Without any problems! I can easily navigate to the X: drive on that Windows Machine, and do anything I want with files there. I have all permissions. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL

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

2007-05-24 Thread Rahul Sitaram Johari
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 Apache to run as a service under a user that can access the

[PHP] Check if Record was Entered Today.

2007-05-24 Thread Rahul Sitaram Johari
, ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

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

2007-05-23 Thread Rahul Sitaram Johari
); It is not able to open the database. The X: Drive is a network drive. Any clues on how to make this happen? Thanks. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli

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

2007-05-23 Thread Rahul Sitaram Johari
Well, Full Permissions (Full Control, including read write) have been given to the Machine on which the Apache Web Server is setup. Not sure if anything else needs to be done! On 5/23/07 3:02 PM, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Let¹s say there¹s a database on

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

2007-05-23 Thread Rahul Sitaram Johari
Didn't help. Tried X:\\Transfer\\test.dbf Still can't access the file. On 5/23/07 3:11 PM, Tijnema [EMAIL PROTECTED] wrote: The \ is an escape token, and you should use \\ instead. Try X:\\Transfer\\test.dbf instead. Tijnema ps. Please don't top post. -- PHP General Mailing List

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

2007-05-23 Thread Rahul Sitaram Johari
Tried that too. Used \\Servername\sharename\test.dbf Also used additional backslashes for the escape issue: Servername\\sharename\\test.dbf Still doesn't work! I'm not getting a permissions related issue and I'm doubting it is a permissions issue. I have Full Control given to the system

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

2007-05-23 Thread Rahul Sitaram Johari
? Warning? Blank page? What tells you the script doesn't work? On 5/23/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Tried that too. Used \\Servername\sharename\test.dbf Also used additional backslashes for the escape issue: Servername\\sharename\\test.dbf Still doesn't

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

2007-05-23 Thread Rahul Sitaram Johari
to access files on a network drive. On 5/23/07 4:33 PM, Jared Farrish [EMAIL PROTECTED] wrote: So you haven't been able to actually access the drive yet? Are you using any other shared content on network drives that does currently work? On 5/23/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote

Re: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Rahul Sitaram Johari
Ave, I was just about to post when I saw your message. I think what you're saying is exactly what is happening. The values have Spaces and stuff so Quotes are Required - cannot have values not enclosed in Quotes. Other then that it was actually working. Is there a way to enclose in Quotes using

Re: [PHP] INSERT Array Values into mySQL Table - SOLVED!

2007-05-02 Thread Rahul Sitaram Johari
WORKS Like A Charm!! :) Thanks. On 5/2/07 12:14 PM, Brad Fuller [EMAIL PROTECTED] wrote: Jim Moseby wrote: $sql = INSERT INTO table (f1, f2, f3, . implode(,, array_keys($pr1)) .) VALUES ('abc', '123', '456', . implode(,, array_values($pr1)) .); HTH, Brad Might not work if the

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-04-03 Thread Rahul Sitaram Johari
? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 4/1/07 1:59 AM, Richard Lynch [EMAIL PROTECTED] wrote: The problem is that with readfile($F) you've just made ALL

Re: [PHP] Show Filename using Wildcards

2007-03-30 Thread Rahul Sitaram Johari
Ave, Hmmm... Not familiar with glob() at all... Let me dig! Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/30/07 5

Re: [PHP] Link to download files on another part of system

2007-03-30 Thread Rahul Sitaram Johari
Yes, and while I dig up on glob(), to be quite honest, the exec is working very effectively and fast for my searches download application - so can't complain about it one bit. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http

Re: [PHP] What is wrong with this INSERT?

2007-03-30 Thread Rahul Sitaram Johari
A definite improvement!! Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/29/07 7:31 PM, Chris [EMAIL PROTECTED

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Rahul Sitaram Johari
='takekey_download.php?F=vox/.basename($value).'.basename($value). /option; } ? /SELECT /FORM Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Rahul Sitaram Johari
Tijnema, In fact this same Question popped into my head - which one should I choose and why to choose one over the other? I tried both of the codes and compared them. While I can't comment on any security benefits of using either, I have to say, I did find glob() to be slightly faster in

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Rahul Sitaram Johari
Transfer); header(Content-Type: application/force-download); header(Content-Disposition: attachment; filename=.basename($F)); @readfile($F); ? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I

Re: [PHP] Show filenames using Wildcards -- The glob() Solution!

2007-03-30 Thread Rahul Sitaram Johari
and act accordingly ? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/30/07 10:31 AM, Jochem Maas [EMAIL PROTECTED

[PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
¹ve double checked all these things. I¹m not getting any errors ­ it¹s just not executing the INSERT for some reason!!! HELP! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
= mysql_query($sql), but I don't see $sql = QUERY STATEMENT anywhere On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Ave, Does anyone know what I¹m doing wrong? ?php //Add Record Function if($_POST['Submit']) { $db

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
($sql) or die(Fatal Error :.mysql_error()); echo span class='SmallText'EMSTRONG~: message sent :~/STRONG/EM/spanBRBR; } ? Please disregard the previous code I sent. Thank you! On 3/29/07 10:10 AM, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, Does anyone know what I¹m doing

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
statements do not appear) - so I'm assuming that's not the problem. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² -- PHP General Mailing

[PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
= mysql_query($sql) or die(Fatal Error :.mysql_error()); echo span class='SmallText'EMSTRONG~: message sent :~/STRONG/EM/spanBRBR; } Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/29/07 10:30 AM, Tijnema ! [EMAIL PROTECTED] wrote: On 3/29/07, Rahul Sitaram

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
if the form has been submitted? BTW: figured out the problem, as resolved by Tijnema, ³WHEN² is a reserved word in mySQL. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Awesome! This helps. I¹ll start using this method from now on ­ certainly seems a lot more compliant and also actually helps eliminating the ³Submit² button name confusion. Thanks! Appreciated. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W

Re: [PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
Agreed, if there are multiple forms, I will definitely have to use either Submit name or some form of identifier. Thanks! On 3/29/07 10:47 AM, Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 03. 29, csütörtök keltezéssel 10.38-kor Rahul Sitaram Johari ezt írta: Daniel I like your code ­ it¹s

[PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
additional chars. What I need is something that can pull up all 515515515*.ext Can I do this in PHP? Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, Yes well, I did kind of figure out that I have to scan through contents of a directory, pull up a file list, and then do some kind of pattern matching to narrow down to the files I need. But at this moment I'm kinda struggling with the directory file functions - haven't really dwelled into

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/29/07 4:31 PM, Peter Lauri [EMAIL PROTECTED] wrote: -Original Message- From: Rahul Sitaram Johari [mailto:[EMAIL

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, This Works!! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo substr($value,35).br; } ? THANKS! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Awesome!! This Works!! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo basename($value).br; } ? THANKS! ~~~ Rahul Sitaram Johari CEO, Twenty Four

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
PROTECTED] wrote: On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, This Works!! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f -name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo substr($value,35).br; } ? THANKS! I

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
;) Point taken! ?php exec(find /Users/rjohari/Documents/XFER/espi -type f ­name .$row['PHONE'].*.vox, $files); foreach ($files as $value) { echo basename($value).br; } ? :) Thanks ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy

[PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
these files available to download if they are not in my webserver folder? Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
folder where my website resides. How do I make these files available to download if they are not in my webserver folder? Thanks! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
the name of the file on the server into the output bugger head so that the user would see it simply as a direct download. On 3/29/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, This is actually a continuation of my previous ³Show files using Wildcards² thread, but a different problem

Re: [PHP] Link to download files on another part of system - SOLVED!

2007-03-29 Thread Rahul Sitaram Johari
select the file from a drop down and it comes up for Download. Perfect! Thanks!! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² Ave

Re: [PHP] Link to download files on another part of system

2007-03-29 Thread Rahul Sitaram Johari
Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/29/07 5:33 PM, Roberto Mansfield [EMAIL PROTECTED] wrote: Only do this if all the files should be publicly accessible. Otherwise

[PHP] Anyone TrackPro 2 or Something Similar?

2007-03-27 Thread Rahul Sitaram Johari
for download trackpro. I was wondering if someone has a the trackpro script from before they closed it down. If not ... Anything similar would do. Thanks. ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I

Re: [PHP] Anyone TrackPro 2 or Something Similar?

2007-03-27 Thread Rahul Sitaram Johari
Ave, Will give it a try!! Thanks! On 3/27/07 9:37 AM, Tijnema ! [EMAIL PROTECTED] wrote: On 3/27/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, I was looking to incorporate a PHP based web traffic analysis script for one of my website. Nothing too fancy or exceptional

Re: [PHP] Add New Records Only!

2007-03-26 Thread Rahul Sitaram Johari
in the 'delete' and in the subquery, thus, you will have to first insert the id's in an auxiliary table and then delete the records. Satyam - Original Message - From: Rahul Sitaram Johari [EMAIL PROTECTED] To: Mark markw@mohawksoft.com; PHP php-general@lists.php.net Sent: Friday

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Rahul Sitaram Johari
the file in IE. ?php header(Content-Description: File Transfer); header(Content-Type: application/force-download); header(Content-Disposition: attachment; filename=.basename($F)); @readfile($F); ? $F was the filename passed as a variable. ~~~ Rahul Sitaram

Re: [PHP] OT - How to code a link to download a file (program file)

2007-03-26 Thread Rahul Sitaram Johari
2:49 pm, Rahul Sitaram Johari wrote: header(Content-Type: application/force-download); header(Content-type: asfdsgfhrsiu/luhgireughinfibvn); would work equally well as application/force-download header(Content-Disposition: attachment; filename=.basename($F)); @readfile($F); ? $F

Re: [PHP] Add New Records Only!

2007-03-26 Thread Rahul Sitaram Johari
. On 3/26/07 4:13 PM, Richard Lynch [EMAIL PROTECTED] wrote: On Mon, March 26, 2007 2:28 pm, Rahul Sitaram Johari wrote: Another option would be to just create a UNIQUE INDEX on the fields you think should be unique, and then your second insert is gonna fail, and you can just ignore

Re: [PHP] Add New Records Only!

2007-03-26 Thread Rahul Sitaram Johari
by one, and silently ignore the ones that fail to insert. Then export the temp table to DBF. On Mon, March 26, 2007 3:19 pm, Rahul Sitaram Johari wrote: I'm exporting the data from mySQL table(s) into a dbase DBF table. The unique index you're talking about should be in the DBF end

[PHP] Add New Records Only!

2007-03-23 Thread Rahul Sitaram Johari
, ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely²

Re: [PHP] Add New Records Only!

2007-03-23 Thread Rahul Sitaram Johari
11:36 AM, Mark markw@mohawksoft.com wrote: Rahul Sitaram Johari wrote: As far as I can see, there is probably only three ways to do this: One: Make sure your dbase system contains unique primary key capability, and use it to avoid duplicates. Two: query for the row, if it isn't there insert

Re: [PHP] Add New Records Only!

2007-03-23 Thread Rahul Sitaram Johari
(); if($record-primary_key != $primary_key) { store_new_record($record); $primary_key = $record-primary_key; } } } On 3/23/07 11:36 AM, Mark markw@mohawksoft.com wrote: Rahul Sitaram Johari wrote: As far as I can see, there is probably only three ways to do

Re: [PHP] Add New Records Only!

2007-03-23 Thread Rahul Sitaram Johari
Ave, A better solution would be to add a column in the MySQL table, maybe call it processed with a default value of 0, and update this value to 1 with each row inserted. Then you are only querying records where processed=0. Of course this will not work if you cannot modify the MySQL table.

[PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
the original folder. Windows is only able to provide the Mac User with Permissions, not Apache. Any help would be appreciated. Thanks ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
post the log of the ls -la Share command here? Tijnema On 3/22/07 12:18 PM, Tijnema ! [EMAIL PROTECTED] wrote: On 3/22/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, Or make sure the user apache runs on has write access to the share. That's the problem I'm facing. I'm

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
complicated :( On 3/22/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, I¹m not sure if anyone here is going to be able to help, but I¹ve run into a permissions snag. I have Apache Web Server running on Mac OS X with PHP. I have a folder on a windows machine mounted on my Mac OS X

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
Ave, Certainly looks very promising, but is giving me: mount_smbfs: -o fmask=: option not supported Let me google it too, see what I can come up with. Appreciate it a lot mate. On 3/22/07 12:48 PM, Tijnema ! [EMAIL PROTECTED] wrote: On 3/22/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
PROTECTED] wrote: On 3/22/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, Or make sure the user apache runs on has write access to the share. That's the problem I'm facing. I'm not sure how to do that. If I'm not mistaken, Apache runs as user nobody on my Mac, but I don't know how

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
at Samba and also the list you linked to. Thanks again - appreciate your help! On 3/22/07 2:21 PM, Tijnema ! [EMAIL PROTECTED] wrote: On 3/22/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, Certainly looks very promising, but is giving me: mount_smbfs: -o fmask=: option

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
remounting the partitition, the permissions are reset too. That's why there are options like fmask and dmask :) but somehow they don't work on Mac OS X. Tijnema Rahul Sitaram Johari wrote: Rahul Sitaram Johari wrote: Ave, I¹m not sure if anyone here is going to be able to help, but I

Re: [PHP] Permissions issue on share - SOLVED!!

2007-03-22 Thread Rahul Sitaram Johari
Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/22/07 3:32 PM, Tijnema ! [EMAIL PROTECTED] wrote: On 3/22/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, But i

Re: [PHP] cannot load mysql extension - PHP Installation on Vista/Apache

2007-03-16 Thread Rahul Sitaram Johari
because I'm running Vista. Never had this problem ever before. Anyone?!? ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti non sono piu soli ... The dead are no longer lonely² On 3/14/07 9

Re: [PHP] cannot load mysql extension - PHP Installation on Vista/Apache

2007-03-14 Thread Rahul Sitaram Johari
not sure how to make php.ini or the mySQL DLL extensions get administrative privileges while Apache tries to access them. Thanks. On 3/14/07 9:54 AM, Tijnema ! [EMAIL PROTECTED] wrote: On 3/14/07, Rahul Sitaram Johari [EMAIL PROTECTED] wrote: Ave, I recently configured Installed PHP on my

Re: [PHP] cannot load mysql extension - PHP Installation on Vista/Apache

2007-03-14 Thread Rahul Sitaram Johari
You kidding me? I didn't know anything about that! That could be the solution! I'm gonna give this a try and see if that makes a difference. I'm using native mySQL btw, not mysqli. Thanks! On 3/14/07 9:54 AM, Richard Davey [EMAIL PROTECTED] wrote: Rahul Sitaram Johari wrote: 'cannot load

Re: [PHP] cannot load mysql extension - PHP Installation on Vista/Apache

2007-03-14 Thread Rahul Sitaram Johari
or illogical - because if it does work, logic can be scrutinized. All in all, good post there mate, and appreciate you sharing your mind! Cheers! ~~~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] ³I morti