New answers tagged server
1
You would like to use Ajax. I would recommend you use some kind of javascript library to handle the ajax calls.
"With Ajax, web applications can send data to and retrieve data from a
server."
Here is a sample.
Javascript (jquery)
var x, divided, result;
x = 6;
divided = $.ajax({
type: "GET",
url: "serverside.php?x=" + x,
cache: false,
...
0
Here is a very simple PHP script to get you started:
<?php
if($_GET['v']){
echo intval($_GET['v'])+1;
}
?>
<form>
Enter a value: <input type=text name=v>
<input type=submit>
</form>
I saved that as test.php in my www documents folder. The I opened it as http://localhost/test.php and was able to submit a number and ...
1
Sounds like the directory is not within the same user group as the ftp user and www-data account, more than likely its set as owner root.
You need to login via ssh and do a chown www-data:www-data /full/path/to/the/directory if you don't have ssh access ask your webhost.
0
There's two problems that I can see, one that your response headers are reporting the images as plain/text.
Below is one of your images processing as text/plain:
Accept-Ranges bytes
Connection Keep-Alive
Content-Length 74107
Content-Type text/plain
Date Wed, 24 Apr 2013 20:11:35 GMT
Keep-Alive timeout=5, max=75
Last-Modified Sat, 20 Apr 2013 ...
0
Visited the site and downloaded the broken image. 'file' identifies the file as a JPEG image, but on attempt to convert using image magick, the following error results:
convert: Corrupt JPEG data: 17 extraneous bytes before marker 0xc4 `120620vf4uozitjpeg' @ warning/jpeg.c/JPEGWarningHandler/348.
convert: Invalid JPEG file structure: SOS before SOF ...
Top 50 recent answers are included


