unlink() - just curious

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Using php v4

<?php unlink('folder/$poop.php'); ?>
didnt work

<?php unlink("folder/$poop.php"); ?>
did work

As subject - just curious why .

Re: unlink() - just curious


Quoted text here. Click to load it

Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

Re: unlink() - just curious

Andy Hassall (andy@andyh.co.uk) wrote:

: http://www.php.net/manual/en/language.types.string.php

An excellent link.

I just would like to point out that it is even more convenient if you copy
the manual corresponding to your version to your local drive (and book
mark it too!).

On redhat I didn't even need to do that, I just selected the php options
during the install and the correct documentation was all there waiting for
You can use something like "cd /; find | grep php | grep index" to find
where it is if necessary, and bookmark it after you find it.


Re: unlink() - just curious

On Tue, 22 Nov 2005 16:29:17 -0700, Malcolm Dew-Jones shouted Hoy......

Quoted text here. Click to load it


find / | grep php | grep index

No need to cd

Baho Utot
mail: echo onub-hgbg@pbyhzohf.ee.pbz | perl -pe 'y/a-z/n-za-m/'
Tayo'y Mga Pinoy

Re: unlink() - just curious

Krustov contained the following:

Quoted text here. Click to load it

In single quotes the variable name would not have been expanded.


Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

Re: unlink() - just curious

Krustov wrote:

Quoted text here. Click to load it
It has nothing to do with unlink.

Php only evaluates variables when they are within double quotes (or not  
quoted at all, of course).

 Chuck Anderson • Boulder, CO
 Integrity is obvious.
 The lack of it is common.

Re: unlink() - just curious

<Tue, 22 Nov 2005 22:42:58 -0000>

Quoted text here. Click to load it

Thanks for the replys .

Site Timeline