RE: Re: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch

Hello Frank,
 

As far as I know I am not doing anything in terms of trying to write or use my 
own function.  What I am trying to do is use what PHP provides.  

 

Thank you

 


Eric H. Lommatsch
Programmer
Pivotal Data Incorporated  
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939 Ext 23
Fax 888-282-9927

 


www.pivotaldata.com 

 


er...@pivotaldata.com 

 

 
 
-Original message-
From: Frank Arensmeier farensme...@gmail.com
Sent: Thu 29-12-2011 15:25
To: Eric Lommatsch er...@pivotaldata.net; 
CC: php-general@lists.php.net; 
Subject: Re: [PHP] Question about date calculations

29 dec 2011 kl. 22.22 skrev Eric Lommatsch:

 So far in looking at the functions that are available at
 http://www.php.net/manual/en/ref.datetime.php I have not been able to figure
 out how to do what I need to do.  Below is a snippet showing approximately
 what I am trying to do.

On the same page you are referring, there are plenty of examples on how to 
calculate the difference between two dates. Choose one and see if it fits your 
bill. Or is there any particular reason why you're writing your own function?

http://www.php.net/manual/en/ref.datetime.php#78981

/frank



RE: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch

When I try this method:

 

$interval = $dteStartDate[$intCnt]-diff($dteEndDate[$intCnt]); I get the 
following error when I run the page: 

 Fatal error : Call to undefined method DateTime::diff() in 
/var/www/evalHomeLime.php on line 254   
 

 

Thank you

 


Eric H. Lommatsch
Programmer
Pivotal Data Incorporated  
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939 Ext 23
Fax 888-282-9927

 


www.pivotaldata.com 

 


er...@pivotaldata.com 

 

 
 
-Original message-
From: ad...@buskirkgraphics.com
Sent: Thu 29-12-2011 16:07
To: 'Fatih P.' fatihpirist...@gmail.com; 'Frank Arensmeier' 
farensme...@gmail.com; 
CC: 'Eric Lommatsch' er...@pivotaldata.net; php-general@lists.php.net; 
Subject: RE: [PHP] Question about date calculations


 -Original Message-
 From: Fatih P. [mailto:fatihpirist...@gmail.com]
 Sent: Thursday, December 29, 2011 5:10 PM
 To: Frank Arensmeier
 Cc: Eric Lommatsch; php-general@lists.php.net
 Subject: Re: [PHP] Question about date calculations
 
 On Thu, Dec 29, 2011 at 11:40 PM, Frank Arensmeier
 farensme...@gmail.comwrote:
 
  29 dec 2011 kl. 22.22 skrev Eric Lommatsch:
 
   So far in looking at the functions that are available at
   http://www.php.net/manual/en/ref.datetime.php I have not been able
 to
  figure
   out how to do what I need to do.  Below is a snippet showing
  approximately
   what I am trying to do.
 
  On the same page you are referring, there are plenty of examples on
 how to
  calculate the difference between two dates. Choose one and see if it
 fits
  your bill. Or is there any particular reason why you're writing your
 own
  function?
 
  http://www.php.net/manual/en/ref.datetime.php#78981
 
  /frank
 
 
  --
  PHP General Mailing List (http://www.php.net/)
  To unsubscribe, visit: http://www.php.net/unsub.php
 
 
 since you have everything in database tables why not to do this
 calculation
 on database side which would be much appropriate place ?
 
 /* columns
 date_start = '2011-02-08';
 date_end = ' 2011-03-04';
 */
 
 select DATEDIFF(date_end, date_start);
 
 http://dev.mysql.com/doc/refman/5.5/en/date-and-time-
 functions.html#function_datediff


I looked at this answer and see the date is from an array of a database and not 
2 fields with in the table.
While the DATEDIFF() is very useful in queries this will not help you unless 
both fields are in the table.

Try this example

$dteStartDate[$intCnt] = new DateTime($row[10]);
$dteEndDate[$intCnt] =new DateTime($row[11]);
$interval = $dteStartDate[$intCnt]-diff($dteEndDate[$intCnt]);
echo $interval-format('%R%a days');










RE: Re: [PHP] Question about date calculations

2011-12-30 Thread Eric Lommatsch

Actually for what I need this is exactly what i was looking for.  I am 
converting an asp page that was calculating this difference using VBA functions 
and I was trying to duplicate things as they were in that page. 
 

 

Thank you

 


Eric H. Lommatsch
Programmer
Pivotal Data Incorporated  
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939 Ext 23
Fax 888-282-9927

 


www.pivotaldata.com 

 


er...@pivotaldata.com 

 

 
 
-Original message-
From: Fatih P. fatihpirist...@gmail.com
Sent: Thu 29-12-2011 16:16
To: ad...@buskirkgraphics.com; 
CC: 'Frank Arensmeier' farensme...@gmail.com; 'Eric Lommatsch' 
er...@pivotaldata.net; php-general@lists.php.net; 
Subject: Re: [PHP] Question about date calculations



On 12/30/2011 12:19 AM, ad...@buskirkgraphics.com wrote: 
-Original Message- From: Fatih P. [ mailto:fatihpirist...@gmail.com ] 
Sent: Thursday, December 29, 2011 5:10 PM To: Frank Arensmeier Cc: Eric 
Lommatsch; php-general@lists.php.net Subject: Re: [PHP] Question about date 
calculations On Thu, Dec 29, 2011 at 11:40 PM, Frank Arensmeier 
farensme...@gmail.com wrote: 

29 dec 2011 kl. 22.22 skrev Eric Lommatsch: 

So far in looking at the functions that are available at 
http://www.php.net/manual/en/ref.datetime.php I have not been able 

to 

figure 

out how to do what I need to do. Below is a snippet showing 

approximately 

what I am trying to do. 

On the same page you are referring, there are plenty of examples on 

how to 

calculate the difference between two dates. Choose one and see if it 

fits 

your bill. Or is there any particular reason why you're writing your 

own 

function? http://www.php.net/manual/en/ref.datetime.php#78981 /frank -- PHP 
General Mailing List ( http://www.php.net/ ) To unsubscribe, visit: 
http://www.php.net/unsub.php 

since you have everything in database tables why not to do this calculation on 
database side which would be much appropriate place ? /* columns date_start = 
'2011-02-08'; date_end = ' 2011-03-04'; */ select DATEDIFF(date_end, 
date_start); http://dev.mysql.com/doc/refman/5.5/en/date-and-time - 
functions.html#function_datediff 

I looked at this answer and see the date is from an array of a database and not 
2 fields with in the table. While the DATEDIFF() is very useful in queries this 
will not help you unless both fields are in the table. Try this example 
$dteStartDate[$intCnt] = new DateTime($row[10]); $dteEndDate[$intCnt] =new 
DateTime($row[11]); $interval = 
$dteStartDate[$intCnt]-diff($dteEndDate[$intCnt]); echo 
$interval-format('%R%a days'); 

well then look deeper in the question:  

I have a page I am trying to create where I am comparing the values of two
MySQL date fields with the current date. One of the MySQL Date fields is a 
class start date, the other is the class end date.

all needs to do is modify his query.



[PHP] Question about date calculations

2011-12-29 Thread Eric Lommatsch
Hello List,

 

I am using PHP version 5.2.6.

 

I have a page I am trying to create where I am comparing the values of two
MySQL date fields with the current date. One of the MySQL Date fields is a
class start date, the other is the class end date.

 

First I need to calculate the number of days between class start and end
date. Then based on the number of days between these to dates I have to find
out how close the current date is to the class end date.

 

So far in looking at the functions that are available at
http://www.php.net/manual/en/ref.datetime.php I have not been able to figure
out how to do what I need to do.  Below is a snippet showing approximately
what I am trying to do.

 

?PHP

...

  $dteStartDate[$intCnt]= New DateTime($row[10]);

  $dteEndDate[$intCnt]= New DateTime($row[11]);

...

  $dteCheckDate=date('Y-m-d');

  $intDayCnt=$dteEndDate[$i]-$dteStartDate[$i];

  if (($dteCheckDate=($dteEndDate[$i]-7) 
$dteCheckDate=($dteEndDate[$i]+1))  $intDayCnt16)

...

?

 

My start date is 12/26/2011, the end date 1/8/2012 so the value for
intDayCnt should be 13, but it is coming up as 0.

 

Also the check date which is 12/29/2011 is being calculated as after my end
date.  Can someone point me in the direction of what I need to do to have
the comparisons I am doing work.

 

Eric Lommatsch. 



RE: [PHP] RE: SOAP connect error

2010-02-11 Thread Eric Lommatsch

Are you using wsdl? If so, does the WSDL file contain the information that
the port to use for the requests is on port 8080?

--
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

First, I am sorry for not getting back to this yesterday. I had some other
things come up.

As far as I know this website is using WSDL. I know that one of the early
issues I ran into in trying to get this to work was not having the wsdl.php
file in the path.

That having been said are you talking about the wsdl file on the server that
is providing the service or are you talking about the wsdl file on the system
hosting the webpage. 

I can get everything to work correctly when I am working from our internal
development server. But when I attempt to put the file on the hosted site our
clients would ultimately be using I am getting the connect error. 

I have compared the wsdl.php files on these two servers and neither of them
have specific information about the port in them.

Here is the code that I am using to connect to the webservice:

$webservices_uri =
http://xx.xx.xx.xx:8080/jasperserver/services/repository;;

Here is the code where I am trying to connect:

function ws_checkUsername($username, $password)
{
$connection_params = array(user = $username, pass =
$password);
$info = new SOAP_client($GLOBALS[webservices_uri], false,
false, $connection_params);

$op_xml = request
operationName=\list\resourceDescriptor name=\\ wsType=\folder\
uriString=\\ isNew=\false\.
label/label/resourceDescriptor/request;

$params = array(request = $op_xml );
$response = $info-call(list,$params,array('namespace' =
$GLOBALS[namespace]));

return $response;
}

This is working when I use the IP address of the server behind the firewall,
but when I try to use the address that is open through the firewall it is not
connecting. I can connect to the external IP address by entering it into the
browser and it does ask for the username and password.

Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939 Ext 23
Fax 888-282-9927
 
er...@360b.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] SOAP connect error

2010-02-09 Thread Eric Lommatsch
Hello,
 
I am working with the SOAP package of PHP and I am trying make a connection
from a hosted website to a server in our office. 
 
I can get to the server perfectly fine from within our office, but I cannot
connect from the eternal site.
 
I have checked and I am certain that the firewall for the server is open.
When I attempt to use the login page that I have created for the website I am
getting the following error message:
 
Connect Error to XX.XX.XX.XXX:8080
 
Where XX.XX.XX.XXX mask the actual ip address of the server. I have tried to
interogate all the values that soap_fault documents that it can return and
the only information I have been able to find beside the above message, which
is the $errorstring, is that my $faultcode = HTTP.
 
The information that I am getting is very cryptic. if I include our ip
address when I search I get no results. If I put in connect error :8080 I get
millions of meaningless results.
 
Can someone please help to figure out how to get more meaningful information
from soap_fault for this problem so that I can figure out how to fix it.
 
Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939 Ext 23
Fax 888-282-9927
 
er...@360b.com
 


[PHP] RE: SOAP connect error

2010-02-09 Thread Eric Lommatsch
-Original Message-
From: Shawn McKenzie [mailto:nos...@mckenzies.net] 
Sent: Tuesday, February 09, 2010 3:07 PM
To: Eric Lommatsch
Cc: php-general@lists.php.net
Subject: Re: SOAP connect error

Eric Lommatsch wrote:
 Hello,
  
 I am working with the SOAP package of PHP and I am trying make a 
 connection from a hosted website to a server in our office.
  
 I can get to the server perfectly fine from within our office, but I 
 cannot connect from the eternal site.
  
 I have checked and I am certain that the firewall for the server is open.
 When I attempt to use the login page that I have created for the 
 website I am getting the following error message:
  
 Connect Error to XX.XX.XX.XXX:8080
  
 Where XX.XX.XX.XXX mask the actual ip address of the server. I have 
 tried to interogate all the values that soap_fault documents that it 
 can return and the only information I have been able to find beside 
 the above message, which is the $errorstring, is that my $faultcode =
HTTP.
  
 The information that I am getting is very cryptic. if I include our ip 
 address when I search I get no results. If I put in connect error 
 :8080 I get millions of meaningless results.
  
 Can someone please help to figure out how to get more meaningful 
 information from soap_fault for this problem so that I can figure out how
to fix it.
  
 Thank you
  
 Eric H. Lommatsch
 Programmer
 360 Business
 2087 South Grant Street
 Denver, CO 80210
 Tel 303-777-8939 Ext 23
 Fax 888-282-9927
  
 er...@360b.com
  
 

If you go home or to Starbucks can you get to http://XX.XX.XX.XXX:8080 ?
 If not, then the external server can't either.  It could be a network
firewall/proxy sever in your office, or any number of things.

--
Thanks!
-Shawn
http://www.spidean.com


I have connected to a clients computer that is remote from our office and I
am able to get to http://XX.XX.XX.XXX:8080. I probably should have mentioned
that when I try to get the webservice outside of the PHP site I am developing
I can get into that just fine. It is just when I try to use the PHP SOAP
client to access the webservice that I am getting the issue.


Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939 Ext 23
Fax 888-282-9927
 
er...@360b.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Issue with $HTTP_POST_VARS Not getting Variables

2009-12-11 Thread Eric Lommatsch
Hello,
 
I am working with a login page to use with an application that we are
planning to make available as a web service. The login.php page itself works
correctly, however when I try and pass parameters to the login page the are
not being recognized by the login.php page. 
 
Here is the basic code that I am dealing with to attempt to the the
variables:
 
?php

$username = $HTTP_POST_VARS['username'];

$password = $HTTP_POST_VARS['password'];

$username = $_POST['username'];

$password = $_POST['password'];

echo $username;

?

When I enter the url
http://localost/index.php?username=jasperadminpassword=**

Where localhost is the ip address of my server and ** is the password of
the user that is logging in, I am not having the username questioned and the
login.php isacting as if I have not entered any parameters. 

Why are the parameters not being accepted?

I am using php version 5.2.6 on a ubuntu linux box

 
Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
 


RE: [PHP] Issue with $HTTP_POST_VARS Not getting Variables

2009-12-11 Thread Eric Lommatsch
Doh, I should have thought of that!
 
Thanks, that is what happens when you use code that someone else has writen
and included with a software package. At least I assumed that the code was
already written correctly to accept parameters. I guess it wasn't.
 
Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
 
 


From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] 
Sent: Friday, December 11, 2009 1:39 PM
To: Eric Lommatsch
Cc: php-general@lists.php.net
Subject: Re: [PHP] Issue with $HTTP_POST_VARS Not getting Variables


On Fri, 2009-12-11 at 13:37 -0700, Eric Lommatsch wrote: 

Hello,
 
I am working with a login page to use with an application that we are
planning to make available as a web service. The login.php page
itself works
correctly, however when I try and pass parameters to the login page
the are
not being recognized by the login.php page. 
 
Here is the basic code that I am dealing with to attempt to the the
variables:
 
?php

$username = $HTTP_POST_VARS['username'];

$password = $HTTP_POST_VARS['password'];

$username = $_POST['username'];

$password = $_POST['password'];

echo $username;

?

When I enter the url
http://localost/index.php?username=jasperadminpassword=**

Where localhost is the ip address of my server and ** is the
password of
the user that is logging in, I am not having the username questioned
and the
login.php isacting as if I have not entered any parameters. 

Why are the parameters not being accepted?

I am using php version 5.2.6 on a ubuntu linux box

 
Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
 


First off, take out those HTTP_POST_VARS lines. That's an outdated way of
accessing post variables, and is made useless by the next two lines that
follow it.

Second, the two lines you are using at the end there are for post data, but
you clearly use get data in the URL! If you have to accept the username and
password from both get and post, change the lines to use $_REQUEST instead of
$_POST.


Thanks,
Ash
http://www.ashleysheridan.co.uk





RE: [PHP] Access name of variable in $_POST array

2007-09-24 Thread Eric Lommatsch
Hello Dan,

First off I am sorry for not getting back to you sooner, I had a weekend and
was not checking my work email

The reason that I want both the name of the variable and the value of the
variable is because what I need to do is create a text file that another
program I am integrating with is already designed to work with. If I am not
putting the field names in the file along with the data this other program
ignores the file I am creating. What I need as an output is something that
looks similar to:

FirstName   :   Eric
LastName:   Lommatsch

The point of the script that I am writing is that I want it to be capable of
handling several different PDF forms.

Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939
Fax 303-778-0378
 
[EMAIL PROTECTED]

-Original Message-
From: Dan Parry [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 22, 2007 6:26 PM
To: 'Daniel Brown'; 'Stut'
Cc: Eric Lommatsch; php-general@lists.php.net
Subject: RE: [PHP] Access name of variable in $_POST array

 -Original Message-
 From: Daniel Brown [mailto:[EMAIL PROTECTED]
 Sent: 21 September 2007 23:27
 To: Stut
 Cc: Eric Lommatsch; php-general@lists.php.net
 Subject: Re: [PHP] Access name of variable in $_POST array
 
 On 9/21/07, Stut [EMAIL PROTECTED] wrote:
  Please include the list when replying.
 
  Eric Lommatsch wrote:
   -Original Message-
   From: Stut [mailto:[EMAIL PROTECTED]
   Sent: Friday, September 21, 2007 3:09 PM
   To: Eric Lommatsch
   Cc: php-general@lists.php.net
   Subject: Re: [PHP] Access name of variable in $_POST array
  
   Eric Lommatsch wrote:
   I am writing a PHP script that is going to accept variables that
 are
   passed from a PDF form and should write both the name of the
 variable
   and its value to a text file.
  
  
   I can get the value that I want to retrieve with out problem.
 However,
   even though I have searched through the PHP.net site and googled
 this
   as well I have not yet been able to find the syntax that I need 
   to
 get
   the names of the variables in the $_Post array.
  
   Can someone point me to the place in the PHP manual where I can
 find
   the syntax to get the name of a variable in the $_POST array?
  
   http://php.net/array_keys
  
   As in...
  
   $varnames = array_keys($_POST);
  
   -Stut
  
   --
   http://stut.net/
  
   Hello Stut,
  
   That is not exactly what I am looking for. If I try using that in
 My PHP
   script what I get as a result of that is repeatedly the Phrase
 Post Array
   when I check the values there. The PDF form that is posting to the
 PHP script
   is passing variable names like Employer_name or Employee_Name.
 I am
   hoping to get those variable names.
 
  Put this line at the top of the script that the form posts to...
 
  print 'pre'.print_r($_POST, true).'/pre'; exit;
 
  That will display the contents of the $_POST array and you should be 
  able to figure out where everything is.
 
  By the sounds of it the posted values are actually in $_POST['Post 
  Array'] but use the above line to be sure.
 
  -Stut
 
  --
  http://stut.net/
 
  --
  PHP General Mailing List (http://www.php.net/) To unsubscribe, 
  visit: http://www.php.net/unsub.php
 
 
 
 Maybe this will get you started and give you some ideas.
 
 ?
 foreach($_POST as $p = $v) {
 $$p = $v;
 echo $p. = .$v.\n;
 }
 ?

I might be missing something but I fail to see the point of the variable
variable assignation (which is best to be avoided :) )

Dan

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Access name of variable in $_POST array

2007-09-24 Thread Eric Lommatsch
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 21, 2007 4:12 PM
To: Eric Lommatsch
Cc: php-general@lists.php.net
Subject: Re: [PHP] Access name of variable in $_POST array

Please include the list when replying.

Eric Lommatsch wrote:
 -Original Message-
 From: Stut [mailto:[EMAIL PROTECTED]
 Sent: Friday, September 21, 2007 3:09 PM
 To: Eric Lommatsch
 Cc: php-general@lists.php.net
 Subject: Re: [PHP] Access name of variable in $_POST array
 
 Eric Lommatsch wrote:
 I am writing a PHP script that is going to accept variables that are 
 passed from a PDF form and should write both the name of the variable 
 and its value to a text file.
  
  
 I can get the value that I want to retrieve with out problem. 
 However, even though I have searched through the PHP.net site and 
 googled this as well I have not yet been able to find the syntax that 
 I need to get the names of the variables in the $_Post array.
  
 Can someone point me to the place in the PHP manual where I can find 
 the syntax to get the name of a variable in the $_POST array?
 
 http://php.net/array_keys
 
 As in...
 
 $varnames = array_keys($_POST);
 
 -Stut
 
 --
 http://stut.net/
 
 Hello Stut,
 
 That is not exactly what I am looking for. If I try using that in My 
 PHP script what I get as a result of that is repeatedly the Phrase Post
Array
 when I check the values there. The PDF form that is posting to the PHP 
 script is passing variable names like Employer_name or Employee_Name. I
am
 hoping to get those variable names.   

Put this line at the top of the script that the form posts to...

print 'pre'.print_r($_POST, true).'/pre'; exit;

That will display the contents of the $_POST array and you should be able to
figure out where everything is.

By the sounds of it the posted values are actually in $_POST['Post Array']
but use the above line to be sure.

-Stut

--
http://stut.net/

Sorry, I thought that I had hit reply to all. Apparently I didn't. 

Thanks that appears to actually be what I was looking for.

Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939
Fax 303-778-0378
 
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Access name of variable in $_POST array

2007-09-21 Thread Eric Lommatsch
Hello,
 
I am writing a PHP script that is going to accept variables that are passed
from a PDF form and should write both the name of the variable and its value
to a text file. 
 
 
I can get the value that I want to retrieve with out problem. However, even
though I have searched through the PHP.net site and googled this as well I
have not yet been able to find the syntax that I need to get the names of the
variables in the $_Post array.
 
Can someone point me to the place in the PHP manual where I can find the
syntax to get the name of a variable in the $_POST array? 
 
Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939
Fax 303-778-0378
 
[EMAIL PROTECTED]
 


[PHP] PHP has encountered an access violation

2007-07-27 Thread Eric Lommatsch
Hello,
 
We are in the process of configuring PHP version 5.2.3 to run on IIS so that
we can install some PHP applications on this server. When we attempt to open
pages on this server we are getting error messages like PHP has encountered
an access violation at 019DC4CD when we try to open pages.
 
I have done some googling on this error message and  have found a number of
old posts from when PHP 5 was new. Does any have any insight into how to fix
this besides Don't Use Windows or Don't use IIS?
 
Please let me know.  
 
Thank you
 
Eric H. Lommatsch
Programmer
360 Business 
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939
Fax 303-778-0378
 
[EMAIL PROTECTED]
 


[PHP] PHP server problem

2005-12-01 Thread Eric Lommatsch
Hello,
 
This is my first time posting to this particular list, so please be patient
with me.
 
I am not exactly sure if this is the right list to post this to or if the
description of what is happening will be enough to really make what my
questions is 
 
We have a Linux server that we use to run several PHP based programs on. Up
until today it has been working well. Today we tried to install a new PHP
based accounting program called NolaPro which also includes the Zend
optimizer as part of the installation. when I got finished installing this
program and said that the Zend optimizer was not installed. I tried
Installing this program again and the results were the same. But, trying to
get this program is now my secondary concern.
 
Since I have run this installation program none of the other PHP scripts that
we have installed on this server run anymore but instead are now asking if we
try to open them if I want to save the file to disk or open them in our PHP
editing tools. It appears that Apache is no longer recognizing and serving
PHP scripts.
 
I have tried reinstalling PHP but the results are still the same. Can
somebody please help me get back to the point where PHP is back running on
this server?
 
Thank you
 
Eric H. Lommatsch
Programmer
MICRONix, Inc.
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939
Fax 303-778-0378
 
[EMAIL PROTECTED]
 


FW: [PHP] PHP server problem

2005-12-01 Thread Eric Lommatsch
 
I have looked at this page and and in the httpd.conf file that file had this
information in it. But when I look at the httpd2.conf file this file is
missing this information I have tried adding this information to this file I
am still getting the same result. One thing that I did notice in looking at
the httpd.conf is that these statement have an ifdefine HAVE_PHP4 statement
around them. But that is the version of PHP that is installed on this system.

Thank you
 
Eric H. Lommatsch
Programmer
MICRONix, Inc.
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939
Fax 303-778-0378
 
[EMAIL PROTECTED]

-Original Message-
From: John Nichel [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 01, 2005 3:07 PM
To: php-general@lists.php.net
Subject: Re: [PHP] PHP server problem

Eric Lommatsch wrote:
 Hello,
  
 This is my first time posting to this particular list, so please be 
 patient with me.
  
 I am not exactly sure if this is the right list to post this to or if 
 the description of what is happening will be enough to really make 
 what my questions is
  
 We have a Linux server that we use to run several PHP based programs 
 on. Up until today it has been working well. Today we tried to install 
 a new PHP based accounting program called NolaPro which also 
 includes the Zend optimizer as part of the installation. when I got 
 finished installing this program and said that the Zend optimizer was 
 not installed. I tried Installing this program again and the results 
 were the same. But, trying to get this program is now my secondary concern.
  
 Since I have run this installation program none of the other PHP 
 scripts that we have installed on this server run anymore but instead 
 are now asking if we try to open them if I want to save the file to 
 disk or open them in our PHP editing tools. It appears that Apache is 
 no longer recognizing and serving PHP scripts.
  
 I have tried reinstalling PHP but the results are still the same. Can 
 somebody please help me get back to the point where PHP is back 
 running on this server?

Look at steps 14 and 15 under Example 4-1... on this page, and ensure those
lines are in your httpd.conf

http://www.php.net/manual/en/install.unix.php


--
John C. Nichel IV
Programmer/System Admin (ÜberGeek)
Dot Com Holdings of Buffalo
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: FW: [PHP] PHP server problem

2005-12-01 Thread Eric Lommatsch
I tried removing the ifdefine HAVE_PHP4 block and the result with the
applications that we have installed is still the same. Just for testing
purposes I created a simple Hello World php script and tried running this
from this system and this appears to have run correctly. But any of the more
complex scripts appear not to work.  


Thank you
 
Eric H. Lommatsch
Programmer
MICRONix, Inc.
2087 South Grant Street
Denver, CO 80210
Tel 303-777-8939
Fax 303-778-0378
 
[EMAIL PROTECTED]

-Original Message-
From: James Benson [mailto:[EMAIL PROTECTED] 
Sent: Thursday, December 01, 2005 3:45 PM
To: php-general@lists.php.net
Subject: Re: FW: [PHP] PHP server problem

I cant see why you have two httpd.conf files, unless that app installed
another, in which case I would remove the ifdefine HAVE_PHP4 block, im sure
thats only their for when/if you need to disable PHP



James


Eric Lommatsch wrote:
  
 I have looked at this page and and in the httpd.conf file that file 
 had this information in it. But when I look at the httpd2.conf file 
 this file is missing this information I have tried adding this 
 information to this file I am still getting the same result. One thing 
 that I did notice in looking at the httpd.conf is that these statement 
 have an ifdefine HAVE_PHP4 statement around them. But that is the version
of PHP that is installed on this system.
 
 Thank you
  
 Eric H. Lommatsch
 Programmer
 MICRONix, Inc.
 2087 South Grant Street
 Denver, CO 80210
 Tel 303-777-8939
 Fax 303-778-0378
  
 [EMAIL PROTECTED]
 
 -Original Message-
 From: John Nichel [mailto:[EMAIL PROTECTED]
 Sent: Thursday, December 01, 2005 3:07 PM
 To: php-general@lists.php.net
 Subject: Re: [PHP] PHP server problem
 
 Eric Lommatsch wrote:
 
Hello,
 
This is my first time posting to this particular list, so please be 
patient with me.
 
I am not exactly sure if this is the right list to post this to or if 
the description of what is happening will be enough to really make 
what my questions is
 
We have a Linux server that we use to run several PHP based programs 
on. Up until today it has been working well. Today we tried to install 
a new PHP based accounting program called NolaPro which also 
includes the Zend optimizer as part of the installation. when I got 
finished installing this program and said that the Zend optimizer was 
not installed. I tried Installing this program again and the results 
were the same. But, trying to get this program is now my secondary concern.
 
Since I have run this installation program none of the other PHP 
scripts that we have installed on this server run anymore but instead 
are now asking if we try to open them if I want to save the file to 
disk or open them in our PHP editing tools. It appears that Apache is 
no longer recognizing and serving PHP scripts.
 
I have tried reinstalling PHP but the results are still the same. Can 
somebody please help me get back to the point where PHP is back 
running on this server?
 
 
 Look at steps 14 and 15 under Example 4-1... on this page, and 
 ensure those lines are in your httpd.conf
 
 http://www.php.net/manual/en/install.unix.php
 
 
 --
 John C. Nichel IV
 Programmer/System Admin (ÜberGeek)
 Dot Com Holdings of Buffalo
 716.856.9675
 [EMAIL PROTECTED]
 
 --
 PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
 http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:
http://www.php.net/unsub.php

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php