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 {Unsure} I think it should work. Currently its not calling on anything but my database to store the conversations {Unsure}

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 {Unsure}

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" ... {Unsure}

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 {Unsure} the system is built of a bunch of different files {Unsure} 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 {Unsure}

Michael@ Side server, as in all the files being hosted on a secondary server {Tongue Out} But i honestly have no idea if it can be converted to JS {Unsure} 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 {Unsure}

yea this is where having a system that needs php classes when part of the system doesn't allow it {Unsure} if setting up an API on vb wasn't *complicated* i'm switch to make things easier XD