Results 1 to 3 of 3

Thread: Why doesn't this work now?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Why doesn't this work now?

    Accessing a variable like "<?=$s?>" worked before i reinstalled php/apache,

    PHP Code:
    <?php

    $s 
    $_COOKIE["tracker"];

    ?>

    HTML Code:
    <script>
    
    var x = "test" +  "<?=$s?>" +  "test"
    
    </script>

    just outputs

    test<?=$s?>test

    $s is valid as if i do an echo $s i get a result.

    I think it could be a configuration thing.

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Why doesn't this work now?

    Last edited by penagate; Mar 25th, 2006 at 08:53 PM. Reason: blasted tags

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: Why doesn't this work now?

    I don't recommend using short tags, as they can get mixed up with Xml declarations and other scripting languages and means any code you wirte willl be dependant on that setting being turned on.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

Posting Permissions

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



Click Here to Expand Forum to Full Width