feenix89 Posted June 21, 2010 Share Posted June 21, 2010 Hi there, if u'd be kind enaf 2 help a newbie out.. i have this simple news script called microNews, its exactly what i need but it lacks the Delete feature to delete an old or unwanted entry... i tried to contact the owner but the web seems abandoned! i would've given u the link for the script but i've already made some small changes to it so i attached it instead your help is greatly appreciated [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/205484-how-do-i-do-this-a-humble-request/ Share on other sites More sharing options...
gizmola Posted June 21, 2010 Share Posted June 21, 2010 The system is pretty primitive. From looking at the admin.php script it simply makes files in the ../news/ subdirectory with the name of the file being "title.txt". PHP offers the unlink() function to let you delete files, so you could pretty easily either alter the admin.php or create a delete.php script that lets you input the title of a news file for deletion. Alternatively you could code things to move the file to a different subdirectory, in essence hiding it. You'd use the rename() function for that. Quote Link to comment https://forums.phpfreaks.com/topic/205484-how-do-i-do-this-a-humble-request/#findComment-1075303 Share on other sites More sharing options...
feenix89 Posted June 22, 2010 Author Share Posted June 22, 2010 yes it is a very basic script, problem is, i'm not that good at coding otherwise i woudn't have posted it here thanks. Quote Link to comment https://forums.phpfreaks.com/topic/205484-how-do-i-do-this-a-humble-request/#findComment-1075309 Share on other sites More sharing options...
gizmola Posted June 22, 2010 Share Posted June 22, 2010 This isn't a script writing service, it's a php programming help community. I gave you all the information needed on the specifics. I mean, unlink() -- it's a simple function. If all you want is someone to code changes for you, you should consider posting in the freelance forum, and paying someone a fee. Quote Link to comment https://forums.phpfreaks.com/topic/205484-how-do-i-do-this-a-humble-request/#findComment-1075323 Share on other sites More sharing options...
feenix89 Posted June 22, 2010 Author Share Posted June 22, 2010 just so you know i'm not a stingy cheapo, i had a 3 year membership at experts exchange... the reason i posted it here is because, like you said it's really easy for experts like yourself, i'm not that familiar with php variables and syntax... thanks anyways. Quote Link to comment https://forums.phpfreaks.com/topic/205484-how-do-i-do-this-a-humble-request/#findComment-1075515 Share on other sites More sharing options...
gizmola Posted June 22, 2010 Share Posted June 22, 2010 I'm sorry if you took my comment in that way. I have no opinion on your degree of frugality -- only the ground rules of the community. Usually when I make a reply like my original one, it starts a dialogue because the person either starts to dig into the matter themselves, or doesn't understand the advice. I assumed since you indicated in your post that you had modified the original package, that you had done some degree of customization of it. Certainly there are people here who are altruistically motivated, but this is still a forum for developers. If we didn't say no, we would be innundated with people who simply wanted free programming services. As it is, there are many experienced php developers who frequent here, and we provide the freelancing forum to allow for people to advertise to them. I don't have any real statistics since we maintain a handsoff approach to that venue, but I would guess that literally hundreds of people have secured programming services via that forum, at no cost to them in terms of advertising fees or commissions. I will say, that depending on the degree of bells and whistles, your request could be knocked off by someone who knew what they were doing in an hour or 2, and you could probably get that work done for a very reasonable amount. Best of luck. Quote Link to comment https://forums.phpfreaks.com/topic/205484-how-do-i-do-this-a-humble-request/#findComment-1075667 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.