I am working with Wordpress right now and it is written in PHP. Let me tell you that your information is just what I was looking for. It is quite intimidating at first, but you present the information in a way that is truly easy to follow. Thank you so much for this. I am learning so much. Deficiency Judgment
I am seriously considering abandoning VC++ and switching to Linux based development.
Since I have an extesive and unfinished development in VC++ I would like to pick an open IDE friendly to VC++.
I have Eclipse and Code::Block on radar.
Eclipse seems to be too universal and complex for a begginer.
I also looked at Geany and it seems to be OK as editor.
It would be nice if it integrated with IDE, but I may be ahead of myself here. ( Baby steps!)
Last question - is this OK forum to ask linux distribution specific questions? I find Linux users group too much "how to work in Linux OS" and not programming oriented.
Thanks for reading, any constructive comments are as always appreciated.
hello , i have been trying to sort this out for hours , and there are probably 2000 other people who have asked this but when i try and send form results to an email adress from the local host which i set up i get this :
Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\Apache2.2\htdocs\websites\test\process.php on line 6
Thanks that worked perfectly , by any chance do you know how i can fix this error ?
It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting
or the date_default_timezone_set() function. In case you used any of those methods and you are still
getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/London' for '0.0/no DST'
instead in C:\Apache2.2\htdocs\websites\test\process.php on line 6
Technically yes, they do work the same, but the second method is very bad practice. It dosen't serve any purpose, it just wastes processing time as the string has to be compiled to check for variables (which happens to all strings surrounded by double quotes ["]), rather than just having the variable put directly in i.e. the first method.
You should only use quotes in array braces if you have an associative key such as $array['key'];.
$key = 'key';
echo $array[ $key ];
Hope that helps.
If at first you don't succeed, you're not Chuck Norris.
Hey, I was wondering how I would code, for a "Users Online Today" thingy, like the one used on IPBfree forums, for like a regular site.... well a php site. I recently created a php membership system on my site, using a tutorial. I was wondering if anyone knew how to code for it to search the Member database, to see who logged on in the 24hr period of time...
Also, along with this request... Does anyone know how to possibly use php to make user pages, of which can be edited by the user, much like the the pages from IPBfree forums.. Like being able to edit sections such as, Age, Website, Email, Interests, Location, and About Me...? I was wondering if I would be able to make that possible through PHP... Once a user Registers, their page is made, like "sitename.com/members/'username'.php" so that from every other page it has the option of "Control Panel" and through there, Edit Profile, Edit Email, Edit Password, and stuff, of which I can add at a later date, but when they click on the edit profile link, they can edit said fields. Then with this, allow for a members page, that shows a list of all the members usernames that once clicked takes the viewer to their profile, which shows said information... Please Help me, I haven't been able to find this information on other sites, I also asked in the IPBfree forums as well and they wouldn't give me any information that I could use other than it will most likely need to be used with a MYSql database. Also I have spent over 100 hrs searching for it. But whatever you can do to help, will be appreciated! Thank-You!
I was wondering if anyone knew how to code for it to search the Member database, to see who logged on in the 24hr period of time...
How do you save your user data? You didn't tell. I assume you use a MySQL-DB. Everytime a user logs in, you have to save the login-date/time into your DB. To find out who logged in during the last 24 h, you just have to select the login data where time is less then 24 hours away from now.
I was wondering if I would be able to make that possible through PHP...
Sure, but not with what little knowledge of PHP you seem to have. You are right, you need major help. But you won't find anybody here, who will present the whole project to you. Try to get the basics and continue from there. If you have a specific problem, then ask.
-create a MySQL-database where you store user data
-create a website in which to show the user data (user profile)
-connect to your database and fetch the appropriate user data
-fill your site with that data
-insert a save-button, to allow the user to change his entry
There are hundreds of examples how to do that. But don't just get one of them and copy them to your project. Try to understand, what has to be done to achive your goal, not just copy and paste.
I'd suggest, you get a beginner's book to start.
(I know this is not the answer you expected.)
"I love deadlines. I like the whooshing sound they make as they fly by." (DNA)
Well, since you've presumably used mySql to store the user details, why not add a field to the database called something like lastLoginTime.
I'd probably fill that field with the Unix time, since it's much easier to compare two integers than 2 strings.
$curLoginTime = time(); // number of seconds since Jan 1 1970
Make sure you save this data to the user's lastLoginTime mySql entry.
All you have to do then is run a query that retuns all users.
Run the time command again, subtract 24 * 60 * 60 seconds from the result, and that's the number of seconds elapsed from 1 Jan 1970 to 24 hours prior to the current time. If the user's lastLoginTime is an integer higher than this number, you just found someone that logged in in the last 24 hours.
As for the user management panel thing - that's also relatively easy. You just make sure that every piece of info on the screen you wish to edit has a corresponding field in the mysql database.
Though, I will mention a small thing that may otherwise cause frustration: The general form of the url for a user's personal page will be "sitename.com/members/filename.php?user=userName" - The reason for the difference is that you _don't_ want a new php page for each user, you want to create one page that will handle all of them, just pass the actual user as a variable to the statistics/editing page.
I'd just be inclined at this point of the learning-curve to hit google with "free forum php code" then scan the results for an example that does what you want, or uses a method of achieving something else that you can adapt to your own needs.
Failing that - I'd still use somebody else's as a starting block, just try to add new features to their code.
But you won't find anybody here, who will present the whole project to you
Me included. While I did indulge the previous request - That was a comparatively small one.
Smithers-jones suggests some useful tactics. Understanding code and not just copying it is perhaps the best advice one can give a fellow coder.
Okay you said....................... "As for the user management panel thing - that's also relatively easy. You just make sure that every piece of info on the screen you wish to edit has a corresponding field in the mysql database.
Though, I will mention a small thing that may otherwise cause frustration: The general form of the url for a user's personal page will be "sitename.com/members/filename.php?user=userName" - The reason for the difference is that you _don't_ want a new php page for each user, you want to create one page that will handle all of them, just pass the actual user as a variable to the statistics/editing page."
Okay, how would I code for the page... of which when I use the is online, clicks on the link, "Control Panel" they can go to a page of which shows links to... "Edit Profile", "Change Password", "Change Email", and so on and so fourth.... Where I will add the "Custom, Editable Fields" to the MySQL table of which the user was registered to.... But the editing page, and link page.... how will I be able to create it like you have shown..... "sitename.com/members/'profile'.php?'id'='userID'"... So that when a user logs on, and they access the editable pages, it has that type of link... with the only exception being their id as the ID they recieved upon registration. Thanks.
Well... Thats okay, I don't think I shall put it on the site right away, but I would've made sure I code finish the coding by myself, and test it until it works, then save the code for when the site has more activity. Thanks though. Also, I was wondering if it was okay to exchange emails through the site, so I could exchange with you, to let you know when I am ready for the help on this topic. Thanks.
Last Visit: 31-Dec-99 19:00 Last Update: 6-Feb-23 9:45