Re: Waiting for localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <erosenberg@xxxxxxxxxxxxxxxxxxxx> 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 <erosenberg@xxxxxxxxxxxxxxxxxxxx> 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 <erosenberg@xxxxxxxxxxxxxxxxxxxx> 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 <erosenberg@xxxxxxxxxxxxxxxxxxxx> 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";</script>');
}

Best,

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



Begin forwarded message:

*From: *Karl DeSaulniers <karl@xxxxxxxxxxxxxxx <mailto:karl@xxxxxxxxxxxxxxx>>
*Subject: **Re:  Waiting for localhost*
*Date: *March 8, 2015 5:58:29 PM CDT
*To: *erosenberg@xxxxxxxxxxxxxxxxxxxx <mailto:erosenberg@xxxxxxxxxxxxxxxxxxxx>

Try...

if($row7[0] === 1)
{
echo('<script type="text/javascript">window.location = "HandleWeight.php";</script>';
}

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


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

        window.open(" http://localhost/HandleWeight.php","_self";);  //hangs
    //    window.location.href("http://localhost/HandleWeight.php";); //never calls script
    //    window.location.assign("http://localhost/HandleWeight.php";); //hangs


        //-->\
        </script>


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

The test target...end.php

<?php
        echo "<br />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 normally? Trying to pin down where the actual problem is.

This one is really confusing....

I originally used a form to call handleweight.  I changed to a direct call so the store owner would not have to push another button to weigh.

When I use the form again, the call hangs.

When I take the form and put it in my test program, the call hangs.

If I run handleweight from the browser...the call hangs.

Totally confused.

TIA

Ethan



--
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 "<form method= 'post' action='HandleWeight.php'>";
echo "<center><strong><input type = 'submit' value= 'WEIGH'></strong></center>";
echo "</form>";

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





[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux