Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
worked with Fox with dbfs of 2 millions of records and the speed is amazing -- using indexes of course! regards, ks Rahul S. Johari escribió: Ave, I'm connecting to a foxpro database (dbase) and simply running a search to retrieve a record. It's a very simple code. The problem

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
er used php+fox so, reading your code i see you are scanning the whole dbf file from php Fox cant help you in this way if there is not another option for scan a dbf the row by row method is very slow Rahul S. Johari escribió: Your post definitely gives me hope. It's possible I'm doi

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
Keyser, It gets better -- I'm on a Mac OS X (Leopard)!! As far as I know, there isn't a VisualFoxPro ODBC Driver for Mac OS X. On Nov 24, 2009, at 10:11 AM, keyser soze wrote: Rahul, my friend i found this in a first search perhaps it be helpful http://www.yinfor.com/blog/arc

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
Original Topic: Still no solution for a faster search through the dbf via PHP. On Nov 24, 2009, at 11:11 AM, keyser soze wrote: uhh, i don't know (time ago Fox was multi-platform unix/mac/dos) did you found that on the web? Rahul S. Johari escribió: Keyser, It gets better -- I'

Re: [PHP] dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- Rahul Sitaram Johari Founder, Internet Architects Group, Inc. [Email] sleepwal...@rahulsjohari.com [Web] http://www.rahulsjohari.com -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] dbase_get_record_with_names; Very slow search!!!

2009-11-24 Thread Rahul S. Johari
. On Nov 24, 2009, at 12:46 PM, Olav wrote: Rahul S. Johari wrote: Quite right. Unfortunately there doesn't seem to be any available ODBC Drivers for FoxPro available for Mac OS X either!! I'm hitting a brick wall no matter what direction I take. Convert to SQLite and don't look b

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-30 Thread Rahul S. Johari
exes. The problem is - does PHP use those indexes? --- Rahul Sitaram Johari Founder, Internet Architects Group, Inc. [Email] sleepwal...@rahulsjohari.com [Web] http://www.rahulsjohari.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: dbase_get_record_with_names; Very slow search!!!

2009-11-30 Thread Rahul S. Johari
On Nov 30, 2009, at 11:41 AM, Bob McConnell wrote: From: Rahul S. Johari On Nov 30, 2009, at 11:07 AM, Bob McConnell wrote: From: news even though the dbf has 10K records Fox can't spend "minutes" to found a match by the way, its very strange to have 35 columns in a table/

[PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
Ave, This is what I'm trying to do; I want to read a directory (eg: W:\Test \) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple mySQL table. Can I do this? --- Rahul Sitaram Johari Founder, Internet Architects Group, Inc. [

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 9:56 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 10:07 AM, Kenneth Sande wrote: Ashley Sheridan wrote: On Wed, 2010-01-13 at 09:25 -0500, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test \) and take all the filenames found in the directory (eg: 1.vox, 2.w

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 9:50 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the directory (eg: 1.vox, 2.wav, 3.txt) and store them in a simple

Re: [PHP] Read directory; store filenames found in mySQL table?

2010-01-13 Thread Rahul S. Johari
On Jan 13, 2010, at 10:40 AM, Rahul S. Johari wrote: On Jan 13, 2010, at 9:50 AM, Warren Windvogel wrote: On 2010/01/13 04:25 PM, Rahul S. Johari wrote: Ave, This is what I'm trying to do; I want to read a directory (eg: W: \Test\) and take all the filenames found in the director

Re: [PHP] Read directory; store filenames found in mySQL table? :: SOLVED!!

2010-01-13 Thread Rahul S. Johari
de("/", $dir); $fileListArr = dirList($dir); } $db = mysql_connect("localhost","usr","pwd"); mysql_select_db("db",$db); foreach($fileListArr AS $value) { $sql="INSERT INTO r2 (ID, RECORDI

[PHP] DBF to MySQL using PHP Script

2005-03-30 Thread Rahul S. Johari
Ave, Does anybody know of a working PHP script to convert DBF data into mySQL table? Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED]

[PHP] Help with SQL Query String

2005-03-31 Thread Rahul S. Johari
to figure it out and would love if anyway made a suggestion. Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED] http://www.informed-sources.com

Re: [PHP] Help with SQL Query String

2005-03-31 Thread Rahul S. Johari
the other way. I do understand though that using the PHP trim() function in an SQL statemnt won't work. However the new snip about mySQL having it's own TRIM() function is also pretty cool. Thanks again all, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing

Re: [PHP] Help with SQL Query String

2005-03-31 Thread Rahul S. Johari
t, and people are extremely lazy and purposely idiotic, nonsensical and absurdly inconclusive of the inadequacies of their lifeless brains. Have an awesome day. PS: Jay.. The code works great... Thanks a ton again! Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Ser

[PHP] Creating INSERT INTO statement from dbf file

2005-04-04 Thread Rahul S. Johari
it¹s not working out. Would love some help. Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED] http://www.informed-sources.com

Re: [PHP] Creating INSERT INTO statement from dbf file - SOLVED!

2005-04-11 Thread Rahul S. Johari
ase_close($dbh); ?> Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMAIL PROTECTED] http://www.informed-sources.com On 4/4/05 4:33 PM, "Rah

Re: [PHP] need class to send email w/attachments

2005-05-06 Thread Rahul S. Johari
Ave, Try http://www.phpclasses.org/mimemessage I used it for my business application everyday, works great and is very efficient. Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-

[PHP] "From" in mail() header problem.

2005-05-18 Thread Rahul S. Johari
uot;; } ?> ... I don¹t know what I¹m doing wrong, it¹s not reading the FROM or Reply-TO in the headers. Instead of the mail stating ³Something <[EMAIL PROTECTED]>² at the recipient¹s end, it is stating ³World Wide Web Server <[EMAIL PROTECTED]>² .. I have no clue why. Thanks, Ra

Re: [PHP] "From" in mail() header problem. - Solved!

2005-05-18 Thread Rahul S. Johari
eceiving the email being sent, contrary to what is suggested by the manual.. And in fact everything except the "From:" header was working fine. HTML format email with all the headers in tact were being received using \r\n. But using \n alone, the "From:" is also fixed now, and eve

[PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-18 Thread Rahul S. Johari
u see in the image in the box below. (case sensitive) Any tips to make it work in Safari as well? Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [EMA

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
n it's cache.. And it's displaying the same image on the verification page whether you use the BACK button, FORWARD button, or actually go through the website and land back on the verification page. So in IE, right now, unless you actually HIT the REFRESH button, it's not changing the ima

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
On 5/18/05 6:23 PM, "Marek Kilimajer" <[EMAIL PROTECTED]> wrote: > BTW, you might not be concerned about it much, but you have a race > condition in your script. Ave, What do you mean by "race condition" ? Rahul S. Johari Coordinator, Internet & Administra

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-19 Thread Rahul S. Johari
the image from the cache. This is how the beginning of my php page looks like: Stll... IE is displaying the image that has already been displayed on first login attempt... It won't display new Image untill you actually physically hit the "REFRESH" button on the browser. Any

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-20 Thread Rahul S. Johari
ounding logical, but could you explain a little more... I'm not sure how to use no_of_seconds_since_unix_epoch ... Thanks, Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518)

Re: [PHP] Image Verification - Problems in Safari, Mac OS X

2005-05-20 Thread Rahul S. Johari
e solution. The other Cache problem still persists. Don't know what to do about it. Is just not working out in IE. Rahul S. Johari Coordinator, Internet & Administration Informed Marketing Services Inc. 251 River Street Troy, NY 12180 Tel: (518) 266-0909 x154 Fax: (518) 266-0909 Email: [E

[PHP] Cache Problems

2005-05-20 Thread Rahul S. Johari
not to load the page or it¹s images from the Cache.. But it still does. Nothing is working out. I don¹t know how to get that page to load fresh from the server and not IE¹s cache so it won¹t display the same Image over and over. Any suggestions? Thanks, Rahul S. Johari Coordinator, Internet &

[PHP] CURL problems posting data

2007-08-22 Thread Rahul Sitaram Johari
FiezM=')); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $result=curl_exec ($ch); if (curl_errno($ch)) { print curl_error($ch); } curl_close ($ch); print_r($result); ?> Needless to say that if I put their form ³as-is² on a page on my server and specify full URL in ³ACTION², it works. Why i

[PHP] Curl redirection problem.

2007-09-05 Thread Rahul Sitaram Johari
url_exec($curl); curl_setopt($curl, CURLOPT_URL, "http://www.website.org/index.php";); curl_setopt($curl, CURLOPT_POSTFIELDS, "username=usr&password=pwd"); $xxx = curl_exec($curl); curl_close ($curl); Basically I want to redirect to: http://www.website.org/index.php after logging

Re: [PHP] Curl redirection problem.

2007-09-06 Thread Rahul Sitaram Johari
different ways. When it failed to work, I realized that the cookies that curl setup are stores 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? ~~~

[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
x27;t want PHP as CGI. Make sense? ~~~ 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

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

2007-09-27 Thread Rahul Sitaram Johari
#x27;Share ratio', '', 0); $share_ratio2 = trim(ereg_replace("[\n\r\t]", "", $share_ratio)); $share_ratio3 = substr($share_ratio2, 25, 5); echo "Ratio: $share_ratio3"; ?> ~~~ Rahul Sitaram Johari CEO, Twenty Four Sev

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

2007-11-01 Thread Rahul Sitaram Johari
d open_basedir which is not set ­ same settings 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 th

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 acc

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

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 th

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

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 appe

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

2007-11-02 Thread Rahul Sitaram Johari
are as "www" - which is Apache Web Server - and my PHP scripts had no problem reading files of the share on my Website. Now I need to figure out how to write an AppleScript (or use the Automator) to automate the process on every boot up. I had an AppleScript before to do this - but it's

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

2007-11-06 Thread Rahul S. Johari
On 11/2/07 11:12 AM, "Daniel Brown" <[EMAIL PROTECTED]> wrote: > > Rahul, > > I believe all of the modern MacOS variants still use the > *nix-style (due to being based on BSD) rc.d startups, right? If so: > > sudo echo "sudo -u www

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

2007-11-06 Thread Rahul S. Johari
On 11/6/07 12:03 PM, "Nathan Nobbe" <[EMAIL PROTECTED]> wrote: > On 11/6/07, Rahul S. Johari <[EMAIL PROTECTED]> wrote: >> >> I couldn't find an /etc/rd.d or rc3.d on my system at all. I've been >> manually mounting after each boot, s

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

2007-11-06 Thread Rahul S. Johari
On 11/6/07 12:57 PM, "Nathan Nobbe" <[EMAIL PROTECTED]> wrote: > On 11/6/07, Rahul S. Johari <[EMAIL PROTECTED]> wrote: >> >> On 11/6/07 12:03 PM, "Nathan Nobbe" <[EMAIL PROTECTED]> wrote: >> >>> On 11/6/07, Rahul

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

2007-11-06 Thread Rahul S. Johari
" ~~~ I guess I can officially consider this case closed with all problems solved! Thanks All! ~ Rahul Sitaram Johari CEO, Twenty Four Seventy Nine Inc. W: http://www.rahulsjohari.com E: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2007-11-06 Thread Rahul S. Johari
le to do with PHP and a whole lot to do with Mac OS X! And yet, on a PHP mailing list - we Solved it! Diversity in Unity! Of course, I've heard longer, endless, pointless rants in this same very mailing list over the course of last 6 years or so that I've been here. ~~~~~

Re: [PHP] XSS

2007-12-26 Thread Rahul S. Johari
On Wednesday 26 December 2007 21:03:40 Mad Unix wrote: Am facig problem with XSS cross Site scripting general on our web site, and i think its a coding issue since our dedicated server run Linux with apache mysql and php... any recommendation to resolve this issue Sure! --- Rahul Sitaram

[PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread Rahul S. Johari
ble (f1, f2, f3, f4, f5) VALUES (Œ$1¹, Œ$2¹, Œ$3¹, //and the rest of the values from from the $v Values from that Array $var. I¹m not able to formulate a code to do this. Any help would be really appreciated. Thanks. ~~~ Rahul Sitaram Johari CEO, Twenty

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

[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 X:\Transfer

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 Maili

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 al

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

2007-05-23 Thread Rahul Sitaram Johari
.. > > Let us know what the error is exactly, as well. What happens? Error? > 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 >> >>

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

2007-05-23 Thread Rahul Sitaram Johari
rver 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

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
e file X:/send/Transfer/LIVE/live.txt does NOT Exist string The file X://send//Transfer//LIVE//live.txt does NOT Exist string The file \Foresight\send\Transfer\LIVE\live.txt does NOT Exist string The file \\Foresight\send\Transfer\LIVE\live.txt does NOT Exist string The file //Foresight/send/T

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

2007-05-24 Thread Rahul Sitaram Johari
the Windows 2003 machine, manually access the folder/file that > you're asking PHP (through Apache) to access? Unless the service that Apache > is running under has permissions to communicate with the share resource > (location X), this will always fail. Yes! Without any problems! I

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
through all the rows and check if there is any entry with the Account Number & Today¹s Date? 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] 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 Giragos

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++) { >> $r

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 using

[PHP] using mysql_escape_string with implode() !!

2007-05-25 Thread Rahul Sitaram Johari
escape. I¹d like to use mysql_escape_string() but I¹m not sure how to integrate mysql_escape_string 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

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 m

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

2007-05-25 Thread Rahul Sitaram Johari
or die("Critical Error: ".mysql_error()); And it Works! All special characters are escaped within 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 PRO

[PHP] Catch result from an external web page

2007-06-20 Thread Rahul Sitaram Johari
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 ... The dead are no longer lonely²

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

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

2007-06-21 Thread Rahul Sitaram Johari
OS 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] Replace/Update record in dbase using dbase_replace_record()

2007-07-02 Thread Rahul Sitaram Johari
have over 60 fields in each row ­ and I just want to replace 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] Creating 'Next' & 'Previous' for PHP Photo Gallery

2007-07-10 Thread Rahul Sitaram Johari
s to the one being selected, and passing 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 Ni

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

2007-07-11 Thread Rahul Sitaram Johari
ss the values along to pages 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, indexe

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] Compiling/Building PHP 5.2.3 on Mac OS X 10.3.9

2007-07-19 Thread Rahul Sitaram Johari
Unless anyone 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²

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

2007-07-31 Thread Rahul Sitaram Johari
Ave, Does anyone have the old PHP installers for Mac OS X 10.3.9 ?? Entropy.ch only has the latest installer for 10.4 ­ I¹m looking for any PHP 5 Installer that will install & work on a Mac OS X 10.3.9 ... Can¹t seem to find it anywhere!!! Help! ~~~ R

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

2007-08-01 Thread Rahul Sitaram Johari
"confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* 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 ap

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

2007-08-03 Thread Rahul Sitaram Johari
om for $179. It¹s the exact 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 "www.ne

[PHP] Query DBF records using PHP

2006-09-07 Thread Rahul S. Johari
a record and display it without importing it into mySQL. Any suggestions? Rahul S. Johari Supervisor, Internet & Administration Informed Marketing Services Inc. 500 Federal Street, Suite 201 Troy NY 12180 Tel: (518) 687-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.info

[PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
¹t get the path to work!! I¹ve tried ³/Volumes/Server/file.dbf² . I¹ve tried to create Aliases (shortcuts)... But nothing seems to work! What¹s the trick? How can I get this to work? Any suggestions? Rahul S. Johari Supervisor, Internet & Administration Informed Marketing Services Inc.

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
In my Windows 2003 Server I've given the Mac OS X user all the permissions possible for that Share. Is there something I have to do in php as far as permissions are concerned? On 9/12/06 5:31 PM, "John Nichel" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: &g

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
ECTED]> wrote: > On Tuesday 12 September 2006 16:27, Rahul S. Johari wrote: >> Ave, >> >> I¹m getting really frustrated with this. How do I get PHP to open/read a >> file which is on a Share, mounted on Mac OS X. >> >> My Mac OS X is connected to a Windows 20

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
or I get: Warning: dbase_open() [function.dbase-open]: unable to open database /Volumes/foresight/2qc0831.dbf in /Library/WebServer/Documents/site.com/folder/file.php on line 29 On 9/12/06 5:46 PM, "Ray Hauge" <[EMAIL PROTECTED]> wrote: > On Tuesday 12 September 2006 16:33, Rahul S.

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
Hauge" <[EMAIL PROTECTED]> wrote: > On Tuesday 12 September 2006 16:45, Rahul S. Johari wrote: >> If I hit 'Get Info' on the share folder, a file within that folder, or even >> the DBF I'm trying to open... Mac OS X tells me that I have 'Read & Writ

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
can't get my path to work. On 9/12/06 5:47 PM, "John Nichel" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: >> Permissions have been set on the Windows Server for the Mac user... And all >> permissions have been given to him. >> >> This

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
n OSX, then PHP should be able to see the > file in the same path. Rahul S. Johari Supervisor, Internet & Administration Informed Marketing Services Inc. 500 Federal Street, Suite 201 Troy NY 12180 Tel: (518) 687-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.informe

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
mes directory? Check doc_root, > open_basedir in your php.ini: > > http://us3.php.net/manual/en/ini.php > > steve > > On Tue, 12 Sep 2006, Rahul S. Johari wrote: > >> >> I did exactly that... Used Terminal to find the correct path. Did "pwd&q

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-12 Thread Rahul S. Johari
t;file" But foresight's filetype had nothing in it!! On 9/12/06 6:18 PM, "Ray Hauge" <[EMAIL PROTECTED]> wrote: > You could try getting a directory listing with PHP to see if you can see what > files are in there, or if you can access that directory through PHP.

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Samba. It's an SMB share. On 9/13/06 12:39 AM, "Chris" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: >> That was a good idea. I tried that... It was showing nothing for >> /Volumes/foresight ... But it did show the contents of /Volumes... And >>

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
you talking about my Apache Web Server, or the mounted share called "foresight" ? On 9/13/06 11:30 AM, "John Nichel" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: >> Nope. >> It looks like this... >> >> >> drwxr-xr-x 3 root root 40

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
Been reading and reading... Can't get much out of it. Everytime I try the mount command, I get "can't get net id" On 9/13/06 11:39 AM, "John Nichel" <[EMAIL PROTECTED]> wrote: > Rahul S. Johari wrote: >> How can I set the "drwxr-xr-x" pe

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
I tried the chmod command in the Terminal Window, but I'm not really getting the exact command that I need to change the permissions. On 9/13/06 12:08 PM, "Ray Hauge" <[EMAIL PROTECTED]> wrote: > On Wednesday 13 September 2006 10:58, Rahul S. Johari wrote: >> Bee

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
wrote: > On Wednesday 13 September 2006 10:30, John Nichel wrote: >> Rahul S. Johari wrote: >>> Nope. >>> It looks like this... >>> >>> >>> drwxr-xr-x 3 root root 4096 Sep 13 10:44 . >>> drwxr-xr-x 3 root root 4096 Sep 13 10:46 .. &g

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
thing? If not, try it as the root/admin account. Rahul S. Johari Supervisor, Internet & Administration Informed Marketing Services Inc. 500 Federal Street, Suite 201 Troy NY 12180 Tel: (518) 687-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.informed-sources.com -- P

Re: [PHP] Open file on a Mounted Share on Mac OS X

2006-09-13 Thread Rahul S. Johari
s of the mount > command (as well as rw mode). Rahul S. Johari Supervisor, Internet & Administration Informed Marketing Services Inc. 500 Federal Street, Suite 201 Troy NY 12180 Tel: (518) 687-6700 x154 Fax: (518) 687-6799 Email: [EMAIL PROTECTED] http://www.informed-sources.com -- PHP

<    1   2   3   >