kaijim Posted April 26, 2006 Share Posted April 26, 2006 Hello everybody!We are currently trying to make the PHP part of the page better.We have taken a small break from writing the reference part (have made over 400 reference pages the last months), and we have started working on the tutorial part.I would very much like to get suggestions on what to add 2 Link to comment Share on other sites More sharing options...
boen_robot Posted April 26, 2006 Share Posted April 26, 2006 A thing I certanly want to see is global variables handling, such as the GET variable. You know, the ones with which when you type "?VariableName=VariableValue" at the end of the URL to trigger special actions in the PHP file.Maybe some more detailed information on form processing and an example of simple MySQL connection and action (just like the ODBC example).And one thing which is probably with the least prirority but... some kind of universal way to install extensions? I mean... most extension's installation follow similar steps, right? If so, what are they? The one of my particular interest is (as some people of this forum could already figure out) a step-by-step way to install the XSLT Processor extension. 1 Link to comment Share on other sites More sharing options...
Chocolate570 Posted April 26, 2006 Share Posted April 26, 2006 I'd love more on SQL connections like boen said, and we need a detailed tutorial on classes. They're pretty important.Maybe some examples on how PHP can interact with AJAX and perform different things too. Sessions would be nice, along with (slightly off-topic) a PHP quiz? I've always wanted to check how much I can do (which shouldn't be much) :)I'll see if I can come up with some other things...I suggest you just look at the ASP section and try to balance each one out. Link to comment Share on other sites More sharing options...
Jonas Posted April 26, 2006 Share Posted April 26, 2006 An example of an email form, because that is the question that is most often asked here... Link to comment Share on other sites More sharing options...
boen_robot Posted April 26, 2006 Share Posted April 26, 2006 (edited) An example of an email form, because that is the question that is most often asked here... What about the one here? I haven't tested it, but it seems as a PHP email form to me.[edit]@...678 what are you talking about? What you show is BBCode. It doesn't belong anywhere in the PHP tutorial. [/edit] Edited April 26, 2006 by boen_robot Link to comment Share on other sites More sharing options...
...678 Posted April 26, 2006 Share Posted April 26, 2006 i think it should have the basics like etc. Link to comment Share on other sites More sharing options...
aspnetguy Posted April 26, 2006 Share Posted April 26, 2006 i think it should have the basics like etc.<{POST_SNAPBACK}> BBCode only exists in this forum (and other forum software). It is not even a language. It is just a way to format posts in a forum.It was a way to allow post formatting without allowing full html coding. Link to comment Share on other sites More sharing options...
Jonas Posted April 26, 2006 Share Posted April 26, 2006 It was a way to allow post formatting without allowing full html coding.String replacement, right? Link to comment Share on other sites More sharing options...
kaijim Posted April 27, 2006 Author Share Posted April 27, 2006 The e-mail form was added yesterday.. so that is brand new... just a simple way to send mail... i am planning to add more examples.. and a guide to avoid spammers getting your mail adress.. Link to comment Share on other sites More sharing options...
aspnetguy Posted April 27, 2006 Share Posted April 27, 2006 String replacement, right?<{POST_SNAPBACK}> Yeah that is all IPB does. It uses string replacement to add the proper HTML when it finds a BBCode. Link to comment Share on other sites More sharing options...
Jonas Posted April 27, 2006 Share Posted April 27, 2006 Well, then I guess one php example would be string replacement, for a guestbook or forum, with example of how to detect bbcode sets, split it into three (opentag, data to format, endtag) and replace the opentag and endtag with < and > instead of [ and ]. Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 7, 2006 Share Posted May 7, 2006 I don't know if it is an old idea or a new one, but is it possible to create a Try-it editor for PHP?Maybe eval() could be used for that, like eval($_POST['php_input']);Of cource with limitations 1 Link to comment Share on other sites More sharing options...
boen_robot Posted May 7, 2006 Share Posted May 7, 2006 Nah, that's a really high security risk. More like live example, such as the code on the left and the result on the right WITHOUT the ability to edit the code (like in the ASP tutorials).I think it would be good if something like an example on how to use regular expressions is shown. But perhaps the already suggested regular expressions tutorial would have to be created first though. Link to comment Share on other sites More sharing options...
Jack McKalling Posted May 7, 2006 Share Posted May 7, 2006 (edited) Such examples would do the trick too :)There is always a security risk when php gets allowed in editors, but maybe it would be just cool when only the ECHO instruction was allowed :)Beginners playing such as echo "I have hacked yor site!!"; Edited May 7, 2006 by Dan The Prof Link to comment Share on other sites More sharing options...
Jonas Posted May 8, 2006 Share Posted May 8, 2006 Yeah, I don't think a php editor could be more advanced than this. They could even make examples in php, while the file name was still .asp, since the code they output doesn't do anything. That way, they wouldn't need a php server... Link to comment Share on other sites More sharing options...
MISIIM Posted May 9, 2006 Share Posted May 9, 2006 BBCode can be done like this: <?php$code = preg_replace("\[b\](.*?)\[\/b\]","<b>$1</b>", $code);?> Link to comment Share on other sites More sharing options...
Little Goat Posted May 9, 2006 Share Posted May 9, 2006 yes, but it would be nice if that could be in the tutorial for noobs (like me!) so they don't have to come here and ask. Link to comment Share on other sites More sharing options...
reportingsjr Posted May 27, 2006 Share Posted May 27, 2006 could you put in the foreach() loop? cant miss anything.. Link to comment Share on other sites More sharing options...
scott100 Posted May 28, 2006 Share Posted May 28, 2006 Maybe a mention for a program like EASYPHP which includes PHP, Apache and MySQL.It can be a very daunting task for newcomers to get these 3 up and running, when you can just instal a program that does all this for you Link to comment Share on other sites More sharing options...
Jonas Posted May 28, 2006 Share Posted May 28, 2006 http://www.apachefriends.org/en/xampp.htmlxampp is great for installing... Link to comment Share on other sites More sharing options...
deved Posted May 29, 2006 Share Posted May 29, 2006 I'm a newbie PHP student and see a lot of sites that require logins to access information companies have about individuals such as, ISP's, banks, hosting providors, etc.On your 'web building' page for developers under the Server Side Scripting section, you mention 'Provide security and access control to different Web pages'Could a tutorial be done on this? Link to comment Share on other sites More sharing options...
Yuval200 Posted June 13, 2006 Share Posted June 13, 2006 Here are some things that by my opinion, would make the php tutorial better: Here, under the section "Comments in PHP", you forgot to mention that you can use "#" too, like:<?php\*Comment!another omment!*\echo "I like "; Â //prints "I like "echo "pasta!" Â Â Â #prints "pasta!"?> Try to explain more about how to install PHP, Apache and MySQL. Try to make a page with information about programs that install the three servises, like EasyPHP or WAMP. Offtopic: a CSS tutorial about designing scrollbars would be nice (so far I didn't found one, I might missed it if you have one) Link to comment Share on other sites More sharing options...
Jonas Posted June 13, 2006 Share Posted June 13, 2006 There's no need of a tutorial for css scrollbars, because Scrollbar-css is not a part of any css spesification, be it 1, 2.1 or 3. Scrollbar-css is microsoft only css. Link to comment Share on other sites More sharing options...
dcole.ath.cx Posted June 14, 2006 Share Posted June 14, 2006 With FireFox you don't need to edit the scroll bar to look like the webpage, I want the scroll bar to look like my browser... The scroll bar would really fit into the browser owned more than the webpage owned... not to make a argument or nothing.. Link to comment Share on other sites More sharing options...
joecoolaug Posted August 15, 2006 Share Posted August 15, 2006 Well I think that the best thing to add would be detailed explainations of every bit of code. I've noticed that some of the PHP tutorial pages and many others don't explain certain bits of code at all or not enough. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now