creating variable

    Date: 04/24/06 (PHP Community)    Keywords: php

    Stupid question I’m sure…but I just can’t see the solution.

    I have the follow lines...that create a variable ($uploadfile) that I use later to load a file onto the site.

    $uploaddir = '../../../mem_hoa/';
    $uploadfile = $uploaddir . $filename;

    It works great!

    BUT…I want to allow for user selectable variable to determine directory location.

    The following DOESN’T work…and I don’t know why

    $uploaddir = '../../../$memselection/';
    $uploadfile = $uploaddir . $filename;

    Help?

    (NOTE: I have verified the variable ($memselection) is working correctly, and is actually used for some table insert and manipulation on the same php page.)

    Source: http://community.livejournal.com/php/443480.html

« Might be a beginner... || something wrong w/ this code? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home