Solved

How to dynamicaly create Script as text

Posted on 2009-07-06
2
167 Views
Last Modified: 2012-05-07
I need to create a script as a text, and not be interpreted as a script by the php interpreter, how should I go about it?

It's a big block of scripts, including classes so how should I go about it?

I alway get a error since it is getting as if it was a script and not a text...

I probably am overlooking something ridiculously simple, but...
0
Comment
Question by:doRodrigo
2 Comments
 
LVL 12

Accepted Solution

by:
kevin_u earned 500 total points
ID: 24787305
Could it be as simple as this?

I'm not sure how you're presenting it or getting the script from.

<?

$a = '
asdfasdf
asdfa
sdfas
dfasdf
asdf
asdf
sadf
asdf
';

print $a;

?>

0
 

Author Closing Comment

by:doRodrigo
ID: 31600265
Yep kevin, I told in the question that it should be something simple, its just that I'm working non stop since yesterday and not thinking straight anymore. Thanks...
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

Deprecated and Headed for the Dustbin By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems.  This article discusses one of those, called register_globals.  It is a thing you do not want.  …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now