I have an image upload that uploads an image to a tmp directory from there the image can be viewed. It is resampled at 50% and is fine.
Then when a client is happy they can submit the image which is then cut into segments. I take the tmp image and imagecopyresample it again - see below.
//...
Is there anyway i can reduce the quality of my images automatically in php. I need to reduce the quality to 80% or so, to reduce the file size.
I need to introduce the script when the image is uploaded to the site. Since i can't guarantee whether the client has uploaded an optimized image i...
I'd like to display a page chosen by random from several pages, but the pages need to be ranked with importance. E.g
Page1 = 50% Page2 = 30% Page3 = 20%
The percentages can change, what above shows is that Page1 is the most important and will show itself 50% of the time, Page2 30% of the time...
I know that array_unique will de-dupe an array but how do i get the duplicate values rather than a unique array. Is there a function that will return 1 copy of the duplicate values. e.g.
array1 = (1,2,3,3,3,4,5)
array_unique = (1,2,3,4,5)
what i want = (3)
I hope you understand that!
Thanks...
Is it possible to slice up a large image into smaller images that make up the whole. E.g. I'd like to take 1 picture 600 x 800 and slice it into smaller pictures e.g 64 pictures 75 x 100.
Is there a good way of doing this in PHP?
Thanks for any help.
I would like to create a character count for a textarea which counts the number of characters but when a new line (return is pressed) the counter defaults back to a chosen number such as 160 or whatever.
So far i have been able to get the counter to increase and decrease on keystrokes but am...
I've been asked to work out why some cron jobs happen before their supposed to. Has anyone come accross this problem?
I've been assured that our crons were setup correctly. If anyone has any information on this, or has experienced it too and may understand why it happens, i would appreciate...
I have read up a bit on this. However i am having a few issues.
I am running a testing server using iis 5 with a MySQL database.
The timestamp stored in my server for example looks something like:
15/03/2004 13:00:00
15032004130000 (this is the way the timestamp is stored in the GUI i am...
Hi,
Im developing my final year project in Sun one Studio 4 update 1. I am developing some software that needs to use the MIDP 2.0 implementation but i don't know how to integrate MIDP 2.0 into the development studio, im obviously being thick but its driving me MAD. I need to use the...
My trouble is and has been for a while since i've never taken the time to work it out is how to properly format an email response. Using a table below allows me to format it and this works however it leaves a great deal of white space above the sent information. Why does it leave this vast gap...
I have been looking for a while for a way to redirect my page once someone has logged in.
I have beed trying to use the following:
header ( "Location: etc ");
exit;
but i always get the error that the headers have already been sent:
Warning: Cannot add header information - headers...
I have been having a bit of trouble trying to authorize my username and password against the MySql 'Users' table. For some reason even with a valid username and password in the database it always goes to the login failure page. I don't understand why the count does not work or why the record...
I need to know the connection string preferably to connect me to my MySQL database which is running on a linux/apache server.
I have spent a couple of days changing my connection string within dreamweaver to no avail. Would anyone know what needs to be configured on the linux server for my...
Redhat version 9
The problem is this: (setting the scene)
I have developed a web site with database functionality and my brother is offering me his Linux server running apache to serve my pages. So i have setup the correct myODBC driver to attach to his MySQL database and transfered my tables...
I am building a content management system using dreamweaver so my knowledge of asp is minimal but i have experience in programming such as c++.
My query is how to add session variables and the date to a database. So i can log the user when they sign in. I would use a greeting page when the log...
This error message has stopped me in my tracks...
Vbscript Interpretation error 'ASP 0185 : 800200004'
/contentMS/updating.asp,line 16
Does anyone know how i could resolve this problem?
Here is the code in my updating.asp file:
<%@LANGUAGE="VBSCRIPT"%>
<html>
<head>...
I am relatively new to php3. So i could be going about this the wrong way. Bare with me i need to set the scene!
I am having trouble picking up passed variables from an input form. The form collects address information. I have therefore given the user the choice of how many addresses he wants...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.