PDA

View Full Version : Integration?


samanthayy
08-14-2002, 07:50 AM
So... trying to get it straight. Javascript and VBscript can be integrated into the html sourcecodes, right?

How about a flash movie or a Visual Basic Program?

Also, is there a special program needed to write PHP?

And, is CGI an option only if you are a server?

Meow don't know anything..... :eek:

mad_A
08-14-2002, 09:56 AM
Wow! It took me about 6 months before I'd built up a list of questions like that!

Here goes -

Yes, you can write javascript/VBscript into the html, then use fscommands to call out to it. There are some tutorials on this in the tutorial section of this site.

You can embed flash into a VB program. There is a flash object that you include. In VB6 if you open a project and from the menu select project - components. On the dialog choose the controls tab, and on that there is a shockwave flash object. select it and it will be added to your controls.
It is not that easy to use as there is no documentation (at least none I could find - if you find any let me know!).

To write php you just need notepad or any other text editing tool. I'd recomend not using word though...:rolleyes:

To run php on your web server, or localhost you need php installed. Go to http://www.php.net/downloads.php and you can download it for free.

CGI - common gateway interface - is used to interface external applications to information servers - so, yes, you need a web server.

Hope that's some help!

samanthayy
08-14-2002, 06:46 PM
Thank you for clearing things up for me... some follow-up questions...

Can php be written in Frontpage then?

Since the Frontpage sourcecodes are automatically in html, can php and html be used simoutaneously?

I have tried to put some php codes into the sourcecodes of a Frontpage document, but it didn't seem to work. (All the php codes i typed just showed up as text when i preview it.)

Oh and the php download you mentioned... what do I need to open the file (.bz2 or .qz)?

mad_A
08-14-2002, 09:18 PM
To answer your question -
You can have html returned from a php script, and html can call a php script, but I think you are not understanding what php is doing - it is a server side scripting language, so you would call it to send back data. Html is a presentation language - so you use it to present the data you recieve.

Are you using flash as a front end at all? If not, I will send you the addresses of some places to get better information on that side of things - a php site or a cgi site would probably be better for html/php questions.

As for frontpage - I don't use it. I write my own code as most packages like frontpage write bad html, and add a lot of unnecessary code. So, can't help you there. Sorry!
But I can tell you that you are better off not using frontpage with anything to do with php as it is the php that writes the hmtl and you can't write php in frontpage.

Which download fo php depends on your OS. If you are on unix or linux or a spark you want the .gz. If you are on windows you want to get a zip file - under "windows binaries" on the page I posted before.

Matt8109
08-15-2002, 09:38 PM
If you have a NT host, then you would in turn use ASP or ASP.NET instead of PHP, normally.

PHP and ASP can do the same things, ASP.NET is a different story.

mad_A
08-16-2002, 12:14 AM
Very true Matt, although I have used both on NT hosts with no problems. Actually I find a combination of the two can work well too for large sites. It is really down to what sort of project you are working on. As for .net - I would not recomend it for use with flash. It offers a lot more features, but almost all of them are services you are very unlikely to be using with flash.

I find PHP is faster for machine functions (calculations, mail etc.) and ASP is better for communication (building pages that include various flash movies, loaded with with different valuse through param or FlashVars(MX) in the object code). But it's really whichever you are most familiar with. It is better to write great code in one then halfway code in both.