Re: Waiting for localhost

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

 



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 <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






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

  Powered by Linux