Converting Html Pages Into Dynamic Pages
I built a website in html, using Dreamweaver. I need to have a database built within these pages and the person who is going to do it told me that they will have to convert all my html pages into dynamic pages (php).
Is it complicated to do this or do I just have to save my pages in php instead of html in Dreamweaver ?
View Complete Forum Thread with Replies
Related Forum Messages:
Dynamic HTML Pages Using PHP
I have a database of business details which are output using a page called displaydetails.php by passing the id of the records: for example displaydetails.php?id=123 Rather than having the details displayed in this way, is it possilble to generate a HTML page dynamically using PHP?
View Replies !
Convert The PHP Pages To HTML Pages
how to Convert the PHP pages to HTML pages. provide me the specificaly coverting Codes or Scrpit to Converted the PHP Page to HTML page. If there in any software to convert the PHP Page to HTML pages please specify.
View Replies !
Converting Pages To Another Language
i was wondering if it were possible to convert english into another language with php... For example, the google translator pages...except i want to do this with my own pages and not using their apps My purpose is to provide little flags at the footer, and when a user clicks their flag the page is translated to the language...for example...one clicks a japanese flag so the page makes the English to japanese.
View Replies !
Dynamic Pages
As big as the net has got over the years, we all depend on huge databases of information to be displayed in pages, either it be links or articles. So if I wanted to show informaiton from a database on a page that a person would click on a link to get to. How would I do so without using www.blabla.com/linkpage.php?userlink=1 . Since search engines are steering away from certain characters like ? and & in a link. So getting a page crawled can be impossible. So is there a way to do this without using those chartacters ?
View Replies !
Dynamic Or Static Pages?
I just created a new site, where I have my products stored in my MySQL database. I've used mod-rewrite to parse out the "brand" and "productname" from my URL's, so they look more SEO friendly...ie: http://example.com/brand-product.php Problem is, I'm not sure how to handle special characters in the URL... as all of my URL's now have #134;, reg;... and other decimal and entity equiv's in them. I can only think of one way around this, which is by using static pages... which I'm hesitant to do(have php spit out a product page for each product).
View Replies !
Dynamic Time On Different Pages
how would you create a date and time format in your page? how would you make this date and time not to change back to the previous time when you click the "BACK BUTTON" ? Meaning if you have a time like this: 13 of August, 2007 08:11 PM in one of your pages then when you continued it to the "next page" you will have assuming that time changed to this, 13 of August, 2007 08:12 PM and i forgot to do something in the previous page, the date and time format returns to the old time stating like this: 13 of August, 2007 08:11 PM when you could have: 13 of August, 2007 08:12 PM the updated time. how would you to that not having the old time or previous time in all of your web pages withour returning to the old time? I do hope you undesrtood what i meant?
View Replies !
Static Pages Instead Of Dynamic
There must be millions of dynamically generated html pages out there now, built by on-the-fly php code (and jsp, perl cgi, asp, etc). Programatic page generation is transparently useful. But querying a database, negotiatinig lots of if-then-else logic and echo'ing html code out on port 80 every time a page is requested has to be a huge waste of resources.Why not use that logic to print static html instead of dynamic? The few pages that need to be dynamic (perhaps the results of a database query) probably represent only a small fraction of the total number of pages that are rendered by on the fly code. Seems to make sense to me. All you need to do is work the output directories into your code logic somehow, and do a few one-time-only mkdirs before printing out the static html. Am I missing something? Why is it so little open source page generation software acually works that way?
View Replies !
Caching Dynamic Pages
I have spent the weekend reading articles about how to creat cached pages for your web application to increase speed and reduce cpu/server load. However, I honestly don't know what is the best/most current technique being employed. Most of the articles I read were several years old, including one on ZEND that was almost five years old.
View Replies !
Getting Dynamic Pages Indexed
I would like to know what the best way to get my dynamic pages indexed by Google, Yahoo, and MSN are. Here are some options that I thought of: 1. Getting rid of all the _id tags in the URLs, so product_id=1000 becomes product=100 2. Change the "?" to "/" so www.example.com/store?product_id=1000 becomes www.example.com/store/~product=1000 3. Using the apache mod rewrite to change the URLs, so that I get URLs like: www.example.com/store/product/1000 4. Creating a static HTML map that points to all the dynamic URLs on my site 5. Creating a static HTML *version* of every dynamic page on my site Someone has suggested each of the 5 steps before. As you can tell, each step becomes a little more work, and #5 will require some real programming. Does anyone know which of these are necessary?
View Replies !
Best Way To Add Titles To Dynamic Pages
Most of the pages on my site follow the simple pattern: <? require('scriptfiles/header.inc'); ?> HTML PAGE <? require('scriptfiles/footer.inc'); ?> This of course means that every page has the same title. Well, now I want to change the titles for all the pages on my site individually, to reflect what they contain. Code:
View Replies !
Searching Dynamic Pages
I got a question about letting googles or other search engine to search some dynamic pages. I read the technical support from googles, it says " Don't use "&id=" as a parameter in your URLs, as we don't include these pages in our index " , however, when I browsed the web, I found that some of the pages containing &id or.
View Replies !
Dynamic URLs On Pages
I change a script that changes urls within dynamically generated pages. $MyReplaceStr = "¦http://([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})/x(.*)&" . $MySite . "¦Ui"; $GetPage = preg_replace( $MyReplaceStr, $MySite."/site/".$site, $GetPage ); I need also to be able to remove the "¦http://([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3}).([0-9]{1,3})/x(.*)&" part from the remaining external links (the ones without $MySite which is just my www.mysite.com domain) that have it. How would I add that onto the script and to avoid conflict how would I exclude the other one within that? I'm sure someone understands. [edited by: Cyrus255 at 9:48 am (utc) on Nov. 8, 2006]
View Replies !
Avioding Expired Pages, & Carrying Data Accross Multiple Form Pages
I have a checkout/order form that consists of 6 pages, all PHP. The are linked to one another, like, after the user finishes page 1, they proceed to page 2, etc... The first two pages are submitted by a GET link, so those are not in my question. The next 4 are submitted using a <form>. Throughout all of the pages, i would probably have about 25-30 variables, things that the user has to fill out. I have two questions, 1. What would be the best way for me to keep track of all the data moving throughout the pages, like storing it from page 4, and i still need to access it on page 6. 2. I don't know if anyone could help me here, but does anyone know of a way to code around those ugly "page expired" pages, because of a submitted form. If a user needs to go back, which most likely they will, is there some sort of way for me to skip the expired page?
View Replies !
Generating Semi-dynamic Pages?
I set up my index page and a couple of others as semi dynamic pages like he suggested in the advanced php section of his tutorial. Anyway everything was working fine until I put an .htaccess file in that folder, it is just a fairly standard .htaccess that password protects the file, but the trouble is that now when I try to generate a new index page instead of using the path http://localhost/admin/index.php when looking at the template (index.php) which it needs to do for the php on the template to run, it goes to c:/phpdev/www/admin/index.php so as the browser is not used the php is not run and I get a load of code on index.html, I don't think I've explained this that well so I hope the code and comments below help. This is part of the code used basically is uses $srcurl as a source file then puts into a variable and through fwrite etc it puts it all in a temporay file then finally writes it to index.html. <!-- generateindex.php --> <?php $srcurl = "http://localhost/admin/index.php"; $tempfilename = "tempindex.html"; $targetfilename = "index.html"; ?> The problem is that with the .htaccess forcing it to use the path on the harddrive rather than the url none of the PHP from the tempate index.php gets converted.
View Replies !
Dynamic Pages Vs Search Engines
I have a how-to-do-it manual like site, related to fishing. I want to add a new interactive question/comment feature to each instructional page on the site. I want (registered) users to be able to add comments at the bottom of each page, similar to the way the php, mysql, apache manuals work. PUNCHLINE_A: I don't want to revert to a system of dynamic links that look like "pagePainter.php?page_id=123" I did that for a while. But every time I edited the site (reloaded the database) all the page_ids changed, and then voila I had stale links spattered all over my Google search results--because the same page now had a slightly different page_id. To avoid that I could associate each page with a unique lookup string that is its server-side file path: pagePainter.php?page_key=/pages/manual/chapter1/engine_repair/carburetors Then the keys wouldn't change everytime I added a few new pages to the system, and reloaded the database. Then my Google search links would remain constant. PUNCHLINE_B: Will the search engines spider and index links that look like that? Or will I have to make a system that spits out the entire page as static html, each time a registered user adds a new page question or comment? Or should I put the comments box in an iframe, which is also a spidering can of worms?
View Replies !
Dynamic Pages With Search Engines
We know search engines cannot index many database-driven pages basically any page with a '?' or '&' in the URL, and i want to ask if is there en way to transform that simbols in / for example.
View Replies !
Cached Pages And Dynamic Content
I am currently building a caching mechanism into my own development framework. Basically whenever a page that is marked in the DB as cacheable is requested the controller creates the cached version of the page and returns it , on subsequent requests the cache is displayed. Whenever a content change is made in the DB the relevant cached page is deleted ready to be rebuilt & cached with the new content on the next page request. Thats fine for many pages , some pages are too dynamic for caching to be useful (shopping carts for example); ................. The issue I am grappling with is ..... A product information page, mostly static and perfect for caching , but lets say the user has something in thier shopping cart I want to also show a 'checkout' now link or change the 'buy now' links to 'add to cart' etc. e.g. some small content will change and so I can't use the existing cache. the choices to date seem to be ...
View Replies !
Template, Dynamic Pages Question
I have a content page, and a template page, ok. Now... I want to make one page for most of the dynamic aspects of my site (top sides and bottom portions and title). Questions on that... How do I call it up, from the content page... or from the template? If the content page... where... and if the template.. where... (i.e. after the template is called, before the variables are called, etc). Code:
View Replies !
Working On Dynamic Pages Without Uploading Them To The Server
I use dreamweaver, and when I work on my PHP pages, I upload my pages to test them out. I'm going to be traveling a lot, and I'm getting a laptop. I'll be without internet access for long stretches of time, but I would still like to be able to work on my dynamic pages. Is it possible to somehow setup my laptop to allow me to work on my PHP pages and to test them out without internet access? That way, I can get all my pages tweaked how I want them, and when I do have internet access I can upload them to my server without having to worry about bugs.
View Replies !
Dynamic Pages Without With Directory Structure Instead Of Parameters
Sorry for the confusing thread title, I wasn't sure how to call this. This is my issue: I design most of my sites with a single index.php file that takes parameters to decide which pages to include: something like www.blabla.com/index.php?dir=a&page=b which will include some file in say ./a/b.html, but will have all the headers and footers that are defined in index.php. It could also work that way to have a b.php file in the ./a directory that would include headers and footers but then I'd have to include those headers in every single page I write which seems like too much overhead. I was fine with the way I did it but then I read that this is not good practice, search engines don't like sites with parameters they rather want the www.blabla.com/a/b.php form. Is there a way to get this done nicely? How do professional sites solve this?
View Replies !
Highlight Active Link On Dynamic Pages
I am trying to customize a site that is I quess what you would call dynamic. The tool creates pages, but there are no real pages all stored in the database. The pages are all index.php....pageid=1, etc. Code:
View Replies !
Dynamic Webpage Titles For Multiple Pages
I have hundreds of "search result" pages on my site that I have mod-rewrited into Google-friendly urls. Nice. However, each page is titled in a very generic way: eg. Cookies Page 1, Cookies Page 2, Cookies Page 3, etc. As I can't really grab keywords from the page content (they are just random results), I want to be able to pull a selection of keywords from a seperate file and print them as a permanent Title on each page: Code:
View Replies !
Caching Dynamic Pages Dependant On User Status
I am new to caching dynamic pages. All I knew was how to avoid caching. My dynamic pages have on top of them an html header which shows the status of the user logged/not logged. I would like to cache the pages and force re-cache if there is a change in the user's status. I guess the must-revalidate has to be always present. I use a last modified date which comes form my database. I think Cache-Control: must-revalidate depends on the last modified date... am I right? Should I change that modified date to the time the user logs off or on? Is it ethical checking the user agent for bots? When dealing with bots should use the real last modified date.
View Replies !
Oracle Spooled Files And Decode To Dynamic Pages
As a bit of a PHP newbie I have a question. On our Intranet we have staff listings which we want to move to dynamic pages. As part of the SQL in the original pages we have a SQL decode (see below...) I have been trying to replicate this approach in PHP but have come across no logical solution. I am assuming that there will be a PHP based solution? Code:
View Replies !
Create Dynamic Return Paths As Links On Site Pages.
I would like to create dynamic return paths as links on site pages. For example, there might be a link to the whet stone page on both the chisel and plane pages. If my viewer came from the plane page, I'd like the return path to indicate "home->planes->whet-stones", appropriately linked. Likewise if from the chisel page, "home->chisels->whet-stones". Above the immediate back link, normal site layout logic would apply. Should the referer page be off site, site layout would rule. This doesn't appear to be particularly difficult.
View Replies !
PHP In Html Pages?
I have a problem. I need to include a php script in a simple html document on a server that does´nt support php. I´ve tested following but it does´nt work.. <SCRIPT LANGUAGE="PHP" SRC="http://www.domain.com/include.php3"> Does anybody know a solution for this problem or is it impossible?
View Replies !
HTML Pages
Is there any way to run a php script from an HTML file. I'm writing a webstats thing for my website, which is fine for me cos my whole site in wrapped in a crispy php shell but what if I wanted to share it with other people and they were using html pages, could they use it without having to change all their file extentions to .php?
View Replies !
Typo3: Generate Dynamic Website, Show Only The Pages That Include Content
i want to create a web form where someone can do some input or pick strings from select boxes. after that the person can click a preview button and a website will be generated dynamically. so i thought i should use typo3. first of all i created a html-template. then a page tree with all the sites that could possibly appear. in the end only the sites with content, will be shown. all of this must happen automatically. so i need a php script or a typoscript that compares the "pages" table with the "tt_content" table. after that the attribute "hidden" in the "pages" table should be "true" for the pages that doesn't contain any content. does anyone have an idea if this is possible or if typo3 is the right choice?
View Replies !
Referencing Html Pages In Php
I have a site built in php with header/footer/body .php pages generating the page view. I wish to load into the body section the php page, a html based page from a site I manage into the php one. I am seeking to ensure that, each time the html page is edited, accessing the php site loads the new html contents into the php output.
View Replies !
Creating Html Pages With Php
I am trying to think of an effecient way, to save resources. Bigger sites tend to use .html pages, and save the endless amount of query's. I know you can make PHP create .html pages, with the database stuff in it, and all that. Is this an effecient way to do things? Or would it be the same as having a user do 5 query's a page x 200 at any one time. It seems like having php create the pre made pages with all the database information in it, might be the best way, however, what if I was to change the layout, and I had 10, 000 pages. How would I change every single .html page, to fit the new layout?
View Replies !
Convert Html Pages To Pdf
i have this problem :convert html pages to pdf is there any code available? i want it to have support for images i tried to use HTML2FPDF , FPDF but it did not work successfully!
View Replies !
Refreshing Pages (html/php Mix)
I am having a problem with setting up page refreshes properly in my situation... Here's what I've got, hope I put it in text as well as I have it in my head. I originally had my pages all set to refresh every time they were hit (because they're completely mysql driven with new content all the time, I didn't want to be showing old pages)... but on some pages, this format didn't work. When I have a form, for example, and they submit the info, if they do not fill it out correctly, it gives them an error, and tells them to hit back in their browser... but when they were going back, all the info they just spent 10 minutes typing was gone.. Removed the refresh (the form content didn't change, so I didn't need it there) and the page works fine (they make an error, they back up, the info is still there). That was the easy part. Now, I am building a cookie system that recognizes the user and his password when he's roaming the system so that he doesn't have to keep entering his name and pw every time he enters information on the form (much like UBB here, you enter your username and password once per session, and it sticks around till you close the browser). Now my problem : The user goes to the form once, enters name and password, and submits... the information is submitted, the cookie IS placed. They go roaming around the site, then come back to the form again, its the 'old' form, and it doesn't pull in their cookie'd information... so they have to enter it again. If I hit refresh instead, it will pull the page up with the cookie'd information in place. To sum it up, is there a way to make a browser not refresh a page if your coming from the same page, and refresh if coming from anywhere else?
View Replies !
Creating Html Pages
Is it a good way to create static html and use php within it (or) Use php to generate html content, for example, use a class to build a page.
View Replies !
Html Pages Incorporating PHP
I want to use PHP code in a HTML page. Can this be done or do I have to call it a .php rather than a .html ? The reason this is an issue os because I want to use data base information on the home page. I tried to do it but when I view the html page nothing comes up, I am assuming this is because the server is not aware or looking for PHP code ?
View Replies !
Treating .html Pages As PHP
I'm running PHp 4.4.4 on Apache 2. In a particular directory, I would like .html pages to be run thorugh the PHP interpreter -- i.e. have "<?php" tags evaluated. Note, that I only want this within a single directory and not the entire web server. How could I set this up?
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 !
Seperate HTML Pages
I once followed a tutorial which showed me how to select a single entry from the database. I want to do the same, but not using a database. I have some video's on youtube which I have put into seperate HTML pages. Wat I want to do is have one page, and link to it like www.something.com/video.php?vid=001. And I'll have a page with all the variables set, like 001 = vid1 & description1. So when the url is loaded it loads up the video URL and the video description and puts them on the page. then when the URL is loaded with 002, 003 etc etc it loads up the different vids. Does that make sense? I'm not sure how to do it. does anyone know how it could be done?
View Replies !
Dynamically Add New Html Pages
i want to build a new site for a friend but have noticed that in some free software i have installed you can dynamically add new html pages via an admin section. How is this done, i would like to beable to view the current pages via the adim side and edit and delete them as well as create them?
View Replies !
Redirecting .html Pages
Right now my site is a mix of .html and .php pages... I want to update everything so that the backend is all in php, but dont' necessarily want to update all my links. I want say mysite.com/about.html to point to mysite.com/about.php IF that page "about.html" does not exist on the server. To complicate things. I already have some rules in .htacces that will redirect things like mysite.com/article/35.html to mysite.com/article.php?=35 I want to redirect old html pages so that if someone follows an old link, it transparently brings up the .php page, without messing up my existing set of rules. How do I do this?
View Replies !
Accessing Html Pages
is it possible to use 1 php file only which will be able to read the number of times a particular html page has been visited without the php code written in every html page.
View Replies !
Ways To Optimize Html Pages
I know there are ways to optimize html pages with all of the software out there. But does anyone know if they make one that will crunch PHP without changing the code? Everytime I edit php code in my WYSIWYG editor it leaves spaces that aren't needed in the coding.
View Replies !
Memory Limit For For HTML Pages??
I have a php program that is building a grid (HTML table) from a MySQL database. The problems started when I added a dropdown menu to the grid and when I did the form buttons would not work when there were a few values in the drop-down. If I removed the values so it was an empty drop-down menu the form buttons would work. I thought there was a problem with my drop-down which is a quite simple menu. However, what I discovered is that it has to do with the size of the table that I am building. I changed the query so that it would only pick up about 1/2 the records (134 vs 248) which is where it works (the 135th record causes the buttons to quit working. It is not a data problem because I then tested with a different set of data and it would also fail but at a different spot. I must be running into some kind of memory limit but I have no idea what it is! Can someone help?
View Replies !
Can Apache Fire Up PHP In .html Pages
I'd like to know if Apache (under Linux) can be made to pass PHP code over to PHP from within .html file rather that .php. I've tried putting php tags in my .html pages but they get sent straight through to the browser. Is this correct?
View Replies !
Grabbing Links Off Html Pages
does anyone know of a way to grab all the links on a html page with PHP, I'm trying to develop a doorway page maker, that will search the search engines and grab the keywords from the top ten of each search engine then extract the keywords and store them in a database. Also does anyone know if I can use PHP to zip files up?
View Replies !
Web Pages - Plain Ole Html Format
I am halfway through installing PHP on a Win 2003 Server with IIS. I have other websites stored on this server in plain ole html format. Will PHP affect these sites in any way? I just don't want them all messed up..
View Replies !
Outlook Cache/html Pages?
I'm sending out a newsletter via PHP that sends a HTML code. Within that code I have a tracking image that reports if the email was opened. (fairly common reporting) Anyway, if you open the HTML email once, it counts it as opened. If you open it twice, it does not count that. I've tried adding NO CACHE type options to the HTML email itself with no luck. Is it something maybe on the PHP side? I'd think everytime outlook opened that email it would reload the tracking image, but maybe not. Has anyone else run into this? Is there a workaround? Please keep in mind, this isn't for spam and i'm not a spammer, this is for a client who wants to send newsletters to it's subscribers.
View Replies !
Custom Error Pages For Web Pages?
A site has the following htaccess commands in it for custom error pages: ErrorDocument 400 /error.php?code=400 ErrorDocument 401 /error.php?code=401 ErrorDocument 403 /error.php?code=403 ErrorDocument 404 /error.php?code=404 ErrorDocument 405 /error.php?code=405 ErrorDocument 500 /error.php?code=500 ErrorDocument 501 /error.php?code=501 ErrorDocument 502 /error.php?code=502 ErrorDocument 503 /error.php?code=503 ErrorDocument 504 /error.php?code=504 So, there is one error page with php code in it. Depending on the error code that Apache sends, it will display the correct error message on the website. However, if I type in http://www.domain.com/fdfdsfsdf.html I will get the error page correctly. However, if I type http://www.domain.com/fdfdsfsdf.php, it does not use the custom page, but using the default apache not found page. Is there something else I need to add to the htaccess file to make php errors use the custom page? I was told by the owner of the hosting company I work at that every time apache sees a .php extension, it automatically assumes it is a script and will not parse the correct error message for it. Does anyone know how to get .php extensions to use the custom error page on an apache server? Is there something else I can add to the htaccess file to facilitate this?
View Replies !
|