Jump to content

extrovertive

Members
  • Posts

    235
  • Joined

  • Last visited

    Never

Everything posted by extrovertive

  1. Does magpie works for RSS 2.0?
  2. Student Suspended Over Suspected Use of PHP Topeka, KS - High school sophomore Brett Tyson was suspended today after teachers learned he may be using PHP. "A teacher overheard him say that he was using PHP, and as part of our Zero-Tolerance policy against drug use, he was immediately suspended. No questions asked," said Principal Clyde Thurlow. "We're not quite sure what PHP is, but we suspect it may be a derivative of PCP, or maybe a new designer drug like GHB." Parents are frightened by the discovery of this new menace in their children's school, and are demanding the school do something. "We heard that he found out about PHP at school on the internet. There may even be a PHP web ring operating on school grounds," said irate parent Carol Blessing. "School is supposed to be teaching our kids how to read and write. Not about dangerous drugs like PHP." In response to parental demands the school has reconfigured its internet WatchDog software to block access to all internet sites mentioning PHP. Officials say this should prevent any other students from falling prey like Brett Tyson did. They have also stepped up locker searches and brought in drug sniffing dogs. Interviews with students suggested that PHP use is wide spread around the school, but is particularly concentrated in the geeky nerd population. When contacted by BBspot.com, Brett Tyson said, "I don't know what the hell is going on dude, but this suspension gives me more time for fraggin'. Yee haw!" PHP is a hypertext preprocessor, which sounds very dangerous. It is believed that many users started by using Perl and moved on to the more powerful PHP. For more information on how to recognize if your child may be using PHP visit php.net.
  3. So, each tag has an id of its own? Let's say a user has a blog, and enter tags. If a tag_name already exist in the database, then don't add it right, but if it doesn't exists then auto increment the tag_id and add the tag_name?
  4. Use a FREE Content Managnment System...
  5. Sites with a 'tagged' feature which you can add tags to your blog item, bookmark item, news item, etc, how are these tags stored in the database? Say, if I have a profile page and I want to tags my Would the form be like this? [code] Tags, seperated by comma <input type="text" name="tags" /> [/code] Then in my PHP code for storing the tags in the database for searching, are the tags stored all in one field or seperate rows for each tag? How would the query work to search for certain items (news, blogs, etc) based on tag(s)?
  6. Try EUC-JP as the character set. You may look into the "mb_convert_encoding" function
  7. Ah, I see. I've been using if($data == 'mystring') the whole time; should've use === instead. But, if the string is the same, why return 0? What's the -1 and 1 for in the comparison?
  8. //form.php [code=php:0] <form action="process.php" method="post" target="submit"> Starting Number: <input type="text" name="startnum" /><br /> Numbers: <input type="text" name="numbers" /><br /> <select name="updown"> <option value="up">Increment</option> <option value="down">Decrement</option> </select><br /> <input type="submit" name="submit" value="Submit" /> </form> [/code] //process.php [code=php:0] <?php $startnum = $_POST['startnum']; //starting number $numbers = $_POST['numbers']; //increment of $updown = $_POST['updown']; //increasing or decreasing $endnum = $startnum + $numbers; //ending number $num_array = ($updown == "up") ? range($startnum, $endnum) : range($endnum, $startnum); foreach($num_array as $key=>$val) {   $urlstring .= "n" . ($key+1) . "=" . $val . "&"; } $urlstring = "submit.php?" . substr($urlstring, 0, -1); header("Location: $urlstring"); ?> [/code] //submit.php Whatever goes here...
  9. Also, a good extension https://addons.mozilla.org/firefox/249/
  10. I know strcmp returns 0 if both string are the same -1 is string a is < b 1 is a > b. But what are some practical uses of it in an application?
  11. I already know pagination, just the 1 2 3 4...10 11 12 Like if I were to click 4, then it would turn to 3 4 5 6 ...10 11 12 something like that.
  12. I have a pagintion page of 15+ total...now I dont to want display all the page numbers. I want something like: Pages: 1 2 3 4 5 ... 12 13 14 15 How would I do this in a for loop?
  13. [quote author=venky_2_2000 link=topic=111366.msg451244#msg451244 date=1160719670] Hi Friends, I'm new to php , Need help with PHP sessions variables.I have two pages main.php and page.php I would like to register a session variable in main.php and would like to retirve its value in page.php how can i do that . Please help me with this . Thanks, Venky [/quote] //main.php session_start(); $_SESSION["test"] = " my message"; //page.php session_start(); echo $_SESSION["test"];
  14. [quote author=AliasXNeo link=topic=110840.msg448723#msg448723 date=1160266939] Thank you for staying positive. I could not find a better forum to properly place this thread, I figured if it truly was in the wrong area a moderator could move it, but this best fits the subject as it's related to PHP and I am asking for help. I simply need ideas. Generally I can take two or three people's idea's and combine them togeter to form my own unique idea, but i'm not 100 other PHP programmers, and I can't come up with an idea that I can assure will please most of the population that attends my site. Whereas, when I have multiple ideas, I can please each one and have a better shot at getting more activity to my website due to it's unique idea. [/quote] A PHP site that utilizes Biometric as a form of user authentication. Biometric technique can include voice recognition, fingerprint recognition, face recogiton, etc. Just in case, a user forget their password (what they know), Biometric is based on what they are. No such PHP website has that - be the first!
  15. [quote author=businessman332211 link=topic=110739.msg448264#msg448264 date=1160170981] I am wanting to permanently(almost always), build my own custom programs. But that will be awhile, before I got back. Some things, so far, i like using third party, that is a Project management system - active collab Forum - smf(simple machines) shopping cart(3rd party) I seem to end up using those when I am needing a systme. I needed to get organized, and I still do.  I have finally gotten a lot of my projects themselves organized, as far as url's I have my favorite's menu, which it wouldn't be bad later if I had a thing inside my project management system, so I could manage url's, that and a contact manager, I will either request them to build into activecollab or I will program it myself.  I am swearing to myself, after this, I am permanently custom building my own stuff, I was anyway there for a long time, but these 3 things seemed to catch my attention a lot more, and they save a lot of development time, the shopping cart, I would probably try to build myself when I find a client with a good budget, and a decent deadline. I was wondering about a code managment system, I am finally getting ready to start getting together a system of functions, like for file related function I was going to call it file.php I have all those ideas down, but how do I make it so I can have it somewhere.  I don't know, I am trying to get an idea, of how to organize everything. [/quote] How about try meditating 30 mins. before you indugle on a huge project? Meditating helps with focusing and concentrating....no kidding.  ;D
  16. & = a reference pointer operator in PHP [code=php:0] $somevariable = "test"; $newvariable = &$somevariable; echo $newvariable . "<br />"; $somevariable = "test2"; echo $newvariable; [/code] That mean, whenever $somevariable changes, $newvariable also changes since it references $somevariable. Try that code. And then try ouputting thae code taking the & out.
  17. Look up database normalization and optimzation. Plenty of articles on them.
  18. Well, of course like any complex tool, there's gotta be someone who writes the software - programmers. But what about web designing? To make sites, you gotta consult web design firms, freelancers, etc, and then you tell them to do this or that, charging you tons of money. How will that affect web designers?
  19. Back then, if you wanted money from your bank, a bank teller has to do it - now that's ATM. Thanks to technology! Tax are now made easy thanks to tools. The same can be said of web designing. We think the web is technology but within its technological domain, do you think more and more advanced tools are being made to make web designing cheap and easy? I'm talking about 10-20 years down the road. Check out http://www.newscientisttech.com/article/dn10204-sketchrecognition-turns-doodles-into-websites.html and watch the video. [img]http://www.newscientisttech.com/data/images/ns/cms/dn10204/dn10204-1_411.jpg[/img]
  20. Even better II. [code=php:0] if(preg_match("/^[0-9]+$/", $_GET['user'])) { $user_id = $_GET['user'];                   $sql = "SELECT * FROM style WHERE user_id='{$user_id}'"; $result = mysql_query($sql) or die (mysql_error()); if(mysql_num_rows($result)) { $row = mysql_fetch_array($result); [/code]
  21. if(mail(...)) header("Location: http:///www.domain.com"); else { //something }
×
×
  • 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.