[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

How to dynamicaly create Script as text

Posted on 2009-07-06
2
Medium Priority
?
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
kevin_u earned 2000 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to count occurrences of each item in an array.
Suggested Courses

656 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