Closed. This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last year. Improve this question I would like to encrypt data that travels back and forth between the se…
Calling a Controller function in another Controller in CodeIgniter
I have a controller “user” in my codeigniter application. This controller has a function called logged_user_only(): public function logged_user_only() { $is_logged = $this -> is_logged(…
Social networking login using iOS
I’m writing an iPhone app which works against my own server. Basically, it’s a forum where users can post. I don’t want users to sign-in for an account on my server but I rather prefer them to login …
Hosting PHP website that uses unix command “convert” on IIS
I thought I had checked so that everything would work when hosting this website on IIS but I missed a tiny detail. Apparantly an image upload form on the website requires a unix command or program called “convert” (usr/bin/convert) to resize, set quality and generate a thumbnail for the images. I …
How can I define the DIRECTORY_SEPARATOR for both Windows and Linux platforms?
Now I create a small PHP Application, here I have problem for using file path, because in Windows use this type location C:SomeLocationindex but in Linux /www/app/index so when I define the path using this / but when the application run in window machine it should be problem for this /. So here I want to defi…
How does onchange carry selected text and hidden value?
I have a dynamically populated PHP dropdown menu that gathers the following information from the database: I then have a JavaScript function that shows the selected text – description in an input box for editing and then on submit update back into the database. Question: Is there away using JavaScript t…
Uploading an mp3 to my (php based) web server from an iPhone app
I’m looking to upload an mp3 file from my iPhone app to a given php page. To do this I found the ASIFormDataRequest class. Now I made a piece of code in my app like so: However I can’t figure out how to put my NSURL which points to the mp3 inside this request. I have tried the above, but
Can a switch statement take two arguments?
is it posible for a PHP switch statement to take 2 arguements? For example: Many thanks, I haven’t done PHP in years! Answer No, but if your case is as simple as what you have, just concatenate the two inputs and test for the concatenated values:
How can i surcharge a connection configuration from a controller in Lithium?
I’m building a GooglePlaces API, it is package as an http datasource. I thought it would be a good idea to ship it with a basic Places model & a basic gplaces connection so that the datasource could be used out of the box in my app PlacesController using : But i’d like to be able to somehow su…
Twitter OAuth (PHP): Need good, basic example to get started
Using Facebook’s PHP SDK, I was able to get Facebook login working pretty quickly on my website. They simply set a $user variable that can be accessed very easily. I’ve had no such luck trying to get …