• Web Development Questions That Don't Need Their Own Thread v2
    3,079 replies, posted
So the book has incorrect coding?
[QUOTE=Adzter;32335275]So the book has incorrect coding?[/QUOTE] Possibly not incorrect, the issue may be elsewhere, but it certainly sets forth some bad examples, and I don't think the author has a clear understanding of the tools he's using (assuming you copied everything word for word).
[QUOTE=StinkyJoe;32336717]Possibly not incorrect, the issue may be elsewhere, but it certainly sets forth some bad examples, and I don't think the author has a clear understanding of the tools he's using (assuming you copied everything word for word).[/QUOTE] Yeah, it came with a CD with all the files that the author used in the book. [img]http://puu.sh/5K0b[/img] Just coppied them from the CD to my PC, mabye the issue lies within my server? since it's home hosted with a default install of wamp
[QUOTE=Adzter;32336798]Yeah, it came with a CD with all the files that the author used in the book. [img]http://puu.sh/5K0b[/img] Just coppied them from the CD to my PC, mabye the issue lies within my server? since it's home hosted with a default install of wamp[/QUOTE] wamp should work just fine, can you upload those files so I can test them on my own wampserver install? my install works fine so if it is a problem with your install we would know right away.
[QUOTE=R1Z3;32331498]Add an element with the "clear:both" style at the end inside the .container div. <div class="container"> CONTENT <br style="clear:both" /> </div>[/QUOTE] Can't notice a difference [QUOTE=TheDecryptor;32331647]Or you could just set the sidebar and content area to be inline-block and then you wouldn't have to mess around with floats.[/QUOTE] How would I do that? I did display: inline-block; for both divs and no change
[QUOTE=mobrockers2;32336875]wamp should work just fine, can you upload those files so I can test them on my own wampserver install? my install works fine so if it is a problem with your install we would know right away.[/QUOTE] I missed off a .sql file that needs to be run that creates the database etc. But if you don't mind heres all needed files [url]http://dl.dropbox.com/u/21048340/login.zip[/url] It's directly off the CD, I haven't changed them in any way.
[QUOTE=Adzter;32337395]I missed off a .sql file that needs to be run that creates the database etc. But if you don't mind heres all needed files [url]http://dl.dropbox.com/u/21048340/login.zip[/url] It's directly off the CD, I haven't changed them in any way.[/QUOTE] [img]http://dl.dropbox.com/u/5483751/Photos/2011-09-17_1750.png[/img] Okay [img]http://dl.dropbox.com/u/5483751/Photos/2011-09-17_1752.png[/img] o.O [img]http://dl.dropbox.com/u/5483751/Photos/2011-09-17_1753.png[/img] Hmm, are you not getting these errors?
[QUOTE=mobrockers2;32337595][img]http://dl.dropbox.com/u/5483751/Photos/2011-09-17_1750.png[/img] Okay [img]http://dl.dropbox.com/u/5483751/Photos/2011-09-17_1752.png[/img] o.O [img]http://dl.dropbox.com/u/5483751/Photos/2011-09-17_1753.png[/img] Hmm, are you not getting these errors?[/QUOTE] On authmain.php it means you need to enable 'short_open_tag' for PHP. The rest simply looks like horrible code.
[QUOTE=StinkyJoe;32337854]On authmain.php it means you need to enable 'short_open_tag' for PHP. The rest simply looks like horrible code.[/QUOTE] Short tags in an example provided by the writer of that guy's book. Oh god. What.
Ok, so we've established that the author of this book is utter shit, can anyone reccomend a GOOD php book? Also what's so bad about using short tags? does it cause problems etc?
[QUOTE=Lequinx;32337281]Can't notice a difference[/QUOTE] You're also missing float:left on your sidebar div. Then add the clear:both element.
[QUOTE=Adzter;32338110]Ok, so we've established that the author of this book is utter shit, can anyone reccomend a GOOD php book? Also what's so bad about using short tags? does it cause problems etc?[/QUOTE] The book I use is pretty good, but it's in Dutch. And what's so bad about short tags is that they cause unexpected things in some browsers or when you use them together with some other languages I think.
[QUOTE=Adzter;32337395]I missed off a .sql file that needs to be run that creates the database etc. But if you don't mind heres all needed files [url]http://dl.dropbox.com/u/21048340/login.zip[/url] It's directly off the CD, I haven't changed them in any way.[/QUOTE] [php=2] $query = 'select * from authorised_users ' ."where name='$userid' " ." and password=sha1('$password')"; [/php] doesn't look like a good book at all
It was reccomended by someone on facepunch as well; and for future referance: [url=http://www.amazon.co.uk/PHP-MySQL-Development-Developers-Library/dp/0672329166/ref=sr_1_1?ie=UTF8&qid=1316278260&sr=8-1]Stay away from it![/url]
What book is this? I'd like to send an email to the author asking him/her to never write a PHP book again. edit: Thanks.
PDF and source code for your viewing pleasure [url]http://apple.compwhizii.net/lol.tar.gz[/url]
[QUOTE=mobrockers2;32338436]The book I use is pretty good, but it's in Dutch. And what's so bad about short tags is that they cause unexpected things in some browsers or when you use them together with some other languages I think.[/QUOTE] The problem with short tags is that they are disabled by default, and can collide with the xml syntax. [editline]17th September 2011[/editline] How to detect if a PHP book is shitty in one simple step. CTRL+F, "include(" or "require(" or "echo(" or "print(": [img]http://img1.uploadscreenshot.com/images/orig/9/25914044569-orig.png[/img] The author fails to understand those are language constructs = shitty PHP book. A mostly innocuous mistake, but you'd be surprised how accurate it is.
[QUOTE=StinkyJoe;32339881]The problem with short tags is that they are disabled by default, and can collide with the xml syntax. [editline]17th September 2011[/editline] How to detect if a PHP book is shitty in one simple step. CTRL+F, "include(" or "require(" or "echo(" or "print(": [img]http://img1.uploadscreenshot.com/images/orig/9/25914044569-orig.png[/img] The author fails to understand those are language constructs = shitty PHP book. A mostly innocuous mistake, but you'd be surprised how accurate it is.[/QUOTE] I don't understand what you mean by that. Are you saying they should teach us not to use parenthesis with language constructs?
[QUOTE=R1Z3;32338424]You're also missing float:left on your sidebar div. Then add the clear:both element.[/QUOTE] Still doesn't fucking work Now I know why I learned php first
[QUOTE=StinkyJoe;32339881]words[/QUOTE] Hey StinkyJoe get on Steam. I have to tell you here since you don't read your PM's, you fucking slut. Get off this damn forum for once. @webdevmods plz dont ban me, actually I don't really give a fuck you can go fuck yourselves. [highlight](User was banned for this post ("Insulting poor StinkyJoe and doesn't give a fuck about getting banned. You do know other moderators give pbans for such statements?" - Swebonny))[/highlight]
[QUOTE=SauceHelmet;32342737]Hey StinkyJoe get on Steam. I have to tell you here since you don't read your PM's, you fucking slut. Get off this damn forum for once. @webdevmods plz dont ban me, actually I don't really give a fuck you can go fuck yourselves.[/QUOTE] mods plz ban for harrassment
Holy shit, did Lithium change their hosting plans? It was perfect before...
[QUOTE=toaster468;32348038]Holy shit, did Lithium change their hosting plans? It was perfect before...[/QUOTE] I don't see it, what changed?
[QUOTE=toaster468;32348038]Holy shit, did Lithium change their [b]website[/b]? It was perfect before...[/QUOTE] Yes, they did.
Is it better when making a site with dynamic loading content (eg div moves offscreen and comes back with new content) to load the whole site at once, for smooth quick transitions, or to load only pages when they are required? are there any tradeoffs to loading everything at once, for a simple portfolio site?
[QUOTE=Kwaq;32351917]Is it better when making a site with dynamic loading content (eg div moves offscreen and comes back with new content) to load the whole site at once, for smooth quick transitions, or to load only pages when they are required? are there any tradeoffs to loading everything at once, for a simple portfolio site?[/QUOTE] it's generally advisable to do as much as possible in a single request. A page worth of text will only add a few kilobytes of weight so there's no real reason to delay loading it. If you're doing a lot of work with images, then it may be better to find a way to postpone the loading of images until everything that is initially visible has loaded.
Is it possible for someone to view the contents of a directory on my web server? If so, can I make it so they can't?
[QUOTE=Epic Sandwich;32352481]Is it possible for someone to view the contents of a directory on my web server? If so, can I make it so they can't?[/QUOTE] .htaccess I think.
i think its just Options -Indexes in .htaccess
[QUOTE=Epic Sandwich;32352481]Is it possible for someone to view the contents of a directory on my web server? If so, can I make it so they can't?[/QUOTE] It depends on the settings of your web server, on nginx it's as simple as [code]autoindex off;[/code], for most web servers an easy way to stop people looking inside your directories is to create a blank index.html file in each folder you don't want people to have access to.
Sorry, you need to Log In to post a reply to this thread.