Re: [PHP] PHP OOP
Where I study, Intro to OOP is taught in C# using Visual Studio 2003 and further OOP concepts are taught in Java, with the academic computer science of OOP alongside. On Wed, Feb 11, 2009 at 2:40 AM, Carlos Medina wrote: > Marcus Gnaß schrieb: > >> Paul M Foster wrote: >> >>> On Mon, Feb 09, 2009 at 11:02:37AM -0500, tedd wrote: >>> As a side note, I think students should learn a language like C before >>> learning something like Perl, Python or PHP. Having to deal with >>> defining/declaring variables and their storage methods before use I >>> think makes for more conscientious programmers. And pointers are an >>> education all on their own. ;-} >>> >>> >> For teaching programming or OOP I would choose a language which >> concentrates on the topic. The hard stuff, which you have to deal with in C >> for example, can be learned later. I'm glad that I started programming in >> Pascal, not in C. If today I had to learn programming as such I would >> definitively opt for Python! My choice for learning OOP would be Python or >> even better Java cause you don't have the choice to do it in a procedural >> way. >> >> Marcus >> > Hi @ all, > but this is a php list... > > Regards > > Carlos > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- I'm going out to find myself, if you see me here, keep me here untill I can catch up If I haven't said so already, Thanks Byron
[PHP] Variables
Hi I was wondering if this is the correct way to reference a variable from a file that has been included inside of a function. Also just general static/global variable usage. For example: Myqsql_functions.php And the variables are defined in config.php -- config.php -- -- So my questions are will ach_mysqlCloseCon() recognise the $con variable in ach_mysqlCon() as it is declared as static? will ach_mysqlCon() recognise the variables included from config.php as they are declared global? is this all syntax'd properly? Also, how would I, for example, change $mysql_host from a form? Cheers and thanks for any and all assistance.
[PHP] Please stop me from tearing my hair out.
Right. I'm getting this error from the following code : *Parse error*: syntax error, unexpected '}' in *C:\wamp\www\achillesweb2\install.php* on line *39 *and I can figure there's probably a bunch of others. If anyone wouldn't mind giving this a read over that'd be really helpful. Feel free to chip in with any glaring obvious suggestions and points of interest you'd like to raise, I probably need the help. Thanks in advance.* * --- Install.php --- 1 ach_myqslcon function defined"; 33 34 function ach_mysqlCloseCon() 35 { 36if($con = ach_mysqlCon(false)) 37{ 38mysql_close( $con ) 39 } 40 } 41 echo " ach_myqslCloseCon function defined"; 42 43 function ach_select_db() 44 { 45$db_select = mysql_select_db 46 ( 47 $GLOBALS['mysql_db'], $con 48 ); 49 50 if (!$db_select) 51 { 52 mysql_query("CREATE DATABASE".$GLOBALS['mysql_db'],$con) 53 } 54 } 55 echo " ach_select_db function defined"; 56 57 58 function ach_select_table($col,$table) 59 { 60 mysql_query("SELECT".$col."FROM".$table) 61 62 if(!mysql_query("SELECT".$col."FROM".$table)) 63 { 64 die( 'Could not connect: '.mysql_error() ); 65 } 66 } 67 echo " ach_select_table function defined"; 68 ?> __ and for your curiosity -- config.php -
[PHP] Help with login
Hey, I think this should be working but it doesn't seem to be. Administrator Login Username: Password:
[PHP] Help and Advice needed please.
Hey. I do some part-time IT work for a voluntary paramilitary youth organisation, and we're loooking for a system to digitize the personell files of our members. Here's a features list, all advice on how to implement will be a great help. * Web-accesable via login * Rank, Name, Phone Number, Address, Email Address, Physical Address. * Training History * Promotion History * Miscellanous Notes. * Different types of Administrator and notes that can be attached to personell files that are seen by different types of administrator. * Activity report page. I.e. This activity happenened on this date and these people attended from this time to this time. Attendance must be visible on personell files. * Attendance Register and counter for attendances of members. * UI that a 65-year old who believes dialup is fast (the Unit Commander) can find his way around. * Easily copiable and deployable. As in can be used by more than one unit. -- I'm going out to find myself, if you see me here, keep me here untill I can catch up If I haven't said so already, Thanks Byron
Re: [PHP] Help and Advice needed please.
Yep, a mysql database seems like the way to go. Thanks to all who have offered to help on this project. Perhaps we could get together and figure out what needs doing, assign jobs etc. I have hosting already sorted. Cheers guys. On Sun, Aug 24, 2008 at 5:05 AM, sean greenslade <[EMAIL PROTECTED]>wrote: > So Byron, what do you think? Do you like the idea of a mysql database? > > > On Sat, Aug 23, 2008 at 11:57 AM, Luke <[EMAIL PROTECTED]> wrote: > >> I'm up for helping too. Also, a big agree to Sean too, MySQL seems the >> best way to go here. >> >> 2008/8/23 sean greenslade <[EMAIL PROTECTED]> >> >> I would be willing to help with this project. Because of all the different >>> requirements of this, I would recommend a totally custom set of scripts, >>> and >>> a mysql database to hold all the data. >>> >>> On Sat, Aug 23, 2008 at 7:22 AM, Byron <[EMAIL PROTECTED]> wrote: >>> >>> > Hey. >>> > >>> > I do some part-time IT work for a voluntary paramilitary youth >>> > organisation, >>> > and we're loooking for a system to digitize the personell files of our >>> > members. Here's a features list, all advice on how to implement will be >>> a >>> > great help. >>> > >>> > * Web-accesable via login >>> > * Rank, Name, Phone Number, Address, Email Address, Physical Address. >>> > * Training History >>> > * Promotion History >>> > * Miscellanous Notes. >>> > * Different types of Administrator and notes that can be attached to >>> > personell files that are seen by different types of administrator. >>> > * Activity report page. I.e. This activity happenened on this date and >>> > these >>> > people attended from this time to this time. Attendance must be visible >>> on >>> > personell files. >>> > * Attendance Register and counter for attendances of members. >>> > * UI that a 65-year old who believes dialup is fast (the Unit >>> Commander) >>> > can >>> > find his way around. >>> > * Easily copiable and deployable. As in can be used by more than one >>> unit. >>> > >>> > -- >>> > I'm going out to find myself, if you see me here, keep me here untill I >>> can >>> > catch up >>> > >>> > If I haven't said so already, >>> > >>> > Thanks >>> > Byron >>> > >>> >>> >>> >>> -- >>> Feh. >>> >> >> >> >> -- >> Luke Slater >> > > > > -- > Feh. > -- I'm going out to find myself, if you see me here, keep me here untill I can catch up If I haven't said so already, Thanks Byron
[PHP] textarea form input converting < and > to < >
Hello, I have a few forms that are used to input html. We have run into a problem of < and > getting turned into < and > when you hit submit, Or if you hit submit more than once. I have attached a sample form. The major problem here is that some times we want < and some times we want to input html tags. Has any one else run into this problem maybe even found a solution. Any help would be appreciated. Thanks Byron test form what you typed -- ---- Byron Albert[EMAIL PROTECTED] System Engineer Internet.com a Division of INT Media Group 203-662-2848 "Engineering does not require science. Science helps a lot but people built perfectly good brick walls long before they knew why cement works." -Alan Cox -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() extra headers not working
Hello, I am trying to ad extra headers to email's I am sending through php. I want to ad Reply-To: and Bounse-To: addresses. But when add them useing the forth feild of the mail() funtion. mail($recipient,$msubject,$message,"Reply-To: $sender"); but for some reason when I send this e-mail it puts a newline befor this header so it becomes part of the message not the headers. Any ideas on what to do?? Byron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP and Windows 7 g6-bit
Does the precompiled windows binary work on win 7 64? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP and Windows 7 64-bit
Does the precompiled windows binary work on win 7 64? I downloaded the apache installer, works with no problems. I got the php5 VC6 x86 Thread Safe version. It says "x86" so I'm guessing that's the problem. I can't find a current 64-bit version. Error message: Faulting application name: httpd.exe, version: 2.2.19.0, time stamp: 0x4dd6eda8 Faulting module name: php5ts.dll, version: 5.2.17.17, time stamp: 0x4d25fb49 Exception code: 0xc005 Fault offset: 0x000f424c Faulting process id: 0xa7c Faulting application start time: 0x01cc2b64b44cc59e Faulting application path: C:\server\Apache2.2\bin\httpd.exe Faulting module path: C:\server\PHP\php5ts.dll Report Id: f2e941ea-9757-11e0-a2f1-005056c8 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and Windows 7 g6-bit (Solved)
On 6/15/2011 1:59 PM, Tim Thorburn wrote: On 6/15/2011 11:37 AM, Byron Como wrote: Does the precompiled windows binary work on win 7 64? It does, however if you're using Apache as your webserver, for PHP 5.3+ you won't be able to use the binaries from apache.org for Windows. There is a link to Apache Lounge found here: http://windows.php.net/download/ which instructs you to download a VC9 compiled version of Apache. If you're using IIS, I think you can just download the version of PHP you're after and go. The documentation on this page: http://windows.php.net/download/ ... is wrong/out of date and should be corrected. If I am mistaken I humbly apologize. Sincerly, Byron Como -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php