Re: [PHP-DB] Waiting for localhost

2015-04-02 Thread Ethan Rosenberg, PhD

On 04/02/2015 06:17 AM, Richard wrote:







Here are some hints

service apache2 restart
[] Restarting web server: apache2AH00558: apache2: Could not
reliably determine the server's fully qualified domain name, using
127.0.1.1. Set the 'ServerName' directive globally to suppress
this message
. ok


   using 127.0.1.1 OUCH

Added this as last line in  /etc/apache2/apache2.conf

ServerName localhost

root@meow:/var/www# service apache2 restart
[ ok ] Restarting web server: apache2

OK ...good

But ... I am still getting the same performance - TestConnect [the
code above] gives the same result, and HandleWeight hangs!!!



As I pointed out on the apache list, 127.0.1.1 != localhost. It's
not clear where all you've stapled that incorrect value in at this
point, but that will account for why apache gave you that error.

In the php code, you are not handling the output from
mysqli_fetch_array correctly. Read the documentation, there are many
examples -- including q/a responses that almost exactly match your
code.

You have shown no debugging effort on "HandleWeight", so we have no
way of providing any insights on it.

You additionally need to provide the version/release level
information for your installed versions of:

   - OS
   - apache
   - mysql
   - php


Richard -

Thanks.


This is the top of the file.




  Handle Weight


http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] Waiting for localhost

2015-04-02 Thread Karl DeSaulniers
My apology to the list. 

That was meant for Ethan's email only.
I hit reply all when I though I just hit reply.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Apr 2, 2015, at 2:18 PM, Karl DeSaulniers  wrote:

> Bro. Pick a SQL. mysql_ or mysqli_.
> 
> Best,
> Karl
> 
> Sent from losPhone

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



Re: [PHP-DB] Waiting for localhost

2015-04-02 Thread Karl DeSaulniers
Bro. Pick a SQL. mysql_ or mysqli_.

Best,
Karl

Sent from losPhone

> On Apr 2, 2015, at 12:48 PM, Ethan Rosenberg 
>  wrote:
> 
>> On 04/02/2015 06:17 AM, Richard wrote:
> 
> 
>>> Here are some hints
>>> 
>>> service apache2 restart
>>> [] Restarting web server: apache2AH00558: apache2: Could not
>>> reliably determine the server's fully qualified domain name, using
>>> 127.0.1.1. Set the 'ServerName' directive globally to suppress
>>> this message
>>> . ok
>>> 
>>> 
>>>   using 127.0.1.1 OUCH
>>> 
>>> Added this as last line in  /etc/apache2/apache2.conf
>>> 
>>> ServerName localhost
>>> 
>>> root@meow:/var/www# service apache2 restart
>>> [ ok ] Restarting web server: apache2
>>> 
>>> OK ...good
>>> 
>>> But ... I am still getting the same performance - TestConnect [the
>>> code above] gives the same result, and HandleWeight hangs!!!
>> 
>> As I pointed out on the apache list, 127.0.1.1 != localhost. It's
>> not clear where all you've stapled that incorrect value in at this
>> point, but that will account for why apache gave you that error.
>> 
>> In the php code, you are not handling the output from
>> mysqli_fetch_array correctly. Read the documentation, there are many
>> examples -- including q/a responses that almost exactly match your
>> code.
>> 
>> You have shown no debugging effort on "HandleWeight", so we have no
>> way of providing any insights on it.
>> 
>> You additionally need to provide the version/release level
>> information for your installed versions of:
>> 
>>   - OS
>>   - apache
>>   - mysql
>>   - php
> 
> Richard -
> 
> Thanks.
> 
> service Apache2 restart
> >> [] Restarting web server: apache2AH00558: apache2: Could not
> >> reliably determine the server's fully qualified domain name, using
> >> 127.0.1.1. Set the 'ServerName' directive globally to suppress
> >> this message
> 
> This is what was returned on a restart of Apache.
> 
> Modified the configuration file.
> 
> Added this as last line in  /etc/apache2/apache2.conf
> >>
> >> ServerName localhost
> 
> Now on a restart...
> 
> root@meow:/var/www# service apache2 restart
> >> [ ok ] Restarting web server: apache2
> 
> Fixed the mysqli_fetch_array.
> 
> OS Debian Jessie
> Apache/2.4.9 (Debian)
> MySQL  Ver 14.14 Distrib 5.5.37, for debian-linux-gnu (x86_64) using readline 
> 6.3
> PHP  5.6.0RC2 (cli)
> 
> Debug
> 
> Here is the connection block w/ debug.
> 
> $hostname="localhost";
> $database="Store";
> $username="ethan";
> $password="x";
> 
> 
> $link = mysqli_connect($hostname, $username, $password);
> if (!$link) {
> die('Connection failed: ' . mysqli_error());
> }
> else{
> echo "Connection to MySQL server " .$hostname . " successful!
> " . PHP_EOL;
> }
> 
> $db_selected = mysql_select_db( $link,$database);
> if (!$db_selected) {
>die ('Can\'t select database: ' . mysql_error());
> }
> else {
>echo 'Database ' . $database . ' successfully selected!';
> }
> 
> Never connects. Hangs
> 
> 
> TIA
> 
> Ethan
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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



Re: [PHP-DB] Waiting for localhost

2015-04-02 Thread Richard


 Original Message 
> Date: Thursday, April 02, 2015 13:48:06 -0400
> From: Ethan Rosenberg 
> To: php-db@lists.php.net
> Subject: Re: [PHP-DB] Waiting for localhost
>
> On 04/02/2015 06:17 AM, Richard wrote:
>> 
>> 
> 
> 
>>> Here are some hints
>>> 
>>> service apache2 restart
>>> [] Restarting web server: apache2AH00558: apache2: Could not
>>> reliably determine the server's fully qualified domain name,
>>> using 127.0.1.1. Set the 'ServerName' directive globally to
>>> suppress this message
>>> . ok
>>> 
>>> 
>>>using 127.0.1.1 OUCH
>>> 
>>> Added this as last line in  /etc/apache2/apache2.conf
>>> 
>>> ServerName localhost
>>> 
>>> root@meow:/var/www# service apache2 restart
>>> [ ok ] Restarting web server: apache2
>>> 
>>> OK ...good
>>> 
>>> But ... I am still getting the same performance - TestConnect
>>> [the code above] gives the same result, and HandleWeight hangs!!!
>>> 
>> 
>> As I pointed out on the apache list, 127.0.1.1 != localhost. It's
>> not clear where all you've stapled that incorrect value in at this
>> point, but that will account for why apache gave you that error.
>> 
>> In the php code, you are not handling the output from
>> mysqli_fetch_array correctly. Read the documentation, there are
>> many examples -- including q/a responses that almost exactly
>> match your code.
>> 
>> You have shown no debugging effort on "HandleWeight", so we have
>> no way of providing any insights on it.
>> 
>> You additionally need to provide the version/release level
>> information for your installed versions of:
>> 
>>- OS
>>- apache
>>- mysql
>>- php
> 
> Richard -
> 
> Thanks.
> 
> service Apache2 restart
>  >> [] Restarting web server: apache2AH00558: apache2: Could
> not
>  >> reliably determine the server's fully qualified domain name,
> using
>  >> 127.0.1.1. Set the 'ServerName' directive globally to suppress
>  >> this message
> 
> This is what was returned on a restart of Apache.
> 
> Modified the configuration file.
> 
>   Added this as last line in  /etc/apache2/apache2.conf
>  >>
>  >> ServerName localhost
> 
> Now on a restart...
> 
>   root@meow:/var/www# service apache2 restart
>  >> [ ok ] Restarting web server: apache2
> 
> Fixed the mysqli_fetch_array.
> 
> OS Debian Jessie
> Apache/2.4.9 (Debian)
> MySQL  Ver 14.14 Distrib 5.5.37, for debian-linux-gnu (x86_64)
> using readline 6.3
> PHP  5.6.0RC2 (cli)
> 
> Debug
> 
> Here is the connection block w/ debug.
> 
> $hostname="localhost";
> $database="Store";
> $username="ethan";
> $password="x";
> 
> 
> $link = mysqli_connect($hostname, $username, $password);
> if (!$link) {
> die('Connection failed: ' . mysqli_error());
> }
> else{
>   echo "Connection to MySQL server " .$hostname . " successful!
> " . PHP_EOL;
> }
> 
> $db_selected = mysql_select_db( $link,$database);
> if (!$db_selected) {
>  die ('Can\'t select database: ' . mysql_error());
> }
> else {
>  echo 'Database ' . $database . ' successfully selected!';
> }
> 
> Never connects. Hangs
> 

What "Never connects. Hangs" -- your test php page, or HandleWeight?
In either case, that and the "Debug" code that you included above is
basically useless for determining your problem(s). You need to work
through your code from the top, bit by bit, until you know that each
piece to that point works. Put in "if $debug" statements (or
whatever approach you want) so that you can see exactly what's being
returned at each point. This is "programming 101" level debugging,
and something that many of us have suggested over many months of
trying to help you.

[As an aside, you may have fixed this, but you have had 127.0.1.1
listed as "localhost" somewhere (/etc/hosts, apache config, php
code). That won't work. Set the IPnumber for "localhost" to the
correct value.]

I don't have any more time for this. Good luck.




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



Re: [PHP-DB] Waiting for localhost

2015-04-02 Thread Ethan Rosenberg

On 04/02/2015 06:17 AM, Richard wrote:







Here are some hints

service apache2 restart
[] Restarting web server: apache2AH00558: apache2: Could not
reliably determine the server's fully qualified domain name, using
127.0.1.1. Set the 'ServerName' directive globally to suppress
this message
. ok


   using 127.0.1.1 OUCH

Added this as last line in  /etc/apache2/apache2.conf

ServerName localhost

root@meow:/var/www# service apache2 restart
[ ok ] Restarting web server: apache2

OK ...good

But ... I am still getting the same performance - TestConnect [the
code above] gives the same result, and HandleWeight hangs!!!



As I pointed out on the apache list, 127.0.1.1 != localhost. It's
not clear where all you've stapled that incorrect value in at this
point, but that will account for why apache gave you that error.

In the php code, you are not handling the output from
mysqli_fetch_array correctly. Read the documentation, there are many
examples -- including q/a responses that almost exactly match your
code.

You have shown no debugging effort on "HandleWeight", so we have no
way of providing any insights on it.

You additionally need to provide the version/release level
information for your installed versions of:

   - OS
   - apache
   - mysql
   - php


Richard -

Thanks.

service Apache2 restart
>> [] Restarting web server: apache2AH00558: apache2: Could not
>> reliably determine the server's fully qualified domain name, using
>> 127.0.1.1. Set the 'ServerName' directive globally to suppress
>> this message

This is what was returned on a restart of Apache.

Modified the configuration file.

 Added this as last line in  /etc/apache2/apache2.conf
>>
>> ServerName localhost

Now on a restart...

 root@meow:/var/www# service apache2 restart
>> [ ok ] Restarting web server: apache2

Fixed the mysqli_fetch_array.

OS Debian Jessie
Apache/2.4.9 (Debian)
MySQL  Ver 14.14 Distrib 5.5.37, for debian-linux-gnu (x86_64) using readline 
6.3
PHP  5.6.0RC2 (cli)

Debug

Here is the connection block w/ debug.

$hostname="localhost";
$database="Store";
$username="ethan";
$password="x";


$link = mysqli_connect($hostname, $username, $password);
if (!$link) {
die('Connection failed: ' . mysqli_error());
}
else{
 echo "Connection to MySQL server " .$hostname . " successful!
" . PHP_EOL;
}

$db_selected = mysql_select_db( $link,$database);
if (!$db_selected) {
die ('Can\'t select database: ' . mysql_error());
}
else {
echo 'Database ' . $database . ' successfully selected!';
}

Never connects. Hangs


TIA

Ethan

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



Re: [PHP-DB] Waiting for localhost

2015-04-02 Thread Richard


 Original Message 
> Date: Thursday, April 02, 2015 00:18:45 -0400
> From: Ethan Rosenberg 
> To: php-db@lists.php.net
> Cc: 
> Subject: Re: [PHP-DB] Waiting for localhost
>
> On 04/01/2015 11:41 PM, Karl DeSaulniers wrote:
>> Question to list, since I have not had to venture to the mysqli
>> territory just yet, but is it proper to use mysql_error() with
>> mysqli transactions?
>> 
>> This may be what your missing Ethan.
>> mysql_error() looks for a mysql_ transactions doesn't it?
>> Or are they interchangeable?
>> 
>> Best,
>> 
>> Karl DeSaulniers
>> Design Drumm
>> http://designdrumm.com
>> 
>> 
>> 
>> On Apr 1, 2015, at 10:35 PM, Ethan Rosenberg
>>  wrote:
>>>>> 
>>> 
>>> 
>>> Richard -
>>> 
>>> Thanks.
>>> 
>>> The problem is in the database connection.
>>> 
>>> from MySQL
>>> 
>>> mysql> show tables;
>>> +-+
>>> | Tables_in_Store |
>>> +-+
>>> | Charges |
>>> | Customers   |
>>> | Food|
>>> | Inventory   |
>>> | Orders  |
>>> | Purchases   |
>>> +-+
>>> 
>>> This code works...
>>> 
>>> $hostname="localhost";
>>> $database="Store";
>>> $username="ethan";
>>> $password="x";
>>> 
>>> 
>>> $link = mysqli_connect($hostname, $username, $password);
>>> if (!$link) {
>>> die('Connection failed: ' . mysql_error());
>>> }
>>> else{
>>>  echo "Connection to MySQL server " .$hostname . "
>>>  successful! " . PHP_EOL;
>>> }
>>> 
>>> $db_selected = mysqli_select_db($link, $database);
>>> if (!$db_selected) {
>>> die ('Can\'t select database: ' . mysql_error());
>>> }
>>> else {
>>> echo 'Database ' . $database . ' successfully selected!';
>>> }
>>> 
>>> $sql1 = "show tables";
>>> $result1 = mysqli_query($link, $sql1);
>>> $row1 = mysqli_fetch_array($result1);
>>> echo 'row1';
>>> print_r($row1);
>>> 
>>> BUT
>>> 
>>> The output is 
>>> 
>>> Connection to MySQL server localhost successful! Database Store
>>> successfully selected! row1
>>> Array ( [0] => Charges [Tables_in_Store] => Charges )
>>> 
>>> What am I missing??
>>> 
>>> TIA
>>> 
>>> Ethan
> -
> 
> Dear List -
> 
> Here are some hints
> 
> service apache2 restart
> [] Restarting web server: apache2AH00558: apache2: Could not
> reliably determine the server's fully qualified domain name, using
> 127.0.1.1. Set the 'ServerName' directive globally to suppress
> this message
> . ok
> 
> 
>   using 127.0.1.1 OUCH
> 
> Added this as last line in  /etc/apache2/apache2.conf
> 
> ServerName localhost
> 
> root@meow:/var/www# service apache2 restart
> [ ok ] Restarting web server: apache2
> 
> OK ...good
> 
> But ... I am still getting the same performance - TestConnect [the
> code above] gives the same result, and HandleWeight hangs!!!
> 

As I pointed out on the apache list, 127.0.1.1 != localhost. It's
not clear where all you've stapled that incorrect value in at this
point, but that will account for why apache gave you that error.

In the php code, you are not handling the output from
mysqli_fetch_array correctly. Read the documentation, there are many
examples -- including q/a responses that almost exactly match your
code.

You have shown no debugging effort on "HandleWeight", so we have no
way of providing any insights on it.

You additionally need to provide the version/release level
information for your installed versions of:

  - OS
  - apache
  - mysql
  - php




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



Re: [PHP-DB] Waiting for localhost

2015-04-01 Thread Ethan Rosenberg

On 04/01/2015 11:41 PM, Karl DeSaulniers wrote:

Question to list, since I have not had to venture to the mysqli territory just 
yet,
but is it proper to use mysql_error() with mysqli transactions?

This may be what your missing Ethan.
mysql_error() looks for a mysql_ transactions doesn't it?
Or are they interchangeable?

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Apr 1, 2015, at 10:35 PM, Ethan Rosenberg  
wrote:





Richard -

Thanks.

The problem is in the database connection.

from MySQL

mysql> show tables;
+-+
| Tables_in_Store |
+-+
| Charges |
| Customers   |
| Food|
| Inventory   |
| Orders  |
| Purchases   |
+-+

This code works...

$hostname="localhost";
$database="Store";
$username="ethan";
$password="x";


$link = mysqli_connect($hostname, $username, $password);
if (!$link) {
die('Connection failed: ' . mysql_error());
}
else{
 echo "Connection to MySQL server " .$hostname . " successful!
" . PHP_EOL;
}

$db_selected = mysqli_select_db($link, $database);
if (!$db_selected) {
die ('Can\'t select database: ' . mysql_error());
}
else {
echo 'Database ' . $database . ' successfully selected!';
}

$sql1 = "show tables";
$result1 = mysqli_query($link, $sql1);
$row1 = mysqli_fetch_array($result1);
echo 'row1';
print_r($row1);

BUT

The output is 

Connection to MySQL server localhost successful! Database Store successfully 
selected!
row1
Array ( [0] => Charges [Tables_in_Store] => Charges )

What am I missing??

TIA

Ethan

-

Dear List -

Here are some hints

service apache2 restart
[] Restarting web server: apache2AH00558: apache2: Could not reliably determine the server's 
fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress 
this message

. ok


 using 127.0.1.1 OUCH

Added this as last line in  /etc/apache2/apache2.conf

ServerName localhost

root@meow:/var/www# service apache2 restart
[ ok ] Restarting web server: apache2

OK ...good

But ... I am still getting the same performance - TestConnect [the code above] gives the same 
result, and HandleWeight hangs!!!


TIA

Ethan




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



Re: [PHP-DB] Waiting for localhost

2015-04-01 Thread Karl DeSaulniers
Question to list, since I have not had to venture to the mysqli territory just 
yet, 
but is it proper to use mysql_error() with mysqli transactions?

This may be what your missing Ethan.
mysql_error() looks for a mysql_ transactions doesn't it?
Or are they interchangeable?

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Apr 1, 2015, at 10:35 PM, Ethan Rosenberg  
wrote:
>>> 
> 
> 
> Richard -
> 
> Thanks.
> 
> The problem is in the database connection.
> 
> from MySQL
> 
> mysql> show tables;
> +-+
> | Tables_in_Store |
> +-+
> | Charges |
> | Customers   |
> | Food|
> | Inventory   |
> | Orders  |
> | Purchases   |
> +-+
> 
> This code works...
> 
> $hostname="localhost";
> $database="Store";
> $username="ethan";
> $password="x";
> 
> 
> $link = mysqli_connect($hostname, $username, $password);
> if (!$link) {
> die('Connection failed: ' . mysql_error());
> }
> else{
> echo "Connection to MySQL server " .$hostname . " successful!
> " . PHP_EOL;
> }
> 
> $db_selected = mysqli_select_db($link, $database);
> if (!$db_selected) {
>die ('Can\'t select database: ' . mysql_error());
> }
> else {
>echo 'Database ' . $database . ' successfully selected!';
> }
> 
> $sql1 = "show tables";
> $result1 = mysqli_query($link, $sql1);
> $row1 = mysqli_fetch_array($result1);
>   echo 'row1';
>   print_r($row1);
> 
> BUT
> 
> The output is 
> 
> Connection to MySQL server localhost successful! Database Store successfully 
> selected!
> row1
> Array ( [0] => Charges [Tables_in_Store] => Charges )
> 
> What am I missing??
> 
> TIA
> 
> Ethan
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


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



Re: [PHP-DB] Waiting for localhost

2015-04-01 Thread Ethan Rosenberg

On 04/01/2015 07:34 AM, Richard wrote:



 Original Message 

Date: Wednesday, April 01, 2015 00:05:29 -0400
From: Ethan Rosenberg 
To: php-db@lists.php.net

Richard -

As we saw in the Apache list, the problem lies in PHP/MySQL




Richard -

Thanks.

The problem is in the database connection.

from MySQL

mysql> show tables;
+-+
| Tables_in_Store |
+-+
| Charges |
| Customers   |
| Food|
| Inventory   |
| Orders  |
| Purchases   |
+-+

This code works...

$hostname="localhost";
$database="Store";
$username="ethan";
$password="x";


$link = mysqli_connect($hostname, $username, $password);
if (!$link) {
die('Connection failed: ' . mysql_error());
}
else{
 echo "Connection to MySQL server " .$hostname . " successful!
" . PHP_EOL;
}

$db_selected = mysqli_select_db($link, $database);
if (!$db_selected) {
die ('Can\'t select database: ' . mysql_error());
}
else {
echo 'Database ' . $database . ' successfully selected!';
}

$sql1 = "show tables";
$result1 = mysqli_query($link, $sql1);
$row1 = mysqli_fetch_array($result1);
echo 'row1';
print_r($row1);

BUT

The output is 

Connection to MySQL server localhost successful! Database Store successfully 
selected!
row1
Array ( [0] => Charges [Tables_in_Store] => Charges )

What am I missing??

TIA

Ethan

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



Re: [PHP-DB] Waiting for localhost

2015-04-01 Thread Richard


 Original Message 
> Date: Wednesday, April 01, 2015 00:05:29 -0400
> From: Ethan Rosenberg 
> To: php-db@lists.php.net
> 
> Richard -
> 
> As we saw in the Apache list, the problem lies in PHP/MySQL
> 
> To quote --
> 
> "
> Date: Tuesday, March 31, 2015 02:18:13 -0400
> From: "Ethan Rosenberg, PhD" 
> Subject: Re: [users@httpd] Apache is Slow
> 
> Some more info
> 
> Changed the host in the connect
> 
> $cxn = mysqli_connect($host,$user,$password);
> 
> $host="127.0.1.1";
> 
> Now get an error...
> 
> Warning: mysqli_connect(): (HY000/2003): Can't connect to MySQL
> server on '127.0.1.1' (111) in /var/www/HandleWeight.php on line 56
> Connect Error (2003) Can't connect to MySQL server on '127.0.1.1'
> (111)
> 
> The correct IPnumber for "localhost" is "127.0.0.1". I wouldn't
> generally expect anything to answer on "127.0.1.1".
> 
> Separately, I think that this likely proves that this isn't an
> apache issue. You're getting to the mysql reference in the php
> script that  you're calling (from the js reference) and it's
> failing there because of the incorrect IPnumber.
> 
> -->> So, apache is responding fine and it's seemingly your script
> that has problems.
> "
> 
> All this having been said, I have attached HandleWeight.php
> Hopefully this will assist us in finding the error.
> 
> TIA
> 
> Ethan
> 


I, at least, am not here to do your work for you.

  > Hopefully this will assist us in finding the error.

[if you want private consulting, contact me (or likely many others
on this list), off-list for our rates.]

As has been said previously, you need to do very basic debugging.
You may need to take your script apart and test it piece by piece,
including db, includes, whatever calls/references. Check your
variables going in and out to make certain they hold the values you
expect. Check your typing to make certain that things are properly
named/referenced (e.g., that you're using the correct IPnumber for
"localhost").

If/when you have a specific issue that you are having a problem
with, feel free to post it to the list. Dumping a whole php script,
context-free, and hoping that we will do your work for you is really
not the way to get any assistance.




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



Re: [PHP-DB] Waiting for localhost

2015-03-31 Thread Ethan Rosenberg

On 03/27/2015 06:16 AM, Richard wrote:



 Original Message 
These errors look odd to me. In many years of working with apache on
a range of *nix OSs, I don't remember a (properly installed) apache
instance that didn't have defaults that worked out of the box. They
may not have been what one wanted, but they worked.

With errors like these I wouldn't expect the web server to start,
but from previous exchanges I thought that it/one was running. Are
you running more than one server? What do ps and netstat show.

As these are web server, not php (and certainly not php-db), issues
you should probably be asking them on the apache list.

[i read the list, please do not include my direct email address in
your messages.]


- Richard



Richard -

As we saw in the Apache list, the problem lies in PHP/MySQL

To quote --

"
Date: Tuesday, March 31, 2015 02:18:13 -0400
From: "Ethan Rosenberg, PhD" 
Subject: Re: [users@httpd] Apache is Slow

Some more info

Changed the host in the connect

$cxn = mysqli_connect($host,$user,$password);

$host="127.0.1.1";

Now get an error...

Warning: mysqli_connect(): (HY000/2003): Can't connect to MySQL
server on '127.0.1.1' (111) in /var/www/HandleWeight.php on line 56
Connect Error (2003) Can't connect to MySQL server on '127.0.1.1'
(111)

The correct IPnumber for "localhost" is "127.0.0.1". I wouldn't
generally expect anything to answer on "127.0.1.1".

Separately, I think that this likely proves that this isn't an
apache issue. You're getting to the mysql reference in the php
script that  you're calling (from the js reference) and it's failing
there because of the incorrect IPnumber.

-->> So, apache is responding fine and it's seemingly your script that has 
problems.
"

All this having been said, I have attached HandleWeight.php Hopefully this will assist us in finding 
the error.


TIA

Ethan



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

Re: [PHP-DB] Waiting for localhost

2015-03-27 Thread Richard


 Original Message 
> Date: Friday, March 27, 2015 01:29:49 -0400
> From: Ethan Rosenberg 
>
> On 03/18/2015 07:51 AM, Richard wrote:
>> 
>> 
>>  Original Message 
>>> Date: Wednesday, March 18, 2015 00:23:00 -0400
>>> From: Ethan Rosenberg 
>>> 
>>> Karl -
>>> 
>>> Thanks to you and all others that have replied.
>>> 
>>> With a little bit of patience [which I should have used
>>> previously], I reran the the program both with form and with the
>>> JavaScript.  The program went to the next step [handleweight] BUT
>>> it took 5 min or more.  So...Apache is slow.  Any ideas??
>>> 
>>> TIA
>>> 
>>> Ethan
>> 
>> Ethan -- Unless you are seriously mucking with its configuration,
>> apache simply serves out what your underlying site/programming
>> gives to it. As such, it is highly unlikely that apache is the
>> source of your 5min. latency. If you want to see what is coming
>> and going at the server level, then review the access and error
>> logs, contemporaneous with the events (a -V at startup provides
>> almost no useful information about a server that successfully
>> starts up). If you don't find the default logged information to
>> be sufficient, then look at the options you can add to the custom
>> log format -- e.g., "The time taken to serve the request, in
>> microseconds".
>> 
>> In general, you need to understand how to do very basic debugging
>> of your code. You need to put debug statements in your code
>> and/or use debuggers to help you step through it. You also need
>> to break your code apart so you can clearly see what is happening
>> (working or not) stage by stage. Once you have things isolated,
>> then providing all of the relevant snippet as well as details
>> like OS, web server/version, programming language specifics
>> (including version) may get someone to help you.  Simply dumping
>> reams of code or configurations to the list isn't any more useful
>> than things like "So...Apache is slow. Any ideas??"  People on
>> this list can be helpful, but we're not here to do your work for
>> you, and we're not mind readers. Provide relevant details,
>> showing precisely/explicitly what the issue is, and you'll likely
>> get an equally relevant response.
>> 
>> 
>>  - Richard
> 
> Richard -
> 
> Thanks.
> 
> Let me try to dissect the error messages.
> 
> root@meow:/var/www# /usr/sbin/apache2 -V
> Config variable ${APACHE_LOCK_DIR} is not defined
> --> Mutex file:${APACHE_LOCK_DIR} default
> 
> Config variable ${APACHE_PID_FILE} is not defined
> --> # PidFile: The file in which the server should record its
> process
># identification number when it starts.
># This needs to be set in /etc/apache2/envvars
># 
> PidFile ${APACHE_PID_FILE}
> /etc/apache2/envvars
> --> export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid
> 
> 
> Config variable ${APACHE_RUN_USER} is not defined
> Config variable ${APACHE_RUN_GROUP} is not defined
> --> # These need to be set in /etc/apache2/envvars
> User ${APACHE_RUN_USER}
> Group ${APACHE_RUN_GROUP}
> /etc/apache2/envvars
> --> export APACHE_RUN_USER=www-data
> export APACHE_RUN_GROUP=www-data
> 
> 
> Config variable ${APACHE_LOG_DIR} is not defined  >> this error
> message appears 5 times??
> --> ErrorLog ${APACHE_LOG_DIR}/error.log
> 
> 
> AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf
> --> I tried to strip out the comments, and came up with less than
> 74 lines.
> 
> 
> Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
> --> See above.
> 
> I am totally confused.
> 
> I hope that I have not muddied the waters with this.
> 
> TIA
> 
> Ethan


As I said:

  >> Once you have things isolated, then providing all of the 
  >> relevant snippet as well as details like OS, web 
  >> server/version, ...

These errors look odd to me. In many years of working with apache on
a range of *nix OSs, I don't remember a (properly installed) apache
instance that didn't have defaults that worked out of the box. They
may not have been what one wanted, but they worked.

With errors like these I wouldn't expect the web server to start,
but from previous exchanges I thought that it/one was running. Are
you running more than one server? What do ps and netstat show.

As these are web server, not php (and certainly not php-db), issues
you should probably be asking them on the apache list.

[i read the list, please do not include my direct email address in
your messages.]


   - Richard




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



Re: [PHP-DB] Waiting for localhost

2015-03-26 Thread Ethan Rosenberg

On 03/18/2015 07:51 AM, Richard wrote:



 Original Message 

Date: Wednesday, March 18, 2015 00:23:00 -0400
From: Ethan Rosenberg 
To: Karl DeSaulniers , PHP Database List



Subject: Re: [PHP-DB] Waiting for localhost

Karl -

Thanks to you and all others that have replied.

With a little bit of patience [which I should have used
previously], I reran the the program both with form and with the
JavaScript.  The program went to the next step [handleweight] BUT
it took 5 min or more.  So...Apache is slow.  Any ideas??

TIA

Ethan


Ethan -- Unless you are seriously mucking with its configuration,
apache simply serves out what your underlying site/programming gives
to it. As such, it is highly unlikely that apache is the source of
your 5min. latency. If you want to see what is coming and going at
the server level, then review the access and error logs,
contemporaneous with the events (a -V at startup provides almost no
useful information about a server that successfully starts up). If
you don't find the default logged information to be sufficient, then
look at the options you can add to the custom log format -- e.g.,
"The time taken to serve the request, in microseconds".

In general, you need to understand how to do very basic debugging of
your code. You need to put debug statements in your code and/or use
debuggers to help you step through it. You also need to break your
code apart so you can clearly see what is happening (working or not)
stage by stage. Once you have things isolated, then providing all of
the relevant snippet as well as details like OS, web server/version,
programming language specifics (including version) may get someone
to help you.  Simply dumping reams of code or configurations to the
list isn't any more useful than things like "So...Apache is slow.
Any ideas??"  People on this list can be helpful, but we're not here
to do your work for you, and we're not mind readers. Provide
relevant details, showing precisely/explicitly what the issue is,
and you'll likely get an equally relevant response.


 - Richard


Richard -

Thanks.

Let me try to dissect the error messages.

root@meow:/var/www# /usr/sbin/apache2 -V
Config variable ${APACHE_LOCK_DIR} is not defined
--> Mutex file:${APACHE_LOCK_DIR} default

Config variable ${APACHE_PID_FILE} is not defined
--> # PidFile: The file in which the server should record its process
# identification number when it starts.
# This needs to be set in /etc/apache2/envvars
#
PidFile ${APACHE_PID_FILE}
/etc/apache2/envvars
--> export APACHE_PID_FILE=/var/run/apache2/apache2$SUFFIX.pid


Config variable ${APACHE_RUN_USER} is not defined
Config variable ${APACHE_RUN_GROUP} is not defined
--> # These need to be set in /etc/apache2/envvars
User ${APACHE_RUN_USER}
Group ${APACHE_RUN_GROUP}
/etc/apache2/envvars
--> export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data


Config variable ${APACHE_LOG_DIR} is not defined  >> this error message appears 
5 times??
--> ErrorLog ${APACHE_LOG_DIR}/error.log


AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf
--> I tried to strip out the comments, and came up with less than 74 lines.


Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}
--> See above.

I am totally confused.

I hope that I have not muddied the waters with this.

TIA

Ethan

Ethan


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



Re: [PHP-DB] Waiting for localhost

2015-03-18 Thread Ethan Rosenberg

On 03/18/2015 07:51 AM, Richard wrote:



 Original Message 

Date: Wednesday, March 18, 2015 00:23:00 -0400
From: Ethan Rosenberg 
To: Karl DeSaulniers , PHP Database List



Subject: Re: [PHP-DB] Waiting for localhost

Karl -

Thanks to you and all others that have replied.

With a little bit of patience [which I should have used
previously], I reran the the program both with form and with the
JavaScript.  The program went to the next step [handleweight] BUT
it took 5 min or more.  So...Apache is slow.  Any ideas??

TIA

Ethan


Ethan -- Unless you are seriously mucking with its configuration,
apache simply serves out what your underlying site/programming gives
to it. As such, it is highly unlikely that apache is the source of
your 5min. latency. If you want to see what is coming and going at
the server level, then review the access and error logs,
contemporaneous with the events (a -V at startup provides almost no
useful information about a server that successfully starts up). If
you don't find the default logged information to be sufficient, then
look at the options you can add to the custom log format -- e.g.,
"The time taken to serve the request, in microseconds".

In general, you need to understand how to do very basic debugging of
your code. You need to put debug statements in your code and/or use
debuggers to help you step through it. You also need to break your
code apart so you can clearly see what is happening (working or not)
stage by stage. Once you have things isolated, then providing all of
the relevant snippet as well as details like OS, web server/version,
programming language specifics (including version) may get someone
to help you.  Simply dumping reams of code or configurations to the
list isn't any more useful than things like "So...Apache is slow.
Any ideas??"  People on this list can be helpful, but we're not here
to do your work for you, and we're not mind readers. Provide
relevant details, showing precisely/explicitly what the issue is,
and you'll likely get an equally relevant response.


 - Richard

---
Richard -

Thank you for your incisive comments.  I have many print_r, echo, etc 
statements in my code.
"and/or use debuggers to help you step through it."  Excellent.  That is how I learned to program. 
Would you please inform me of a PHP debugger that will step thru code.  Netbeans supposedly will, 
but I have not had any luck in getting it to do so.


TIA

Ethan

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



Re: [PHP-DB] Waiting for localhost

2015-03-18 Thread Richard


 Original Message 
> Date: Wednesday, March 18, 2015 00:23:00 -0400
> From: Ethan Rosenberg 
> To: Karl DeSaulniers , PHP Database List

> Subject: Re: [PHP-DB] Waiting for localhost
>
> Karl -
> 
> Thanks to you and all others that have replied.
> 
> With a little bit of patience [which I should have used
> previously], I reran the the program both with form and with the
> JavaScript.  The program went to the next step [handleweight] BUT
> it took 5 min or more.  So...Apache is slow.  Any ideas??
> 
> TIA
> 
> Ethan

Ethan -- Unless you are seriously mucking with its configuration,
apache simply serves out what your underlying site/programming gives
to it. As such, it is highly unlikely that apache is the source of
your 5min. latency. If you want to see what is coming and going at
the server level, then review the access and error logs,
contemporaneous with the events (a -V at startup provides almost no
useful information about a server that successfully starts up). If
you don't find the default logged information to be sufficient, then
look at the options you can add to the custom log format -- e.g.,
"The time taken to serve the request, in microseconds". 

In general, you need to understand how to do very basic debugging of
your code. You need to put debug statements in your code and/or use
debuggers to help you step through it. You also need to break your
code apart so you can clearly see what is happening (working or not)
stage by stage. Once you have things isolated, then providing all of
the relevant snippet as well as details like OS, web server/version,
programming language specifics (including version) may get someone
to help you.  Simply dumping reams of code or configurations to the
list isn't any more useful than things like "So...Apache is slow.
Any ideas??"  People on this list can be helpful, but we're not here
to do your work for you, and we're not mind readers. Provide
relevant details, showing precisely/explicitly what the issue is,
and you'll likely get an equally relevant response.


- Richard




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



Re: [PHP-DB] Waiting for localhost

2015-03-17 Thread Karl DeSaulniers
No, can't say I do.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 17, 2015, at 11:48 PM, "Ethan Rosenberg, PhD" 
 wrote:

> Karl -
> 
> Thanks to you and all others that have replied.
> 
> With a little bit of patience [which I should have used previously], I reran 
> the the program both with form and with the JavaScript.  The program went to 
> the next step [handleweight] BUT it took 5 min or more.  So...Apache is slow. 
>  Any ideas??


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



Re: [PHP-DB] Waiting for localhost

2015-03-17 Thread Ethan Rosenberg, PhD

On 03/16/2015 12:08 AM, Karl DeSaulniers wrote:

Is this a weight that is entered in by your friend or a weight that is grabbed 
from a database or a scale per chance?
If it is the latter, you don't need this form, just store the value some other 
way and incorporate into your other script that directs to this form.


Also, I noticed you spelt weight wrong.


value= 'WEIGH'


Could that be it or just a keyboard error in your mail program?
Did you copy and paste that code?

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 15, 2015, at 11:02 PM, Ethan Rosenberg  
wrote:



Jayson, Karl -

It could be a bad variable, or lack of access to an include file possibly? Put 
some echo statements in right before and right after some major blocks of 
code... It will help narrow down the problem since it will show you where it's 
holding up. The. You can concentrate on fixing just that part instead of the 
entire site.

Done that already.  No luck

Also, if it is a matter of calling this script.

I have this in the program  --


echo "";
echo "";
echo "";

I'm testing from a form, which previously worked perfectly -

TIA

Ethan




Karl -

Thanks to you and all others that have replied.

With a little bit of patience [which I should have used previously], I reran the the program both 
with form and with the JavaScript.  The program went to the next step [handleweight] BUT it took 5 
min or more.  So...Apache is slow.  Any ideas??


TIA

Ethan

Some more info --

root@meow:/var/www#  ps -ef | grep apache
root 11972 1  0 Mar15 ?00:00:04 /usr/sbin/apache2 -k start
www-data 14209 11972  0 Mar16 ?00:00:00 /usr/sbin/apache2 -k start
www-data 14210 11972  0 Mar16 ?00:00:00 /usr/sbin/apache2 -k start
www-data 14211 11972  0 Mar16 ?00:00:00 /usr/sbin/apache2 -k start
www-data 14212 11972  0 Mar16 ?00:00:00 /usr/sbin/apache2 -k start
www-data 14213 11972  0 Mar16 ?00:00:00 /usr/sbin/apache2 -k start
www-data 24762 11972  0 Mar17 ?00:00:00 /usr/sbin/apache2 -k start
www-data 25015 11972  0 00:25 ?00:00:00 /usr/sbin/apache2 -k start
root 25070  9285  0 00:35 pts/300:00:00 grep apache


root@meow:/var/www# /usr/sbin/apache2 -V
[Wed Mar 18 00:36:21.251080 2015] [core:warn] [pid 25081] AH00111: Config variable 
${APACHE_LOCK_DIR} is not defined
[Wed Mar 18 00:36:21.251150 2015] [core:warn] [pid 25081] AH00111: Config variable 
${APACHE_PID_FILE} is not defined
[Wed Mar 18 00:36:21.251167 2015] [core:warn] [pid 25081] AH00111: Config variable 
${APACHE_RUN_USER} is not defined
[Wed Mar 18 00:36:21.251175 2015] [core:warn] [pid 25081] AH00111: Config variable 
${APACHE_RUN_GROUP} is not defined
[Wed Mar 18 00:36:21.251193 2015] [core:warn] [pid 25081] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Wed Mar 18 00:36:21.266590 2015] [core:warn] [pid 25081] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Wed Mar 18 00:36:21.266721 2015] [core:warn] [pid 25081] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Wed Mar 18 00:36:21.266736 2015] [core:warn] [pid 25081] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Wed Mar 18 00:36:21.266788 2015] [core:warn] [pid 25081] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Wed Mar 18 00:36:21.266801 2015] [core:warn] [pid 25081] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined

AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

Here is the /etc/apache2/apache2.conf file [pardon its length]

# This is the main Apache server configuration file.  It contains the
# configuration directives that give the server its instructions.
# See http://httpd.apache.org/docs/2.4/ for detailed information about
# the directives and /usr/share/doc/apache2/README.Debian about Debian specific
# hints.
#
#
# Summary of how the Apache 2 configuration works in Debian:
# The Apache 2 web server configuration in Debian is quite different to
# upstream's suggested way to configure the web server. This is because Debian's
# default Apache2 installation attempts to make adding and removing modules,
# virtual hosts, and extra configuration directives as flexible as possible, in
# order to make automating the changes and administering the server as easy as
# possible.

# It is split into several files forming the configuration hierarchy outlined
# below, all located in the /etc/apache2/ directory:
#
#   /etc/apache2/
#   |-- apache2.conf
#   |   `--  ports.conf
#   |-- mods-enabled
#   |   |-- *.load
#   |   `-- *.conf
#   |-- conf-enabled
#   |   `-- *.conf
#   `-- sites-enabled
#   `-- *.conf
#
#
# * apache2.conf is the main configuration file (this file). It puts the pieces
#   together by including all remaining configuration files when starting up the
#   web server.
#
# * ports.conf is always included from the main conf

Re: [PHP-DB] Waiting for localhost

2015-03-17 Thread Ethan Rosenberg

On 03/16/2015 12:08 AM, Karl DeSaulniers wrote:

Is this a weight that is entered in by your friend or a weight that is grabbed 
from a database or a scale per chance?
If it is the latter, you don't need this form, just store the value some other 
way and incorporate into your other script that directs to this form.


Also, I noticed you spelt weight wrong.


value= 'WEIGH'


Could that be it or just a keyboard error in your mail program?
Did you copy and paste that code?

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 15, 2015, at 11:02 PM, Ethan Rosenberg  
wrote:



Jayson, Karl -

It could be a bad variable, or lack of access to an include file possibly? Put 
some echo statements in right before and right after some major blocks of 
code... It will help narrow down the problem since it will show you where it's 
holding up. The. You can concentrate on fixing just that part instead of the 
entire site.

Done that already.  No luck

Also, if it is a matter of calling this script.

I have this in the program  --


echo "";
echo "";
echo "";

I'm testing from a form, which previously worked perfectly -

TIA

Ethan




Karl -

Thanks to you and all others that have replied.

With a little bit of patience [which I should have used previously], I reran the the program both 
with form and with the JavaScript.  The program went to the next step [handleweight] BUT it took 5 
min or more.  So...Apache is slow.  Any ideas??


TIA

Ethan


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



Re: [PHP-DB] Waiting for localhost

2015-03-16 Thread Jim Giner

On 3/16/2015 12:02 AM, Ethan Rosenberg wrote:

I have this in the program  --


echo "";
echo "";
echo "";

I'm testing from a form, which previously worked perfectly -

TIA

Ethan



How does your script properly (note: 'properly') recognize that the user 
clicked on the 'Weigh' button?  You don't have a name attribute on that 
submit element so you can't possibly check it.  Consequently users could 
spoof your form to achieve something that you aren't planning on if 
that's any concern to you.


PS - html does not use nor require spaces in its syntax.  Your 
attributes are better written as: method='POST' than the way you are 
doing it.

clicked on the 11


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



Re: [PHP-DB] Waiting for localhost

2015-03-15 Thread Karl DeSaulniers
Is this a weight that is entered in by your friend or a weight that is grabbed 
from a database or a scale per chance?
If it is the latter, you don't need this form, just store the value some other 
way and incorporate into your other script that directs to this form.


Also, I noticed you spelt weight wrong.

> value= 'WEIGH'

Could that be it or just a keyboard error in your mail program?
Did you copy and paste that code?

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 15, 2015, at 11:02 PM, Ethan Rosenberg  
wrote:

> 
> Jayson, Karl -
> 
> It could be a bad variable, or lack of access to an include file possibly? 
> Put some echo statements in right before and right after some major blocks of 
> code... It will help narrow down the problem since it will show you where 
> it's holding up. The. You can concentrate on fixing just that part instead of 
> the entire site.
> 
> Done that already.  No luck
> 
> Also, if it is a matter of calling this script.
> 
> I have this in the program  --
> 
> 
> echo "";
> echo " 'WEIGH'>";
> echo "";
> 
> I'm testing from a form, which previously worked perfectly -
> 
> TIA
> 
> Ethan

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



Re: [PHP-DB] Waiting for localhost

2015-03-15 Thread Ethan Rosenberg

On 03/15/2015 02:57 PM, Jason Pruim wrote:

It could be a bad variable, or lack of access to an include file possibly? Put 
some echo statements in right before and right after some major blocks of 
code... It will help narrow down the problem since it will show you where it's 
holding up. The. You can concentrate on fixing just that part instead of the 
entire site.



Jason Pruim
352.359.0002





On Mar 15, 2015, at 2:40 PM, Ethan Rosenberg  
wrote:


On 03/15/2015 09:44 AM, Jason Pruim wrote:
If you load up handleweight.php outside of the script does it load normally? 
Trying to pin down where the actual problem is.

Jason Pruim
352.359.0002





On Mar 14, 2015, at 10:17 PM, Ethan Rosenberg  
wrote:


On 03/09/2015 08:27 AM, Ethan Rosenberg, PhD wrote:
On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:
Don't know what to tell you bub.
Time for the books?

I "think" that it has to do with php parsing or not parsing the echo because 
its echoing a script.
Can't remember off the top, but along those lines I would search.

GL,

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com




On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg  
wrote:

On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:
Try...
window.location.href = "HandleWeight.php";

Sent from losPhone


On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg  
wrote:

On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
Sorry, missed a parenthesis.

if($row7[0] === 1)
{
echo('window.location = 
"HandleWeight.php";');
}

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com <http://designdrumm.com/>



Begin forwarded message:


*From: *Karl DeSaulniers mailto:k...@designdrumm.com>>
*Subject: **Re: [PHP-DB] Waiting for localhost*
*Date: *March 8, 2015 5:58:29 PM CDT
*To: *erosenb...@hygeiabiomedical.com <mailto:erosenb...@hygeiabiomedical.com>

Try...

if($row7[0] === 1)
{
echo('window.location = 
"HandleWeight.php";';
}

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

Karl -

Thanks.

The === avoids the infinite loop, but the call to the script is never executed.

TIA

Ethan


Karl -

Thanks.

No improvement.

TIA

Ethan

-
Karl -

Thanks.

We all run up against brick walls.

Anybody else have ideas?

TIA.

Ethan

Karl -

Thanks.

Here are some debug info.  Hope it helps.

root@meow:/home/ethan/BluBev# apache2 -S
[Fri Mar 13 00:19:23.651029 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOCK_DIR} is not defined
[Fri Mar 13 00:19:23.651100 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_PID_FILE} is not defined
[Fri Mar 13 00:19:23.651117 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_RUN_USER} is not defined
[Fri Mar 13 00:19:23.651124 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_RUN_GROUP} is not defined
[Fri Mar 13 00:19:23.651142 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667273 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667416 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667431 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667514 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667527 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

I have written two trivial PHP programs to debug this...

start.php


?>

<!--
//   window.open(" <a  rel="nofollow" href="http://localhost/end.php","_self"">http://localhost/end.php","_self"</a>;); //slower
//window.location.href("<a  rel="nofollow" href="http://localhost/end.php"">http://localhost/end.php"</a>;);  //never calls 
script
//window.location.assign("<a  rel="nofollow" href="http://localhost/end.php"">http://localhost/end.php"</a>;); //almost 
instantaneous

window.open(" <a  rel="nofollow" href="http://localhost/HandleWeight.php","_self"">http://localhost/HandleWeight.php","_self"</a>;);  //hangs
//window.location.href("<a  rel="nofollow" href="http://localhost/HandleWeight.php"">http://localhost/HandleWeight.php"</a>;); //never 
calls script
//window.location.assign("<a  rel="nofollow" href="http://localhost/HandleWeight.php"">http://localhost/HandleWeight.php"</a>;); //h

Re: [PHP-DB] Waiting for localhost

2015-03-15 Thread Karl DeSaulniers
Also, if it is a matter of calling this script.
Maybe try curl instead of echoing a javascript file?

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 15, 2015, at 8:25 PM, Karl DeSaulniers  wrote:

> Why are you not calling a database for the weight? Or is that what the 
> handleweight.php does?
> If it is a matter of echoing the results from this page, can it's code be 
> merged into the current?
> Then instead of echoing the  you just echo the results.
> 
> Best,
> 
> Karl DeSaulniers
> Design Drumm
> <a  rel="nofollow" href="http://designdrumm.com">http://designdrumm.com</a>
> 
> 
> 
> On Mar 15, 2015, at 1:40 PM, Ethan Rosenberg 
> <erosenb...@hygeiabiomedical.com> wrote:
> 
>> On 03/15/2015 09:44 AM, Jason Pruim wrote:
>>> If you load up handleweight.php outside of the script does it load 
>>> normally? Trying to pin down where the actual problem is.
>>> 
>>> Jason Pruim
>>> 352.359.0002
>>> 
>>> 
>>> 
>>> 
>>>> On Mar 14, 2015, at 10:17 PM, Ethan Rosenberg 
>>>> <erosenb...@hygeiabiomedical.com> wrote:
>>>> 
>>>>> On 03/09/2015 08:27 AM, Ethan Rosenberg, PhD wrote:
>>>>>> On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:
>>>>>> Don't know what to tell you bub.
>>>>>> Time for the books?
>>>>>> 
>>>>>> I "think" that it has to do with php parsing or not parsing the echo 
>>>>>> because its echoing a script.
>>>>>> Can't remember off the top, but along those lines I would search.
>>>>>> 
>>>>>> GL,
>>>>>> 
>>>>>> Best,
>>>>>> 
>>>>>> Karl DeSaulniers
>>>>>> Design Drumm
>>>>>> <a  rel="nofollow" href="http://designdrumm.com">http://designdrumm.com</a>
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>>> On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg 
>>>>>>> <erosenb...@hygeiabiomedical.com> wrote:
>>>>>>> 
>>>>>>>> On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:
>>>>>>>> Try...
>>>>>>>> window.location.href = "HandleWeight.php";
>>>>>>>> 
>>>>>>>> Sent from losPhone
>>>>>>>> 
>>>>>>>>>> On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg 
>>>>>>>>>> <erosenb...@hygeiabiomedical.com> wrote:
>>>>>>>>>> 
>>>>>>>>>> On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
>>>>>>>>>> Sorry, missed a parenthesis.
>>>>>>>>>> 
>>>>>>>>>> if($row7[0] === 1)
>>>>>>>>>> {
>>>>>>>>>> echo('<script type="text/javascript">window.location = 
>>>>>>>>>> "HandleWeight.php";');
>>>>>>>>>> }
>>>>>>>>>> 
>>>>>>>>>> Best,
>>>>>>>>>> 
>>>>>>>>>> Karl DeSaulniers
>>>>>>>>>> Design Drumm
>>>>>>>>>> http://designdrumm.com <http://designdrumm.com/>
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> Begin forwarded message:
>>>>>>>>>> 
>>>>>>>>>>> *From: *Karl DeSaulniers >>>>>>>>>> <mailto:k...@designdrumm.com>>
>>>>>>>>>>> *Subject: **Re: [PHP-DB] Waiting for localhost*
>>>>>>>>>>> *Date: *March 8, 2015 5:58:29 PM CDT
>>>>>>>>>>> *To: *erosenb...@hygeiabiomedical.com 
>>>>>>>>>>> <mailto:erosenb...@hygeiabiomedical.com>
>>>>>>>>>>> 
>>>>>>>>>>> Try...
>>>>>>>>>>> 
>>>>>>>>>>> if($row7[0] === 1)
>>>>>>>>>>> {
>>>>>>>>>>> echo('window.location = 
>>>>>>>>>>> "HandleWeight.php";';

Re: [PHP-DB] Waiting for localhost

2015-03-15 Thread Karl DeSaulniers
Why are you not calling a database for the weight? Or is that what the 
handleweight.php does?
If it is a matter of echoing the results from this page, can it's code be 
merged into the current?
Then instead of echoing the  you just echo the results.

Best,

Karl DeSaulniers
Design Drumm
<a  rel="nofollow" href="http://designdrumm.com">http://designdrumm.com</a>



On Mar 15, 2015, at 1:40 PM, Ethan Rosenberg <erosenb...@hygeiabiomedical.com> 
wrote:

> On 03/15/2015 09:44 AM, Jason Pruim wrote:
>> If you load up handleweight.php outside of the script does it load normally? 
>> Trying to pin down where the actual problem is.
>> 
>> Jason Pruim
>> 352.359.0002
>> 
>> 
>> 
>> 
>>> On Mar 14, 2015, at 10:17 PM, Ethan Rosenberg 
>>> <erosenb...@hygeiabiomedical.com> wrote:
>>> 
>>>> On 03/09/2015 08:27 AM, Ethan Rosenberg, PhD wrote:
>>>>> On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:
>>>>> Don't know what to tell you bub.
>>>>> Time for the books?
>>>>> 
>>>>> I "think" that it has to do with php parsing or not parsing the echo 
>>>>> because its echoing a script.
>>>>> Can't remember off the top, but along those lines I would search.
>>>>> 
>>>>> GL,
>>>>> 
>>>>> Best,
>>>>> 
>>>>> Karl DeSaulniers
>>>>> Design Drumm
>>>>> <a  rel="nofollow" href="http://designdrumm.com">http://designdrumm.com</a>
>>>>> 
>>>>> 
>>>>> 
>>>>>> On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg 
>>>>>> <erosenb...@hygeiabiomedical.com> wrote:
>>>>>> 
>>>>>>> On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:
>>>>>>> Try...
>>>>>>> window.location.href = "HandleWeight.php";
>>>>>>> 
>>>>>>> Sent from losPhone
>>>>>>> 
>>>>>>>>> On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg 
>>>>>>>>> <erosenb...@hygeiabiomedical.com> wrote:
>>>>>>>>> 
>>>>>>>>> On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
>>>>>>>>> Sorry, missed a parenthesis.
>>>>>>>>> 
>>>>>>>>> if($row7[0] === 1)
>>>>>>>>> {
>>>>>>>>> echo('<script type="text/javascript">window.location = 
>>>>>>>>> "HandleWeight.php";');
>>>>>>>>> }
>>>>>>>>> 
>>>>>>>>> Best,
>>>>>>>>> 
>>>>>>>>> Karl DeSaulniers
>>>>>>>>> Design Drumm
>>>>>>>>> http://designdrumm.com <http://designdrumm.com/>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Begin forwarded message:
>>>>>>>>> 
>>>>>>>>>> *From: *Karl DeSaulniers >>>>>>>>> <mailto:k...@designdrumm.com>>
>>>>>>>>>> *Subject: **Re: [PHP-DB] Waiting for localhost*
>>>>>>>>>> *Date: *March 8, 2015 5:58:29 PM CDT
>>>>>>>>>> *To: *erosenb...@hygeiabiomedical.com 
>>>>>>>>>> <mailto:erosenb...@hygeiabiomedical.com>
>>>>>>>>>> 
>>>>>>>>>> Try...
>>>>>>>>>> 
>>>>>>>>>> if($row7[0] === 1)
>>>>>>>>>> {
>>>>>>>>>> echo('window.location = 
>>>>>>>>>> "HandleWeight.php";';
>>>>>>>>>> }
>>>>>>>>>> 
>>>>>>>>>> Best,
>>>>>>>>>> 
>>>>>>>>>> Karl DeSaulniers
>>>>>>>>>> Design Drumm
>>>>>>>>>> http://designdrumm.com
>>>>>>>> Karl -
>>>>>>>> 
>>>>>>>> Thanks.
>>>>>>>> 
>>>>>>>> The === avoids the infinite loop, but the call to the script is never 
>

Re: [PHP-DB] Waiting for localhost

2015-03-15 Thread Jason Pruim
It could be a bad variable, or lack of access to an include file possibly? Put 
some echo statements in right before and right after some major blocks of 
code... It will help narrow down the problem since it will show you where it's 
holding up. The. You can concentrate on fixing just that part instead of the 
entire site. 



Jason Pruim
352.359.0002




> On Mar 15, 2015, at 2:40 PM, Ethan Rosenberg 
>  wrote:
> 
>> On 03/15/2015 09:44 AM, Jason Pruim wrote:
>> If you load up handleweight.php outside of the script does it load normally? 
>> Trying to pin down where the actual problem is.
>> 
>> Jason Pruim
>> 352.359.0002
>> 
>> 
>> 
>> 
>>>> On Mar 14, 2015, at 10:17 PM, Ethan Rosenberg 
>>>>  wrote:
>>>> 
>>>>> On 03/09/2015 08:27 AM, Ethan Rosenberg, PhD wrote:
>>>>> On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:
>>>>> Don't know what to tell you bub.
>>>>> Time for the books?
>>>>> 
>>>>> I "think" that it has to do with php parsing or not parsing the echo 
>>>>> because its echoing a script.
>>>>> Can't remember off the top, but along those lines I would search.
>>>>> 
>>>>> GL,
>>>>> 
>>>>> Best,
>>>>> 
>>>>> Karl DeSaulniers
>>>>> Design Drumm
>>>>> http://designdrumm.com
>>>>> 
>>>>> 
>>>>> 
>>>>>>> On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg 
>>>>>>>  wrote:
>>>>>>> 
>>>>>>> On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:
>>>>>>> Try...
>>>>>>> window.location.href = "HandleWeight.php";
>>>>>>> 
>>>>>>> Sent from losPhone
>>>>>>> 
>>>>>>>>> On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg 
>>>>>>>>>  wrote:
>>>>>>>>> 
>>>>>>>>> On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
>>>>>>>>> Sorry, missed a parenthesis.
>>>>>>>>> 
>>>>>>>>> if($row7[0] === 1)
>>>>>>>>> {
>>>>>>>>> echo('window.location = 
>>>>>>>>> "HandleWeight.php";');
>>>>>>>>> }
>>>>>>>>> 
>>>>>>>>> Best,
>>>>>>>>> 
>>>>>>>>> Karl DeSaulniers
>>>>>>>>> Design Drumm
>>>>>>>>> http://designdrumm.com <http://designdrumm.com/>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> Begin forwarded message:
>>>>>>>>> 
>>>>>>>>>> *From: *Karl DeSaulniers >>>>>>>>> <mailto:k...@designdrumm.com>>
>>>>>>>>>> *Subject: **Re: [PHP-DB] Waiting for localhost*
>>>>>>>>>> *Date: *March 8, 2015 5:58:29 PM CDT
>>>>>>>>>> *To: *erosenb...@hygeiabiomedical.com 
>>>>>>>>>> <mailto:erosenb...@hygeiabiomedical.com>
>>>>>>>>>> 
>>>>>>>>>> Try...
>>>>>>>>>> 
>>>>>>>>>> if($row7[0] === 1)
>>>>>>>>>> {
>>>>>>>>>> echo('window.location = 
>>>>>>>>>> "HandleWeight.php";';
>>>>>>>>>> }
>>>>>>>>>> 
>>>>>>>>>> Best,
>>>>>>>>>> 
>>>>>>>>>> Karl DeSaulniers
>>>>>>>>>> Design Drumm
>>>>>>>>>> http://designdrumm.com
>>>>>>>> Karl -
>>>>>>>> 
>>>>>>>> Thanks.
>>>>>>>> 
>>>>>>>> The === avoids the infinite loop, but the call to the script is never 
>>>>>>>> executed.
>>>>>>>> 
>>>>>>>> TIA
>>>>>>>> 
>>>>>>>> Ethan
>>>>>> 
>>>>>> Karl -
>>>>>> 
>>&g

Re: [PHP-DB] Waiting for localhost

2015-03-15 Thread Ethan Rosenberg

On 03/15/2015 09:44 AM, Jason Pruim wrote:

If you load up handleweight.php outside of the script does it load normally? 
Trying to pin down where the actual problem is.

Jason Pruim
352.359.0002





On Mar 14, 2015, at 10:17 PM, Ethan Rosenberg  
wrote:


On 03/09/2015 08:27 AM, Ethan Rosenberg, PhD wrote:

On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:
Don't know what to tell you bub.
Time for the books?

I "think" that it has to do with php parsing or not parsing the echo because 
its echoing a script.
Can't remember off the top, but along those lines I would search.

GL,

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com




On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg  
wrote:


On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:
Try...
window.location.href = "HandleWeight.php";

Sent from losPhone


On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg  
wrote:

On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
Sorry, missed a parenthesis.

if($row7[0] === 1)
{
echo('window.location = 
"HandleWeight.php";');
}

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com <http://designdrumm.com/>



Begin forwarded message:


*From: *Karl DeSaulniers mailto:k...@designdrumm.com>>
*Subject: **Re: [PHP-DB] Waiting for localhost*
*Date: *March 8, 2015 5:58:29 PM CDT
*To: *erosenb...@hygeiabiomedical.com <mailto:erosenb...@hygeiabiomedical.com>

Try...

if($row7[0] === 1)
{
echo('window.location = 
"HandleWeight.php";';
}

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

Karl -

Thanks.

The === avoids the infinite loop, but the call to the script is never executed.

TIA

Ethan


Karl -

Thanks.

No improvement.

TIA

Ethan

-
Karl -

Thanks.

We all run up against brick walls.

Anybody else have ideas?

TIA.

Ethan

Karl -

Thanks.

Here are some debug info.  Hope it helps.

root@meow:/home/ethan/BluBev# apache2 -S
[Fri Mar 13 00:19:23.651029 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOCK_DIR} is not defined
[Fri Mar 13 00:19:23.651100 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_PID_FILE} is not defined
[Fri Mar 13 00:19:23.651117 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_RUN_USER} is not defined
[Fri Mar 13 00:19:23.651124 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_RUN_GROUP} is not defined
[Fri Mar 13 00:19:23.651142 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667273 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667416 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667431 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667514 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
[Fri Mar 13 00:19:23.667527 2015] [core:warn] [pid 21435] AH00111: Config 
variable ${APACHE_LOG_DIR} is not defined
AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

I have written two trivial PHP programs to debug this...

start.php


?>

<!--
//   window.open(" <a  rel="nofollow" href="http://localhost/end.php","_self"">http://localhost/end.php","_self"</a>;); //slower
//window.location.href("<a  rel="nofollow" href="http://localhost/end.php"">http://localhost/end.php"</a>;);  //never calls 
script
//window.location.assign("<a  rel="nofollow" href="http://localhost/end.php"">http://localhost/end.php"</a>;); //almost 
instantaneous

window.open(" <a  rel="nofollow" href="http://localhost/HandleWeight.php","_self"">http://localhost/HandleWeight.php","_self"</a>;);  //hangs
//window.location.href("<a  rel="nofollow" href="http://localhost/HandleWeight.php"">http://localhost/HandleWeight.php"</a>;); //never 
calls script
//window.location.assign("<a  rel="nofollow" href="http://localhost/HandleWeight.php"">http://localhost/HandleWeight.php"</a>;); //hangs


//-->\



HandleWeight is the desired target of the POS program I am developing.

The test target...end.php

World";
?>

The behavior is notated in the code.

HTH

TIA

Ethan


Here is the target frjoim the test side...end.php

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




---

Jayson -

Thanks.

If you load up handleweight.php outside of the script does it load 

Re: [PHP-DB] Waiting for localhost

2015-03-15 Thread Jason Pruim
If you load up handleweight.php outside of the script does it load normally? 
Trying to pin down where the actual problem is. 

Jason Pruim
352.359.0002




> On Mar 14, 2015, at 10:17 PM, Ethan Rosenberg 
>  wrote:
> 
>> On 03/09/2015 08:27 AM, Ethan Rosenberg, PhD wrote:
>>> On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:
>>> Don't know what to tell you bub.
>>> Time for the books?
>>> 
>>> I "think" that it has to do with php parsing or not parsing the echo 
>>> because its echoing a script.
>>> Can't remember off the top, but along those lines I would search.
>>> 
>>> GL,
>>> 
>>> Best,
>>> 
>>> Karl DeSaulniers
>>> Design Drumm
>>> http://designdrumm.com
>>> 
>>> 
>>> 
>>>> On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg 
>>>>  wrote:
>>>> 
>>>>> On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:
>>>>> Try...
>>>>> window.location.href = "HandleWeight.php";
>>>>> 
>>>>> Sent from losPhone
>>>>> 
>>>>>>> On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg 
>>>>>>>  wrote:
>>>>>>> 
>>>>>>> On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
>>>>>>> Sorry, missed a parenthesis.
>>>>>>> 
>>>>>>> if($row7[0] === 1)
>>>>>>> {
>>>>>>> echo('window.location = 
>>>>>>> "HandleWeight.php";');
>>>>>>> }
>>>>>>> 
>>>>>>> Best,
>>>>>>> 
>>>>>>> Karl DeSaulniers
>>>>>>> Design Drumm
>>>>>>> http://designdrumm.com <http://designdrumm.com/>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Begin forwarded message:
>>>>>>> 
>>>>>>>> *From: *Karl DeSaulniers >>>>>>> <mailto:k...@designdrumm.com>>
>>>>>>>> *Subject: **Re: [PHP-DB] Waiting for localhost*
>>>>>>>> *Date: *March 8, 2015 5:58:29 PM CDT
>>>>>>>> *To: *erosenb...@hygeiabiomedical.com 
>>>>>>>> <mailto:erosenb...@hygeiabiomedical.com>
>>>>>>>> 
>>>>>>>> Try...
>>>>>>>> 
>>>>>>>> if($row7[0] === 1)
>>>>>>>> {
>>>>>>>> echo('window.location = 
>>>>>>>> "HandleWeight.php";';
>>>>>>>> }
>>>>>>>> 
>>>>>>>> Best,
>>>>>>>> 
>>>>>>>> Karl DeSaulniers
>>>>>>>> Design Drumm
>>>>>>>> http://designdrumm.com
>>>>>> Karl -
>>>>>> 
>>>>>> Thanks.
>>>>>> 
>>>>>> The === avoids the infinite loop, but the call to the script is never 
>>>>>> executed.
>>>>>> 
>>>>>> TIA
>>>>>> 
>>>>>> Ethan
>>>> 
>>>> Karl -
>>>> 
>>>> Thanks.
>>>> 
>>>> No improvement.
>>>> 
>>>> TIA
>>>> 
>>>> Ethan
>> -
>> Karl -
>> 
>> Thanks.
>> 
>> We all run up against brick walls.
>> 
>> Anybody else have ideas?
>> 
>> TIA.
>> 
>> Ethan
> Karl -
> 
> Thanks.
> 
> Here are some debug info.  Hope it helps.
> 
> root@meow:/home/ethan/BluBev# apache2 -S
> [Fri Mar 13 00:19:23.651029 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_LOCK_DIR} is not defined
> [Fri Mar 13 00:19:23.651100 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_PID_FILE} is not defined
> [Fri Mar 13 00:19:23.651117 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_RUN_USER} is not defined
> [Fri Mar 13 00:19:23.651124 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_RUN_GROUP} is not defined
> [Fri Mar 13 00:19:23.651142 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_LOG_DIR} is not defined
> [Fri Mar 13 00:19:23.667273 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_LOG_DIR} is not defined
> [Fri Mar 13 00:19:23.667416

Re: [PHP-DB] Waiting for localhost

2015-03-14 Thread Karl DeSaulniers
Fresh out of ideas. Sorry Ethan.
Maybe try an different approach to calling that file?
Seems like your trying to fit a square peg in a hexagon hole.
Might get it in there but it wont be a perfect fit.

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 14, 2015, at 9:17 PM, Ethan Rosenberg  
wrote:

> On 03/09/2015 08:27 AM, Ethan Rosenberg, PhD wrote:
>> On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:
>>> Don't know what to tell you bub.
>>> Time for the books?
>>> 
>>> I "think" that it has to do with php parsing or not parsing the echo 
>>> because its echoing a script.
>>> Can't remember off the top, but along those lines I would search.
>>> 
>>> GL,
>>> 
>>> Best,
>>> 
>>> Karl DeSaulniers
>>> Design Drumm
>>> http://designdrumm.com
>>> 
>>> 
>>> 
>>> On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg 
>>>  wrote:
>>> 
>>>> On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:
>>>>> Try...
>>>>> window.location.href = "HandleWeight.php";
>>>>> 
>>>>> Sent from losPhone
>>>>> 
>>>>>> On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg 
>>>>>>  wrote:
>>>>>> 
>>>>>>> On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
>>>>>>> Sorry, missed a parenthesis.
>>>>>>> 
>>>>>>> if($row7[0] === 1)
>>>>>>> {
>>>>>>> echo('window.location = 
>>>>>>> "HandleWeight.php";');
>>>>>>> }
>>>>>>> 
>>>>>>> Best,
>>>>>>> 
>>>>>>> Karl DeSaulniers
>>>>>>> Design Drumm
>>>>>>> http://designdrumm.com <http://designdrumm.com/>
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> Begin forwarded message:
>>>>>>> 
>>>>>>>> *From: *Karl DeSaulniers >>>>>>> <mailto:k...@designdrumm.com>>
>>>>>>>> *Subject: **Re: [PHP-DB] Waiting for localhost*
>>>>>>>> *Date: *March 8, 2015 5:58:29 PM CDT
>>>>>>>> *To: *erosenb...@hygeiabiomedical.com 
>>>>>>>> <mailto:erosenb...@hygeiabiomedical.com>
>>>>>>>> 
>>>>>>>> Try...
>>>>>>>> 
>>>>>>>> if($row7[0] === 1)
>>>>>>>> {
>>>>>>>> echo('window.location = 
>>>>>>>> "HandleWeight.php";';
>>>>>>>> }
>>>>>>>> 
>>>>>>>> Best,
>>>>>>>> 
>>>>>>>> Karl DeSaulniers
>>>>>>>> Design Drumm
>>>>>>>> http://designdrumm.com
>>>>>> Karl -
>>>>>> 
>>>>>> Thanks.
>>>>>> 
>>>>>> The === avoids the infinite loop, but the call to the script is never 
>>>>>> executed.
>>>>>> 
>>>>>> TIA
>>>>>> 
>>>>>> Ethan
>>>>> 
>>>> 
>>>> Karl -
>>>> 
>>>> Thanks.
>>>> 
>>>> No improvement.
>>>> 
>>>> TIA
>>>> 
>>>> Ethan
>>> 
>> -
>> Karl -
>> 
>> Thanks.
>> 
>> We all run up against brick walls.
>> 
>> Anybody else have ideas?
>> 
>> TIA.
>> 
>> Ethan
>> 
>> 
> Karl -
> 
> Thanks.
> 
> Here are some debug info.  Hope it helps.
> 
> root@meow:/home/ethan/BluBev# apache2 -S
> [Fri Mar 13 00:19:23.651029 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_LOCK_DIR} is not defined
> [Fri Mar 13 00:19:23.651100 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_PID_FILE} is not defined
> [Fri Mar 13 00:19:23.651117 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_RUN_USER} is not defined
> [Fri Mar 13 00:19:23.651124 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_RUN_GROUP} is not defined
> [Fri Mar 13 00:19:23.651142 2015] [core:warn] [pid 21435] AH00111: Config 
> variable ${APACHE_LOG_DIR} is not defined
> [Fri Mar 13 00

Re: [PHP-DB] Waiting for localhost

2015-03-14 Thread Ethan Rosenberg

On 03/09/2015 08:27 AM, Ethan Rosenberg, PhD wrote:

On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:

Don't know what to tell you bub.
Time for the books?

I "think" that it has to do with php parsing or not parsing the echo because 
its echoing a script.
Can't remember off the top, but along those lines I would search.

GL,

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg  
wrote:


On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:

Try...
window.location.href = "HandleWeight.php";

Sent from losPhone


On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg  
wrote:


On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
Sorry, missed a parenthesis.

if($row7[0] === 1)
{
echo('window.location = 
"HandleWeight.php";');
}

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com <http://designdrumm.com/>



Begin forwarded message:


*From: *Karl DeSaulniers mailto:k...@designdrumm.com>>
*Subject: **Re: [PHP-DB] Waiting for localhost*
*Date: *March 8, 2015 5:58:29 PM CDT
*To: *erosenb...@hygeiabiomedical.com <mailto:erosenb...@hygeiabiomedical.com>

Try...

if($row7[0] === 1)
{
echo('window.location = 
"HandleWeight.php";';
}

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

Karl -

Thanks.

The === avoids the infinite loop, but the call to the script is never executed.

TIA

Ethan




Karl -

Thanks.

No improvement.

TIA

Ethan



-
Karl -

Thanks.

We all run up against brick walls.

Anybody else have ideas?

TIA.

Ethan



Karl -

Thanks.

Here are some debug info.  Hope it helps.

root@meow:/home/ethan/BluBev# apache2 -S
[Fri Mar 13 00:19:23.651029 2015] [core:warn] [pid 21435] AH00111: Config variable 
${APACHE_LOCK_DIR} is not defined
[Fri Mar 13 00:19:23.651100 2015] [core:warn] [pid 21435] AH00111: Config variable 
${APACHE_PID_FILE} is not defined
[Fri Mar 13 00:19:23.651117 2015] [core:warn] [pid 21435] AH00111: Config variable 
${APACHE_RUN_USER} is not defined
[Fri Mar 13 00:19:23.651124 2015] [core:warn] [pid 21435] AH00111: Config variable 
${APACHE_RUN_GROUP} is not defined
[Fri Mar 13 00:19:23.651142 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Fri Mar 13 00:19:23.667273 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Fri Mar 13 00:19:23.667416 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Fri Mar 13 00:19:23.667431 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Fri Mar 13 00:19:23.667514 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined
[Fri Mar 13 00:19:23.667527 2015] [core:warn] [pid 21435] AH00111: Config variable ${APACHE_LOG_DIR} 
is not defined

AH00526: Syntax error on line 74 of /etc/apache2/apache2.conf:
Invalid Mutex directory in argument file:${APACHE_LOCK_DIR}

I have written two trivial PHP programs to debug this...

start.php


?>

<!--
//   window.open(" <a  rel="nofollow" href="http://localhost/end.php","_self"">http://localhost/end.php","_self"</a>;); //slower
//  window.location.href("<a  rel="nofollow" href="http://localhost/end.php"">http://localhost/end.php"</a>;);  //never 
calls script
//  window.location.assign("<a  rel="nofollow" href="http://localhost/end.php"">http://localhost/end.php"</a>;); //almost 
instantaneous

window.open(" <a  rel="nofollow" href="http://localhost/HandleWeight.php","_self"">http://localhost/HandleWeight.php","_self"</a>;);  //hangs
//  window.location.href("<a  rel="nofollow" href="http://localhost/HandleWeight.php"">http://localhost/HandleWeight.php"</a>;); 
//never calls script
//  window.location.assign("<a  rel="nofollow" href="http://localhost/HandleWeight.php"">http://localhost/HandleWeight.php"</a>;); 
//hangs


//-->\



HandleWeight is the desired target of the POS program I am developing.

The test target...end.php

World";
?>

The behavior is notated in the code.

HTH

TIA

Ethan


Here is the target frjoim the test side...end.php

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



Re: [PHP-DB] Waiting for localhost

2015-03-09 Thread Ethan Rosenberg, PhD

On 03/09/2015 06:55 AM, Karl DeSaulniers wrote:

Don't know what to tell you bub.
Time for the books?

I "think" that it has to do with php parsing or not parsing the echo because 
its echoing a script.
Can't remember off the top, but along those lines I would search.

GL,

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 8, 2015, at 10:11 PM, Ethan Rosenberg  
wrote:


On 03/08/2015 09:30 PM, Karl DeSaulniers wrote:

Try...
window.location.href = "HandleWeight.php";

Sent from losPhone


On Mar 8, 2015, at 7:13 PM, Ethan Rosenberg  
wrote:


On 03/08/2015 07:00 PM, Karl DeSaulniers wrote:
Sorry, missed a parenthesis.

if($row7[0] === 1)
{
echo('window.location = 
"HandleWeight.php";');
}

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com <http://designdrumm.com/>



Begin forwarded message:


*From: *Karl DeSaulniers mailto:k...@designdrumm.com>>
*Subject: **Re: [PHP-DB] Waiting for localhost*
*Date: *March 8, 2015 5:58:29 PM CDT
*To: *erosenb...@hygeiabiomedical.com <mailto:erosenb...@hygeiabiomedical.com>

Try...

if($row7[0] === 1)
{
echo('window.location = 
"HandleWeight.php";';
}

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com

Karl -

Thanks.

The === avoids the infinite loop, but the call to the script is never executed.

TIA

Ethan




Karl -

Thanks.

No improvement.

TIA

Ethan



-
Karl -

Thanks.

We all run up against brick walls.

Anybody else have ideas?

TIA.

Ethan


--
Ethan Rosenberg, PhD
/Pres/CEO/
*Hygeia Biomedical Research, Inc*
2 Cameo Ridge Road
Monsey, NY 10952
T: 845 352-3908
F: 845 352-7566
erosenb...@hygeiabiomedical.com

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



Re: [PHP-DB] Waiting for localhost

2015-03-08 Thread Ethan Rosenberg

On 03/08/2015 01:50 AM, Karl DeSaulniers wrote:

Shit! — Half Price Books!

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 8, 2015, at 12:49 AM, Ethan Rosenberg  
wrote:


On 03/08/2015 01:43 AM, Karl DeSaulniers wrote:

The Dummies series is a great start. (No pun or patronizing intended here 
honestly)

html for dummies
javascript for dummies
php for dummies
cloud computing for dummies
mysql for dummies

They all break down the core elements you need to know to teach yourself more.

Happy hunting!

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



---
Karl -

Thanks.

Now to Barnes and Nobel.

Ethan


Karl -

Thanks.

Anybody have any suggestions about cloud computing sites?

TIA

Ethan


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



Re: [PHP-DB] Waiting for localhost

2015-03-08 Thread Ethan Rosenberg

On 03/08/2015 01:40 AM, Karl DeSaulniers wrote:

Ethan,
Open a new window (window.open) inside itself (_self)?
Try window.location for opening a url inside the same window.
Use windlow.open to open a new window (ie: pop-up window).

Also, I would take at least a month and learn basic html and javascript before 
proceeding.
You're running into newbie problems that could be eradicated with 30days of 
training.
If you're feeling really frisky, throw 30 more days on top for php.

Just saying, if you want life to be easier.. :)

Best,

Karl DeSaulniers
Design Drumm
http://designdrumm.com



On Mar 8, 2015, at 12:29 AM, Ethan Rosenberg  
wrote:


window.open("HandleWeight.php","_self")




Karl -

Thank you.

OK here is the code-

";
?>

\


 What works in the JavaScript call is window.location.assign  Works perfectly
-
In the database program ...

$sql7 = "select WeightFlag from Food where PLU = $upc"; //If 
WeightFlag is 1
//the item has to be weighed and HandleWeight should be called

$result7 = mysqli_query($cxn, $sql7);
$row7 = mysqli_fetch_row($result7); 


if($row7[0] == 1)
{
?>

\

http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php