php-general Digest 8 Mar 2007 06:47:56 -0000 Issue 4665

Topics (messages 250029 through 250051):

Re: determine time in city using GMT offset
        250029 by: Richard Kurth

ldap change password
        250030 by: Fabio Silva
        250041 by: Holger Blasum

Re: PHP Patch open_basedir for dynamic virtualhost
        250031 by: DoM
        250033 by: Jim Lucas
        250037 by: DoM

Re: zipArchive - corrupting files?
        250032 by: KMiller

DOM File Permissions
        250034 by: CK
        250035 by: Edward Vermillion
        250038 by: Edward Vermillion

Re: help with script needed
        250036 by: Bruce Gilbert
        250039 by: Jake McHenry
        250040 by: Stut
        250047 by: Jake McHenry

Monitoring download, detecting completion?
        250042 by: Skip Evans

Links
        250043 by: StainOnRug
        250045 by: fedt
        250048 by: Jake McHenry

Re: php and javascript error
        250044 by: jekillen

Re: db query not working
        250046 by: David Robley

Problem with APC
        250049 by: steve

Is there a way to un include a file
        250050 by: jekillen
        250051 by: Børge Holen

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 ---
That is what I am asking where do I start. I just need to be pointed in the
right direction. I have looked thru the manual for time and date and I have
searched this user group. Maybe I am not asking the question correctly.

-----Original Message-----
From: Jim Lucas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 07, 2007 10:36 AM
To: Richard Kurth
Cc: [email protected]
Subject: Re: [PHP] determine time in city using GMT offset

Richard Kurth wrote:
> How would I determine the time in a different city If I know the GMT
offset
> in both places    Say GMT -1 in one city   and GMT -7 in another city.
What
> would the math and code look like for this
> 
show us what you have so far...

--
Enjoy,

Jim Lucas

Different eyes see different things. Different hearts beat on different
strings. But there are times for you and me when all such things agree.

- Rush

--- End Message ---
--- Begin Message ---
Hi all, i would like to know if anybody has a script in php that
change the password of the users in ldap???

That the user can do it by yourself....

the user put your "username" "old pass" "new pass" "confirm new pass"

Somebody can help me?

Regards,

--
Fabio S. Silva

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

On 03-07, Fabio Silva wrote:
> Hi all, i would like to know if anybody has a script in php that
> change the password of the users in ldap???
> That the user can do it by yourself....

http://logout.sh/computers/ldap/ looks like a starting point.
In that example, however the connection from the web server to 
the ldap server is not encrypted (which might be an issue if the 
webserver is different from the ldap server and you are not 
using ssh tunnelling for the connection), googling ldap_connect and 663 
(the port of LDAP with TLS) gives you other recipes. (For the TLS 
exchange you would also have to generate an X.509 cert, see eg
http://www.guug.de/veranstaltungen/ffg2003/papers/ffg2003-blasum-en.pdf
for essentially the same where python was used in place of php.)

Regards,

-- 
Holger Blasum +49-174-7313590 (cell) GnuPG 1024D/ACDFC3B769DC1ED66B47

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Jim Lucas wrote:
> http://us3.php.net/manual/en/features.safe-mode.php#ini.open-basedir
> 
> Read the first line of the first paragraph.
> 
> /tmp/ is not with-in /var/www/php.net/%1 it is out side

Yes, of course i know this :)

As i wrote i would like to include static path after dynamic path like
/var/www/php.net/%1
( i remember you that i know i could assign dynamic open_basedir value
such as /var/www/php.net/%1/ or VIRTUAL_DOCUMENT_ROOT only with Jason
Greene patch)

I mean something like this:
/var/www/php.net/%1/:/tmp/:/usr/local/xxx/ and so on.

> But then read the fifth paragraph and you should have your solution.
> 

If you mean this:
The restriction specified with open_basedir is actually a prefix, not a
directory name. This means that "open_basedir = /dir/incl" also allows
access to "/dir/include" and "/dir/incls" if they exist. When you want
to restrict access to only the specified directory, end with a slash.
For example: "open_basedir = /dir/incl/"

i tell you that i do not want an open_basedir value just like
/var/www/php.net/%1/ where /var/www/php.net/tmp/ is the answer cause
then all users (%1) inside /var/www/php.net/ can access their homedir
each other.

I do not know if i understand what you mean but i hope no and hope that
i am wrong, so i could hope in a solution :)

Anyway thanks to be interested about my problem.

Waiting for your reply.


Regards

--- End Message ---
--- Begin Message ---
DoM wrote:
Jim Lucas wrote:
http://us3.php.net/manual/en/features.safe-mode.php#ini.open-basedir

Read the first line of the first paragraph.

/tmp/ is not with-in /var/www/php.net/%1 it is out side

Yes, of course i know this :)

As i wrote i would like to include static path after dynamic path like
/var/www/php.net/%1
( i remember you that i know i could assign dynamic open_basedir value
such as /var/www/php.net/%1/ or VIRTUAL_DOCUMENT_ROOT only with Jason
Greene patch)

I mean something like this:
/var/www/php.net/%1/:/tmp/:/usr/local/xxx/ and so on.
does this work?

The manual says it should.


But then read the fifth paragraph and you should have your solution.


If you mean this:
The restriction specified with open_basedir is actually a prefix, not a
directory name. This means that "open_basedir = /dir/incl" also allows
access to "/dir/include" and "/dir/incls" if they exist. When you want
to restrict access to only the specified directory, end with a slash.
For example: "open_basedir = /dir/incl/"

Nope, that was the sixth paragraph.


i tell you that i do not want an open_basedir value just like
/var/www/php.net/%1/ where /var/www/php.net/tmp/ is the answer cause
then all users (%1) inside /var/www/php.net/ can access their homedir
each other.
I did not understand this last statement.

How would you get
        /var/www/php.net/tmp/
from
        /var/www/php.net/%1/:/tmp/


I do not know if i understand what you mean but i hope no and hope that
i am wrong, so i could hope in a solution :)

Anyway thanks to be interested about my problem.

Waiting for your reply.


Regards




--
Enjoy,

Jim Lucas

Different eyes see different things. Different hearts beat on different strings. But there are times for you and me when all such things agree.

- Rush

--- End Message ---
--- Begin Message ---
Jim Lucas wrote:
> DoM wrote:
>> I mean something like this:
>> /var/www/php.net/%1/:/tmp/:/usr/local/xxx/ and so on.
> does this work?
> 
> The manual says it should.

And it works for static path like /tmp/:/var/www/: but not for dynamic
path like /var/www/%0/%1 .
I need Jason Greene patch to let it work with dynamic path and
mod_vhost_alias apache.

http://www.phpbuilder.com/lists/php-developer-list/2000101/0994.php


Regards

--- End Message ---
--- Begin Message ---
Downloaded latest php_zip.dll; fixed!  


KMiller wrote:
> 
> Been playing with this for a few hours and it seems that anything but a
> plain text file (doc,xls,pdf,etc.) is being trashed by ZipArchive. 
> 
> Has anyone had similar experiences or am I just doing something stupid and
> can't see it?
> 
> Whatever the problem is, it certainly is silent about it.  I thought it
> may be a permissions thing but that doesn't seem to be it.  The one file
> it doesn't mess up is a plain text file.  Anything else gets trashed.  
> 
> -km
> 
>   public function zipAction() {
>       $params = SiteControllers::getParams();
>               if(!isset($params['file'])) {
>                       echo "zip: file param expected - not found";
>                       return false;
>               }
>       $file = $params['file'];
>               if(!file_exists("uploads/{$file}")) {
>                       echo "file to zip: {$file} not found";
>                       return false;
>               }
>               $zip = new ZipArchive;
>               $res = $zip->open("uploads/{$file}.zip", ZipArchive::OVERWRITE);
>               if ($res === TRUE) {
>                       $zip->addFile("uploads/{$file}","{$file}");
>                       $zip->close();
>                       unlink("uploads/{$file}");
>                       echo "{$file} - was zipped";
>                       return true;
>               } else {
>                       echo "{$file} - zip failed";
>                       return false;
>               }
>       }
> 
>       public function unzipAction() {
>       $params = SiteControllers::getParams();
>       $file = $params['file'];
>               if(!isset($params['file'])) {
>                       echo "unzip: file param expected - not found";
>                       return false;
>               }
>               $zfn = "uploads/{$file}.zip";
>               if(!file_exists($zfn)) {
>                       echo "zip file: {$zfn} not found";
>                       return false;
>               }
>               if(file_exists("uploads/{$file}")) {
>                       echo "file to unzip: {$file} exists";
>                       return false;
>               }
>               $zip = new ZipArchive;
>               $res = $zip->open($zfn);
>               if ($res === TRUE) {
>                       $zip->extractTo("uploads/");
>                       $zip->close();
>                       echo "{$file}: unzipped";
>                       unlink($zfn);
>                       return true;
>       } else {
>                       echo "unzip for: {$file} failed";
>                       return false;
>               }
>       }
> 
> 

-- 
View this message in context: 
http://www.nabble.com/zipArchive---corrupting-files--tf3359654.html#a9360328
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message ---
The following code returns a permisson error:

Quote:
Warning: DOMDocument::save(./save1.xml) [function.DOMDocument-save]: failed to open stream: Permission denied in /Users/username/Sites/ xmlphp/dom/appendData/appendData.php on line 17
DOMCharacterData->appendData example

I attempted changing the owner of each file to System and read/write for each file, with the same result, MAC OS 10.4.8, without success, what steps are needed to correct this?

This source returned for the remote server(http://bushidodeep.com/php/ dom/appendData/appendData.php):
<b>DOMCharacterData->appendData example</b>



<?php

$doc = new DomDocument;
//Load the xml file into DOMDocument
$doc->Load('./employee.xml');
//We retreive the attibute named id of the employee element
$employee = $doc->getElementsByTagName('employee')->item(0);
//Create a New element
$newElement = $doc->createElement('surname');
//Create a text node
$textNode = $doc->createTextNode("Text Node Created");
//Append the Text Node into the newly created node.
$newElement -> appendChild($textNode);
//Append the new element to the employee element
$employee -> appendChild($newElement);
//Save the DOMDocument into a file.
$test = $doc->save("./save1.xml");
echo "<b>DOMCharacterData->appendData example</b>"
?>

Return True,

.........
PHP
Version 5.1.4

MySQL
Client API version 5.0.19
..........

--- End Message ---
--- Begin Message --- PHP needs read/write access to the files. More than likely PHP is running as Apache so the files would need to be owned by Apache* (or whatever PHP is running at), not System.

*Or at least give the Apache group (or whatever PHP is running at) r/ w access, that way you don't have to resort to world r/w.

On Mar 7, 2007, at 1:55 PM, CK wrote:

The following code returns a permisson error:

Quote:
Warning: DOMDocument::save(./save1.xml) [function.DOMDocument- save]: failed to open stream: Permission denied in /Users/username/ Sites/xmlphp/dom/appendData/appendData.php on line 17
DOMCharacterData->appendData example

I attempted changing the owner of each file to System and read/ write for each file, with the same result, MAC OS 10.4.8, without success, what steps are needed to correct this?

This source returned for the remote server(http://bushidodeep.com/ php/dom/appendData/appendData.php):
<b>DOMCharacterData->appendData example</b>



<?php

$doc = new DomDocument;
//Load the xml file into DOMDocument
$doc->Load('./employee.xml');
//We retreive the attibute named id of the employee element
$employee = $doc->getElementsByTagName('employee')->item(0);
//Create a New element
$newElement = $doc->createElement('surname');
//Create a text node
$textNode = $doc->createTextNode("Text Node Created");
//Append the Text Node into the newly created node.
$newElement -> appendChild($textNode);
//Append the new element to the employee element
$employee -> appendChild($newElement);
//Save the DOMDocument into a file.
$test = $doc->save("./save1.xml");
echo "<b>DOMCharacterData->appendData example</b>"
?>

Return True,

.........
PHP
Version 5.1.4

MySQL
Client API version 5.0.19
..........

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


--- End Message ---
--- Begin Message --- I would bet it's the www, sorry about that. I've had to change the user/group name for mine so it will sync up with the linux file server permissions across NFS.



On Mar 7, 2007, at 2:56 PM, CK wrote:

Hi,

Thanks, attempted to use appServer without luck, these are the choices:

<Picture 1.png>

On Mar 7, 2007, at 2:25 PM, Edward Vermillion wrote:

PHP needs read/write access to the files. More than likely PHP is running as Apache so the files would need to be owned by Apache* (or whatever PHP is running at), not System.

*Or at least give the Apache group (or whatever PHP is running at) r/w access, that way you don't have to resort to world r/w.

On Mar 7, 2007, at 1:55 PM, CK wrote:

The following code returns a permisson error:

Quote:
Warning: DOMDocument::save(./save1.xml) [function.DOMDocument- save]: failed to open stream: Permission denied in /Users/ username/Sites/xmlphp/dom/appendData/appendData.php on line 17
DOMCharacterData->appendData example

I attempted changing the owner of each file to System and read/ write for each file, with the same result, MAC OS 10.4.8, without success, what steps are needed to correct this?

This source returned for the remote server(http://bushidodeep.com/ php/dom/appendData/appendData.php):
<b>DOMCharacterData->appendData example</b>



<?php

$doc = new DomDocument;
//Load the xml file into DOMDocument
$doc->Load('./employee.xml');
//We retreive the attibute named id of the employee element
$employee = $doc->getElementsByTagName('employee')->item(0);
//Create a New element
$newElement = $doc->createElement('surname');
//Create a text node
$textNode = $doc->createTextNode("Text Node Created");
//Append the Text Node into the newly created node.
$newElement -> appendChild($textNode);
//Append the new element to the employee element
$employee -> appendChild($newElement);
//Save the DOMDocument into a file.
$test = $doc->save("./save1.xml");
echo "<b>DOMCharacterData->appendData example</b>"
?>

Return True,

.........
PHP
Version 5.1.4

MySQL
Client API version 5.0.19
..........

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




--- End Message ---
--- Begin Message ---
Thanks for the responses so far.

This is what I have come up with
[php]
<?php
for( $i=1; $i<=100; $i++ )
{
echo $i;
echo "<br>";
if ($i%3 == 0) echo "Foo ";
elseif ($i%5 == 0) echo "Bar";
}

?>
[/php]

and the results can be seen here
http://www.inspired-evolution.com/image_test/numbers_output.php

I actually want the Foo and Bar to replace the numbers they are
dereivatives of and not appear below as they are now, and I also need
to add a third condition for "FooBar" which would be for numbers that
are both divisible by 3 and 5.

thanks

On 3/7/07, Martin Marques <[email protected]> wrote:
Tijnema ! escribió:
> On 3/7/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote:
>> I just need to add code to print something different, say "foo" if the
>> output is a multiple of 5 or 10 for example. How do I go about doing
>> this?
>>
>
> I've seen that question a lot, what i use is fairly simple
> if( intval($number / $multiple) == ($number / $multiple ) )
>
> try that

Very bad solution. Try the % operator:

if($number % $multiple == 0)

http://www.php.net/manual/en/language.operators.arithmetic.php

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
---------------------------------------------------------
Martín Marqués          |   Programador, DBA
Centro de Telemática    |     Administrador
                Universidad Nacional
                     del Litoral
---------------------------------------------------------



--
::Bruce::

--- End Message ---
--- Begin Message --- Are you only using 3 and 5? just echo 3 and 5 instead of Foo and Bar. and for both, just have a 3rd condition including both ... if (($i%3 ==0) && ($i%5 == 0)) echo both or foobar......

does this help?

Jake


----- Original Message ----- From: "Bruce Gilbert" <[EMAIL PROTECTED]>
To: "Martin Marques" <[email protected]>
Cc: "Tijnema !" <[EMAIL PROTECTED]>; "PHP-General" <[email protected]>
Sent: Wednesday, March 07, 2007 4:00 PM
Subject: Re: [PHP] help with script needed


Thanks for the responses so far.

This is what I have come up with
[php]
<?php
for( $i=1; $i<=100; $i++ )
{
echo $i;
echo "<br>";
if ($i%3 == 0) echo "Foo ";
elseif ($i%5 == 0) echo "Bar";
}

?>
[/php]

and the results can be seen here
http://www.inspired-evolution.com/image_test/numbers_output.php

I actually want the Foo and Bar to replace the numbers they are
dereivatives of and not appear below as they are now, and I also need
to add a third condition for "FooBar" which would be for numbers that
are both divisible by 3 and 5.

thanks

On 3/7/07, Martin Marques <[email protected]> wrote:
Tijnema ! escribió:
> On 3/7/07, Bruce Gilbert <[EMAIL PROTECTED]> wrote:
>> I just need to add code to print something different, say "foo" if the
>> output is a multiple of 5 or 10 for example. How do I go about doing
>> this?
>>
>
> I've seen that question a lot, what i use is fairly simple
> if( intval($number / $multiple) == ($number / $multiple ) )
>
> try that

Very bad solution. Try the % operator:

if($number % $multiple == 0)

http://www.php.net/manual/en/language.operators.arithmetic.php

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
---------------------------------------------------------
Martín Marqués          |   Programador, DBA
Centro de Telemática    |     Administrador
                Universidad Nacional
                     del Litoral
---------------------------------------------------------



--
::Bruce::

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



--- End Message ---
--- Begin Message ---
Bruce Gilbert wrote:
Thanks for the responses so far.

This is what I have come up with
[php]
<?php
for( $i=1; $i<=100; $i++ )
{
echo $i;
echo "<br>";
if ($i%3 == 0) echo "Foo ";
elseif ($i%5 == 0) echo "Bar";
}

?>
[/php]

and the results can be seen here
http://www.inspired-evolution.com/image_test/numbers_output.php

I actually want the Foo and Bar to replace the numbers they are
dereivatives of and not appear below as they are now, and I also need
to add a third condition for "FooBar" which would be for numbers that
are both divisible by 3 and 5.

Ok, this is commonly known as the FizzBuzz problem and is used a lot as a university project or interview question. If you can't do it, be afraid!!

http://dev.stut.net/php/fizzbuzz.php

-Stut

--- End Message ---
--- Begin Message ---
LOL I told'ya I rememberd it from my 2nd semester :)


Ok, this is commonly known as the FizzBuzz problem and is used a lot as a university project or interview question. If you can't do it, be afraid!!

http://dev.stut.net/php/fizzbuzz.php

-Stut

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


--- End Message ---
--- Begin Message ---
Hey all,

I have a need to monitor a download from the server to the client's machine.

I'm not familiar with any mechanisms for doing so.

If anyone has any hints to point me towards I'll get a' researching.
--
Skip Evans
Big Sky Penguin, LLC
61 W Broadway
Butte, Montana 59701
406-782-2240
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and
versatile PHP/MySQL development framework.
http://phpenguin.bigskypenguin.com/

--- End Message ---
--- Begin Message ---
Hello.. I searched for an answer on the simple quesiton but I am only finding
complex answers... I simply just want to add a link in my database so when
my results display you can see the information.. and when they click the
link it takes them to the webpage of the article. I tried inserting 
examplesite.com User sees this text   but when the results page shows.. it
doesnt show the hyperlink.. Thank you all very much!



  -Darren    

   Thanks again!
-- 
View this message in context: 
http://www.nabble.com/Links-tf3366303.html#a9365950
Sent from the PHP - General mailing list archive at Nabble.com.

--- End Message ---
--- Begin Message ---
:|

if i want link 3,

$result = mysql_query("SELECT address FROM db.links WHERE link_id=3");
$foo = mysql_fetch_assoc($result);
echo '<a href="'.$foo['address'].'">this is link 3</a>';

On 3/7/07, StainOnRug <[EMAIL PROTECTED]> wrote:


Hello.. I searched for an answer on the simple quesiton but I am only
finding
complex answers... I simply just want to add a link in my database so when
my results display you can see the information.. and when they click the
link it takes them to the webpage of the article. I tried inserting
examplesite.com User sees this text   but when the results page shows.. it
doesnt show the hyperlink.. Thank you all very much!



  -Darren

   Thanks again!
--
View this message in context:
http://www.nabble.com/Links-tf3366303.html#a9365950
Sent from the PHP - General mailing list archive at Nabble.com.

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




--
|~ fedt ~|

--- End Message ---
--- Begin Message --- You have to add the href tags in the html output for the text to be a link........

in your while statement or whatever your using to obtains the links from the database already,

instead of just displaying $link_value, change it to

<a href="$link_value">$link_value</a>


Jake

----- Original Message ----- From: "StainOnRug" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Wednesday, March 07, 2007 7:19 PM
Subject: [PHP] Links



Hello.. I searched for an answer on the simple quesiton but I am only finding
complex answers... I simply just want to add a link in my database so when
my results display you can see the information.. and when they click the
link it takes them to the webpage of the article. I tried inserting
examplesite.com User sees this text   but when the results page shows.. it
doesnt show the hyperlink.. Thank you all very much!



 -Darren

  Thanks again!
--
View this message in context: http://www.nabble.com/Links-tf3366303.html#a9365950
Sent from the PHP - General mailing list archive at Nabble.com.

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


--- End Message ---
--- Begin Message ---

On Mar 7, 2007, at 10:24 AM, Ed Curtis wrote:

Edward Kay wrote:

you've got a stay quote mark in one of your PHP vars.

Not it, I looked and there's nothing there.
I'm sure it's because you've got some stray characters in your output that mess it up. It would help if you actually posted the source rather than just
saying it's OK, when it clearly isn't.

The problem wasn't a stray apostrophe. Brad Fuller was dead on. It was the space in the window name option of the javascript. It works as expected once the space is removed.

PPS: It's advisable not to use the short tags, use <?php instead of <?

Can you tell me why? Is it just a personal preference?
If you move to another server where the short tags option is off, your code
will break. From the manual:
Using short tags should be avoided when developing applications or libraries that are meant for redistribution, or deployment on PHP servers which are
not under your control

My scripts aren't meant for distribution also they will only ever be delpoyed on a server that I control. Thanks for the tip though and thanks to everyone that helped.

Ed

This isn't a javascript discussion list but, javascript and php compliment each other very well.

Internet Explorer has error reporting that can be turned on in the preferences.

I would try that before making any other assumptions.

Believe me, I started developing javascript before php and with no IDE for javascript you 'have to rely on the browsers error reporting facilities, and lots of alert dialogs used as break points. Safari on Mac is a head ache because it has no error reporting at all and I have encountered problems with it that do not show up in any of the browsers that do
have error reporting.
Hope that helps,
Jeff K

--- End Message ---
--- Begin Message ---
Satyam wrote:
 
> It is an old guy thing, at least in my case (trivia: I was born the day
> after the ENIAC was turned off)

Young kids these days :-) I was born the month before it was turned _on_!




Cheers
-- 
David Robley

Why do we read left to right yet turn pages right to left?
Today is Boomtime, the 67th day of Chaos in the YOLD 3173. 

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

I upgraded to PHP 4.4.6 and APC 3.0.13 at the same time. Every day at
some point, it starts having a problem and the load on that machine
styrockets.

It does not happen with the opcode cache in Zend Platform for PHP 4.4.6.

Also, in the error log I see a lot of things like this:

[apc-warning] GC cache entry 'path_to_file.php' (dev=64768 ino=0) was
on gc-list for 4590172 seconds

Any ideas?

--- End Message ---
--- Begin Message ---
Hello;
Is there a way to un include a file once it has been included in a script.
My concern is where two php files might be included in another php
file they might have code or variables that conflict. I am thinking
of including files with different names but follow the same pattern
of code and variables but may have different values for variables
or different versions of the same function.
If there is not a specific function for un including a file (I have not
seen any indication from my text books that there is), it seems like
it would be nice to have one.
Meanwhile I will be doing some experimentation.
Thanks in advance;
Jeff K

--- End Message ---
--- Begin Message ---
On Thursday 08 March 2007 07:18, jekillen wrote:
> Hello;
> Is there a way to un include a file once it has been included in a
> script.

You seems to want the wrong thing... 

I could be mistaken, but from my point of view you would NOT include the file 
if not apropriate at that moment. 


> My concern is where two php files might be included in another php
> file they might have code or variables that conflict. I am thinking
> of including files with different names but follow the same pattern
> of code and variables but may have different values for variables
> or different versions of the same function.
> If there is not a specific function for un including a file (I have not
> seen any indication from my text books that there is), it seems like
> it would be nice to have one.
> Meanwhile I will be doing some experimentation.
> Thanks in advance;
> Jeff K

-- 
---
Børge
Kennel Arivene 
http://www.arivene.net
---

--- End Message ---

Reply via email to