Quiz Page php The php quiz has changed! We have replaced php questions with answers! And from those answers you'll find further links to even more information - forums where you can ask questions, training courses, longer articles, and more. [link to quiz index] ...
If you really want the old quiz
questions, you can find them
here,
here,
here and
here ... and
with onward links to the possible answers to each question too.
Your PHP code does not work? Here is where to start looking.If people take the trouble to write to me and ask for help when one of the examples on our web site isn't working for them, the least I can do is to provide them with a few pointers.
But it's really ...
Reducing image size on digital photos - PHP Working on the image library, I'm wanting to have all my resources / pictures available via a web site ... but I really don't want to hold them at full resolution - for our needs, 800 x 600 is quite ...
Moving the product forward - ours, and MySQL, Perl, PHP and Python tooI have just posted a "steady as she goes" message, welcoming the new decade but reassuring our customers that we're carrying on offering very much the same high quality courses, and the same high ...
Scraping content for your own page via PHPIf your PHP allows for remote URLs to be handled / read as if they were files (and that's the default), you have useful tool which lets you include the content of one web page (or part of it) within ...
When should I use Java, Perl, PHP, or Python?Java is a good language for bigger systems ... teams of programmers writing bits of code that interact with each other. In fact, Java is so well tuned towards the bigger systems that it's not the ...
A variable number of arguments in a PHP functionDo you want to vary the number of arguments you pass in to a PHP function?
loadarticles(2,3,6,5,4);
loadarticles(5,7);
Simply declare your function with a minimum ...
MySQL stored procedures / their use on the web from PHPAre there times when your PHP will pull a large result set back from MySQL, or have to make a large number of queries, just to further process the data into a relatively small dynamic section of a ...
Abstract classes, Interfaces, PHP and JavaAbstract classes, Interfaces, PHP and Java
Basics.
When you design code for a number of different similar type of thing (object types, classes) you don't start from scratch in each case - you ...
Controlling, supressing, enabling PHP error messagesQ: "How can I suppress the PHP error messages?"
Q: "I get no error messages - how can I tell what is going wrong in my PHP"
Q: "Can I replace the PHP error messages with my own"
However PHP is ...
Using print_r in PHP to explore mysql database requestsThe print_r function in PHP lets you "print raw" the contents of a variable - great for debugging and far better that print which - if you pass it an array helpfully says Array
Embed your print_r ...
Not just a PHP program - a good web applicationA very busy week so far ... station pickups, a PHP course, hosting an external luncheon meeting and hotel guests at Well House Manor, and providing a venue for, and attending, a meeting of the ...
Are you wanting to learn PHP? Are you wanting to learn PHP? Select a course that starts and ends at the right points!
You may (or may not) already know all the background stuff about web sites. And you may (or may not) have ...
Using a cache for efficiency. Python and PHP examplesAsk yourself "how long is it (in seconds) from 5.36 a.m. and 20 seconds to 6.04 a.m. and 39 seconds".
Have you worked that out?
Now - how long is it (in seconds) from 5.36 a.m. and 20 seconds to ...
Geocoding - converting address to latitude / Longitude with PHP via GoogleWe have a 'geocoding' example here, and indeed I was using it earlier today. The idea is that someone enters part of an address on your web site, and you contact Google to look up the latitude and ...
World Flags in your PHP pagesThe world's flags are often used to give a quick visible international indication of countries (sidestepping the issue I had yesterday, where I was translating into ten languages and wanted links to ...
Uploading and Downloading files - changing names (Perl and PHP)When you are uploading a file to a server via http (in Perl or PHP), where is the file saved, and what is it called? And when you download a file, where is it saved on your local disc, and what name ...
How to make a Risotto (PHP build style)Written on last night's long flight ... posted today
Talking with Gisela, seated next to me on this Mexicana flight, I have learned why my Risottos are always sticky. Basically, wrong ingredients and ...
Extracting real data from an exported file in PHP or Perl"Just give me the data". Where there's a requirement to take data from another program into a Perl or PHP script, it's often easier simply to take the data in a format that it's offered / exported ...
Debugging multipage (session based) PHP applicationsPHP's print_r function allows you to dump out the contents of a variable - and that includes more complex variables like arrays containing other arrays, objects, etc ... in a human (programmer!) ...
PHP preg functions - examples and comparisionpreg_match('%CheckUpdateTime(.*?)Main content end%s',$stuff,$gotten);
preg_match_all('%(<td class="destination">.*?)</tr>%s',$gotten[1],$service);
foreach ($service[1] as $train) { ...
Grouping rows for a summary report - MySQL and PHPIt's quite quick and easy to write a loop that goes through a mysql result set and displays the content on an HTML page (but remember security of data, size of resulting HTML page, and the need to ...
Past PHP delegates / others - coding help needed for next 3 monthsTo past delegates and other technical contacts ... I had a lunchtime meeting yesterday with a director who is working on a major PHP application and has urgent need of extra coding staff for a ...
Handling nasty characters - Perl, PHP, Python, Tcl, LuaAre your writing or maintaining a web based application that uses forms? If so, you have better be aware of some of the nasty characters that are around!
The < character, when echoed back from a ...
Learning PHP, Ruby, Lua and Python - upcoming coursesThe following programming courses are all booking well, but still have good availability:
PHP - starting 6th July
Ruby - starting 14th July
Lua - starting 10th August
Python - starting 17th August ...
A (biased?) comparison of PHP courses in the UKIn answer to an email asking about alternative PHP courses ...
I'm the tutor of our PHP courses, and I also keep a keen eye open on the options. Occasionally, I do a 'competitive survey' and compare ...
Adding a newsfeed for your users to a multipage PHP applicationAs I wrote it, I realised this was turning into rather a long article, but never mind. It shows the major new components added to a "4 layer model" application I was working on the weekend before ...
Improving the structure of your early PHP programsWhen you first coded in PHP, you probably wrote a different script to handle each form in a series - it's the natural way when you're early in the learning process, but it can lead to repeated code ...
New Example - cacheing results in PHP for faster loadingHere's an example from the last couple of days which is fully my own work, so I can share!
I was analysing a big data flow - yesterday's web log file in this case - and it was rather harsh on the ...
Matching disparate referencing systems (MediaWiki, PHP, also Tcl)Yes, we are Well House CONSULTANTS and do a bit of specialist coding ...
I have a requirement on my plate at present to write a piece of code for a customer that recognises cross reference codes ...
Application design in PHP - multiple step processesWhen you're putting together a multiple step process in PHP (and that could be anything from a forum to an ordering system), you should bare in mind that each of the program elements will be the ...
PHP4 v PHP5 - Object Model DifferenceIn PHP, there was a major change in the object model between version 4 and version 5. This code here - incredibly - runs differently on the two versions and what happens when you assign an object to ...
Crossrefering documents with uniqueness and inconsistency issues - PHP proof of concept demoThe cross-referencing of documents - where one document contains a human readable reference to another - is very common. And so is the requirement to convert those cross-references into a appropriate ...
PHP - getclass v instanceofIt should be very rare that you want to say "what type of object is this?" in PHP - or in any OO language; that's because with a correctly implemented class structure, you should have polymorphic ...
Using the internet to remotely check for power failure at home (PHP)Do you have freezers and other electrical equipment at home and worry about whether they'll be all right while you're away on holiday? Do you have a broadband connection with a rarely changing IP ...
What features does this visitors browser support? (PHP)Does this visitor's web site support CSS? Is this visitor a robot? Should I send out frames? There are the sorts of questions that you may want to ask in a PHP page .... and PHP supports the ...
Choosing a railway station fairly in PHP
I've been transferring the West Wilts Rail Users Group web site into a wiki this evening ... and came up with the question "How do I fairly choose which station to put on their front page".
Of ...
PHP Course - for hobby / club / charity users.Are you looking after a PHP based web site but want to do more with it? Perhaps it's the web site for your cricket club, your local school, or a charity or special interest group you work with?
What ...
Weekday or Weekend PHP, Python and Perl classes?Should we run training courses during the week, or at weekends?
Our 'traditional' business has been 80% + employees of companies, government organisations and educational establishments who have ...
Extra PHP ExamplesYesterday evening and this morning, I was helping with some specific PHP questions ... resulting in some new examples that I've put on the web site.
• A program which can be used / allows logins ...
Setting up a MySQL database from PHPYes ... training on a Sunday ;-) ... I've been setting up a MySQL database from a PHP script and testing it. A couple of bits of source to share.
1. The setup of the database:
<?php ...
Comment by David Lefkon (published 2007-06-30) Nice .. very helpful! [#3322] Comment by Anon (published 2007-05-04) This was a good quiz for me as a beginner [#3312] Comment by Anon (published 2007-02-23) Suggested link. helouuuu, php is not a programing language, have u ever heard of server-side scripts? [#3307] Comment by viperxp45 (published 2007-05-04) awsome [#3304] Comment by Graham (published 2006-06-01) Yes - because I have no element preceeding the quoted regular expression on that particular question, the 2 or 3 letters could be preceeded by other letters as you state, thus making it "2 or more letters". Noted, question updated. Thanks for the inputs [#3132] Comment by Anon (published 2006-06-01) This is true, the proper answer would be the one chosen. If the question stated [a-z]{2,3,}$ then the said correct answer would be the choice. [#3114] Comment by curtis (published 2006-03-25) Thorough, well-planned PHP quizes! I found one question in the intermediate quiz which said I was wrong, when, indeed, I was not:
The regular expression [a-z]{2,3}$ will only match
YOU WERE INCORRECT
The answer you gave:
any string that ends with 2 or 3 lower case letters
Correct Answer:
any string that ends with 2 or more lower case letters
[a-z]{2,3} will match only 2 or 3 lower case letters at the end of a string, not 2 or more. [#340] You can Add a comment or ranking or edit your own commentsAverage page ranking - 4.2 |
|