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? Link to comment https://forums.phpfreaks.com/topic/117927-solved-how-to-save-a-class-file/ 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. Link to comment https://forums.phpfreaks.com/topic/117927-solved-how-to-save-a-class-file/#findComment-606583 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? Link to comment https://forums.phpfreaks.com/topic/117927-solved-how-to-save-a-class-file/#findComment-606586 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. Link to comment https://forums.phpfreaks.com/topic/117927-solved-how-to-save-a-class-file/#findComment-606587 Share on other sites More sharing options...
PHPTOM Posted August 3, 2008 Share Posted August 3, 2008 But really its personal preference Link to comment https://forums.phpfreaks.com/topic/117927-solved-how-to-save-a-class-file/#findComment-606589 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 Link to comment https://forums.phpfreaks.com/topic/117927-solved-how-to-save-a-class-file/#findComment-606591 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.