English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Hello,

There is chart which update every 10 second and I want that for my site, when i save it to my PC it save only the HTML code not the PHP code, Can you tell me how to save the PHP code or just let me know if there is site to give me such thing(http://www.globalbourse.net/quotes/dynamic_quotes.php) for free?

Regards,
Omer

2007-03-11 19:22:09 · 6 answers · asked by Omer 1 in Computers & Internet Programming & Design

6 answers

You can't view PHP code in the "view source" section of a web page. The websites server translates it all into HTML - thus your problem.

if you're wanting to refresh your entire page every 10 seconds, you could just enter this:



after the closing tag in your HTML page. If you just want a certain page refreshed - you could use an iframe with said tag in the source page.

2007-03-11 19:48:29 · answer #1 · answered by Anonymous · 0 0

From any site you can not copy PHP code, you will get is just html code by copying an application. you have to make either a php web page according to your website's requirement or u can download the whole script and save to your PHP file in your website's folder. If you download a script, then you must have to take care about form, variable names, etc. used in script. if you want to pass form variables to ehe next page that is having downloaded script at that time be careful about all those stuff.

For downloading FREE php scripts
www.hotscripts.com
http://gscripts.net/
Many PHP scripts are available free of cost for making updatable charts, shipping cart, blogs and many more.

2007-03-11 19:46:20 · answer #2 · answered by adi 1 · 0 0

First of all some php codes are shared and available to anyone to use. Some are written specifically for a task and have been paid for by the site that wanted to use them. If this is the second case then you would be stealling code and there are legal ramifications.

If the site you mentioned wants to share the code they will, send and email to the webmaster of that site and ask him/her if the code is public and if so where you can may obtain the code.

If it was built, at great cost to them, they might sell it to you if it is not public.

2007-03-12 01:39:58 · answer #3 · answered by Tracy L 7 · 0 0

PHP is a server side scripting language.

It outputs HTML

So you can only save HTML not PHP code of the website.

2007-03-12 18:18:10 · answer #4 · answered by Anonymous · 0 0

As PHP is server side language, u cant get the source code of it from browser.
If you want to show that table in your site, you can show it in iframe.

2007-03-13 00:44:54 · answer #5 · answered by Atif Majid 3 · 0 0

for what i'm expertise by making use of your question, if that's good then i think of you desire to get HTML source code of a given URL (internet website) as a string then you certainly can the two use cURL or purely purely "document()" function.

2016-10-18 04:13:30 · answer #6 · answered by balick 4 · 0 0

fedest.com, questions and answers