FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Problem with PHP





rajhank
my website is www.msdhoni.in

this site uses html therefore it is very slow some of the frihosters suggested me that i should use php, but the problem is that i don't know how to use it , they told me to change the iframe which the content.html page is using and instead go for php, can someone fix this for me.

Confused
LukeakaDanish
PHP wont make your site faster!

However you should remove your iframe, as everythin inside the iframe cant be seen by searchengines

here's how you get rid of your iframe:

Code:


<?php

include('framedDoc.html'); //replace "framedDoc.html" with the path to the document you want to include

?>



When the page is loaded the content of "framedDoc" is palced in the middle of your other document. This means you dont need another set of <html><head></head><body></body></html> tags.
simplyw00x
Resize the images using photoshop or something, don't just use the 'height' and 'width' attributes of the <img> tags. Also, get rid of all the blank lines in the HTML document and possibly replace the remote image (hindiranks) with a text link.
b4r4t
He wants a "switch" thing in PHP insteed of iframe Smile
I've got a PM bout this Smile I'll give here an example tommorow (example page, description + zip-ed files used in example)

Or... i'll give it today, but explain tommorow if it will be to hard to you Smile

example page:

http://www.poradnik.yoyo.pl/switch/index.php

Script

http://capoeira-konin.info/switch.zip
Nathan69
nice website! looks plain thou lol
foodman
just a simple book like php and mysql for dummies will be good, that is there i learned my skills from and from there i read more and more books
rajhank
Thanks for the script ,b4r4t.

I am trying to use it.Going for a vacation for few days, therefore will update my website in a few days time.
b4r4t
rajhank wrote:
Thanks for the script ,b4r4t.

I am trying to use it.Going for a vacation for few days, therefore will update my website in a few days time.


No problem Smile Sorry for that i haven't wrote You back on PM , but i had summer session in my university = less time Smile
I hope that this time the example is easy and You will be able to change this iframes to it Smile
PS. Learn about mod_rewrite and You will be able to change links from index.php?page=xxx to xxx.html and You don'tt have to change all menu but i can't give You an example (i don't have server with mod_rewrite yet , except capoeira-konin but it's not mine - it's my capoeira group serv Smile
Related topics
problem with a php randomizer script
A PHP problem !
HTML + PHP problem
A php problem
PHP problem...
PHP include code problem
PHP Problem: Unable to execute ext. commands
PHP homepage recreation problem
PHP Problem...
PHP script problem
[suggestion] about the language translation forum
PHP Form Sending problem
Stats problem - php execution problem (MOD Assist Required)
How to accept data with super and subscript
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.