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.





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 Complete Forum Thread with Replies

Related Forum Messages:
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 !
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 !
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 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 !
Can PHP Parsing Xml Code ?
I am looking for a programming script to parse a xml file. Can PHP do it. The xml file is from other web site and i need to parse it into my html page.

View Replies !
BB Code Parsing
how would I go about coding a vBulletin style BBcode parsing engine?

eg. to translate [ b] something [ /b] into <b>something</b> etc

I know i need todo regular expression searches on the strings, however im a reg-exp newb and really need some guidance. Alternatively, are there any free premade classes etc I could us?

View Replies !
PHP Not Parsing This Code?
I'm trying to populate an array (with some strange characters). The problem I'm having is the page will ether come up blank, but show the code in the "page source". Or, some or all of the source is sent directly to the browser, like PHP didn't even parse it. I've tried this on a few different servers and get similar, though slightly different results. Here are some examples of what I'm trying to store: Code:

View Replies !
Help My Slow Parsing Code!
Here's my situation...I've been learning to write PHP for awhile and have been trying to rewrite my web site from plain old static pages to PHP versions. I've been learning based on what I want to do, put my links and articles in databases and allow comments and ratings.

I have a test page here:
URL

I've managed to write the PHP code to do just about everything I wanted, but it takes about 3+ seconds for the page to start to load (and it didn't when it was a static page). I know that this is because of my badly formed PHP no doubt. The routines do what I want, but there HAS to be a much more efficient way to get it done.

I'm going to post the code (stipped of font tags and error catching statements). Please advise the easiest way to streamline this code (and or SQL statements) in the best interest of the server processing time (any help would be great!):

<?php
//Start of routine for animation links
$usr = "user";
$pwd = "pw";
$db = "db";
$host = "host";

$cid = mysql_connect($host,$usr,$pwd);
?>

<?php
//We want the Animated Gif category
$category = "1";

$SQL = " SELECT * FROM links_temp";
$SQL = $SQL . " WHERE category = '$category'";
$retid = mysql_db_query($db, $SQL, $cid);

//Throw the links in an array - html table loop
print ("<center><table cellpadding=2 cellspacing=0 width=100% border=1>
");
while ($row = mysql_fetch_array($retid)) {
$siteurl = $row["siteurl"];
$sitename = $row["sitename"];
$description = $row["description"];

//cocatenate together anigif_ with each item id for unique rating value
$id = "anigif_";
$id = $id . $row["id"];

print ("<tr><td width=100% valign=top>");

//Lets start the form here for the voting to elimate a line break later
print ("<form method="POST" action="/test/rating4.php" onsubmit="return genwin()" target="newwin">
");
print ("<A HREF='$siteurl' target=_blank>$sitename</A>");

//While in the while loop lets start another db connection to get item ratings
$usr3 = "user";
$pwd3 = "pw";
$db3 = "db";
$host3 = "host";

$cid3 = mysql_connect($host3,$usr3,$pwd3);

$SQL3 = " SELECT * FROM ratings_temp WHERE item = "$id"";

$result3 = mysql_db_query($db3,"$SQL3",$cid3);
$num_rows = mysql_num_rows( $result3 );
if ($num_rows==0) { echo ("No Votes yet"); }
else {
print " $num_rows Votes, ";
$SQL4 = "SELECT AVG(value) AS avgRating FROM ratings_temp WHERE item = "$id"";
$result4 = mysql_db_query($db3,"$SQL4",$cid3);

print "Rating: " . mysql_result($result4,0) . "<br>";
}
mysql_close($cid3);
//end of the db connection for ratings

print ("$description<br>
");

print ("Vote for this Site!
");
print (" <select name="rating" size="1">
");
print (" <option value="5" selected>5 - Superb
");
print (" <option value="4">4 - Tasty
");
print (" <option value="3">3 - Average
");
print (" <option value="2">2 - Bland
");
print (" <option value="1">1 - Rotten
");
print (" </select>
");
print (" <input type="hidden" name="item_id" value="$id">
");
print (" <input type="submit" value="Vote">
");
print ("</form>
");
print ("</td></tr>
");
}
//end of the array subroutine making table rows

print("</table></center>");
//end of the table after the array ends
?>

View Replies !
Parsing Vbulletin Code
I've been coding a section where users can post a tutorial and have it show up. I've got the posting down, and I've got the list of tutorials down. I did it by making an invisible forum that it posts to.

What I still have to do is use AJAX to make a post clicked on the list show up in the main area, and I have to make it grab the most recent post out of the database and display it. 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 !
Parsing PHP Code In MySQL Results Set?
I have a PHP script that pulls content from an MySQL database and returns a result set.

Is there a way I can put PHP code within a field in the database and have that code parsed as PHP code on returning a results set? If possible, I want just one field of the database parsed for PHP code. The results set is return as a straight result, not within a loop. Just inserting the <? PHP code thus ?> returns that as sources code not parsed.

View Replies !
Parsing String With Embedded PHP Code...
On my webserver right now, I have a folder of webpages with embedded PHP coding. Because the dynamic content changes very infrequently, I've written a script which generates a "static cache" of HTML pages from the PHP pages. It works by automatically looping through all PHP pages in the folder. For each, it reads the contents of the PHP file into a variable, then creates a new HTML page with the same name and writes the contents of the variable to it. After the process is complete, the cache of HTML files gets uploaded to the website for public viewing.

However, if the script reads the contents of the PHP pages through the local filesystem, the temporary variable (and thus the resulting static .html page) will have PHP code within it, which is obviously no good.

Therefore, at the moment, the script reads the contents of the PHP pages by opening an http connection to where they reside on the public webserver... this makes the contents of the temporary variable equivalent to the HTML that would be outputted when any user accessed the PHP page through the WWW, which is exactly what I want.

However... my problem is that the http connections are much slower than reading through the local filesystem, and moreover, I don't necessarily want the PHP pages to be publicly accessible through a webserver, which is currently required for the script to work. Is there any way that I can take a PHP string that has embedded PHP code and tell PHP to "parse the PHP out of it"?

View Replies !
XML Parsing - Newlines In The Code Disappaers
I have been trying to wrap my head arouns this, but I can't seem to get it to
work the way I want it to. Could someone helpful please tell me how I get this:

<function>
<name>array_push</name>
<examples>
<example>
<name>A way to do it</name>
<code>
$array = array("foo", "bar")
$array = array_push($array, "goo")
</code>
</example>
</examples>
</function>

To this:

array (
name -> array_push
examples -> array(
example -> array(
name -> A way to do it
code -> $array = array("foo", "bar")
$array = array_push($array, "goo")
)
)
)

My problems so far has been traversing the xml in a good way and:

1. After parsing, I am left with the code stripped of variables
'$array = array("foo", "bar")' becomes ' = array("foo", "bar")'

2. Newlines in the code disappaers, how do I make them stay?

Anyone feeling overly helpful and could give me an example to make the above
xml into the above array.

View Replies !
How To Make BBC Which Will Disable Any Code Parsing
how to make BBC which will disable any code parsing (BBCode, HTML - to display both without parsing it) and tell me, which font to use with it?

View Replies !
Parsing HTML
I'm grabbing a basic HTML page from a remote server. I want to rip out everything upto and including the <body> tag and everything after and including the </body> tag.

Then I'll just plug what's left over into a table and call it good. I searched the forum for an hour and didn't find a quick answer.

I realize this is a security risk but my client will be running both sites, the one with the data and the one pulling it, so I'm not worried.

View Replies !
HTML Parsing
How to parse html and extract some value from it like if i have <module id=27> in the middle of my html and i want to get the module id and replace this string with another value...

View Replies !
Parsing Html As Php
As previously advised in this forum I'm using this in my .htaccess file: AddType application/x-httpd-php .php .htm .html I only have my index page with an .htm file suffix - all the other pages have a .php file suffix. Is this the best way to have the index page parsed as php? I believe there's an issue regarding server resources in doing it this way. And is there any possibility of this doing any harm to the index page being crawled by search engine spiders.

View Replies !
PHP Code Parsing From Database Only Works Selectively
I have a script for my templating system which grabs PHP code from a mySQL database, and parses it. Here it is: PHP Code:

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 !
XML Parsing And HTML Comments
I find myaelf writing a template system (yeah, I know - but there is a
reason I'm not using an existing one). So I'm trying to parse xhtml using
the builtin expat parser. Mostly it works fine, however it ignores anything
that looks like an HTML comment. This is a bit of a problem as I see a lot
of code written like:

<script type='text/javascript>
<!--
alert("hello world');
// -->
</script>
<style type="text/css">
<!--
..style1 {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
}
-->
</style>

Now obviously the browser is seeing the stuff inside '<!--' ...'-->' but
expat doesn't. I tried adding a non-parsed handler, but still can't see it.

View Replies !
Parsing .html Pages
I have some pages with .html extensions that need to be parsed as PHP because they contain some php code. I've put the following in my .htaccess file in my root web directory (because that's where the .html pages are): Code:

View Replies !
Parsing Html Files
I have a new server and the company doesn't seem to understand what I need. I need to run php code on a html page. I've created an htaccess file and tried each of the following directives inside of it...

AddType application/x-httpd-php htm html

AddHandler server-parsed .html .htm

AddType x-mapp-php4 .html .htm

(they were tried one at a time)

The script output still does not appear. Is there a feature, funtion or option that would prevent the htaccess file from not working? Is there something in Apache that needs to be configured?

I know this possible because it worked with my old hosting company several times. I don't know how and they don't offer support for servers other than their own. I need the page extention to be .html not .php so changing the pages to .php is a non-option. What needs to happen in order to parse html files as php?

View Replies !
HTML Ouput Gets Scrambled While Parsing
On a page I want to display rows of recordset, coming from a mysql database. The problem is that somewhere halfway, PHP seems to generate messed up HTML code for no reason at all.
e.g:
The first 54 records display correct syntax. Code bellow is an examlpe of a row ouput for record 54 Code:


View Replies !
Parsing Out Links In HTML Docs
A question from a PHP newby who is disorientated by the overwhelming
amount of existing example scripts.

-- What is the best/simplest way to parse out the links in a a HTML
document and putting them in an array? --

View Replies !
Parsing Php In Html Files Using Xampp
How do you run php in .html files on xampp? Adding AddType application/x-httpd-php .php .html to the httpd.conf file causes apache to quit.

View Replies !
Parsing .html Files (tried Everything But Can't Get It To Work)
i'm running apache 2.0. here's my php.conf:

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php .php4 .php3 .phtml .html
DirectoryIndex index.php index.php3

whenever i try to open an html page, the browser keeps trying to
download the file.

View Replies !
Parsing Text/html File
I need help parsing the name and # out of this html file, *note this is just one instance of a few hundred, all are in the same pattern, starting with tip1 = 'name<br>number'

tip1 = 'Nate Abeare<br>(810) 625-2374'

This is what I have, exciting

<?php

$url = "http://example.com/prospectlist.html";
..........

View Replies !
Html Files Sent To The Php Parser For Parsing
I want all my html files sent to the php parser for parsing. I tried to put up an .htaccess file with just this in it:

AddType application/x-php .htm
Action application/x-php /usr/bin/php
AddType application/x-php .html
Action application/x-php /usr/bin/php.

View Replies !
RSS To HTML Parsing Program With Formatting
I have been looking for a RSS parser to display RSS feeds within a web
page. The solutions I have found allow the display for the list to be
set, but do not include the formatting used in the source article, eg
paragraphs.

Is it possible to display an RSS feed article with the same formatting
as the source? Is there a solution to do this?

View Replies !
Parsing Strings With HTML Tags
Basically I have some articles written with a WYSIWYG editor that are stored in the DB with the HTML tags.

I successfully call the DB to get my text, and I want to truncate the length of the text to a certain point for showing preview articles.

My problem is that simply using substr() can sometimes chop off the string in the middle of an HTML tag leaving a nasty mess. Does anyone have any suggestions on how to parse the string correctly to avoid truncating in the middle of an HTML tag?

View Replies !
Parsing HTML Files On Local Computer
I would like to be able to open and read HTML files that are on my local (client) computer and then parse them to extract some specific information they contain.

I've been looking here and reading my PHP books, but it appears to me that PHP only opens files on the server or URLs. It think that makes sense to me. Is there an alternative?

View Replies !
.htaccess - Parsing A PHP File With A .html Extension?
Can I use .htaccess to parse a PHP file with a standard .html extension?? This doesn't seem to work:

AddType text/html .html
AddHandler server-parsed .html

I'm using a remote host, so modifying the server's .conf file isn't really an option nor is modifying the php.ini file.

View Replies !
Parsing String Of HTML Attributes Into Key/value Pairs?
I'm working on a project that requires a certain "parsing" functionality... Before I set down to coding this myself, I thought I'd ask in the community if anyone already has available a PHP function or routine that can parse a string of HTML-style attributes into key/value pairs?

For example, an input string (attribute list) might be something like this, as would be applied to an INPUT tag: type="text" name=firstname size=10 maxlength="20"

And the returned result of parsing this string would be something similar to the following array: PHP Code:

View Replies !
Html Parsing With Eregi Regex Questions
I am trying to parse just a couple html lines with php

// open url
$fp = fopen("http://search.nndb.com/search/nndb.cgi?type=unspecified&query=Ted+Radcliffe", "r");
$content = fread($fp, 3000);
fclose($fp);
$content = str_replace(""", "", $content);
// echo http page to screen
echo $content;

// only get info between <tt> and </tt> tags
eregi( '<tt>(.*?)</tt>', $content, $regs );
echo "<br /><br />Died:&nbsp;" . $regs[0] . "<br />";


I am pretty sure I am on the right track, but I keep getting the REG_BADRPT warning, but I do not get the output I expect. Does anyone see what I keep missing? I have tried escaping () in any combination, but that doesn't seem to work.

View Replies !
Parsing A RSS Feed And Generating A Static .html File With PHP
I have this small project for my site, if you can't point me to some resources or help me out I'll thank you very much.

The homepage of my site points to the different services I offer (chats, forums, my blog and a podcast for spanish speakers). I want to make this homepage more dynamic, but since the homepage gets more than 10000 daily unique visitors I don't wanna make it a .php file ('cause my hosting provider might get mad with the server's resources).

So what I need is to program a php script that I would run on-demand (probably 1 or 2 times a day) and that would make this:

- Parse the RSS feed of my blogs and the forums
- Generate a static .html file (the homepage) with the normal content plus the headlines from the feeds.

That way everytime I update my blogs I could run that php script to re-generate the homepage, with the updated info from the feeds.

Any help, suggestions, comments, links on how to do this will be very helpful. I'm not very experienced with PHP (I come from J2EE development), but I'm armed with 2 PHP books as a reference.

View Replies !
Parsing An HTML Form That Uses An Radio Buttons With An Array
I am having problems parsing an HTML form that uses an radio buttons with an array for name:

<input type = 'radio' name = '".$link_results['name']."' value = &#391;'>

The issue seems to arise when $link_results['name'] has spaces in it. I have tried htmlsepecialchars and htmlentities to no avail. When I reference $_POST[$link_results['name']] on the next page I do get the value of &#391;' on variables that do not contain spaces in the name. On variables that do contain spaces I get no result.

View Replies !
Parsing Data From Page
Im trying to parse a short amount of text off of  a web page and Im having some difficulties.

Ive read up on screen scraping and parsing and what not and found some script that seemed to fit what I was wanting to do, and have had some success messing with it, but at the same time havent figured out how to do what I want. Looking at the page source for the page there is a string of text as follows: Code:

View Replies !
Parsing Data Off A Page?
i was making a dynamic signature application and im wondering how would you take the data off of another page and split it up? so far i have Code:

View Replies !
Parsing Remote Page And Outputting
Here is a general idea of what I want to do:

HTML Form is submitted by remote user using POST methodVariables are received by 'search.php'Script within 'search.php' will POST same variables to a remote (3rd party) website Script downloads the resulting HTML pageScript parses HTML page and displays relevant data (ie. a specific table)

I'm stuck at the part with the -- how would I get PHP to POST the user's vars to get the page returned? I know how to do this if I were using a GET method, but this is not an option.

View Replies !
Page Not Parsing New Paragraph Correctly?
i have a simple WCMS im writing and ive got the content editor working which is a simple text box but im having problems with the content being parsed on the webpage itself when the content.

i entered in the editor is saved to the database it saves everythign i type like when i create a new paragraph yet when it parsed on the front display page break between the paragraphs is gone yet its there in the database?

View Replies !
Parsing Info From Other Page (method POST)
- i want to get some info from the page XYZ to my page. XYZ page has a FORM where you can select DAY, MONTH, YEAR and you get the info about a day you selected.

- now, if i want to grab the info from let's say 20. august 2002 my url will look like this: http://XYZ/file.php?day=20&month=8&year=2002.

- THE PROBLEM is, their form has the POST method, which means, if i want to direct link the 20 august, it will bring me to the FORM page and not to DATE page.

is there any ways to bypass this?? I REALLY NEED THAT INFO?!

View Replies !
Page Continues Parsing AFTER A Header() Redirect?
i was just misunderstanding the way the header() redirect works. Is it true that PHP code continues to parse beyond a line like

header('Location: http://www.someurl.com');

EXAMPLE: Would CODE PORTION 2 still execute? Because it is for me...lol

CODE PORTION 1
CODE PORTION 1
CODE PORTION 1
header('Location: http://www.someurl.com');
CODE PORTION 2
CODE PORTION 2
CODE PORTION 2

View Replies !
<link:page.html,xxx> => <a Href="page.html?id=xxx">
I want to transform this code <link:page.html,xxx> to

<a href="page.html?id=xxx"> dynamically.

I tried out alot of preg_replace stuff, but I didn't get to manage it.

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 !
.html' Page Be Replaced By '.html.php'
Can a '.html' page be replaced by '.html.php' page via RewriteRule? To clarify, I'm using a software that formats the look of the site using .html pages. I'd like to add PHP code to that page but of course, it is not of the right page type.

What I was wondering is Could I create a duplicate of that '.html' page, rename it to .g. '.html.php' and make the revisions and then just create a RewriteRule that redirects the '.html' page to the '.html.php' without generating an error?

The alternative and undesired way of doing it would be to rename the original page to '.html.php' and find and revise ALL of the routines that call that page. That would create a revision nightmare especially upon upgrading the software.

View Replies !
Page Redirection - Link Index.html Page To A .php Pag
I have an index.html page with a link to a .php page This is the complete code of the .php page Code:

View Replies !
Apache2/PHP4 Compile/startup Fine But No PHP Parsing (blank Page For Phpinfo)
I consider myself well versed with Apache 1.3 and PHP4 - I found
drupal and wanted to try it out - I had problems getting it working
with Apache2/PHP5/MySQL5 so I downgraded... Note: I did have Apache2/
PHP5 working... I confirmed this via phpinfo output... But now that I
removed my original directory containing Apache/PHP, and recompiled
from scratch, I get everything to startup and static html is displayd,
but phpinfo produces no errors, but no output (literally zero output).

Where am i going wrong?

This is my environment (forget mysql for the moment as I just want
Apache/PHP working first)
Apache 2.0.59
PHP 4.4.5

I compile the above using the following:

# cd apache
# ./configure --prefix=/opt/apache --enable-so --enable-vhost-alias
# make
# make install
# cd ../php
# ./configure --with-apxs2=/opt/apachebin/apxs --with-mysql
# make
# make install

And i have the following in my Apache httpd.conf file

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

Note - I see in the php.chm document it asks i place the following
below the ClearModuleList
AddModule mod_php4.c

I don't have a ClearModuleList and when I put AddModule in at the end
of my httpd.conf, I get the following error:

Syntax error on line 1039 of /opt/apache/conf/httpd.conf:
Invalid command 'AddModule', perhaps mis-spelled or defined by a
module not included in the server configuration

I can't recall using AddModule before though.

If i exclude the AddModule reference, Apache starts up fine... (log
reference below)
[Sun Feb 25 14:50:51 2007] [notice] Apache/2.0.59 (Unix) PHP/4.4.5
configured -- resuming normal operations

and a httpd -l output shows this;

Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_info.c
mod_cgi.c
mod_vhost_alias.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_so.c

View Replies !
Passing A Parameter From An HTML Page To A PHP Page
I want to pass a language value (EN/FR/DE etc.) from an Index HTML page to a PHP page with a language code in the call, so that the PHP page can select texts in that language. I would like to to it from an unordered list item if possible by extending the link ... <li><a href="scripts/pricelist.php???>Pricelist[/url]</li>

View Replies !
Html Code Within Php Code
How can I insert HTML code from within a php statement?

eg

if validation
{
html code snippet to display message
}else{
HTML Code snippet to display error page
}
}

View Replies !
HTML To BB Code
How do I convert HTML code to BB Code, primarily the [img] tag and the [url] tag. Here's the code I tried which doesn't seem to work (both [img] and [url] codes are below). PHP Code:

// [IMG] Code
$new_post = eregi_replace("[img]([^[]*)[/img]","<img src="1" border="0">",$new_post);

// [url] Code

I just realized that I don't even have the [url] code anymore.

View Replies !

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