How to dynamicaly create Script as text

Posted on 2009-07-06
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...
Question by:doRodrigo
LVL 12

Accepted Solution

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 = '

print $a;



Author Closing Comment

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...

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
is this a cms? 8 58
How to use embargo Date/time in php 29 35
How to properly use session_regenerate_id when user logs in 7 37
php simple error message 4 22
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 …
This article discusses how to create an extensible mechanism for linked drop downs.
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 look for a specific file type in a local or remote server directory using PHP.

808 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