PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old September 28th, 2002, 08:26 PM
JeT JeT is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 28 JeT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to JeT
PHP Tutorial Making.

I want to make some basic tutorials and use color using the highlight_string(); command.... but when I do that I get my variables turned into blanks. How can I show the code properly?

Also why is it when I do it that way...I get this 1 right after that command when I run it in my browser.

Reply With Quote
  #2  
Old September 28th, 2002, 09:28 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: PHP Tutorial Making.

Hi,
If you want to achieve something like this:
http://www.innovative-webdesign.co.uk/lukus/phpstuff/highlight3.php

This is the code:
-----
<?php

echo "welcome, this is the script ur gonna use:";
echo "<hr>";

$string = '
<?php
if($myName == 'Lukus')
$myEmail = 'blahblahblaha';
elseif($myName == 'Dave')
$myEmail = 'b;ahbahashdasd';

/*
Commentasasdasda asd asdasdasd
*/
?>
';

ob_start();
highlight_string($string);
$output = ob_get_contents();
ob_end_clean();

echo $output;
?>

Reply With Quote
  #3  
Old September 28th, 2002, 09:44 PM
JeT JeT is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 28 JeT User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via AIM to JeT
RE: PHP Tutorial Making.

AHHHH!!!!

THANK-YOU! I was using " when it shoulda been '!!

THANKS. I am extremely happy if you cant tell.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > PHP Tutorial Making.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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 not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT