Type: Posts; User:
You need to start a new thread and post all your code. Switch on error reporting on the server that doesn't work. If it all works on you windows server but not on another it is probably a permissions...
Something like this:
function ResizeToAspectRatio($source, $destination = NULL, $longside = 800, $as = NULL)
$as = $as?$as:4/3; // default aspect ratio (4/3)
$as = ($as < 1) ? 1 : $as;...
How do you want to resize?
What email notification? Looks like you need to start another thread because what you are asking is not related.
Nothing complicated about PHP.
$uploadFilename = $_FILES[$fieldname]['name'];
Allowing people to decide the file name is a major security risk.
That code was just an example of one way to name a file so there weren't collisions. If you want to call a file something specific just write it into your code.
Man I suck. When I grow up I want to become a real web developer.
What about the tabs? Am I missing some glaring shortcut there too? I don't often do coding any more so I'm a bit out of touch.
I've got a checkbox in an li element. I put an onclick on the li element to toggle the checkbox. This works fine if I am over the li element but not over the checkbox. But if I am over the checkbox...
min( abs($diff % 360), 360 - abs($diff % 360) );Thanks NogDog. That's a percent sign isn't it?
Trying to work out a simple way to do this. For a circle I've got to work out if one position is within 3 degrees of another. I want to do this with maths, not PHP built in functions.
$pos1 = 3;...
You should be using a database specific function like mysqli_real_escape_string(), not addslashes. Also if you end up with 1\/2 after using stripslashes that means you started with 1\\/2, i.e. 2...
Echo this query and check it for syntax
# Assuming image1, etc accept null values you could try something like this... Not tested
#set some variables
$query_part_1 = '';
Post the bit of code that is building the query.
Save the upload date in your DB and every so often delete the ones older than a certain age. Could be set up as a cron job.
The site owner can add new pages via content management system.
Once the page is created a new link automatically appears in the side-menu.
Because this is CMS the side-menu built purely based on...
Still not clear. What variable is not an array? If it is $data and you are only requesting one field it is not going to be an array.
You need to take a look at your zip code class and find out why it is returning a float when you are expecting an array.
Do a var_dump($zips) to find out what the data type is and what it contains.
I just get a parse error from the link.
Probably a register globals issue. Where is $p being set?
What do you think is controlling the demo?
Dude, if you're just running Apache you can only serve static pages. Pages with query strings need to be processed by a scripting language.
If you are not using any rewrite function on your current server why would you need to with Apache?