Re: [PHP-DB] Waiting for localhost

[email protected] (Ethan Rosenberg) Sat, 14 Mar 2015 22:17:45 -0400
Newsgroups php.db
Message-ID <[email protected]>
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 <[email protected]> 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 <[email protected]> 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 <[email protected] <mailto:[email protected]>>
>>>>>>> *Subject: **Re: [PHP-DB] Waiting for localhost*
>>>>>>> *Date: *March 8, 2015 5:58:29 PM CDT
>>>>>>> *To: *[email protected] <mailto:[email protected]>
>>>>>>>
>>>>>>> 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