redbullmarky
Staff Alumni-
Posts
2,863 -
Joined
-
Last visited
Never
Everything posted by redbullmarky
-
I moved it here from @phpfreaks as stated above, as (s)he is neither producing code or asking for it, but asking how to create them. as with other similar questions like this though, if you have to ask the question then maybe it's not time to be looking at it. having said that, simple forums are not particularly hard to code (forget making the next SMF/phpBB/vBulletin for now though - those are pretty complex and feature packed). learn about membership/login scripts, then maybe simple database record retrieval. building a basic blog would be a good step as, in a way, they're nothing more than bog-standard, completely stripped down forums (in the respect of being a list of date-ordered posts belonging to a user). you can build out from there. A couple of Google searches for "php blog tutorials" or whatever should churn out enough results to keep you busy learning for a while.
-
*sigh* i wish people would search the forums and read the stickies before posting. this question has been asked millions of times before. take a look here for starters: http://www.phpfreaks.com/forums/index.php/topic,119433.0.html topic locked.
-
Hello and welcome to the forums Please check the board descriptions before posting - @PHPFreaks is for questions and issues about this site, not getting help for your own. Cheers
-
[SOLVED] Editing of site Content by Client
redbullmarky replied to princeo's topic in Application Design
you'd be much better reading their manual. seriously dude, as thorpe said - if you need to ask these questions, you really should not be doing the work. installing joomla is incredibly easy, and using it after that isn't too much of a learning curve - but as with anything, you need to be prepared to put in some effort (including learning from their manual) before you earn money from it. -
Awesome FireFox Plugin That everyone Needs FireBug
redbullmarky replied to A2xA's topic in Miscellaneous
have had it for several months now, and couldn't do without it. only problem is i really miss it when testing on IE as their "equivalents" are pretty awful. Firebug coupled with HTML Validator are unavoidable for me. -
re PHP on Trax When a framework is written, I believe that to be good, it needs to take advantage of a languages best bits and build on them. Certain syntax that is native to a language just make parts of a framework so much better. Now - as PHP and Ruby are very different (notably in the way objects are handled, and even down to what is actually considered an object), its pretty hard to emulate one languages framework on another with decent results. My opinion of PHP on Trax is that it's overblown, quite tricky to use, and doesn't try and stand on its own two feet as a decent framework in its own right. I chose Cake as the better of the two, mainly cos it's based loosely on Rails but it does its own thing. I'd only recommend rolling your own framework if you have a fairly advanced grasp of things, as it can get very messy very quickly without proper planning. Using some of the others are great to get a good idea of how they work as well as which one(s) you feel most comfortable working with.
-
Microsoft to purchase Yahoo? http://news.bbc.co.uk/1/hi/business/7222114.stm
-
here you go : http://www.phpfreaks.com/forums/index.php/topic,112560.0.html welcome to the forums
-
done
-
a mixture of fopen() and its associated functions to grab the file, and a decent email script with attachment support (PHPMailer is good) would probably do the trick. http://phpmailer.codeworxtech.com/
-
it's the way your session handler works. many forums and other CMS's use the database to store sessions, so they can store additional info such as the user agent, IP, etc. This way, all you need is a simple query to the sessions table and you're away. see http://uk.php.net/session_set_save_handler there are other ways of doing it, made easier if you have a common include file for every request (such as a front controller). simply store the IP/Agent/Timestamp, etc followed by a cleanup of records that are older than a certain period, and you're done. Just query the table when you need the info. The reason why I personally use sessions is just keeping all info together as there are many other uses, too.
-
hmm i suppose "website syncronisation" might be worth a shot, as i'm not aware of one off the top of my head - i'd be interested to find out what you come up with though, as i also have the same issue of old files. I know BBEdit (Mac) has the ability to compare folders, and tells you which files exist in one and not the other, but i'm not sure that one of these folders can be a remote one.
-
if you don't need to go down to postcode sort of detail, but can live with cities, then you can grab a copy of the cities database from here: http://www.maxmind.com/app/geolitecity you'll need to do some cleaning up and decent filtering, but i've used it and got some pretty good results. coupled with some basic maths, you can easily work out what's "local" (ie within a certain radius), if that is indeed what you're trying to do. keep an eye on other parts of that site too, as on their postcode page, they state: http://www.maxmind.com/app/postalcode many of these sites that deal with postcodes to auto-fill address up to street level didn't start out like that - obviously extra features are added over time and with money.
-
What is the best free image editor out there?
redbullmarky replied to bilis_money's topic in Miscellaneous
a quick browse of recent topics here in this very board brought up this: http://www.phpfreaks.com/forums/index.php/topic,175196.0.html and this http://www.phpfreaks.com/forums/index.php/topic,174909.0.html and this http://www.phpfreaks.com/forums/index.php/topic,167647.0.html topic locked -
Time limit on editing posts on this forum
redbullmarky replied to neylitalo's topic in PHPFreaks.com Website Feedback
sure - but personally i'd rather have a board clogged up with additional posts with additional useful info, than a board clogged up with threads that make no sense due to a user editing a post that has been replied to, be it to delete it or change it beyond initial meaning. it's not very often we have to remove topics or warn users for spamming in this way, if the content is going to help the topic be more clear (as opposed to many mindless bumps within tiny amounts of time). after all, clear topics that help people are why we get so many visitors and members. i'd rather live with occasionally doing this than removing entire threads due to the fact they make no sense. on another point, @BlueBoden - you're entitled to an opinion, but unfortunately we cant make everyone happy - and ultimately the admin's have the final say and need to make decisions because the place would fall to pieces otherwise. in this case, i 110% agree with having a time limit. If you'd have been around before the timelimit was introduced, you'd agree too - trust me. -
Hello and welcome to the forums. Please make yourself familiar with the forum guidelines, and carefully read the board descriptions BEFORE posting a new topic. @phpfreaks is for questions regarding this site, not your own issues. as for your question, it has nothing to do with PHP as it's a client-side issue. you can probably achieve it with pure CSS as an alternative to the Javascript one suggested by phpQuestioner. .image { width:75px; height:75px; } .image:hover { width:120px; height:120px; } although (not sure if still the case) i believe some browsers don't like :hover on anything other than regular links. some CSS-only tricks dealing with this sort of things can be found here: http://www.cssplay.co.uk
-
Very Limited Modification Time On A Post
redbullmarky replied to phpQuestioner's topic in PHPFreaks.com Website Feedback
if people took notice of the stickies, and did use the preview button, THAT would be less of a drag on the servers the limit on post editing has far less problems than unlimited time - notably people destroying content, editing posts after replies hence making the topic make no sense, and many other reasons, etc etc -
please search the forum before posting. this question gets asked every week or two and the reply is the same - read here: http://www.phpfreaks.com/forums/index.php/topic,172303.0.html
-
personal sites are always good when the ideas pot is empty. or a site based around the type of site you like doing. if you're that bored and are in need of something to do, then you're posting on a forum. forums are easy to make basic versions of, yet will challenge you should you decide to take it further. IMO, if someone is going to give you specific ideas, then they're either: 1, new to PHP with a great idea that they're naive enough to reveal for someone else to cream off the profits or 2, far too generous for their own good or 3, not new to PHP, but their idea isn't good enough for them to build themselves i don't wanna sound like the one that sucks the life out of the party, but it always seems a bit suss when i hear this question
-
here's the problem: $query = mysql_query("SELECT SUM(totalearnings) FROM 'mybb_users' WHERE Lead LIKE '%c%'"); $result = mysql_query($query) or die(mysql_error()); instead, you need: $query = "SELECT SUM(totalearnings) FROM 'mybb_users' WHERE Lead LIKE '%c%'"; $result = mysql_query($query) or die(mysql_error());
-
would UNION be what you're after?
-
also - slightly off topic - as you're still learning (and i'd recommend this anyway, to anybody) avoid the 'shut up' operator (@) before your mysql_query function call. if the query fails, you're going to want to know what exactly went wrong, but the @ will hide any errors from you making debugging hard. just: $result = mysql_query('SELECT id, name, sname FROM gen20'); is fine. else, at least check the result to make sure it's working as expected.
-
FYI, it's mysql_num_rows()
-
Form handling in MVC (validating / error reporting)
redbullmarky replied to Wuhtzu's topic in Application Design
so that when i turn javascript off, i can submit your form and register with dodgy details and all sorts? thing is, if you have a nice class to do your validation, then you could always build in the functionality to generate the JS anyway. eg: <?php $validator = new Validator(); $validator->addString('name', *conditions*); $validator->addNum('age', *conditions*); if ($_POST) { $valid = $validator->validate($_POST); } $js = $validator->buildJS(); // js now contains the JS for your view sure, it's only one way of doing it and depends where you're coming from. best to try avoid relying on JS to handle the main validation, tho.... -
Welcome to the forums. I've moved this from @PHPFreaks because that forum is for questions, etc regarding THIS site. Please read the board descriptions thoroughly first before posting, rather than apologising within your post for your question - do you mean an interface to browse it like phpDocumentor? http://www.phpdoc.org