#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    50
    Rep Power
    15
    I have installed PHP4.0.1pl2 alongwith Apache13.12. I am a newbie with php and apache.
    When i gave
    <?php
    phpinfo();
    ?>
    it worked fine and gave the information of php.

    I tried escape sequence characters...like n t and these didnt work.
    <?php
    echo("Hi theren Whats tyour name"); #The n and t doesnt work
    ?>
    It just displays the text withing "" but does not show n or t.
    Also if i try something like this:
    <?php
    echo("Duke's my name"); #it shows me Duke's my name, i dont even have to Duke's
    ?>
    I also tried this:
    <% echo("ASP syntax"); #This doesnt work too.
    %>

    Does anyone know whats wrong. Also normal echo() and print() statements work.

    duke.
  2. #2
  3. No Profile Picture
    Apprentice Deity
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Jul 1999
    Location
    Niagara Falls (On the wrong side of the gorge)
    Posts
    3,237
    Rep Power
    19
    n has no meaning in html, nor does t

    Nor do you have to escape ' or " unless they are contained within another set of the same character in a tag.

    print "<a href="somewhere.php">click here</a>";

    The reason you didn't have to escape the ' is because it was contained in "

    ASP style tags are not always supported. They can be turned off in the php.ini file.

Similar Threads

  1. php script won't work inside "cgi-local" directory
    By Volitics in forum PHP Development
    Replies: 5
    Last Post: April 26th, 2004, 10:50 PM
  2. illegal escape characters
    By raynihnio in forum Java Help
    Replies: 1
    Last Post: February 12th, 2004, 09:44 AM
  3. Substituting characters by ASCII number...
    By robadob in forum Perl Programming
    Replies: 2
    Last Post: February 5th, 2004, 12:54 PM
  4. I'll pay someone $150 to do some PHP work for me!
    By Noah Neiman in forum Hire A Programmer
    Replies: 16
    Last Post: January 23rd, 2004, 03:15 AM
  5. Escape characters?
    By rampguy in forum PHP Development
    Replies: 1
    Last Post: January 18th, 2004, 11:13 PM

IMN logo majestic logo threadwatch logo seochat tools logo