Jump to content

Webserver with php


Recommended Posts

Posted

Hi,

I have a question. Can I just use php within an html page on the webserver of an mta server?

This is my meta.xml:

  
<meta> 
    <info name="test" author="Rutger" type="script" version="1.0" /> 
    <include resource="ajax" /> 
    <html src="test.html" http="true" /> 
</meta> 
  

And, test.html:

  
<html> 
<body> 
<?php 
    echo "test"; 
?> 
</body> 
</html> 
  

This doesn't seem to work, also tried it with including the mta_sdk.php, but that didn't work either.

I have also tried the example of the PHP SDK wiki page, which didn't work either.

Is there any way so I could get this to work?

Posted

MTA webserver does not have PHP.

and PHP SDK does not serve this purpose, its used on your common webserver to process requests from an MTA server.

Posted

You can do a very similar thing with Lua embedded in HTML. Search for "resource web access" on the wiki.

Posted

Okay, well my idea was to make a sort of online login system using php. Because it should work with mysql, and I know how to use mysql with PHP. So is there any way I could do that?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...