Jump to content

redbullmarky

Staff Alumni
  • Posts

    2,863
  • Joined

  • Last visited

    Never

Everything posted by redbullmarky

  1. ted, i dont want to sound out of line or dismissive here, but I'd like to point you to two things, both of which are stickied at the top of the PHP Help forum. 1) the forum posting guidelines - including not pushing your problem excessively or expressing urgency. people here help for free. if you need help quicker, the freelance board (for paid help) maybe more useful to you - else patience would be appreciated. i've told you about this before though you seem to have forgotten. unless you're gonna pay - everybody's post here is equally important. 2) the PHP FAQ thread, also pinned at the top of the PHP Help forum, is worth a read, as most/many of the problems you're having is covered in there. Many of the scripts you're using are scripts that people have written for you over several other posts - so at least have the brain to try and understand how they work before dismissing them as broken - and most of the answers are in the FAQ or [url=http://www.php.net/manual]the manual[/url]. Helping yourself and thinking of your problem a little first will go a long way, especially for your future. Sure, if after all that you still cant find an answer, PHP Help is your place. again, i dont want to be unnecessarily out of line here, but it's not like i havent mentioned it before to you - trying to help yourself out a little first, and doing a bit of your own research will go a LONG way. Cheers
  2. as ken said - check for code before the < ?php, even if you cant see anything. go DIRECTLY to the left of the very first < and press backspace a couple of times, save it, and try again. the sticky at the top of the php help forum (header/session errors) will explain several causes and solutions, but 9/10 in this case, it's due to something being output to the browser before your 'session_start'. cheers
  3. when you say "it doesnt work", can you explain what exactly it is you're trying to achieve?
  4. even still - using JOINs on a well formed database is going to be much more scalable than the addition of a new field for each level. Both the examples form a well structured hierarchy. Eric - thanks for the link though. Am trying to get my head around the latter example as it's pretty interesting.
  5. looking at your code now, session_start needs to be right at the top of your page. no html (or output of any kind) can be sent before headers/sessions. move session_start to the top of your code (obviously within a < ?php  ?> block
  6. have a look at the sticky at the top of PHP Help forum, regarding session/header errors. almost 100% guaranteed that it'll solve your problem: http://www.phpfreaks.com/forums/index.php/topic,37442.0.html
  7. fert, ctrl+alt+prtscr wouldnt necessarily be easier. consider a portfolio where you just want a snap of a website, not all the windows, etc, around it which you'd have to open in graphics editor, trim down, etc. i've seen it asked loads of times around here if it's possible to take a snapshot of a website (like Alexa, etc) so tools like this are well useful. I ran it through a translator to see if the source is available, but with no joy. if anyone can tell me any different though...I'd be a taker.
  8. I'm with Eric 150% on this one, and the MySQL example is perfect. For a slightly more complex MySQL query, you're left with a completely reusable tree system that can be used for all sorts of things. I know it's a different type of structure, but imagine MySpace or YouTube if they had an extra short integer for each of their members/videos, considering the number of members/videos they have? The key to good database design is not wasting space unnecessarily (even just a byte for each record), as it doesnt take long for things to get messy. Also, consider the idea that once there is tonnes of data, you may want to categorise the parent categorys into a few 'master' categories - ie, give the parents new parents. That could potentially be a much bigger job in terms of converting the database and all the scripts to handle the new table structure. say you call them 'parent' and 'grandparent'. to add a further level up, you'd need field names like 'greatgrandparent' and 'greatgreatgrandparent' and so on. LEFT JOINs can be a little intimidating the first time you use them, but it's very unlikely that if you move on to bigger and better stuff, you wont need them at all. They're both unavoidable and a god-send, IMO So Albright - you're not completely wrong, and yes - things would be simpler to start with and it would work well. But doing a script in a 'reusable' and more structured way is going to save tonnes of headaches later down the line when it comes to either expanding or putting it to use in something else. Cheers Mark
  9. pop "ip2country php" into google, and take your pick. some can be a little hit and miss when it gets down to it, but the top few in the results list are good enough. There was a post here a short while back regarding the same thing as this, and one in particular was pointed out that was updated daily, only I cant find it... Give the google search a blast though.
  10. mine is the other way around. I can see it in PHP Help but not in 'Apache' or it's sub-board (mod-rewrite).
  11. $_SESSIONS are your friend here if you don't want to reveal the data. $_GET (as suggested by craygo) are useful otherwise. for example: page 1 has this in it: [code] <?php session_start(); $_SESSION['string'] = 'information'; ?> [/code] page 2 has this in it: [code] <?php session_start(); echo $_SESSION['string']; ?> [/code]
  12. [quote author=Daniel0 link=topic=118718.msg485436#msg485436 date=1166194175] Why? What is so special about that? (I probably miss the point since I don't know what a mince pie is) [/quote] not a clue. Something to do with Oliver Cromwell, I believe. a mince pie is like an apple pie, only stuffed with mincemeat instead. This is a mince pie: [img]http://www.ukstudentlife.com/Ideas/Events/December/MincePies.jpg[/img]
  13. Yeah Merry Christmas!!! Dunno why, but I feel all Christmassy this year for once. But I wont be if Father Christmas nicks all my mince pies and Jack Daniels again. [b]edit[/b]: that reminds me, whilst i'm in the spirit - here's a random fact. In the UK, it is ILLEGAL to eat a mince pie on Christmas Day. Fact.
  14. i'm gonna bend the rules a little. OSX is close enough to Linux in my own opinion, so I'll say OS X on the Mac, just so I can get involved. Surely the only difference really (when people are considering them all in this way) between ALL OS desktops (regardless of platform) is the eye candy vs speed tradeoff? I tried Ubuntu once, and LOVED the wobbly windows when you drag them. And the cube when switching apps. But my humble computer just couldnt hack it, so I had to drool over some demos instead.
  15. Hi all anyone know of an [b]open source or free[/b] Texture Mapping package/graphics package with texture mapping features? I need to take a flat picture and wrap it round a globe. Kinda like the wikipedia logo. I'm sure someone here could probably do it for me, but a) I dont have the image ready yet and b) I'll need to be able to do it with different images in the future so need to be able to do it myself, and export to normal image formats (GIF/JPG/PNG) I have Fireworks MX, but I don't think it allows me to do stuff like that... Cheers Mark
  16. semi- on-topic, if one decided to drop MD5 from their sites and port to a new type of encryption, am i right in thinking that you'd need to prompt the user for a new password that would be encrypted in the new method? or am I missing an easy way?
  17. depends. not looked at it myself, but some "upgrades" are not as good as others. a few Windows releases have been like that in the past. but as I said in the other thread - SMF all the way from here on in.
  18. unfortunately, planning is not really something people can advise much on, as it's directly linked to your personality, etc, just like the traits talked about here: http://www.phpfreaks.com/forums/index.php/topic,115416.0.html so only you really can plan your own day and work the best. here's a thought though - nearly two hours have passed since you've started this thread. that's two hours of planning to plan. two hours is a long time to either learn or get your head down with your projects...
  19. i tend to prefer paper based here. i tried trac but i actually use an installation of mediawiki on my server to keep my stuff/notes/thoughts/ideas together as a kind of scratchpad, but as for managing my time, there's nothing like a good ol' real paper diary or a notepad. i'm semi in agreement with ober, here. too much planning takes bloody ages, and time that is valuable to earning £££. on the other hand, NO planning can be almost as bad. but the day my schedule becomes that routine is the day i'll be bored shitless going through the same old same old every day. nah.
  20. i think you've probably already found your answer ;)
  21. out of interest, where have you seen that discussed? might have to keep my eyes peeled.
  22. yes. did you try it before you asked?
  23. i'm with obsidian's first post with this one. if someone donates, they donate cos they want to - not because they need or will use some sort of money-back guarantee, so that takes away having to deduct. as for additions - keep additional donations seperate. why would they/you need to adjust it? if i make a mistake using paypal to donate £50 instead of £5, then I do believe that it's down to the recipient to refund me if they so choose. but there's enough 'please confirm' to make sure that i dont do something stupid. once you've got a list of donations (with no negative ones) then you just do what obsidian said and tot them all up. am I missing something?
  24. i more than anyone HATE bandwagons, but the best i've ever found is Textmate on the Mac. Grrrr that they dont do a PC version. It has this mad little function where you start typing (for example) 'function' or 'class' and hit the tab key, and voila - an ENTIRE skeleton of a function or class is created. further presses of the tab key skip through all the bits you'd probably want to change (like the name, parameters, etc. also just simple things - like you type a ( or a { or a [ and the close bracket is put in immediately and your cursor jumps right into the middle. seriously, i played with that thing for a good few hours and the only thing that puts me off is the fact that i like to get used to a certain way of working, whether it be on my mac or on my PC. If there was a PC equivalent, it'd be bye bye notepad, bye bye dreamweaver. But there isn't. :(
  25. @Huggie - yeah you're right. imagecopyresized can be quite hit and miss in terms of quality as it doesnt do anything further on the resulting image to 'smooth things out'. if that doesnt sort out your problem, then [url=http://www.php.net/imagejpeg]imagejpeg[/url] has a third parameter, quality, which defaults to 75 (which is normally always adequate and pretty much standard): imagejpeg($image, '', 80); cheers Mark
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.