vForums Support > vForums :: Support :: > Side Server PHP Inqery
Side Server PHP Inqery - Posted By dog199200 (dog199200) on 12th Feb 10 at 4:36pm
I was wondering, can you side server in a code that uses php and javascript? I'm asking because the IM system I have been working on uses JS/CSS for design and PHP for building the functions. The IM shows up perfectly fine on my website, other then the fact i need a way to call the buddy list content (hint), and is calling the php functions just fine, but on the forum, the chat bar show up but only the design
I think it should work. Currently its not calling on anything but my database to store the conversations
Over all I'd hate to have to make two copies of the script, one for the site (php and js) and one for the forum (js) not to mention idk is js can write to a database
Re: Side Server PHP Inqery - Posted By Michael (wrighty) on 12th Feb 10 at 6:27pm
JS can write to a DB through AJAX, but that includes PHP.
What do you mean by "side server" ...
Re: Side Server PHP Inqery - Posted By Aiken (ionfortuna) on 12th Feb 10 at 7:06pm
Just use AJAX referring to the PHP file on your website
Re: Side Server PHP Inqery - Posted By dog199200 (dog199200) on 12th Feb 10 at 7:35pm
Aiken@ Files
the system is built of a bunch of different files
Plus i'm not going to say I know enough js to be able to recode everything, it is an IM system, similar to that on facebook, after all
Michael@ Side server, as in all the files being hosted on a secondary server
But i honestly have no idea if it can be converted to JS
because at least if Ross adds buddy list functions to the API like i've been hinting at over and over, i can use PHP with the API and do it, which would work on the website perfectly, but when it comes to the forum i'm not so sure cause it then need js to call the buddy list unless things can be called via the api if done side server
yea this is where having a system that needs php classes when part of the system doesn't allow it
if setting up an API on vb wasn't *complicated* i'm switch to make things easier XD