sasori Posted August 3, 2008 Share Posted August 3, 2008 im a noob. my question is, how will I save a PHP class file? is it sensitive? i mean does the filename must be the same as the classname? Quote Link to comment Share on other sites More sharing options...
PHPTOM Posted August 3, 2008 Share Posted August 3, 2008 Nope. Just have a file with the class in and save as PHP. Some people have file.inc.php or something so they know that file is being included somewhere. Quote Link to comment Share on other sites More sharing options...
sasori Posted August 3, 2008 Author Share Posted August 3, 2008 let's say i made a simple class if am gonna name it like class.totalCost.php is that file name good? Quote Link to comment Share on other sites More sharing options...
LemonInflux Posted August 3, 2008 Share Posted August 3, 2008 I tend to lean more towards totalCost.class.php, if your class is called totalCost. Quote Link to comment Share on other sites More sharing options...
PHPTOM Posted August 3, 2008 Share Posted August 3, 2008 But really its personal preference Quote Link to comment Share on other sites More sharing options...
sasori Posted August 3, 2008 Author Share Posted August 3, 2008 I tend to lean more towards totalCost.class.php, if your class is called totalCost. thanks But really its personal preference thanks.topic solved Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.