FAQ Database Discussion Community


500 Internal Server Error on PHP calls

php,facebook-php-sdk,server-side,http-error,ajax-request
I have this problem when I request to a php file using $.ajax it always return me a 500 server error, but only when I upload the files to my server. I use XAMPP on Windows 8.1 and in the localhost runs perfectly. I've tried accesing the url of the...

Fetch a function definition without rights on source files

php,function,source,server-side,definition
Premise A question between a friend of mine and me turned into this question: while in Javascript you can easily output a function definition, I argued it was nigh impossible in PHP if you have no access to the files where the definition is located. So, we decided to ask...

Username to url redirect

php,mysql,redirect,server-side,username
I have a base system installed with a table that should read a username and url but i am a complete noob when it comes to PHP this is what ive got if someone could help me out so that when the username is entered it automatically redirects them the...

Call c# function from html

c#,html,server-side,visual-web-developer
I'm trying to call a c# server-side function when a link is pressed. the function is: public void check() { Response.Write("Clicked"); } What should the a tag look like so when I press it the function will be called?...

Javascript call to server side function without AJAX or PageMethods

javascript,asp.net,server-side
I know how to get to the server side using AJAX, JSON and even PageMethods, however, I am working with an old application and using these technologies isn't allowed. (Shame I know) I currently have a ondblclick event on a AspListBox object that fires some javascript which brings up a...

Cleint Side Javascript To Full Stack Developer Using node.js [closed]

javascript,angularjs,node.js,server-side,angular-fullstack
i am working now as a client side developer with javascript/html/css for about 5 years, and for those past 5 years my main focus was on Client Side development in a browser environment. I want to proceed to full stack development using node.js on the server side, but the problem...

php server-side schtasks.exe command

php,html,server-side,schtasks
I'm new to the site as a poster, but have used it for quite a while as I research new methods for my projects. I just can't seem to find the information I need for my current project, most likely because I'm not working my searches right. I'm hoping you...

Android application with Parse - How to respond to events on the server side

android,parse.com,event-handling,server-side,cloud-code
I'm trying to write an android application, and I chose to handle the server side with parse. Suppose I have three tables, TableA, TableB and TableC. I want to call a server-side function each time a row is added to one of my tables, that is: call fa when a...

Server side caching of dynamic content with Nginx and Etags

caching,nginx,couchdb,server-side
I have a CouchDB DB, with an Nginx reverse proxy in front of it. Some responses from CouchDB take a long time to generate (yes, it was a bad choice, but need to stick with it for now), and I would like to cache them with Nginx. (Currently Nginx only...

IP address and Geolocation [closed]

javascript,php,networking,server-side
How accurate is IP based Geolocation? Can it be used for server redirection based on IP address/location? Any other method to get exact zipcode of that location?...

Best way to create nested array from tables: multiple queries/loops VS single query/loop style

php,mysql,sql,relational-database,server-side
Say I have 2 tables, which I can "merge" and represent in a single nested array. I'm wandering what would be the best way to do that, considering: efficiency best-practice DB/server-side usage trade-off what you should do in real life same case for 3, 4 or more tables that can...

Uploading a website to a server [closed]

php,phpmyadmin,webserver,localhost,server-side
Usually when you have xampp, wamp and lamp your php files and databases are stored on your local machine and not the actual server so how would you move a finished project with its database from localhost to your server?

Datatable server-side script

php,jquery,datatable,server-side
I've found this piece of code which looks to work for some people, $dataArr['aaData'] = Array(); while($row = $res->fetch_assoc()){ $r = Array(); foreach($row as $key=>$value){ $r[] = "$key $value"; } $dataArr['aaData'][] = $r;} header('Content-Type: application/json'); echo json_encode($dataArr); /* The output will be of the form, {"aaData": [ [ [ "colname...

Android auto refresh data from server

android,node.js,service,server-side
TLDR: I am wondering what is the best practice in android to do the following - when new data is stored in server side database inform and transfer data to android application ? LONG STORY: I currently have server side application based on Node.js and MongoDB where I store my...

Are Retrofit and OkHttp suitable for Java EE/Server-side use?

rest,java-ee,server-side,retrofit,okhttp
I like the APIs of the Retrofit and OkHttp rest/http libraries from Square. I am evaluating options for writing a server-side rest client. For each request to my SOAP-based web service, I have to consume another, restful web service, thus my need for a rest client. My question is, are...

Does javascript saves server's electricity?

javascript,client,server-side
I have heard that by putting more and more functionality to client device (via javascript) instead of processing them on server-side and sending to client actually saves the power. Does it true ? Is it that significant to even bother ?

How can I make a “*required field” error message appear for a drop down menu in a validating PHP form?

php,forms,validation,drop-down-menu,server-side
I created a form using PHP. The form needs to be validated and it works for every field but the "rate our site" drop down menu. I'm using the same code from the form from other questions (name, email, etc.) for the "rate our site" drop down menu but the...

java datatable server side issue

java,jquery,datatable,server-side
I am working on datable that populate the data from server side, issue i am facing is that it always give a alert box that shows DataTables warning: table id=firmtable - Requested unknown parameter '1' for row 0. For more information about this error, please see http://datatables.net/tn/4 i am unable...

Capturing Cookies (req.headers.cookie) on homepage with Express on node

javascript,node.js,cookies,server-side
I am doing a basic authentication example. I have Node, Express, and Cookie. I make and store a cookie once the user logs in. Upon refreshing the page, I want to use the cookie to show that the user is still logged in on the response, and provide the information...

Node.js - Disabling Browser's Javascript

javascript,node.js,server-side
For instance, if a browser has javascript disabled does node.js still work or does it need a fallback? I know this might be a stupid question, but i'm trying to prove to a friend that node.js works on the server-side and doesn't rely on the client side....

Server side font resizing

php,html,server-side
I have this PHP file that can 'create' course certificates with custom names passed through $_GET. The goal is to get the file output into any printable format and download all of the certificates in one (.zip) file. The problem is that the name's width are dynamic, and the name...

Image by id is not accessible on server side ASP.NET

asp.net,.net,server-side
I have been trying to call a image on server side by making it runat="server" and giving it an id. But for some reason I cannot call it on the server side. Here is the Code: <div class="row"> <div class="col-lg-12" style="padding-left: 50px;"> <img id="portalimage" src="Image/steam_logo.png" style="width: 200px; height: 160px;" runat="server"...

How to open a webpage with Firefox/Chrome on server and save it to a HTML file?

javascript,google-chrome,firefox,server-side
I want to open a webpage with Firefox or Chrome on server (Apache) using command line, and save it to a file: firefox http://example.com > mypage.html //it doesn't work this command should execute browser javascript code and returns what it prints like on normal browsing. Is it possible with Chrome/Firefox?...

Execute MySQL statement in the background automatically

java,mysql,sql,server-side
I want to delete records from MySQL table which were not updated for longer than 3 minutes. How can I set the timer in the background to manage it without being invoked by events or methods in java? Is that possible? DELETE FROM bus WHERE created_at < (NOW() - INTERVAL...

R Shiny selectizeInput server side not initializing correctly

r,widget,shiny,server-side,selectize.js
When trying to embed the selectize input widget in an Shiny application I ran into the following problem: The item list isn't initialized with the complete list of items when using server = TRUE. Only after entering a character in the searchbox will the items appear. This is contrary to...

php Scan function not returning results as expected after moving script path:

php,server-side,scandir
note.. all folders chmod set to 777 for testing. Okay, so i have been trying to design a simple cloud storage file system in php.After users log in they can upload and browse files in their account. I am having an issue with my php code that scans the user's...