Jump to content

Recommended Posts

You can have html without javascript but you can't have javascript without html.

 

Um, indeed you can. That is like saying PHP is useless without HTML, but you can build applications with PHP that have nothing at all to do with HTML or the web. Same goes for JavaScript.

 

Can you give an example of javascript being used without html?

 

And what applications in php are used that are unrelated to the web? PHP means "Hyptertext preprocessor", so I'd say in its definition it's used for html(hypertext markup language)

 

 

EDIT: now that I think of it, I suppose php can be used to move files around and do server-side things that don't require html to be output, but it'd still require a browser or similar program to begin execution(even with cron jobs)

Link to comment
https://forums.phpfreaks.com/topic/258110-help-me/#findComment-1323386
Share on other sites

Can you give an example of javascript being used without html?

 

This list here contains many.

 

And what applications in php are used that are unrelated to the web? PHP means "Hyptertext preprocessor", so I'd say in its definition it's used for html(hypertext markup language)

 

There are numerous: phpunit, phake & phrozn come to mind.

Link to comment
https://forums.phpfreaks.com/topic/258110-help-me/#findComment-1323391
Share on other sites

Yeah, while allot of those libraries, frameworks and application are web related, allot of them also are not. JavaScript is just a scripting language like any other.

 

It has command line interfaces available, but also happens to be the standard language embedded into browsers.

 

Take a look at node.js.

Link to comment
https://forums.phpfreaks.com/topic/258110-help-me/#findComment-1323397
Share on other sites

  • 3 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.