milkshake333 Posted July 22, 2011 Share Posted July 22, 2011 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? Link to comment
Aibo Posted July 22, 2011 Share Posted July 22, 2011 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. Link to comment
eAi Posted July 22, 2011 Share Posted July 22, 2011 You can do a very similar thing with Lua embedded in HTML. Search for "resource web access" on the wiki. Link to comment
milkshake333 Posted July 22, 2011 Author Share Posted July 22, 2011 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? Link to comment
milkshake333 Posted July 23, 2011 Author Share Posted July 23, 2011 Is there anyone who could help me? Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now