php-general Digest 14 Jun 2004 07:31:38 -0000 Issue 2820

Topics (messages 188191 through 188196):

Re: Expedia.com
        188191 by: Rainer M�ller

RE:[PHP] file knowing its own directory
        188192 by: Dennis Gearon

connecting remote host ..
        188193 by: gowthaman ramasamy

aspx
        188194 by: John Taylor-Johnston
        188195 by: daniel.electroteque.org

Combo problems.. Multi Array??
        188196 by: Michael Benbow

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Red Wingate wrote:

Allmost, after having a quick look at the source i tell you they
do it like that:

<div id="loading" style="display:block">
    ... loading stuff here ...
</div>

..... page loading here ....

done?
JS: document.getElementByid('loading').display='none';

take a look for yourself :-)


The idea is great IMHO. But what if someone has javascript disabled?

Rainer
--- End Message ---
--- Begin Message ---
Just for the record, (and archives), This can be accomplished by:
dirname( __FILE__);

This allowes me to put the following into an application's config file, to be included via the prepend, the following localized, global values:
(assuming the application's files are kept OUT of the document root for security's sake)


$APPLICAITON_NAME_VALUES["MAIN_DIR"]= dirname(__FILE__)."/"; //on linux anyway.
$APPLICAITON_NAME_VALUES["NEEDED_VALUE_1"]= 'VALUE_1";
$APPLICAITON_NAME_VALUES["NEEDED_VALUE_2"]= 'VALUE_2";
blah blah


causing VERY little global name pollution.

[EMAIL PROTECTED] wrote:
please CC me 'cause I am on digest

the scenario:
three files:
.htaccess
has line saying "php_prepend 'true_filesystem_location_php_prepend_file' "
prepend.php (aforementioned prepend file)
has line saying "include file_a.php"
file_a.php
has line saying"$my_true_file_system_location = I_NEED_A_FUNCTION_HERE;"


So, what do I replace I_NEED_A_FUNCTION_HERE with?

--- End Message ---
--- Begin Message ---
hello list,
My php script works fine with local mysql database.
however when try to use some remote database it fails and gives follwing
error ..

Warning: mysql_connect(): Unknown MySQL Server Host 'http' (2) in
/usr/local/apache2/htdocs/gowtham/forphp/db_qry_4repeat.php on line 86


the mysql_connect() syntax is as follows ..
$db=mysql_connect("192.168.1.109", "root", "password"); 
192.168.1.109 is the ip (internal IP on LAN) of the machine hosting the
database.

thanx a lot in advance ..

-- 
Ra. Gowthaman,
Graduate Student,
Bioinformatics Lab,
Malaria Research Group,
ICGEB , New Delhi.
INDIA

Phone: 91-9811261804
       91-11-26173184; 91-11-26189360 #extn 314

--- End Message ---
--- Begin Message ---
Anyone know what aspx is? A rogue version of asp? It's not Open Source or PHP in 
disguise?

--- End Message ---
--- Begin Message ---
.NET dude, a little irrelevant to PHP, but a major competitor to J2EE, may
i ask why and how did they copy java code and attempt to refine it ?


> Anyone know what aspx is? A rogue version of asp? It's not Open Source
> or PHP in disguise?
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message ---
Hi,

I've got a problem which has left me scratching my head for the better part of a week. What I need to do is take x amount of items on one side, and somehow find all the combinations of y that fit in x. Now I know this doesn't make much sense but it is very hard to explain, so I'm probably better off giving an example.

In this example just say I have three isntances of x; A, B and C. x can grow to as much as 5 or 6 (D, E, F).

On the flipside I have two instances of y; [1] and [2]

I need to find how many combinations there are where y can fit in x.

The outcome, if working properly, should be...

A [1][2] B        C
A        B [1][2] C
A        B        C [1][2]
A [1]    B [2]    C
A        B [1]    C [2]
A [1]    B        C [2]
A [2]    B [1]    C
A [2]    C        C [1]
A        B [2]    C [1]

Does anyone have any ideas on how I could do this? As I said I'm completely stumped.

Thanks,
Michael.

--- End Message ---

Reply via email to