[PHP] PHP run as CGI?
I am developing and testing PHP on my local computer with MySQL server and PWS running along with PHP. My hosting site runs PHP as cgi only. What are the differences between cgi-based PHP and how I am running AND, what pitfalls can I avoid in development to be sure I code in a way that the cgi-based PHP won't fail on my code? Suggestions welcome. Thanks, T
[PHP] Session_start()
Do I have to place a session_start() function at the top of a page (.php) before the headers? If I am creating a login form with PHP_SELF, can I place the session_start() at any point in the html where the user has been validated and logged in? Thanks, Tami Team GotFusion
[PHP] ?include?... another dumb question
I have people telling me that I MUST put the ?include? file before or inside the header of the .php file I am writing before a script is pulled into my file. I usually just put the ?include? whereever I need it on the page. Actually have it embedded in an IF statement, so that if the conditions are not met, the script is not run and there is no need to pull in the script. It works fine Is placing the include at the top absolutely required, good programming convention or just preferred? thanks, Tami Team GotFusion
Re: [PHP] ?include?... another dumb question
Yep, ordered the manuals from Amazon.com... and they inadvertently shipped the books to my mom-in-law ha ha. except that she's retired and computers are still a mystery. So, I am muddling through with my PHP dev. dictionary until I get to see my relatives this weekend. (cheesy smiley) Tami Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]; On Tuesday 05 March 2002 20:58, Team GotFusion wrote: I have people telling me that I MUST put the ?include? file before or inside the header of the .php file I am writing before a script is pulled into my file. I usually just put the ?include? whereever I need it on the page. Actually have it embedded in an IF statement, so that if the conditions are not met, the script is not run and there is no need to pull in the script. It works fine Is placing the include at the top absolutely required, good programming convention or just preferred? Simply put, you can place them wherever you want. Obviously if your include file defines certain variables then common sense dictates that you include it before you refer to those variables. All this and more is covered in the manual. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk /* It is sweet to let the mind unbend on occasion. -- Quintus Horatius Flaccus (Horace) */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Pros/Cons over PHP_SELF vs script
I am on the Gotfusion.com team, formerly Team NetObjects. We are a group of technical professionals providing assistance to web developers who use NetObjects Fusion. Given the many requests wanting to know how to incorporate PHP into NOF, We are currently writing a PHP /mySQL tutorial in Fusion for these users. If interest holds, we may also consider developing a suite of components for our non-coding developers. So, here is my question: What are the pros and cons of using PHP_SELF over a calling script when manipulating data in a form? Development books show either or both with no preference given. What is considered good form over bad? What is technically cleaner vs. technically faster? What are the hardware pitfalls? In developing a tutorial, we at gotfusion would like to include these pointers or cautions to give our developers enough information to make an informed decision as to which method to choose (both methods are in the tutorial.) Please post here so that anyone else may also read and perhaps learn something. If you know of any links to sites that have more info on this, please also feel free to post those. Thanks for your help and assistance. Tami Burke Team Gotfusion (www.gotfusion.com) Honey House Designs (www.honeyhousedesigns.com) -