RE: [PHP] moved code to a new server

2008-10-24 Thread Marc Fromm
while the new server cannot find the file with the full url. -Original Message- From: Mohamed Ainab [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2008 3:34 PM To: Daniel P. Brown Cc: php php; Marc Fromm Subject: RE: [PHP] moved code to a new server would be very helpfull if you

[PHP] send emails in php not working

2008-10-27 Thread Marc Fromm
We recently moved to a new server. Our code that would send out emails is no longer sending emails. There are no messages in the httpd logs associated with running the email.php files. The email scripts worked on the old server. Is there a special setting in php.ini for sending emails in php or

RE: [PHP] send emails in php not working

2008-10-27 Thread Marc Fromm
:[EMAIL PROTECTED] Sent: Monday, October 27, 2008 2:55 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] send emails in php not working Marc Fromm wrote: We recently moved to a new server. Our code that would send out emails is no longer sending emails. There are no messages

[PHP] dynamic forms

2008-12-16 Thread Marc Fromm
I would like to create a from that will pull and display information based on a user's ID from a postgresql database into a textarea on the form, before the submit button is clicked. Are there some tutorials on how to use PHP to dynamically display information on a form as the form is being

[PHP] DOCUMENT_ROOT errors

2009-02-09 Thread Marc Fromm
I updated fedora core from FC5 to TC6, thus httpd and php were updated in the process. My pages worked with no errors before the upgrade. My php pages are no not displaying and generating this error in the httpd logs PHP Notice: Undefined variable: DOCUMENT_ROOT in

[PHP] php and ODBC

2009-09-04 Thread Marc Fromm
I am trying to figure out how to use ODBC with PHP. Specifically I need to connect a php script to a SunGard Banner table I know I need to set up some type of DNS connection, but I am not sure what exactly that is. [r...@dev ~]$ odbcinst -j unixODBC 2.2.11 DRIVERS: /etc/odbcinst.ini

[PHP] output buffer

2009-12-29 Thread Marc Fromm
I am receiving the Cannot send session cookie - headers already sent message even though I am using ob_start() at the top of my script. The php.ini file has output_buffering set to 4096 4096. My server is running Red Hat Enterprise Linux 5.2 I am using PHP 5.1.6 Is there some other setting I

RE: [PHP] output buffer

2009-12-29 Thread Marc Fromm
] Sent: Tuesday, December 29, 2009 1:38 PM To: Marc Fromm Subject: Re: [PHP] output buffer Hi. There're some other code that is sent to client. You must send cookie first, at header, then the other data. Please send code to view your case. With regards, Alexey On Wed, Dec 30, 2009 at 12:09 AM, Marc

[PHP] sending emails

2010-12-09 Thread Marc Fromm
We have web forms that send the user an email confirmation after submission, like most forms do. The emails are being delivered to the users' junk folder. The main campus IT staff claim it is because our server is sending the emails. The campus is using Microsoft exchange servers. I am using Red

[PHP] sending email

2010-12-15 Thread Marc Fromm
When I use the mail function on a linux server, how is the email sent? Does sendmail act alone or does it use SMTP? Thanks Marc

[PHP] using pg_query in a function not working

2011-08-05 Thread Marc Fromm
is displayed if ((!$result) or (empty($result))){ return false; } return $result; } Marc Fromm Information Technology Specialist II Financial Aid Department Western Washington University Phone: 360-650-3351 Fax: 360-788-0251

RE: [PHP] using pg_query in a function not working

2011-08-05 Thread Marc Fromm
Thanks! Sometimes I'm blind. -Original Message- From: Jim Lucas [mailto:li...@cmsws.com] Sent: Friday, August 05, 2011 1:01 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] using pg_query in a function not working On 8/5/2011 12:08 PM, Marc Fromm wrote: I have

[PHP] array problem

2011-09-09 Thread Marc Fromm
I am reading a csv file into an array. The csv file. users.csv file contents: w12345678,a w23456789,b w34567890,c $csvfilename = users.csv; $handle = fopen($csvfilename, r); if($handle) {

[PHP] checking dates not working

2011-11-10 Thread Marc Fromm
I have this bit of code to see if a date is greater or equal to a set date. echo(date(m/d/Y,strtotime($jobs_effective_start)));// displays entered date of 01/03/2012 echo(date(m/d/Y,strtotime(WSOFFBEGIN))); // displays set date of 09/16/2011 if (!(date(m/d/Y,strtotime($jobs_effective_start)) =

[PHP] compare dates

2011-11-30 Thread Marc Fromm
I'm puzzled why the if statement executes as true when the first date (job_closedate) is not less than the second date (now). The if statement claims that 12/02/2011 is less than 11/30/2011. if (date(m/d/Y,strtotime($jobs_closedate)) = date(m/d/Y,strtotime(now))){

RE: [PHP] compare dates

2011-12-01 Thread Marc Fromm
Thanks. I'm stuck using 5.1.6. Matijn reply worked by using the unix timestamp. -Original Message- From: Maciek Sokolewicz [mailto:tula...@gmail.com] On Behalf Of Maciek Sokolewicz Sent: Thursday, December 01, 2011 12:57 PM To: Marc Fromm Cc: Floyd Resler Subject: Re: [PHP] compare dates

[PHP] date problem

2013-01-03 Thread Marc Fromm
I am comparing to dates. define('WSOFFBEGIN','09/16/2012'); $jes = 01/03/2012; if ( date(m/d/Y, strtotime($jes)) date(m/d/Y, strtotime(WSOFFBEGIN)) ) { $error = MUST begin after . WSOFFBEGIN . \n; } I cannot figure out why the $error is being assigned inside the if statement,

RE: [PHP] date problem

2013-01-03 Thread Marc Fromm
:05 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] date problem Hi. date returns a string You should compare a different type for bigger/smaller than HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add

RE: [PHP] date problem

2013-01-03 Thread Marc Fromm
Thanks Jonathan. I removed the date() syntax function and it works. From: Jonathan Sundquist [mailto:jsundqu...@gmail.com] Sent: Thursday, January 03, 2013 2:16 PM To: Marc Fromm Cc: Serge Fonville; php-general@lists.php.net Subject: Re: [PHP] date problem Marc, When you take a date and do