simple syntax error - but I can't figure it out

Discussion in 'PHP' started by tyrone, Jun 10, 2010.

  1. tyrone

    tyrone Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #21
    listen, are you okay with all this incredibly generous help? - I'd understand if you just wanted to call it a day
     
    tyrone, Jun 10, 2010 IP
  2. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #22
    i didn't mean it like that

    use this code
    
    
    
    echo '*'.gettype($html_file_name).'*';
    
    $filename = substr($html_file_name, 0, -4); 
    
    PHP:
    what does the echo say between the * *?
     
    stephan2307, Jun 10, 2010 IP
  3. tyrone

    tyrone Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #23
    it returns this
    *NULL*
     
    tyrone, Jun 10, 2010 IP
  4. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #24
    ok that really confuses me. You are using some form of templating system. Have you written it yourself ?
     
    stephan2307, Jun 10, 2010 IP
  5. tyrone

    tyrone Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #25
    no I haven't written it myself
     
    tyrone, Jun 10, 2010 IP
  6. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #26
    OK What is it called? is it open source? I wonder if there is some data cleaning going on that messes this up.
     
    stephan2307, Jun 10, 2010 IP