Solved

How to dynamicaly create Script as text

Posted on 2009-07-06
2
206 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 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

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

688 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