Solved

How to dynamicaly create Script as text

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
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…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

895 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

16 Experts available now in Live!

Get 1:1 Help Now