Re: [PHP] Question on Connecting to Microsoft SQL Server from PHP

2007-06-12 Thread David Giragosian
Tommy, Since SQL Server may loom on my horizon, I've tried connecting to a SQL Server 2000 db on my network. I got it to work _without_ any port after the IP in mssql_connect(). I'm using PHP 5.2.0 from windows XP to a Windows 2000 box running SQL Server. I used SQL Server Authentication to

Re: [PHP] file_get_contents and https

2007-05-31 Thread David Giragosian
On 5/31/07, Stut [EMAIL PROTECTED] wrote: Bob Hanson wrote: Thanks, Jay. I tried it first with a simple http://; call, and that worked fine. So unless https:... requires something additional in the way of arguments, that doesn't seem to be the issue. I'm hoping someone who has done this

Re: [PHP] Re: find (matching) person in other table

2007-05-31 Thread David Giragosian
On 5/31/07, Afan Pasalic [EMAIL PROTECTED] wrote: Jared Farrish wrote: On 5/30/07, Afan Pasalic [EMAIL PROTECTED] wrote: email has to match in total. [EMAIL PROTECTED] and [EMAIL PROTECTED] are NOT the same in my case. thanks jared, If you can match a person by their email, why not

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

2007-05-24 Thread David Giragosian
On 5/24/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, May 23, 2007 1:46 pm, Rahul Sitaram Johari wrote: Apache 2.2, PHP5 mySQL 5 on Windows 2003. I have some files sitting on a Network Drive accessible on the Windows 2003 Server. But my php script is not able to open the files.

Re: [PHP] [X-POST] Fastest way to dump this huge table

2007-05-02 Thread David Giragosian
On 5/2/07, Richard Davey [EMAIL PROTECTED] wrote: Brian Dunning wrote: I have a huge MySQL table, 2.1 million records, 200MB. Once a week I need to dump it in CSV format and zip the file. This is not on my server, and it's in production, so I don't want to risk testing different methods

Re: [PHP] INSERT Array Values into mySQL Table

2007-05-02 Thread David Giragosian
On 5/2/07, Rahul S. Johari [EMAIL PROTECTED] wrote: Ave, Here¹s the thing, I¹ve got an Array which has it¹s own set of Keys = Values. I¹m using foreach() to read the Keys = Values like this: function pr1($var) { foreach ($var as $k = $v) { echo ³$k = $v²;

Re: [PHP] register_argc_argv directive

2007-04-19 Thread David Giragosian
On 4/18/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, April 18, 2007 9:04 am, Bagus Nugroho wrote: I'm confuse about usage of php.ini directive register_argc_argv. Is used for command line purpose only? I suspect that in CGI (and possibly even FCGI) $argv and $argc may also end up being

Re: [PHP] Posting variable outside of the post form

2007-03-12 Thread David Giragosian
On 3/12/07, Otto Wyss [EMAIL PROTECTED] wrote: I submit a form back to itself with action=?PHP echo $_SERVER['PHP_SELF']; ? methode=get yet I've a large PHP variable which I'd like to access afterwards as well. Is this possible somehow? O. Wyss Cookie, session variable, session cookie,

Re: [PHP] Creating variable names from values

2007-03-08 Thread David Giragosian
On 3/8/07, Otto Wyss [EMAIL PROTECTED] wrote: Satyam wrote: $key = 'K' . $key; if ($$key) { notice double dollar sign, it means, not the value of $key but the value of the variable $key says. Thanks, any idea where this is described in the PHP manual? Searching for $$ produces no

Re: [PHP] Help with a within week function

2007-03-05 Thread David Giragosian
On 3/5/07, Jim Moseby [EMAIL PROTECTED] wrote: I have been trying to find a way to search a DB and match a range within a week ( php mysql ). This doesn't make sense, so I will describe it in more detail. Hi everyone, I need help with a search, lets say a record has a date of

Re: [PHP] Multiple Submit

2007-02-26 Thread David Giragosian
I always use : onClick=\this.form.action='SomeOtherPage.php'; \ inside the button tag. Seems to work just fine. David On 2/26/07, Dan Shirah [EMAIL PROTECTED] wrote: When I click on save at the bottom, I want it to check my form and submit all the values. When I click on the Retrieve

Re: [PHP] Option Value

2007-02-23 Thread David Giragosian
On 2/23/07, Dan Shirah [EMAIL PROTECTED] wrote: On my form I have several drop down menus. They all work and display the corrent values. However, I would like the initial display of the form to show each dropdown as blank. $q_status = SELECT * FROM status_codes ORDER BY status_description;

Re: [PHP] Magic Quotes

2007-02-23 Thread David Giragosian
On 2/23/07, Liz Kim [EMAIL PROTECTED] wrote: I've got all three Magic Quote directives turned off... When I use sql query to grab any string from a database, it still spits out the \ in front of the special characters.. Any ideas? thanks What's it look like in the database? David

Re: [PHP] Re: Text Editor for Windows?

2007-02-09 Thread David Giragosian
I've been using SciTE for many years now. http://www.scintilla.org/SciTE.html It's small and lightweight, has code folding and bracket highlighting and a lot of other nifty features. I also have Zend Studio IDE Professional but it is slow and bloated compared with SciTE. 2 more pennies...

Re: [PHP] Parsing mail file

2007-01-30 Thread David Giragosian
On 1/30/07, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] of course people read documentation before asking help [/snip] ROFLMMFAO! Sorry, that just made my day! Wow. I learned a new acronym. What a great day! David

Re: [PHP] DATE

2007-01-28 Thread David Giragosian
Ron Piggott wrote: I have date in the variable $date_reference in the format -MM-DD. How do I find out the date before this and the date after this? Ron Not enough information, Ron. Do you mean: 1. as exists in some data set that you've created or stored, like in an array or a

Re: [PHP] os php scheduler?

2007-01-22 Thread David Giragosian
On 1/20/07, blackwater dev [EMAIL PROTECTED] wrote: Does anyone have recommendations for an open source php based, 'lightweight', scheduling app? I just want something clean that I can use to schedule trainings within our company. I need to be able to put in details for each training and then

Re: [PHP] $_SESSION variable gets lost on FORM action

2007-01-16 Thread David Giragosian
On 1/16/07, Nuno Oliveira [EMAIL PROTECTED] wrote: Hi, I'm working on a website and one of the features that I've implemented so far is the user timeout. Every time that a user browses to a different page, the variable named $_SESSION['user']['lastactive'] is updated to the current time.

Re: [PHP] Hello

2007-01-13 Thread David Giragosian
On 1/13/07, John Meyer [EMAIL PROTECTED] wrote: Edward wrote: How do I create a php document so that people in my nonprofit can vote on issues online through the organization's website? Thanks, Edward Start with PHP, add MySQL or your database of choice, mix and prepare. Serves 500+. --

Re: [PHP] Variance Function

2007-01-12 Thread David Giragosian
Richard, I think you are looking for data about both the variance and the standard deviation of the array of dates. This would yield, for example, a bell-shaped curve, like one gets when administering an intelligence test to a sample population. Two thirds of the dates fall within +/- 1 standard

Re: [PHP] Please Help with simple Noob problem

2007-01-11 Thread David Giragosian
Well, actually I don't see anything. Nothing at all (in the case of the phpinfo() page. All the page has in it is just ?php phpinfo() ?. It was saved as test.php. How can I tell if something is broken and where do I look for the files? I haven't done any dorking around with the links, etc.

Re: [PHP] Some advice / points / help

2007-01-05 Thread David Giragosian
So the question is... How to grab data from the DB and create a jpg from it, looking pretty like http://steven.macintyre.name/arb/showlineups.jpg (I added the colon ;-) ) ?? David

Re: [PHP] Re: Still problem with file reading

2007-01-05 Thread David Giragosian
Why don't you start by running file_exists() on another file in the same directory: if (file_exists(./findMe.php)) echo It's here; then, directory by directory, move towards where you want the real file to be read. If a move fails, check permissions as already suggested ( and

Re: [PHP] Help me about detect client screen resolution!!!

2007-01-02 Thread David Giragosian
On 1/2/07, Stut [EMAIL PROTECTED] wrote: Le Phuoc Canh wrote: Can we use php to detect client screen resolution? Please help me ? No we can't. You need Javascript or another client-side technology for that. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] upload max error

2006-12-22 Thread David Giragosian
On 12/22/06, ibanex22 [EMAIL PROTECTED] wrote: Hey all, I am new to PHP and have been having issues on max filesize uploads. I can currently upload small files but I wish to make my max upload size huge. Here is what I have configured in php.ini: max_execution_time = 3000 max_input_time =

Re: [PHP] file uploads Q?

2006-12-12 Thread David Giragosian
On 12/12/06, Jochem Maas [EMAIL PROTECTED] wrote: Stut wrote: Jochem Maas wrote: and say what *you* mean. I LIKE MARMITE!! you have my condolences. Damn, that does feel better. see, just let it out... (said in soothing psychoanalyst's voice) -Stut (fairly bored today) really!? ;-)

[PHP] Re: backing up a database

2006-11-29 Thread David Giragosian
On 11/28/06, Warren Vail [EMAIL PROTECTED] wrote: I think it becomes an issue only if the database structure is complex with multiple related tables, and have lots of update activity. I think most people design applications that don't require anything so complex, and most queries are of the

Re: [PHP] Maybe an HTML prob?

2006-11-29 Thread David Giragosian
On 11/29/06, Frank Reichenbacher, Bio-Concepts, Inc. [EMAIL PROTECTED] wrote: I am trying to pass the results of a form to a simple php mail() routine. Everything works except the checkbox, Permission. No matter what state the checkbox is in, the php says it is whatever the value is set to on

Re: [PHP] Staff log-in

2006-11-11 Thread David Giragosian
On 11/11/06, John Nichel [EMAIL PROTECTED] wrote: Paul Novitski wrote: At 11/10/2006 07:09 AM, tedd wrote: Lastly, I think we all know that non-profit simply means that at the end of the year you get to roll your profits over to the next year without incurring taxes on the excess. Nothing

Re: [PHP] Time-Zone juggling

2006-11-09 Thread David Giragosian
On 11/8/06, Travis Doherty [EMAIL PROTECTED] wrote: David Giragosian wrote: Does Daylight Savings alter Zulu time? (I'm guessing yes). How did the military deal with that? I use a date-time field as a primary key in db tables that get an insert a minute. I had to jump through a number

Re: [PHP] Time-Zone juggling

2006-11-09 Thread David Giragosian
On 11/9/06, M.Sokolewicz [EMAIL PROTECTED] wrote: David Giragosian wrote: On 11/8/06, Travis Doherty [EMAIL PROTECTED] wrote: David Giragosian wrote: Does Daylight Savings alter Zulu time? (I'm guessing yes). How did the military deal with that? I use a date-time field as a primary

Re: [PHP] Time-Zone juggling

2006-11-08 Thread David Giragosian
On 11/8/06, tedd [EMAIL PROTECTED] wrote: At 12:48 AM -0500 11/8/06, Travis Doherty wrote: This can be a big problem to some apps, and others might be fine with the workaround like we've done where you loose a tiny bit of data (It's 08:00 on the day after the timechange, is this ticket from

Re: [PHP] Changing the Action attribute of Form

2006-11-01 Thread David Giragosian
Wasn't there a thread recently about a webpage having multiple forms on it, each of course with its own action attribute? Might be another solution here. David On 11/1/06, Dave Goodchild [EMAIL PROTECTED] wrote: Example HTTP redirect: header('Location: http://www.google.com;);

Re: [PHP] exec(mysql -h hhh -u uuu -pppp test.php,$out,$bin);

2006-10-25 Thread David Giragosian
What is the SQL you are running in test.php? David On 10/25/06, Gert Cuykens [EMAIL PROTECTED] wrote: i do not get any output from mysql except form echo $bin that displays 1 ? ?php exec(mysql -h hhh -u uuu - test.php,$out,$bin); print_r($out); echo $bin; ? -- PHP General Mailing List

Re: [PHP] exec(mysql -h hhh -u uuu -pppp test.php,$out,$bin);

2006-10-25 Thread David Giragosian
get any feedback like 'cant connect to host' or 'invalid sql' etc. exec(mysqldump...) works but exec(mysql...) doesnt On 10/25/06, David Giragosian [EMAIL PROTECTED] wrote: What is the SQL you are running in test.php? David On 10/25/06, Gert Cuykens [EMAIL PROTECTED] wrote: i do not get

Re: [PHP] exec(mysql -h hhh -u uuu -pppp test.php,$out,$bin);

2006-10-25 Thread David Giragosian
, On 10/25/06, Gert Cuykens [EMAIL PROTECTED] wrote: when i do echo exec... i get a blank screen (print_r $out i get Array() echo $bin i get 1) On 10/25/06, David Giragosian [EMAIL PROTECTED] wrote: What do you get if you run: echo exec(mysql -h hhh -u uuu - test.php,$out,$bin); On 10

Re: [PHP] Job postings?

2006-10-24 Thread David Giragosian
I've seen PHP/programming job postings on Craig's List. I was kind of shocked by it, but nonetheless... David

Re: [PHP] mysqldump problem from PHP

2006-10-23 Thread David Giragosian
Angelo, as Brad says, you can pass user and password args to mysqldump from an include file. I run a php backup script via cron every night, then tar and compress and store in various dirs out of the web tree. I have the script if you'd like. It came from someone on the php-db list years ago,

Re: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-10 Thread David Giragosian
How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991 How many Boomer wannabes does it take to pollute a mailing list? Just one, [EMAIL PROTECTED], MAN! David

Re: [PHP] PHP Mailer and SMTP = SPAM?

2006-10-10 Thread David Giragosian
-- Forwarded message -- From: Roman Neuhauser [EMAIL PROTECTED] Date: Oct 10, 2006 5:11 PM Subject: Re: [PHP] PHP Mailer and SMTP = SPAM? To: David Giragosian [EMAIL PROTECTED] # [EMAIL PROTECTED] / 2006-10-10 12:49:11 -0500: Do you realize how many Vietnam war veterans you're

[PHP] MySQLDump and master/slave Behavior

2006-10-03 Thread David Giragosian
Howdy Guys, I have a PHP backup script running as a cronjob that has an exec(mysqldump) line followed a bit later by an exec(tar -cjf) line. The backup script runs against a slave db in the wee hours, and the master gets a continuous stream of inputs at the rate of about 18,720 per day.

Re: [PHP] MySQLDump and master/slave Behavior

2006-10-03 Thread David Giragosian
Thank you Jon, Joe, and Richard. I guess I'll leave things as they are and continue to monitor daily. Fortunately, only up to 3 years worth of data needs to be kept live in the master-slave db's, so there is a limit to how much data I will have to cope with. David

Re: [PHP] php/css and .htaccess [SOLVED]

2006-09-21 Thread David Giragosian
On 9/21/06, tedd [EMAIL PROTECTED] wrote: tedd wrote: I embedded php code inside css and changed my .htaccess to read -- FilesMatch \.(htm|html|css)$ SetHandler application/x-httpd-php /FilesMatch -- so that the css file would be processed and executed by php. The end result

Re: [PHP] Frustrated trying to get help from your site

2006-09-18 Thread David Giragosian
On 9/18/06, Howard, Tim [EMAIL PROTECTED] wrote: I am a programmer who is fairly new to PHP, and I had a problem trying to make changes to existing code. I tried to look up any existing documentation on your site, and after an extensive search, I finally found someone who has the same problem.

<    1   2