Jump to content

redbullmarky

Staff Alumni
  • Posts

    2,863
  • Joined

  • Last visited

    Never

Everything posted by redbullmarky

  1. how do you mean "PHP FTP" ? are you referring to PHP's built in FTP functions? either way, FTP is FTP. You'll find the same settings you use for Filezilla will work on all other FTP clients (including PHP's FTP functions). I'd be lying if I fully understood your question, so excuse me if I've missed the point...
  2. i do believe it's down to your post count before you can sent PM's, but if someone has their email address hidden after that, it's hidden for a reason. I'm not sure what the post count for getting PM's available is - not many I don't think - but please don't start firing off random posts to get your postcount up. (not saying you will, just pre-empting a common one ) cheers
  3. here's a good start: http://uk.php.net/highlight_string
  4. please can you post a test account username/password for those that don't want to register...
  5. i'll assume that this is a copy and paste job of your actual script, in which case: a) check your spelling: if($uplaoded_size < 150000) b) you're using a handful of vars that seem to come out of nowhere, such as $uploaded_type, $uploaded_size. consider putting this near the top: <?php $uploaded_type = $_FILES['uploaded']['type']; $uploaded_size = $_FILES['uploaded']['size']; ?> c) check that the directory you're moving the files to ($target) is writable if all of that doesnt work, can you post your HTML's <form> line too as well as the 'exact' error you're getting?
  6. not at all. it was just my cut and paste job not cleaning up afterwards the var is declared via the function parameter, so no need whatsoever. whether this is good practice, i do not know - i'd guess not, as your constructor closes up the head and only allows a change in page title. so if you need to include JS files, additional stylesheets or others other than the skins/default/style.css, you'd run in to problems. using your current way, you would be better passing an array into the constructor for later use, so rather than: function __construct($title) and: '<title>'.$title.'</title>'."\n". use: function __construct($params = array()) and '<title>'.$params['title'].'</title>'."\n". which would allow for additional changes without changing code that already uses the class. Having said all that though, it might be worth looking at template engines of some form. It'll take away all of your problems but give you tonnes more flexibility - and ultimately achieve a "good practice" goal of seperating HTML from your main PHP logic. Have a read here: http://www.massassi.com/php/articles/template_engines/ Cheers
  7. is there any reason why the images directory being "full" is a bad thing? It wont get full to the point you can no longer write to it. I use a DB to keep track of all the stuff you'll find in the $_FILES array (mime, filename, etc) as well as a unique filename I generate for the file on upload. I generate my own names mainly to avoid any sort of clash, with something along the lines of: <?php $ext = '.jpg'; // this is retrieved from $_FILES['name'], not preset like this // repeat this loop until we have a unique filename do { // generate a random filename $filename = md5(rand()) . $ext; } while (file_exists(UPLOAD_DIR . $filename)); // $filename now can be inserted into the DB, and is also a unique filename ?>
  8. unless i'm missing something, why not: <?php class page { var $title; function __construct($title){ echo "<html>\n<head>\n". '<title>'.$title.'</title>'."\n". "</head>\n<body>\n". } function __destruct(){ echo "\n</body>\n</html>"; } }?> <?php require_once('lib/master.inc.php'); $page = new page('Main Page'); ?>
  9. lol cant say i'm a fan of stuff like that. Adobe aren't the only ones... but: Something gives the impression that it could have a ©, ® or a picture of a helicopter and it wouldnt really matter
  10. maybe you could do with a Satnav ? the answer really depends on your setup as it stands, and how well it's written as it is. as i notice signs for paypal on their already, it'd be worth reading through their development site. it's a bit confusing to begin with but the actual volume of code to handle payments is generally not excessive and not massively hard to integrate. Like i say though - it depends on what the state of it is at the moment and the specifics of what you have already/need. If you don't know what you're doing with respect to PHP/MySQL, then outsourcing it maybe the best option.
  11. Mutley, it's a good idea and one that I'd probably get involved in if it was here - however, Sourceforge (whilst not very "community driven") is probably the best place for stuff like that as you can specifically choose what type of project you wanna get involved with and what area you want to focus on. Having said that, if tomorrow morning there was a forum that appeared from nowhere saying "Help Build the PHPFreaks Community CMS!", then I'd be in.
  12. Welcome to the forums I'm moving this topic to the correct place - please read the forum/board guidelines before posting as the OOP forum is for questions related to OOP rather than general PHP help.... personally I use phpMailer so I don't really delve into the specifics of the mail function and its errors/warnings (though I probably should)... Cheers
  13. surprising for Ask, but UK/Canada only... Sorry dude. No prize winning help from me
  14. can you provide a proper/correct link? the idea of guessing does my head in.
  15. there is always the option of a clearly displayed "click to listen" which THEN opens in a popup - personally i'm not a fan of any site that starts playing music or sounds automatically as it interrupts me when i'm listening to the footy on the radio, or iTunes.
  16. [quote author=tomfmason link=topic=105646.msg581369#msg581369 date=1177343235] ...I guess there is a big hole in that.. :P [/quote] i guess THAT depends on what sort of "entertainment" you're looking for ;D ;D ;D
  17. sure - but am i right in thinking that if you can join someones wireless connection, that you become part of the local network just as if you're in the house? sure, passwords and what not can still get in the way of getting access to the files, but there are still things that it appears you can do when you're dealing with local as opposed to remote computers and there are still occasions when the individual computers aren't locked down at all.
  18. hmm well Reflection is a bit new to me as a tool as well as the concept, but how would that help me determine which methods are being used through a process? Am I missing something basic?
  19. As for the complaints, I've not had a problem with the registration side of things and I've probably had about 15 domains in all with them (com and co.uk). Like I say, take the complains on board but ultimately with a pinch of salt, as people only tend to speak up when they have a problem. What you never see is a thread dedicated to how good they are, or a post saying that they got it resolved and all is good. Having said that, I'd probably consider myself fairly technically minded, so I just know what to do and what I'm looking for - I can see how someone who's just doing a personal site or something might be a bit confused setting it all up. (ps I do not work for any of these companies )
  20. i see where you're coming from there. However, I would definitely recommend the Webfusion part of Pipex to anyone for hosting (I cant speak for 123-reg hosting as I've never used it, but its probably aimed more at the hobbyist who wants something VERY simple). Yeah I've had my problems with W.F - but you get those anywhere. People generally only write stuff when they have a problem, hence the volume of complains you see about companies. I've tried others for domain registration, but for ease of use coupled with the full control + price you get with 123-reg. I'd stick with them even if Webfusion decided to piss me off. I only left Newnet because I needed a VPS, but if it's just regular hosting you want, check them out: http://www.newnet.co.uk/powerhost/business.php - I found the hosting very reliable and fast and whilst the company seems quite small, the support is very good (notably by email, but phone support kinda ok too)
  21. the fact it seems you had to justify the colours/eyecatchiness, etc kinda stated up front that you yourself may already see problems with it. it is pretty bright but otherwise quite plain. maybe you'd be good to take a look at sites aimed at the age group you're targeting and taking idea of the design, notably the use of bright colours. the colours you have could POSSIBLY remain, but not in the large doses they exist in at the moment. take a look here: http://www.bbc.co.uk/cbbc/ i'm not a massive fan of the BBC as a company, but their sites are second to not many - in this case, that's a sub-site with children/young teens as target audience, yet manages to look quite "grown up" and professional and hence not at all patronising. Like I say - try and find a few benchmarks and popular sites for your target audience and figure out what they're doing and why it works. Cheers
  22. you mean actually "manipulate" and insert logging code on the fly? (read the php file, add the code, rewrite it). yeah i guess that could work, as i currently have ability to seperate the framework into "production" and "development" versions, so i guess nothing wrong with extending this further... i'll let you know how it goes. cheers!
  23. i guess my first question has to be - what is it? you dont filter the input, either - allowing both javascript and regular HTML to be submitted
  24. genericnumber1, yeah i did consider logging each method but some of them are literally only a line or two long as they are, and the resources used in another function call would have probably made it a bit sluggish. I also considered (as it's a long term solution not just a short term clean up thing) renaming all my methods with a prefix (so they wouldnt be recognised at all by apps using them) and running them ALL through a __call method, but again I'd guess this would be quite sluggish. As for extending PHP, I wouldnt know where to start. I've looked also at a few debuggers that seem like they might do the job, but really this kinda does need to be integrated into the framework rather than extensions or other tools. John - yeah I have both an index and front controller, so I guess no issues implementing something like that, just that I find the backtrace quite limited for uses such as this in that it doesnt backtrace that far. I guess I could give it a go on a smaller part and see how it goes...even if it doesnt work, I'll prob still pick up a few useful tricks along the way... Thanks both Mark
  25. (moved from beta testing) you're right though, i can see how it'd be quite useful especially from a developer/client perspective.
×
×
  • 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.