vForums Support Banner


Visit vForums

 

Welcome Guest! Please Login or Register
vForums Support :: vForums :: Support :: Side Server PHP Inqery - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
Side Server PHP Inqery (12th Feb 10 at 4:36pm UTC)
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}
Michael
Moderator
*****

[Avatar]
Recoding the future

Posts: 4,043
Status: Offline
Gender: Male
Location: UK
Joined:  

Additional Groups:
Coding Team
***


Reputation: 58%  


pmtwittervForum
Re: Side Server PHP Inqery (12th Feb 10 at 6:27pm UTC)
JS can write to a DB through AJAX, but that includes PHP.

What do you mean by "side server" ... {Unsure}
Aiken
Full Member
***

[Avatar]

Posts: 333
Status: Offline
Gender: Male
Location: In a very lonely place, the domain of despair
Age: 35
Joined:  
Reputation: 12%  


pmtwitterskypemsnyahooxfire
Re: Side Server PHP Inqery (12th Feb 10 at 7:06pm UTC)
Just use AJAX referring to the PHP file on your website

vF forums:
Perfect World RP
BLEACH Universe - Under Construction / Testing Phase
Xen Qarna RP - Stage I
Vyren Entar Battle Network RP - Under Construction / Maintenance Mode Enabled
the Final Anime Hideout
dog199200
Guest
Re: Side Server PHP Inqery (12th Feb 10 at 7:35pm UTC)
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
 Printable View

All times are GMT+0 :: The current time is 2:39pm
Page generated in 2.297 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums