Question:
about: php sites?
Hessr
2007-08-14 18:39:26 UTC
i want to know if u can set frames on php pages on a website because my managers site repeats the logo on every page and i was wondering if maybe if we can have that and the navigation links on the main page and the rest in either an embedded window or have frames set up to speed up the loading speed of the page. and if not is there other ways to speed up the loading time?
later
nick
the WeB_TeCh
Three answers:
poorcocoboiboi
2007-08-14 19:13:25 UTC
Don't use frames at all. They are just not worth it.



You can accelerate your sites considerably by using external stylesheets and other static support files, which are read once and cached for future access. You can also achieve very high speed fully dynamic page rendering in Drupal, through various cache mechanisms there. Drupal also has high quality systems like user management, security and other things that are very difficult to build well from scratch. Drupal is free and runs under PHP and MySQL.
anonymous
2007-08-15 05:49:10 UTC
The first question I would ask is why is the loading time slow?



Some possible reasons are



1) large pages with lots of images

2) slow PHP code (e.g. lots of include files)

3) slow database calls made from the PHP code

4) slow connection

5) overloaded server

6) very complex web pages

7) javascript on the web pages

8) very large images.

9) Windows computer with spyware installed :)



But I agree with the other answerers that you shouldn't use frames.
2007-08-15 02:10:57 UTC
If you are using PHP, then don't use frames. Actually, you shouldn't use frames even if you aren't using PHP. It's just bad coding.



Instead, use include files. Go to www.php.net and do a search on the include or require functions.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...