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

[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²

[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

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

[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

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

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²

[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

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

2007-07-31 Thread Rahul Sitaram Johari
ahul 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
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²

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

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

[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

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

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

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

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

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

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

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

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

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] Show filenames using Wildcards -- The glob() Solution!

2007-04-03 Thread Rahul Sitaram Johari
flaw? ~~~ 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 &q

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

2007-03-30 Thread Rahul Sitaram Johari
basename($F)); > header("Content-Length: ".filesize($F)); > >> @readfile($F); > > only php gods are entitled to use @ - the rest of us will get bitten in the > ass by a bad dog sooner or later. don't repress errors unless there is no > other recourse > (

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

2007-03-30 Thread Rahul Sitaram Johari
(and please don't kill me): ~~~~~~~~~~~ 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]>

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 bringin

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

2007-03-30 Thread Rahul Sitaram Johari
"; } ?> 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] 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" <[EM

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.

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-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 5:33 PM, "Roberto Mansfield" <[EMAIL PROTECTED]> wrote: > Only do this if all the f

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

2007-03-29 Thread Rahul Sitaram Johari
rop 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
ipt and output it > sending a MIME type prior to the data output, placing 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: >> Av

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

2007-03-29 Thread Rahul Sitaram Johari
eside on a mounted share on my system. They are NOT in the Apache Web Server htdocs 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

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

2007-03-29 Thread Rahul Sitaram Johari
e on in the Apache Web Server htdocs 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: [EM

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
;) Point taken! "; } ?> :) 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 4:58 PM, &quo

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Agreed! And definitely modified my code to use basename() "; } ?> Thanks! On 3/29/07 3:58 PM, "Tijnema !" <[EMAIL PROTECTED]> wrote: > On 3/29/07, Rahul Sitaram Johari <[EMAIL PROTECTED]> wrote: >> Ave, >> >> This Works!! >

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Awesome!! This Works!! "; } ?> 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 3:52

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Ave, This Works!! "; } ?> 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 4:31 PM, &quo

Re: [PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
Thanks!! Much Appreciated! ~~~~~~~~~~~ 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: >> -----Orig

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

[PHP] Show Filename using Wildcards

2007-03-29 Thread Rahul Sitaram Johari
but they contain 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] 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: >

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
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
Honorable *bow* 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 10:30 AM, "Tijnema !" <[EMAIL P

[PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
nd not giving any errors: $sql = "INSERT INTO tbl (WHEN, WHAT, WHO) VALUES ('$WHEN','$WHAT','$WHO')"; $result = mysql_query($sql) or die("Fatal Error :".mysql_error()); echo "~: message sent :~"; } 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] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
orm is not submitted, this code is not executed (the echo 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 mort

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

2007-03-29 Thread Rahul Sitaram Johari
,'$WHAT','$WHO')"; $result = mysql_query($sql) or die("Fatal Error :".mysql_error()); echo "~: message sent :~"; } ?> Please disregard the previous code I sent. Thank you! On 3/29/07 10:10 AM, "Rahul Sitaram Jo

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

2007-03-29 Thread Rahul Sitaram Johari
3/29/07 10:14 AM, "Daniel Brown" <[EMAIL PROTECTED]> wrote: > > I see $result = mysql_query($sql), but I don't see $sql = "QUERY > STATEMENT" anywhere > > On 3/29/07, Rahul Sitaram Johari < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECT

[PHP] What is wrong with this INSERT?

2007-03-29 Thread Rahul Sitaram Johari
names are fine ­ Connection is fine! I¹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 soli ... The dead are no longer lonely²

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

[PHP] Anyone TrackPro 2 or Something Similar?

2007-03-27 Thread Rahul Sitaram Johari
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] Add New Records Only!

2007-03-26 Thread Rahul Sitaram Johari
could, perhaps, create a TEMP table in MySQL, with the unique > index, insert rows one 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 export

Re: [PHP] Add New Records Only!

2007-03-26 Thread Rahul Sitaram Johari
;m not getting this right. 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

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

2007-03-26 Thread Rahul Sitaram Johari
CTED]> wrote: > On Mon, March 26, 2007 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-down

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

2007-03-26 Thread Rahul Sitaram Johari
e file, and not open the file in IE. $F was the filename passed as a variable. ~~~~~~~ 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-26 Thread Rahul Sitaram Johari
uns it will remove one occurence of the all duplicated >> records. You'd have to run it several times until it deletes no more >> records. In MySql, you cannot have the same table in the 'delete' >> and in >> the subquery, thus, you will have to first ins

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 tab

Re: [PHP] Add New Records Only!

2007-03-23 Thread Rahul Sitaram Johari
key is the same as the previous one, it is a > duplicate record and ignore it. > > like this: (pseudo code) > > $primary_key = ""; > while(!eof()) > { >$record = get_next_record(); > > if($record->primary_key != $primary_key) > { >store_new_reco

Re: [PHP] Add New Records Only!

2007-03-23 Thread Rahul Sitaram Johari
ks! On 3/23/07 11:36 AM, "Mark" 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:

[PHP] Add New Records Only!

2007-03-23 Thread Rahul Sitaram Johari
e'], $row_loDispo['dispo'], $row_loDispo['loanofficer'], $row_loDispo['verifier'], $bxQ)); } while ($row_loDispo = mysql_fetch_assoc($loDispo)); } dbase_close($db2); } Any suggestions would be highly appreciated. 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] Permissions issue on share - SOLVED!!

2007-03-22 Thread Rahul Sitaram Johari
ut uid & gid of Apache Web Server on my Mac OS X. Hope this helps someone else ;) ~~~ 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/22/07 3:32 PM, "Tij

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
you would recommend a recursive chmod? > as long as there's no OS installed it wouldn't do a lot, but of course > this would remove a little bit security. (Not that there's a lot of > security with windows...:P) > But i think that when remounting the partitition, the permissions ar

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
e a closer look 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

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
"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'

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 Johar

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
ess on the Windows Machine. Yes, it is quite 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 W

Re: [PHP] Permissions issue on share

2007-03-22 Thread Rahul Sitaram Johari
le/folder. Like it's just ignored. >> >> I did it as root using sudo. > > Can you post the log of the "ls -la Share" command here? > > Tijnema >> >> >> On 3/22/07 12:18 PM, "Tijnema !" <[EMAIL PROTECTED]> wrote: >> &g

[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] "cannot load mysql extension" - PHP Installation on Vista/Apache

2007-03-16 Thread Rahul Sitaram Johari
nsion won't work with PHP just 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

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

2007-03-14 Thread Rahul Sitaram Johari
ying the DLL), without trying, it would be too premature to label it logical 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

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

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

2007-03-14 Thread Rahul Sitaram Johari
'm facing. I'm just 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 PROT

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

2007-03-14 Thread Rahul Sitaram Johari
k? Anyone else has this problem? 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²