|  | begining to work with php for my site |  | |
| | | richard |  |
| Posted: Sat Aug 30, 2008 9:03 pm Post subject: begining to work with php for my site |  |
| |  | |
I've been playing around with some various designs for my site and have come up with one that I like quite well. Drawback is, the javascript portion kind of sucks in the fact that nothing happens unless JS is enabled.
I've been looking at various tutorials and see that PHP is somewhat similar to BASIC, and other languages. So some of it I already know.
What I've designed is a basic 3 column layout. Left column is the main choices, primarily an alphabet listing. Which could easily be put in a drop down box. Right now it's just for testing.
The middle column has the crux of the data in numerous text boxes. Each text box contains a link which when clicked on, shows another page in the 3rd column which for now, is an iframe.
My idea is, basically have the data for the text boxes stored in an array, rather than on a page itself, and then displaying the called content in a division cell rather than an iframe.
This way, loading of the initial page should be faster and the data could be manipulated in other ways easier.
I know of a site for html templates, oswd.org {i think}. Is there a similar site for php?
If anyone can clue me on how to go about doing this I'd appreciate it. |
| |
| | | Jerry Stuckle |  |
| Posted: Sat Aug 30, 2008 11:29 pm Post subject: Re: begining to work with php for my site |  |
| |  | |
richard wrote:
| Quote: | I've been playing around with some various designs for my site and have come up with one that I like quite well. Drawback is, the javascript portion kind of sucks in the fact that nothing happens unless JS is enabled.
I've been looking at various tutorials and see that PHP is somewhat similar to BASIC, and other languages. So some of it I already know.
What I've designed is a basic 3 column layout. Left column is the main choices, primarily an alphabet listing. Which could easily be put in a drop down box. Right now it's just for testing.
The middle column has the crux of the data in numerous text boxes. Each text box contains a link which when clicked on, shows another page in the 3rd column which for now, is an iframe.
My idea is, basically have the data for the text boxes stored in an array, rather than on a page itself, and then displaying the called content in a division cell rather than an iframe.
This way, loading of the initial page should be faster and the data could be manipulated in other ways easier.
I know of a site for html templates, oswd.org {i think}. Is there a similar site for php?
If anyone can clue me on how to go about doing this I'd appreciate it.
|
PHP is server side, and the only thing the browser sees is what you send in the html. Data stored in an array in PHP never reaches the browser unless you output it.
And once the data is displayed by the browser, your PHP script has already completed it's work and terminated.
-- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
| |
| | | richard |  |
| Posted: Sun Aug 31, 2008 1:36 am Post subject: Re: begining to work with php for my site |  |
| |  | |
On Sat, 30 Aug 2008 21:29:13 -0400, Jerry Stuckle <jstucklex@attglobal.net> wrote:
| Quote: | richard wrote: I've been playing around with some various designs for my site and have come up with one that I like quite well. Drawback is, the javascript portion kind of sucks in the fact that nothing happens unless JS is enabled.
I've been looking at various tutorials and see that PHP is somewhat similar to BASIC, and other languages. So some of it I already know.
What I've designed is a basic 3 column layout. Left column is the main choices, primarily an alphabet listing. Which could easily be put in a drop down box. Right now it's just for testing.
The middle column has the crux of the data in numerous text boxes. Each text box contains a link which when clicked on, shows another page in the 3rd column which for now, is an iframe.
My idea is, basically have the data for the text boxes stored in an array, rather than on a page itself, and then displaying the called content in a division cell rather than an iframe.
This way, loading of the initial page should be faster and the data could be manipulated in other ways easier.
I know of a site for html templates, oswd.org {i think}. Is there a similar site for php?
If anyone can clue me on how to go about doing this I'd appreciate it.
PHP is server side, and the only thing the browser sees is what you send in the html. Data stored in an array in PHP never reaches the browser unless you output it.
And once the data is displayed by the browser, your PHP script has already completed it's work and terminated.
|
I understand the basics. What I have now is basically a 100kb html text file. I figure the user doesn't really need to see the entire list unless they want to see it. That would speed up loading.
I used "Liberty BASIC" to do the repetitive html stuff and I could easily do the same thing in PHP. |
| |
| | | Jeff |  |
| Posted: Sun Aug 31, 2008 3:57 am Post subject: Re: begining to work with php for my site |  |
| |  | |
richard wrote:
| Quote: | On Sat, 30 Aug 2008 21:29:13 -0400, Jerry Stuckle jstucklex@attglobal.net> wrote:
richard wrote: I've been playing around with some various designs for my site and have come up with one that I like quite well. Drawback is, the javascript portion kind of sucks in the fact that nothing happens unless JS is enabled.
I've been looking at various tutorials and see that PHP is somewhat similar to BASIC, and other languages. So some of it I already know.
What I've designed is a basic 3 column layout. Left column is the main choices, primarily an alphabet listing. Which could easily be put in a drop down box. Right now it's just for testing.
The middle column has the crux of the data in numerous text boxes. Each text box contains a link which when clicked on, shows another page in the 3rd column which for now, is an iframe.
My idea is, basically have the data for the text boxes stored in an array, rather than on a page itself, and then displaying the called content in a division cell rather than an iframe.
This way, loading of the initial page should be faster and the data could be manipulated in other ways easier.
I know of a site for html templates, oswd.org {i think}. Is there a similar site for php?
|
The PHP manual is here:
LINK
| Quote: | If anyone can clue me on how to go about doing this I'd appreciate it.
PHP is server side, and the only thing the browser sees is what you send in the html. Data stored in an array in PHP never reaches the browser unless you output it.
And once the data is displayed by the browser, your PHP script has already completed it's work and terminated.
I understand the basics.
|
There's some doubt about that.
PHP, as Jerry has pointed out, does not run in the browser. To do what I believe you want, you'd need either javascript, iframes, or frames. And since you've ruled all those out (with the exception of frames, and I'll rule that out for you), you are left with nothing except to load a whole new page. That's not necessarily a bad thing. Loading content in a "division cell" or more accurately, a div, uses javascript (AJAX) and some server processing.
Jeff
What I have now is basically a 100kb html
| Quote: | text file. I figure the user doesn't really need to see the entire list unless they want to see it. That would speed up loading.
I used "Liberty BASIC" to do the repetitive html stuff and I could easily do the same thing in PHP. |
|
| |
| | | Jerry Stuckle |  |
| Posted: Sun Aug 31, 2008 10:57 am Post subject: Re: begining to work with php for my site |  |
| |  | |
richard wrote:
| Quote: | On Sat, 30 Aug 2008 21:29:13 -0400, Jerry Stuckle jstucklex@attglobal.net> wrote:
richard wrote: I've been playing around with some various designs for my site and have come up with one that I like quite well. Drawback is, the javascript portion kind of sucks in the fact that nothing happens unless JS is enabled.
I've been looking at various tutorials and see that PHP is somewhat similar to BASIC, and other languages. So some of it I already know.
What I've designed is a basic 3 column layout. Left column is the main choices, primarily an alphabet listing. Which could easily be put in a drop down box. Right now it's just for testing.
The middle column has the crux of the data in numerous text boxes. Each text box contains a link which when clicked on, shows another page in the 3rd column which for now, is an iframe.
My idea is, basically have the data for the text boxes stored in an array, rather than on a page itself, and then displaying the called content in a division cell rather than an iframe.
This way, loading of the initial page should be faster and the data could be manipulated in other ways easier.
I know of a site for html templates, oswd.org {i think}. Is there a similar site for php?
If anyone can clue me on how to go about doing this I'd appreciate it.
PHP is server side, and the only thing the browser sees is what you send in the html. Data stored in an array in PHP never reaches the browser unless you output it.
And once the data is displayed by the browser, your PHP script has already completed it's work and terminated.
I understand the basics. What I have now is basically a 100kb html text file. I figure the user doesn't really need to see the entire list unless they want to see it. That would speed up loading.
I used "Liberty BASIC" to do the repetitive html stuff and I could easily do the same thing in PHP.
|
That's fine. But since you don't want to use javascript (or AJAX, which uses javascipt) or frames, you have no choice but to load the entire page.
If you only send part of the data, you must have a way to get the rest of the data. This means either javascript (AJAX), frames (which will reload part of a page) or a reload of the entire page.
-- ================== Remove the "x" from my email address Jerry Stuckle JDS Computer Training Corp. jstucklex@attglobal.net ================== |
| |
|
|