Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Displaying Html Code On PHP Generated Page


I am trying to create a link page in my php application. this is a page that will display a block of html code that a visitor can copy and paste into their web site to create a link back to mine. My PHP page has a line in it like this:

define('TEXT_INFORMATION', '<html page code is here>');

I have added the html code to create the page as noted above. the page contains a same of the banner image file and the html code that goes alon with it. My problem is that I haven't been able to "quote" the html code so that ir will not be executed.

every time I try to run the application from my web server my page will display two copies of the banner iimage not on banner image and text block like it should. Any suggestions?




View Complete Forum Thread with Replies

Related Forum Messages:
Inserting PHP Code Into HTML Generated By A CGI/PERL Script
Is there a way to have PHP code included into HTML generated by a CGI/PERL script? The problem is that the CGI-generated HTML can not be interpreted/parsed by PHP. Unless you know how.

View Replies !
Embed Php Generated Html In Another Html Page
I am trying to include some php generated html in a page that is just a standard html file, NOT a php file. I have seen other html pages do this by including an src to the cgi script in script tags, like this:

<script src="http://someurl.com/somescript.cgi"></script>

the html page loads and the script is executed and the returned html is displayed in the calling page. So, I tried this:

<script src="http://someurl.com/somescript.php"></script>

It doesnt work!!

View Replies !
Formated Email Displaying HTML Code
I'm sending formatted emails that normally work fine, using the following header:

MIME-Version: 1.0

Content-type: text/html; charset=iso-8859-1

From: John Cook <jfoc@sev.com.au>


However, one person I send it to (unfortunately, the client I'm actually designing this email for) sees it as HTML code, no formatting. She does use MailMarshal, an email content filter. And the header in the returned email contained these lines:

X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - elaine.networkeleven.net
X-AntiAbuse: Original Domain - hartleyfamilylaw.com.au
X-AntiAbuse: Originator/Caller UID/GID - [99 99] / [0 0]
X-AntiAbuse: Sender Address Domain - elaine.networkeleven.net

My question - would an email filter block HTML formatting? Should I do my header differently?

View Replies !
Email Contatins Html Source Code Instead Of Displaying It In Web Format.
I created a couple forms for my site, I then purchased the proper program to make my forms work. When I submit the form, I recieve the email, only problem is that the email contatins html source code instead of displaying it in web format.

Also the attachments are not being sent correctly, all the attachments appear as thousands of text characters within the body of the email. Almost like they are not being decoded. I checked and rechecked the form and my php program but they look fine, Am I missing something? I am not getting a lot of feedback from the person I bought the program from as of yet.

View Replies !
Format Source Code For Displaying On A Web Page
Is there a good function or plugin out there to format my source code examples?  I'm writing an article for a web page and want a very simple source code formatter.  Eg: code in black, comments in red, quoted items blue, key words green, class names bolded.

View Replies !
How To Get HTML Code Of Another Page
Can someone direct me to a code that will go to another page and retrieve the html source for parsing within a php script?

View Replies !
HTML Editing Of .php Code Page ?
I run a few web pages that contains php code that was written for me
by someone else. By reading his original code I have leaned a little
and have made the occasional change. I would like now to add some
basic html to the page and prefer to use HTML editing software to
accomplish the task. I have run it to problems however. If I use
Mozilla HTMl editor in WYSWYG mode , any changes I make do not work.
After I upload to my server, all I see is a web page with mostly the
raw php code. I tried Page Breeze HTML editor and it will not load
.php files in to its WYSWYG editor.

So, any changes I make have to be done in raw source code mode, a
rather laborious task for this inexperienced HTML person. Is there
anything that would made the task of adding HTML to a php page ,
easier ? I'm not attempting to add anything in to the main body of
php code, just mainly looking to add some html tables with images
preceding the start of php scripts, or after php scripts.

View Replies !
Parsing PHP Code In An HTML Page!
I am trying to run PHP code from an HTML file. In my HTML file I have the following code:

<?php include("<counter/counter.php");?>

Now I have read several threads here on Webmaster World, and I have concluded that I need to create a ".htaccess" file, and place the following code in it:

AddType application/x-httpd-php .php .htm .html

But, once I have done this, every time I visit a page on my site, I get the Open/Save this file dialog. It seems like the server is telling my browser, to open all HTML files with the external application called "application/x-httpd-php". Code:

View Replies !
Dynamic Page HTML Code Question
I'm gonna have all my pages load up a dynamic header and footer, depending on what variable I call up.

So at the beginning of my code it will call for a banner, this banner will be set as a variable in a seperate page that i'll call up.

Now i'm wondering, can the page I call up (with a list of variables) have HTML code in it, like this:

View Replies !
Php Code Embedded Inside Html Page Not Working.
How do I make or workaround in my Apache server to parse *.html files
for
<?php ?> code embedded in it?

Currently php recognises <?php ?> tag only if the file has a *.php
extension. Any php code inside *.html or *.htm is ignored.

Since I dont have admin access to the server or admin person, changing
the php configuration is out of choice. Now I have to go thru echo
and print statemnets to get it work. But it looks very cumbersome and
prone to errors.

View Replies !
When A Search Engine Spiders A Page Does It Read The Raw Code Or The Parsed Html?
When a search engine spiders a page does it read the raw code or the parsed html? I ask as I want to confirm if any text retrieved from a database is 'read' not the php code that gets the data.

View Replies !
Source Code Generated - But Still Blank Screen
This is a very odd problem I've run into and I currently have no idea what to do about it despite having looked over the code dozens of times.

I run an RPG online that, among other things, has a character creation system. Without going into any details of the system, I'm trying to add a feature that allows a member to change a skill of the character and reset the skill level of the new skill.

The function of the page may or may not be relevant. The code of the file first checks to see if username and password of the member are set. If they have been set, it checks the mysql database table for that combination. If it finds a record matching both, it generates the first page of the feature (giving a form in which to select skill to change and the new skill). If it doesn't find the record, it generates a page to display a typical "Login Incorrect" error page.

For testing purposes, I simply visit the page (passing username & password in through the URL) and it brings up a blank screen without any warnings or error messages. Upon viewing source, I see that it generated the "exact" html code in full that I wanted it to, but none of it is being displayed in the browser.

View Replies !
Dreamweaver Generated Code To Delete Record
I use the dreamweaver generated code to delete a record, how would i add some code to it to delete the files (images) stored in my../images folder, that are linked to the record being deleted, there field names are photo1, photo2, ect..... and there image names are stored in the database Code:

View Replies !
Audio CAPTCHA - Listen To The Generated Code
I write here because I wasn't sure where else to write... Anyways, I made an Audio CAPTCHA script that might be interesting to some of you. This script makes your visiters listen to a generated audiofile (mp3) to get access to the code. For a working demo and to download the script, go here ....

View Replies !
Code For Save Automatically Generated Barcode
We are generating barcode automatically through code. Now we want to give option for save the barcode for user. Now, we are unable to write a code for saving this barcode.

View Replies !
Using Php Generated Pictures With HTML?
I am able to create images with the use of the GDLIB.
but I am not able to use these images together with HTML. I always get the
message "headers are already sent.

View Replies !
Dynamically Generated HTML
I am trying to fit dynamically generated HTML into a variable so I can mail it out to a recepient. Now - the catch is that the dynamic generated HTML contains nexted regions which mace some heavy duty use of "if" and "while" statements. Here is a code snippet example:

$msgbody = "<a id="top"></a>
<table width="100%" align="center">
<tr><td><span class="style3">$mailinga[analysis]</span></td></tr></table>
<br />"
----> this is where the error occurs - it says unexpected T_IF <----
if I set a semicolon after the quotes above it will not include the stuff below, and I tried other combinations of symbols and googled the issue but no go - please help.
---->:(
if($asnc > 0)
................

View Replies !
Php File As String Generated To Html
I have a page going on a local server but the pages are going to be hosted on another server, which doesn't support php and MySQL. So basicly have to generate the php files into html files. The pages on the localserver are all based on a template page Main.php?Cat=Home

So this is what I'm trying to do. either...open the php template pages in another file then write them as html or...export the php template as html when viewed.So far all I got to see is resource id # 1 Just a little push on the file handling as a string would be much appriciated.

View Replies !
Special Characters Generated Html
$input3->setAttribute("value","<?php print $_SERVER['REQUEST_URI']; ?>");

<input ... value="&lt;?php print $_SERVER['REQUEST_URI']; ?&gt;">

I just don't want that $lt and $gt appear on the generated html, I want my <?php and ?> back

View Replies !
PHP System To Allow User-generated HTML Profile Pages...
Has anyone created or modified an existing codebase to allow users the option to create personal pages as part of their login profile? I'd love to offers users the potential to upload single HTML pages ++ images for their profile... I suppose this would require:

1. A form to accept the HTML page + images and other content
2. A php script to parse the HTML and remove any headers, and to add site headers
3. The same script to parse out any malicious php or java code
4. ... and to store everything in a database.

Has anyone done this, or have suggestions about how to do it? Are there any codebases out there I should check out?

View Replies !
Mail A Php Generated Page
I ask if it's possible to sent to email a php generated page as an html attachment or text file !?

I have searched on google, but I find only how to send mail from php not hot to send a page.

Any link, or doc is helpfull !

The story:
I have a long products list, from where I select some items what I want to send as a price list to some people.

View Replies !
Randomly Not Generated Whole Page
I bump into a weird problem. Randomly a page is not fully generated. When I reload a page most of the time it's OK but sometimes (without any apparent logic) only a part is generated and sometimes some PHP errors appear (about missing functions, unfisnished regexp etc.) as though some scripts were not properly parsed or loaded.

The application itself ran without any problems on other two servers. The server where the problem occurs is FreeBSD, PHP4 with AfterBurner accelerator. Unfortunately, I don't have access to the server, so I cannot check further settings and logs. Does anybody have an idea what can be going on?

View Replies !
Page Generated In XXX Seconds
I was reading a post here and toplay referred someone to the http://theomega.org/ for captcha info. I went to checkit out and noticed that on the bottom of the page it said:

Page Generated In: 0.1911 seconds.

View Replies !
Are Multiple GD Generated Images Possible On One Page?
I've been experimenting with generating PNG files via PHP and GD. All was going fine, until I tried to put more than one image on a single page.

<img src="draw.php?text=Picture1"><br>
<img src="draw.php?text=Picture2"><br>
<img src="draw.php?text=Picture3"><br>

The example above produced 3 images, but they all have 'Picture3' on them. Seems like theres only 1 temp storage area for the images?

View Replies !
Refreshing Page Dynamically Generated
We have a problem with a PHP page on our site, the page is dynamically generated from a database, when we refresh this page after we have updated the database it will cycle though and refresh itself about 8 or 9 times before displaying the page, at first i thought it was the browser, but it does it on a couple of other machines too.

View Replies !
Placing A Generated Image In A Web Page
The task is: Iam using a .php image generator ( namely Stewart Rosenberger's Dynamic Heading Generator) to convert a text string to a .png image.

The text is input by a simple HTML form on a web page using the GET method to call the script 'heading.php'. 'heading.php' outputs the required .png image back to the browser from (I presume) the function: Code:

View Replies !
Writing A PHP And Javascript Generated Page To A PHP Variable...
I have a form that posts data to a PHP mailer page I have created. When
it goes to the PHP mailer page it reads some of the data and modifies
the page accordingly using Javascript (hiding certain divs, etc...). My
goal, is to take all this data after it has been processed by
Javascript and send it through my PHP mailer as it is currently
formatted.

If it helps any, the track I am on right now involves encapsulating the
Javascript processed block in a div. I am then trying to take the
..innerHTML data from that div and store it in the PHP $message variable
for my mailer. This won't work because PHP is server side. So, I moved
on to generate some Javascript code (with PHP) that sends all that
messy HTML data that its processed through a URL variable to then be
read by PHP. This doesn't really accomplish what I want as it cuts off
about a quarter of the way through my data......

Any ideas?

One thing I thought of but don't know how to do or whether it's even
possible is using PHP to view the source of the current page and store
that as the HTML to be e-mailed. Or, is it possible to do something
similar to .innerHTML with PHP?

View Replies !
How To Print The Local Variables Used In A Generated Page
I am still a beginner of PHP, and while I found out the way to print
all the variables passed as a POST, I was wondering (for debugging
purposes) if there is a simple way to tell the PHP interpreter to print
out all the variables that have been used during that session, without
storing anything anywhere, and without buying a commercial tool.

View Replies !
Call A Separate .php Page That Is Automatically Generated From The Values Of The Xml Document.
I generated an xml file. I have an xslt to sort the xml file and look for certain words.

The user should be able to view the page and click on the url to a specific 'article' that the xml sheet generated. I want this url to call a separate .php page that is automatically generated from the values of the xml document. Is this possible? How do I do that? Code:

View Replies !
Adding Php Code Or To Include A Page With Php Code Into A .tpl Page
how would i do this, i am intergrating a phpbb forum system into my site!

View Replies !
Inserting Adsense Code - Html Program That Automatically Coverts All My Text Files To Html Webpages?
I've purchased a text to html program that automatically coverts all my text files to html webpages within a template, but the only problem is how do I insert my adsense code into all 250 pages? I've seen articles regarding PHP includes for page templates, but I'm not sure how this would work inserting my code.

View Replies !
PHP Code Not Displaying In IE 6
I'm a newbie to PHP and am have problems getting simple PHP page
(php_test_page.php) to display correctly. The page is:

<html>

<body>

<H1>Test Line 1</h1>

<?PHP echo '<H1>Test Line 2</h1>' ?>

</body>

</html>

Test Line 1 displays fine by not the PHP line. If I look at the source with
the browser (IE 6), the line is still there.

I'm not sure if the following is the problem. I might have two problems
here. However, my default web server is not running and I can't seem to
start it. The following is the scenario with XP Professional:

- Click Control Panel

- Click Performance and Maintenance

- Click Administrative Tools

- Double Click Computer Management

- Open Services and Applications

- Open Internet Information Services

- Open Web Sites

- The "Default Web Site" is has a red error sign is marked as
stopped. Clicking "Default Web Site" and click "Start" yield an error dialog
with the following message. "Unexpected error 0x8ffe2740 occurred."

View Replies !
Displaying Code
I was wondering how i would og about making a script that would change the colours for code like this site when you put something inside of the php tags example

echo "hello world";

View Replies !
Displaying Parts Of A Page While The Page Is Not Complete Yet
A script I'm writing outputs a HTML table with many rows. Each row is the result of a query which takes about one minute to perform. When I run the script in a browser, the page takes several minutes to load and then displays the entire table. Is it possible (using PHP) to display the table as it gets constructed, one row at a time?

View Replies !
Displaying PHP Source Code
What dictates that .phps files display source code?

I have two examples, one where it all works as expected and one where it doesn't .... and it's really confusing.

View Replies !
Displaying Table In Php Code
I have a PHP script that has a drop down to select a record, then it should display some text from a database and then display a table of information below it. But, the table is displaying at the top instead. Code:

View Replies !
IE 6 Is Not Displaying The Cookie Set In The Code
IE 6 is not displaying the cookie set in the code below but mozilla firefox is just working fine. I have changed the settings to allow all cookies in the internet options for IE6 but still its not working. When i view the files to view the cookie in the option i can see the page...what could be the problem with my IE? on other machines its opening without any problems. Its just my IE...

<?php
// echo "test ftp";
//phpinfo();
setcookie("testCookie","Testing again", time()+3600);
$tmpdata = $_COOKIE["testCookie"];

echo "Your data: $tmpdata";
?>

View Replies !
Scrips Not Running, Only Displaying Code
I installed Apache, mySql, and php. I go to my server folder and run one of the php scripts that is needed to install oscommerce. IDK whats going on but the brower (firefox) will only display the code and won't run the actually script.

View Replies !
Code For A Drop Down Box Displaying A Color
I'm trying to find a code for a drop down box displaying a color. It would show different colored bar, and their value would be the color code example: "#003366". The valu would then be $_post.

View Replies !
PHP Displaying Html
I have gotten quite a few small scripts to work so far but now that I'm trying bigger and bigger things I keep hitting a snag that I can't seem to find the answer to.

I will either use include() or simply write in the html code for the script to display, but all i get when the script runs is a blank white page. When i view the source of that page all it is is an html tag, head tags, and body tags with nothing between the opener and closer. I've tried everything i can think of to fix the problem and sometimes it pops up and sometimes it doesn't and I can't see the difference in my code that is making this happen.

View Replies !
Displaying Php In Html
I have a php search engine script, it works fine and gets results from a mysql database.

I was displaying the results in my html pages by way of server side parsing using php include. For some unknown reason after one year of faultless operation (I did not alter anything) it began to parse my results incorrectly. It would parse the wrong id number for data entries. For example it should have displayed id=3456, instead displayed id=17500 which did not exist.

I gave up trying to solve this problem and used an iframe to display the php search results. But I have been advised that many visitors could have disabled the display of iframes (iframes are being used to inject malware into visitors computers so more and more they will be blocked) into the browser.

Is there any other option to get my php script results to display in my html pages?, could I use javascript to display the results of my php script?

View Replies !
Not Displaying Html After Php
The html after the php is not displaying currently, any ideas? PHP Code:

<?php
include_once("../../private/supplierconfig.php");
checkLoggedIn("yes");
error_reporting (E_ALL);
echo "Welcome $username, ";
//Retrieve details from database to start

$id = $_SESSION['username'];
$query = "select image1, username from suppliers where username='$id'";

    //now we pass the query to the database
    $result=mysql_query($query, $link) or die("MySQL query $query failed.  Error if any: ".mysql_error());

    //get the first (and only) row from the result
...................

View Replies !
Java Script Code For Displaying Images In PHP?
I have this java script code that updates the "img src" tag of my images on the page...

<script Language="JavaScript">
function showupdate(photo){
document['bigPhoto'].src = photo;}
</script>

Now, is there any way to write this code in PHP (not in Java Script), since I want to save that "photo" variable for later use and manipulation... ???

View Replies !
Displaying Php Code On Website For Learning Purposes
I would lilke to display Php code on my website for learning purposes, without being interpreted by the web server. Just displayed. Highlighter would be better. How can I do it?

View Replies !
Displaying Data In Php - Like HTML?
How do I display data from MYSQL in PHP in an attractive and structured table(HTML) format? For example: I want my database to display all the reviews of a particular movie(like metacritic.com) like this: Code:

View Replies !
Displaying A HTML Table With PHP
I'm new to PHP and I'm trying to get my head around databases at the moment. So far I have a page that kinda takes the mickey and takes a few details from you, it then creates a cookie that can be removed later. It also prompts you to add the data you gave to a database.

All this works perfectly, but when it comes to displaying the results of the database, all I can show is the first entry in the table. Can someone please tell me how I'm supposed to see all of them?

I've read other articles but they don't make much sense to me.

BTW, the database details are as follows:

Database name: visualanteorg
Table name: people
Fields: id, name, shoe_size, job

As you will see if you choose to look at the pages, getting the information out is not a problem, it's just formatting it how I want it, so each entry appears under the other in the table.

View Replies !
Displaying Records Via PHP/HTML
I have currently devised a way to display up to 3,000 records via PHP/HTML by using pagination techniques that stuff an entire DB query resultset into a $_SESSION object to use within pagination.

Here's my question: How good will this work when we start dealing with more than 3,000 records? Like 5,000? 10,000? 10,000+? The $_SESSION object will obviously become too large to be manageable.

What do you guys advise I do to manage this in the foreseeable future? No rush on this of course for now.

View Replies !
Displaying DB In HTML Table
This may be incredibly simple, but I just can't seem to figure it out. Right now I have information from a database going into an HTML table, but not displaying the way I want it to.

The information is a name ("optGrpName") and a price ("optPriceDiff"). The variables are getting displayed vertically... name with price below, then the next name below that... etc... I want it to display horizontally... Names in cells running across the top row, and the prices in cells below their names. Code:

View Replies !
Displaying Text/html In Web POP Email
is it possible that message from web POP mail ( through sockets) appears as html (or text) if it is sent as html, not to appear like source file of the html document? I use web POP mail which is not mine and it displays without problem emails sent as text/plain but shows complete source with all tags if the email is sent as text/html, in other words, it´s useless and very hard to read for user.

View Replies !
Displaying Data In Html Table.
I wondered if anyone could offer some guidance, I trying to write a
php script to connect to a database, and display the records in a
table.

I found the code here in a php4 text, and when I run this directly
through the php intrupeter, the line Successfully connected is display
and 4 as the number of rows.

The database table we connect to, has three field username, firstname,
surname.

When I tried a while loop, to display the data in a table. No values
were displayed.

Could anyone possibly demonstrate how to display the username,
firstname, surname values in a basic table?

<?php
function db_connect(){
global $MYSQL_ERRNO, $MYSQL_ERROR;

$link_id = mysql_connect("localhost","user04", "password04");

if(!$link_id){
$MYSQL_ERROR = "Connection failed";
return 0;
}
else if(empty($dbname) && !mysql_select_db("database04")){
$MYSQL_ERROR = mysql_error();
return 0;
}
else return $link_id;
}

!$link_id = db_connect();
if(!$link_id) die(error_message('Error connecting'));

$result = mysql_query("SELECT * FROM users");
if(!$result) error_message('Error in selection');
else echo "Successfully connected. ";

$query_data = mysql_fetch_row($result);
$total_records = $query_data[0];

if(!$total_records) error_message('No records');
else echo "$total_records.";
?>

View Replies !
Displaying Variables In Html Form
Below i have a form which i want to be filled with variables sent from the last page. can anyone tell me why the variables are not showing - I think its something to do with the syntax of the php inside the html form Code:

View Replies !
Displaying A Html Form With Php Echo
I a have a form for users to enter details. Before the form is shown the user enters a number of values they need to enter.

So the amount the user enters first is the anount of rows the user is given to enter there details. To do this iv used a while loop and a $count variable.

My problem is with echoing the form. I must be doing it in a completly non standard way as allthough firefox displays it perfectely ie doesnt display it at all. Code:

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved