vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Client side.... PHP? (https://vborg.vbsupport.ru/showthread.php?t=67191)

Velocd 07-15-2004 01:05 AM

Client side.... PHP?
 
http://www.sitepoint.com/blog-post-view.php?id=181248

Called ActivePHP sapi, it can be used in any ActiveScript compatible host. Requires PHP5.
(ref: http://netevil.org/wiki.php?WezFurlong)

I messed with it a bit, it's weird and buggy, IE-only, but moreover I don't see a reason for server side to make it's way to client side. I guess the server-side gurus were just interested to see if it was possible. ;)

HTML Code:

<html>
<head>
<title>PHP ActiveScript</title>
</head>
<body>
<script language="ActivePHP5">

$document->write('<h1>Output generated by '. phpversion().
    ' ['.php_sapi_name().']</h1>');

$document->write('<p>Available objects</p>');

foreach ( array_keys($GLOBALS) as $global_var ) {
    if ( is_object($GLOBALS[$global_var]) ) {
        $document->write($global_var."<br>");
    }
}

</script>
</body>
</html>

:ninja:

Erwin 07-15-2004 01:38 AM

It could potentially lessen the load on your server if PHP is parsed on the client's side if we are talking about a lot of users.

Modin 07-15-2004 01:45 AM

this could give us a lot of power, being able to merge the server side and client side together. Though it seems like it has to be come more standardized before we can actually use it...let's just hope it doesn't become as buggy as javascript :rolleyes:

Dark_Wizard 07-15-2004 08:35 AM

Hmmm...interesting but my question is what about security and malicious code?

Xenon 07-15-2004 03:51 PM

I think, it can be stronger as JS if propper used.

Also you don't have to mess with different languages, but it has to be included into other browsers at first...


All times are GMT. The time now is 08:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01561 seconds
  • Memory Usage 1,717KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete