SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Mkdir command is driving me insane

    the mkdir command is adding a "?" to the name of every subfolder I put into this one folder, anyone know why?

  2. #2
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    Michigan, USA
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is really weird. What happens if you try to rename the folder from the value to the question mark to the value without it? Does it still leave the question mark?

  3. #3
    As the name suggests... trickie's Avatar
    Join Date
    Jul 2002
    Location
    Melbourne, Australia
    Posts
    678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What does the code look like?

  4. #4
    Level 8 Chinese guy Archbob's Avatar
    Join Date
    Sep 2001
    Location
    Somewhere in this vast universe
    Posts
    3,732
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    $cmd=<<<EOS
    mkdir -p w3
    EOS;
    exec($cmd); 

  5. #5
    La la la la la bronze trophy lieut_data's Avatar
    Join Date
    Jun 2003
    Location
    Waterloo, ON
    Posts
    1,517
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you execute the code on the server, in that folder, do you get the same results? (i.e. through ssh / telnet?)
    Last edited by lieut_data; Jul 12, 2003 at 12:12.
    My name is Steve, and I'm a super-villian.

  6. #6
    SitePoint Evangelist
    Join Date
    Jul 2001
    Location
    Michigan, USA
    Posts
    414
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Did you play around with how you store the command? Maybe try:

    PHP Code:
    $cmd'mkdir -p w3';
    exec($cmd); 
    I mean, I really don't know what to tell you if it is only happening in the one directory. That is too weird. You may also want to think about removing that directory and recreating it...

  7. #7
    ********* Member website's Avatar
    Join Date
    Oct 2002
    Location
    Iceland
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why not simply mkdir()
    - website


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •