-
Posts
3,584 -
Joined
-
Last visited
-
Days Won
3
Everything posted by JonnoTheDev
-
I played about with the video tag. Converted some vids to ogv format using ffmpeg2theora. Didn't work when I used the video tag. Just got a grey x in the video player. Gave up after a while. The majority of browsers don't support these tags anyway. Something to keep an eye on though. If you do have a video sharing site then its a good idea to get your videos converted into the supported format (ogv) for when the time is right to use them. At the moment you still need a fallback method i.e use flash video. So, a bit pointless at the moment.
-
WTF is expressions? You need php running on your system or a system where you upload the scripts to i.e. a web server! You can install php on Windows, there are plenty of websites with this info on. Or preferably use Linux with apache, php, mysql, etc...
-
I Have a Question About Object-Oriented Programming PHP
JonnoTheDev replied to $Three3's topic in Miscellaneous
No, you will not be able to do anything different. What you will be able to do is write code that is more efficient, easier to extend, easier to fit into other projects, easier to modify, used to create more complex and scalable systems. OOP is a concept. It is not specific to PHP. It is a style of programming so it does not matter what language you wish to use it with. The question you should ask is, would my projects be better off using OOP techniques, are they on the scale that would suit OOP. OOP practices take more time to implement, and you're not going to get it perfect all the time, trust me. If you're creating simple websites that may have a blog, some pictures, some comments, etc then a script written in a procedural fashion is more suited. It's quick to impement. On the other hand if you are creating the next facebook... (meaning a larger system that you will be modifying and adding functionality to) Learn Javascript if you think it will benefit your projects. I cant say if it is more beneficial than anything else, unless it is required for a job you are going for, or you need it for a project you are working on. When you say more beneficial, more benificial for what? -
What can I do with my spare domains?!
JonnoTheDev replied to liamloveslearning's topic in Miscellaneous
I would just use them for test development or as premiso said, turn them into adsense domains and bang links around the web to them. -
What's your gamertag? I Have no friends on my account! :'( Gamertag: SHIRES82
-
Putting double spaces instead of single spaces
JonnoTheDev replied to mikebyrne's topic in PHP Coding Help
Well, that is going to turn a double space into a comma. Read the function manual http://uk.php.net/str_replace -
I have a few Apress books. They are generally very good. http://www.apress.com/book/view/9781590595084
-
I have seen network cards where you can set a power saving option. This would be in the device manager in Windows. Possible your PC has one of these.
-
Funny enough, we did a website a long while ago of the same topic nads.org.uk
-
What? The BT master socket is A BT master socket. i.e wher you plug your telephone into. The master socket that is in every household with a land line. Look at the following image: http://fastnet.co.uk/_images/content/FN-router-diagram-MS-2%203.PNG
-
Yes, thats how it should be. BT master socket >> ADSL microfilter >> Router >> Telephone
-
Yes, aware of that. I have tested both cordless & non-cordless telephone. The problem occurs also when no phone is connected to the microfilter, just the router itself. It isnt the wifi that drops, it is the DSL.
-
No, I cannot see any physical wiring. That must be way behind the NTE5 master socket.
-
Its nothing to do with speed, DNS, etc. It is a loss of sync through the DSL. The broadband is fast. I'm connected at a download speed of about 15293kb and upload of around 1mb. I have gone through all the attentuation levels on other forums. I think the issue must be something outside or whatever is happening through the cabling on my street or at the exchange even though BT have said that there are no line faults direct to my house. The DSL drops with an incoming call, so that I would have thought rules my hardware out as in my OP I stated that I have tested various kit.
-
Just wondering if anyone has had this issue with their ADSL? =========== I have an intermittent fault causing the DSL to lose sync. It will drop for about 60 seconds and then re-sync. Some days there will be no drop, others it could drop 10 times throughout the day. Also, incoming phonecalls will drop the DSL. I have had the router connected up to the microfilter which is connected to the BT test socket behind the NTE5 faceplate. Still no difference. My master socket is the only socket in the house. Ther are no extensions. There is no internal wiring on the NTE5 faceplate. I have tried: 1. A second router 2. Multiple filters, including daisy-chaining 2 filters from the master socket. 3. Different RJ11 cable 4. A second NTE5 faceplate 5. Multiple telephones None of this has made any difference. The DSL will still lose sync at random intervals. BT cannot see a line fault. My ADSL provider have passed to Cable & Wireless who are responsible for the ADSL 2+ line upgrades. I cannot see this issue being resolved! Worried that if a BT engineer visits I will get charged £130 although I have tried everything I can think of to diagnose the fault.
-
Agreed. I wouldn't drop out if you are part way through a course. At least stick with maths as this is a good qualification to have. Your college should do HNC/HND courses, that is what you should look at. If you are interested in programming then you do not need to learn a web languauge as such. I did HND software engineering which covered C++ & Java, so moving onto languages for the web is a doddle. I found that students who I have interviewed for positions, that did web related degree courses were way behind in terms of the level of knowledge required to put together a live system for a client. So in my opinion forget the web courses, do software engineering or similar and teach yourself web technologies.
-
phpMyAdmin will show you detailed information on queries running on the server.
-
file_exists(); <?php $filepath = "/home/test.jpg"; if(file_exists($filepath)) { } ?>
-
If you are interested in programming then I would certainly stick with your current maths qualification. Being good at maths does indeed help a programmer.
-
What a retarded concept. What you are doing could constitute to bullying. You should pull this idea immediately. Could you imagine a school child being singled out on your website and having it passed around the internet. I dont care if the site is moderated.
-
Getting your head around OOP is difficult if you have been creating procedural code for a long time. The first thing you need to get your head around is that objects should be modelled on real-world items. What parts of your system fall into this category? i.e a User. A user is a person, a real-world item. What can a user do and what attributes do they have? Well, they have a name, an age, they can perform tasks such as logging in to a website, etc. A user object has no ties (coupling) with other parts of the system. There are no database ties, no usage of functions that have to be coupled in with the user class, etc. So, in effect I could take this user object and re-use it in any other system that has users. If another system has different types of users lets say admins I can extend the user class with lets say adminUser. This will give me more functionality for an admin user. Read the following on the php freaks tutorials http://www.phpfreaks.com/tutorial/oo-php-part-2-boring-oo-principles
-
Welcome. Your username is scary!
-
My personal favourite is a lack of standards in a script. I see code that is a complete mish-mash of the following: $VAR1 = "foo"; $myName = "Joe"; $my_surname = "Bloggs"; $NAME = $myName." ".$my_surname; function printMyName($name) { } function save_my_name($name) { }
-
Forget reciprocal. Just inbound links containing your keyphrases
-
Sorry. Only took a quick glance at it. There are plenty of sites offering the detection code though. Just do some Googling