193 Posted Topics
Re: [QUOTE=Roberdin]only idiots have register globals enabled. And obviously it's best to be content specfic, eg $send_mail or whatever.[/QUOTE] Most webhosts have register_globals on, but I always use .htaccess in my root to turn it back off for myself anyways :) | |
Re: I rarely use the features that come w/ my internet connection (besides internet ;)) so I'm not aware of many of them; pop3 account and webmail are only 2 of the few that I know of. Anyways, I'm in Canada, and it's $44.95 CAD with no maximum monthly limit, and … | |
| |
Re: I'm sure there are more students than professionals on these forums :) | |
Re: You can basically just use any webhost that doesn't block hotlinking images, which there are a lot of ;) | |
Re: Also I find this handy if I want to completely block users from viewing the contents of a folder; just put [b]deny from all[/b] in a .htaccess file to block all users! :) This is great for a folder that contains include files that are included by other scripts but … | |
Re: Use <input type="checkbox" name="checkbox[]" value="your value" /> Keep using that for your checkboxes, but just change value="". It will put all your checkbox values into the $_REQUEST[checkbox][] array. Then on the next page and the page after, etc. etc., just output this into HTML: [php]<?php $previous_checkboxes = ''; foreach ($_REQUEST['checkbox'] … | |
Re: AdSense, in my opinion, is great. It is easy to integrate, and the return isn't too bad, especially for its simplicity. Not much else to say. I don't even optimize my pages (my site's a forum, actually, like Daniweb) but that's not really a problem for me. The ads are … | |
Re: [QUOTE=ndw2004]whats a php nuke?[/QUOTE] Google it :) It's a CMS basically (content management system). The way that I learned PHP was by immediately creating scripts that people requested, at different websites, such as [url]www.vbulletin.org[/url] (vBulletin addons and mods). That helped me to learn things and give me new creative ideas … | |
Re: Ajax is the future, not Flash. Reason? Ajax does not require any plugins to be installed. All you need is a modern browser, which more people certainly have, than Flash. Also, you need to continuously update Flash - in fact, Macromedia just recently released a new version of Flash a … | |
Re: Just download WAMP for Windows or LAMP for Linux. I'm unsure if those complete packages still exist, but give it a try. It downloads the entire set for you and you can install it as a bundle... I believe. | |
Re: You call those old Macs? I remember my mac, was a 1988 model or something? (I wasn't much of a computer fan back then, if you know what I mean :p) I only used it for playing chess against an AI :D I can't quite remember the exact model (I'd … | |
Re: Yeah, it's a good idea, but I think that just replacing the entire word with one character is neater so you can see the length of the character (and guess what it is if you really need to know what it was :p). | |
Re: I'm a little late, but oh well - happy birthday from me too :D | |
Re: Yeah, a Java applet is better, or a Flash file, than PHP for video chat. | |
Re: Nice job, Dani! But, where's vBulletin 3.5 (Ajax)? Different colors for each category? And please increase depth of forums shown on forum index. This new layout has a bit of a learning curve for those who are used to the old one. Even for me, I sort of had to … | |
Show the subforums on the forum index so we can see what subforums exist. With the way it is now, people don't even know that most of the subforums exist. I wasn't even aware that this forum ([b][url="http://forum26.html"]DaniWeb News and Feedback[/url][/b]) even had subforums until I opened it. There is … | |
Re: [url]http://ca3.php.net/manual/en/function.asort.php[/url] | |
Re: You don't have to get really advanced to get the time :) There is already a built-in function for that that can do all of that in one line. [php] if (date('A') == 'AM') { // it is AM } else { // it is PM } [/php] | |
Re: [url]http://statcounter.com/[/url] is another good service for this. I suggest using whatever control panel you have available to you and using that instead, though, since those are often more powerful. I'm talking about products such as Urchin, AWStats, etc. | |
Re: You'll need to explain your problem more clearly. I have a hard time understanding what you are trying to accomplish. | |
Re: The MySQL server also needs to be running before using it. It is not like PHP, since PHP only runs when it needs to. Start -> Run -> "services.msc" -> Enter. Then select the MySQL service and hit 'Start'. | |
Re: [QUOTE=_priya_]Have you googled? I found the following for you: [url]http://www.a1javascripts.com[/url][/QUOTE] I don't think these are what he wants. He wants something like: [url]http://www.php.net/quickref.php[/url] | |
Re: I'm certain that there is an AppleScript for this. Directory: [url]http://www.dougscripts.com/itunes/index.php[/url] | |
I don't think that [b]DaniWeb IT Community[/b] should go to daniweb.com (the portal), but instead, it should go to the forum's index page, like it usually does in vBulletin. Would be less confusing for me, so I always click there to go back to the forum's index, and I'm sure … | |
Re: [url]http://directory.google.com/Top/Computers/Software/Internet/Site_Management/Content_Management/Open_Source/[/url] | |
Re: Code: [url]http://www.google.com/search?num=30&hl=en&lr=&q=Fibonacci+number+C%2B%2B&btnG=Search[/url] They all do the same thing. So I'm sure you can just pick one and use that. [b]Or[/b], compare it with yours to see what you did wrong. | |
Re: You will need a lot of money to get something like eBay, then! Try to get some venture capital funding, if you can, and are serious about this. Or at least a full time programmer. | |
Re: You can try changing the MIME type, which I believe you can do in PHP. Something like: [php] header("Content-Type: {$mime}");[/php] Info: [url]http://ca3.php.net/manual/en/function.header.php[/url] Only works if the image is viewed on its own page, I believe. | |
If you are inside a [b]Solved[/b] thread, you would never know it, because there is nowhere to tell you that it is solved. Please put the text 'Solved' somewhere in solved threads to distinguish between solved and unsolved threads. | |
Re: You could use the COUNT function that exists in MySQL instead. [php]$count = mysql_query ("SELECT COUNT(*) AS count FROM events ORDER BY event_id DESC"); $count = $count['count']; // $count now contains # of rows [/php] | |
Re: I doubt the errors are random. It is caused by something, usually human error, 99.9% of the time ;) I'm not too sure with your code, but be assured that the error is trying to make as much sense as possible, in this case. That's the best I can say … | |
Re: There are some services to check and email you if your website goes down. A partial list: [url]http://www.webhostingtalk.com/showthread.php?s=&threadid=400382[/url] Also, your PHP code looks right. Have you tried testing it? You can test it by changing your MySQL database info, for instance, so that it cannot connect. | |
Re: If you need to use preg_match() then use it. If strpos() can do the job, then use that. Does that answer your question? Your question wasn't really clear in your post. | |
Re: .html typically seems to be more popular. I don't really mind either one, myself, I suppose. Depends on if I feel like typing the extra 'l' or not :) | |
Re: Asking at [url]www.vbulletin.org[/url] is your best shot. But some psuedo code:[php]// connect to forum database first (use mysql_connect(), mysql_select_db()) // Then simply do something like: $members = mysql_query("SELECT COUNT(*) AS count FROM user"); // $members['count'] should contain the total members[/php] | |
Starting up IE sometimes does not work for me. I just double-click on it to open it, then it doesn't do anything else. What should I check out? I think I'm secure already (as in, no viruses, adware/spyware, HijackThis looks fine, etc.) so don't think that that is the problem. … | |
Re: Please use CODE tags next time. I have formatted your post. | |
Re: I don't think he means that. He just wants MySQL access. Just get a host like [url]www.coolfreepages.com[/url] or something (I'm not too keen on free hosts, I use a paid host for many years now.) | |
Re: I haven't looked at MSSQL for a long time, but I believe it's like ~$1,000 or so? MySQL = free | |
Re: $today becomes an array, so it itself has no value What I suggest is to turn $today from an array to a string by doing this: [php]$today = serialize($today); // turns into a string[/php] Then insert $today into the database like you normally would. In order to get the data … | |
Re: Make sure you can send out emails from your server. Go here: AdminCP -> Import & Maintenance -> Diagnostics -> Email The rest is self-explanatory. | |
Re: Create an .htaccess file in the directory you want to affect (and all subdirectories in it.) The contents of [b].htaccess[/b] will be: [code] php_value session.save_handler files[/code] Done. | |
Re: Why not use a MySQL database? Easier to manage. But if not, then you can do something like create a directory that contains all the messages, giving each filename an ID, like 1.txt, 2.txt, or something more uncommon so that they are harder to find, like an MD5 hash of … |
The End.