-
SSL Encryption on an ajax based site
The site that I am currently working on is competely ajax based, whenever a new address is called such as domain.com/#something it only loads the new information into a div, rather than reloading the whole page, only that div reloads. If I have an SSL Certificate on domain.com will this secure my whole site and it's various ajax calls, such as the login script and the shopping cart? Or does it not work like this? I'm not too sure. Thanks
-
Javascript and LUA advice needed
How is developing a program using Javascript and LUA done? I know this is a vague question and what I'm trying to get at is that in the web domain, Javascript is used inside HTML, not as a standalone language. Can a program be created using just JS and LUA or will there need to be another program/language that contains the JS and LUA code or would the files simply be saved as .js/.lua and be able to run? I know that another language is used to style the program, but ignoring that I need to know how a program can be written using these two languages and if there are any tutorials I can look at, everything I find for JS is all web related.
-
Having problems with file permissions
I think it might be a problem with the user that Apache is running on, how can I test this, I've tried echo'ing exec('whoami') but it shows nothing
-
Having problems with file permissions
D4Y0 - These are the file permissions it gives back 0644 OwnerArray( [name] => daemon [passwd] => * [uid] => 1 [gid] => 1 [gecos] => System Services [dir] => /var/root [shell] => /usr/bin/false)GroupArray( [name] => wheel [passwd] => * [members] => Array ( [0] => root ) [gid] => 0) Jack - That's a good idea, I have removed all the default settings and taken the size limit out, but maybe could still have something to do with it...
-
Having problems with file permissions
I created a script to upload audio files to my site, it all worked perfectly, then I decided to use the jQuery file upload plugin http://blueimp.github.io/jQuery-File-Upload/ It uploads the audio fine to the directory I want it to but the audio is then unplayable on the page, I have tried everything I can think of, I have practically gone through the code line by line to see if it sets the file permissions anywhere and there is nothing out of the ordinary. From what I think it is from going through it all is that it uploads the file under the apache main user and not the php user??? Which is different from the upload script I created. On my localhost (Mac OSX) it is uploading the file under the daemon user. I have tried so hard to find out how to change this but keep coming up blank, I really need to use this script and there must be something that is simple to change. I can post the code if anyone would like but there is a lot of it, if there is any specific bit of code you think would be helpful please let me know.
-
Total Beginners Stupid Question
// A QUICK QUERY ON A FAKE USER TABLE $query = "SELECT * FROM `users` WHERE `status`='bonkers'"; $result = $mysqli->query($query) or die($mysqli->error.__LINE__); // GOING THROUGH THE DATA if($result->num_rows > 0) { while($row = $result->fetch_assoc()) { echo stripslashes($row['username']); } } else { echo 'NO RESULTS'; } This is the only thing you need to replicate, change the query so that it queries a different table. Then do the same, I would change the $variables so you are able to differentiate between the different queries. $query = "SELECT * FROM `users` WHERE `status`='bonkers'"; $cars = "SELECT * FROM Cars WHERE Colour = 'Red'";
-
advice on installing a payment system
I think I've figured it out, it wasn't actually that hard really, I just need to use a payment gateway. All the shopping cart (including discounts etc) I've already developed myself, just need to install the payment gateway part now
-
advice on installing a payment system
A site that I am developing sells audio in much the same way that Beatport does. I haven't used any shopping cart systems before and they all seem too complicated for what I need, simply being able to select an audio file and clicking buy, no need to have pages for other products, every product is an audio file, simple. Would opencart be ok for what I need or is that too much? Even better, does anyone know what system beatport uses? Any advice is much appreciated, thanks.
-
Converting .wav to .mp3 audio files
I will send you some of my precious locks that you can use in a hair transplant. This is where I downloaded lame from onto my mac and have put it on my local server (also will need uploading to the live server), I don't know which file to call using shell_exec, or will shell_exec('lame... literally just work? I can't see it being that simple somehow, I feel like I need to make the lame bundle a shell file somehow...
-
Converting .wav to .mp3 audio files
If anyone can point me in the right direction here, I'm going bald pulling all my hair out!!! I need a script that when a user uploads a .wav audio file it gets converted to an .mp3 audio file. I've read that the best solution is to use the LAME encoder through a shell script but I've no idea how to call this in php or what I need to do or anything.
-
storing images in mysql or?
You should save the image on the server, possibly in either an /images folder or a /user/images folder. You should store the name of the image in the database that can be dynamically called depending on which user is using the site.
-
php/ajax calendar
Does anyone know where I can download a script for a calendar, I've had a massive look on google but can't seem to find anything that is what I want. I need a simple calendar that displays booking times for a fitness coach, inside each day should display the times available that day and then when clicked a form displays the relevant information that the user can book.
-
directory user permissions
How do I set this up, I'm not even too sure on what the different types of settings are? I've read there is 'root' and 'user', how is the 'user' id generated in PHP? My site basically is where one person can upload a file and another person can download it, in a very basic description.
-
Display random comment on website from list
echo '"'; print $comments[rand(0,count($comments))]; echo '"'; double quotes can go inside single quotes and single quotes inside double quotes, but not single within single and double within double.
-
Login via API
Sorry if there has been any confusion, maybe I didn't make myself clear on what I was trying to achieve. My site currently is set up and users can log in and all is good, I am trying to develop an api for the entire site for all the different features available so that mobile apps, other sites etc could use the data stored in my database. I was planning on converting my site to be a client of it's own API, maybe I won't bother as it seems to be a lot of work to achieve the same things it currently does, I just thought it might be a good idea to keep everything in line. So my question was this... When the user enters their details on the index page form and submits the data, this gets POSTed to the login script which then queries the database and returns the information, as per normal. If I was to use an API, then it would be the api.php file that queries the database, and API's usually accept GET requests so that mobile apps and 3rd party websites can connect. So, when a user submits their data and it is sent to login-script.php, would it be this file (login-script.php) that then sends the data onto api.php (which then connects the database and returns a JSON string) via file_get_contents and interprets the JSON string that is sent back from api.php, or is there a way simply from pressing the submit button on the form in index.php to send the data straight to api.php and bypassing login-script.php all together as all this file does is receive the data from the form and send it on again to the API and then interpret the JSON data, I did think about sending the form data to api.php via method=GET but then the file would just return JSON and there would be nothing to interpret it. So basically, everything needs to connect to the API instead of the database, and interpret the JSON returned from the database, like this image.