icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » Parse HTML correctly with PHP????

PHP, MySQL General PHP questions. Or go to our PHPsuexec Forum >>

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old August 1st, 2004, 12:31 PM   #1 (permalink)
Surpass Fan
Comfy Contributor
 
Jamie's Avatar
 
Joined in Oct 2003
Hosted on Dedicated
297 posts
Gave thanks: 0
Thanked 0 times
Parse HTML correctly with PHP????

OK, I have this html in my header:

Code:
<link rel="stylesheet" type="text/css" media="all" href="walkernetwork.com/themes/NicoFr38/style.css">
Now, I am trying to integrate something that uses the echo command:

PHP Code:
<?PHP echo("
I am trying to format it correctly but I keep getting this parse error.

Quote:
Parse error: parse error, unexpected T_STRING
I don't have a clue what I'm doing. I'm still so new to php that I'm pretty much lost. Can anyone show me the correct way to format it so it will work correctly?
__________________
Jme
++++++
Site: WalkerNetwork.com
My Dumb Blog
Server: Dedicated
IM: Visit my profile for more info.
Official Title: Queen of Run-On Sentences

[ONE] - The Campaign to Make Poverty History
Jamie is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 1st, 2004, 12:33 PM   #2 (permalink)
SurPerson
On a golden path...
 
TJ09's Avatar
 
Joined in Jul 2004
Lives in front of my laptop
Hosted on Sync
437 posts
Gave thanks: 0
Thanked 1 Time in 1 Post
PHP Code:
<?php echo "<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"walkernetwork.com/themes/NicoFr38/style.css\">"?>
You have to escape the double quotes with backslashes.
__________________
Me: TeeJay
Server: Sync (Statistics)
Site: technoized.com (Statistics)

chown -R us ./base

Last edited by TJ09; August 1st, 2004 at 12:34 PM.. Reason: Forgot [/php]
TJ09 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On