LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-16-2004, 07:23 AM   #1
rioguia
Member
 
Registered: Jun 2002
Posts: 411

Rep: Reputation: 30
removing php font tags for cut and paste of script?


i am trying to cut and paste a php script that has been posted in an html page. the author of the script helpfully reminds me "If you copy'n'paste the code from this page, please remember to remove the font tag!" i guess that means that he had to do something to the PHP so that it would display like a text instead of working like a script. can someone tell / show me what I need to do to make the script work?

Quote:
#CMSimple $t=array(array("bp_cmsimple.png","http://www.cmsimple.dk"),array("cms_powered.png","http://www.cmsimple.dk/demo/"),array("cmsimple80x20.png","http://www.cmsimple.dk/forum"));$i=rand(0,count($t)-1);$output=preg_replace("/".chr(35)."CMSimple.*".chr(35)."/",chr(60).'a href="'.$t[$i][1].'"'.chr(62).chr(60).'img src="./images/'.$t[$i][0].'"'.chr(62).chr(60).'/a'.chr(62),$c[$s]);#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cut & Paste Rick069 Linux - General 1 04-15-2005 04:58 PM
please help with cut and paste into .c file henry_huckem Programming 7 01-28-2005 05:37 AM
How do you cut and paste from aterm? patpawlowski Linux - Software 3 02-20-2004 10:16 PM
cut and paste. argh! JustinHoMi Linux - General 7 11-12-2001 09:01 PM
cut and paste c0c0deuz Linux - Newbie 6 11-01-2001 12:38 PM


All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration