Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
... and automatic indention. Cannot live without that.
-
The things checking if it's images are things like this: $_FILES["file"]["type"] == "image/gif" in the if statements.
-
Just thought I'd give everybody an update on this so you know it's actually being taken care of. The code for the new site has been written and is currently being tested. Had it not been for the fact that the owner of this site, Eric (aka phpfreak), has discarded the current layout, which has been picked by the other staff and recommended members, the site would probably have launched by the end of this week. Now we need to get a new layout however and that will obviously delay the release of the site. The site can most likely be expected to be released some time this month though. Thanks for your patience regarding this. Hopefully the mods and recommended members will participate in creating new awesome tutorials after the release of the site.
-
You can put that just after imagejpeg().
-
To give it a unique name you could prepend it with data from uniqid(). Store the path to the file and the filename it should have in a database. Then you can access it like download.php?file=213 with a query like this: SELECT * FROM files WHERE file_id = 213; In the table you could assign the file with a ticket and a user as well by referencing the ticket id and the user id it should be assigned to.
-
That's up to the game developers. All other types of software developers should support Linux systems as well. Software incompatibility is what's holding me back from using Linux full-time.
-
Yeah, that should work. You could try it out though.
-
Send email if any of the following 8 checkboxes checked in entry
Daniel0 replied to DirtySnipe's topic in PHP Coding Help
It's unlikely that somebody will write it for you. Consider posting in the freelancing forum if you want that. You can specify in the title that it's unpaid work if you'd like (just prefix it with "[unpaid]" or whatever). -
Generate thumbnails of images after uploading
Daniel0 replied to jaxdevil's topic in PHP Coding Help
You could just save it instead of outputting it. -
They probably have other files handling the template files.
-
Send email if any of the following 8 checkboxes checked in entry
Daniel0 replied to DirtySnipe's topic in PHP Coding Help
I didn't bother to read all your code, but something like this should do: <input type='checkbox' name='test[]' value='1' /> <input type='checkbox' name='test[]' value='2' /> <input type='checkbox' name='test[]' value='3' /> <!-- etc. --> <?php if (is_array($_POST['test'] && count($_POST['test']) > 0) { // send the mail here... } ?> -
Generate thumbnails of images after uploading
Daniel0 replied to jaxdevil's topic in PHP Coding Help
Check out this post by craygo: http://www.phpfreaks.com/forums/index.php/topic,191541.msg861737.html -
In that case you should be able to include and open remote files.
-
Not here, nor in any the articles unsider posted, but I've read some articles and comments on articles which are stating that it's a bad move from Microsoft and that it'll be the end of Windows and such things. I know it's crap usage of sources, but I cannot provide you with any links right now as I cannot remember where I read some of those things.
-
Also, check this out: http://www.phpfreaks.com/forums/index.php/topic,125759.0.html
-
When people talk about *nix being modular they are typically refering to the underlying kernel, not the user space packages that run upon it. They may also be talking about the fact that you can, if you wish install a base system and build from there. This is particularely good for servers. The less software installed on a server the less software there is to be exploited. You can install Linux as a command line only system. This can't be done with windows. I have some vps's at home with minimal debian installs and the amp stack coming in at less the 100Mg. You won't see any versions of windows that small. I agree with that, but I still don't get why people are bashing Microsoft for making Windows 7 more modular even though it still won't be to a such degree as *nix based systems. Modularity == good, IMO.
-
If you change it to $_GET[$getName] = san($getValue); then it would. Check out array_map() though.
-
You also need to change the query to SELECT * FROM Users where position='admin'
-
if ($a == 1 && $b == 2 && $c >= 10 && !($c > 20)) {{ // code here } Reading this part of the PHP manual might be a good idea.
-
I find it funny how a lot of people praise *nix by being extremely modular, but as soon as Microsoft does it with Windows modularity is suddenly regarded as something bad (not specifically directed towards you, Jeff). Same goes for the "high" number of versions for Vista. People complaining about too many choices, but try to count how many different GNU/Linux distributions there are out there. You are already able to select which features you would like from Windows. This currently works by purchasing different versions (XP Home, XP Pro, XP Media Center; Vista Home Basic, Vista Home Premium, etc.). This new modularization just makes the choices somewhat more fine-grained than purchasing packages of features in form of different versions.
-
Well, you could select all the menu items and loop through them. You could then check the id inside the loop.
-
Check out allow_url_fopen and allow_url_include in php.ini.
-
You can use uniqid(), but that'll create an alphanumeric string. I don't know if that'll do. Otherwise you could use time() or something. It'll not exactly be random, but it'll increase every second.