You are here: Re: Calling scripts « All PHP « IT news, forums, messages
Re: Calling scripts

Posted by kenoli on 09/22/06 00:33

d43m0n AT shaw DOT ca wrote:

> To execute a new script, or to reproduce the results of your script
> there are many ways. First you have to determin what you want to
> acomplish.

What I actually have going is a switch operation with a number of
cases. After completing certain of the cases, I want it to return to
the top in oredr to start over.

> I personally am a command/terminal programmer, I like seeing my results
> come through a shell, rather then preprocess through http, as in a "web
> site". Now, to get to the point, the best way to look at php is like
> looking at any other language. Variables are your best freind, and can
> do more then just define foo=bar. To reproduce results, with previous
> results, you need to use variables to its fullest. Define functions to
> use multiple times or later on in your script. Too loop your script,
> that means to start a funtion, and then restart the funtion from the
> start to reprocess your data and reexecute the functions.

So what I'm hearing here, I think, is a suggestion to, in this case for
example, create fucntion containing the switch conditional and the call
the function every time I want to start it over, including from within
the function itself. Is this right?

In some cases, it is useful to me to call an external file because in
some cases the file is an html file (an input form, say) with some php
code internal to it. Having it in a separate file makes it easy to
adjust the layout in Dreamweaver which will render the html if it is in
a separate html file.

The user then does something which then recalls the script with the
switch in it. Depending on the post or get data, different cases in
the switch conditional are triggered.

Regarding OOP, I have a general familiarity with it, but haven't used
it to any extent. In this case you are suggesting that it can be used
to create a collection of functions which can be called or modified
according to the objects created from the class. Is this right?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация