Jump to content

Daniel0

Staff Alumni
  • Posts

    11,885
  • Joined

  • Last visited

Everything posted by Daniel0

  1. If you want it 24-hour format just run it through a for loop like this: [code]for($i=0; $i<=23; $i++)[/code] That will make all hours from 00-23. Then just add events in the database and store a UNIX timestamp of when the event is.
  2. When using complex variables (such as arrays) inside strings you need to enclose them in curly brackets ( {} ). Another header you might want to send is the Content-length header so the browser will know the size and thereby can estimate the time left to download the file. Where does $file come from? Edit: I really have to read the entire topic before replying. I think the thing I mentioned about the curly brackets could break it as if it has a wrong file extensions it's associations would be incorrect.
  3. I think the program will terminate when the script ends.
  4. Never owned a book, attended a course or went to school (well at least not "programming school"/"php school"). Self taught.
  5. As far as I know you can't. Either write it in an external editor and copy it to the textarea, or copy a tab and paste each time you need one. The first solution is the easiest one.
  6. There are some flash functions: http://www.php.net/manual/en/ref.swf.php I have never used them though so I can't tell you how to.
  7. Just add [code]margin: auto;[/code] and it will be centered.
  8. [quote author=monkey_05_06 link=topic=117999.msg486894#msg486894 date=1166398044] But he said he needed it to change ever X seconds. Since you can't use headers after content has been sent (i.e., the image), that wouldn't work. It would of course work to make the image different on every page refresh...but then wouldn't it be more fun to make it generate a random image? Well...he did say he wanted it like a slideshow...but what kind of slideshow goes around expecting you to click refresh all the time? :P [/quote] Well, then look at this: http://www.xaos-ia.com/daniel/non_javascript_slideshow/ I know it isn't a header, but I used the meta tag instead. Gives the same functionality. (I got a headache when making it)
  9. Just tested it. I don't see any difference.
  10. What you requested. The thing is that if you just just frames you will break things such as bookmarking, so you will need some way to pass the GET variables to the frame and make links' target _parent. I just figured out though that this will in fact restart the streaming, so you can choose to break the bookmark feature and keep the links' targets as default. Unfortunately, I think the best would be a popup window.
  11. I made you a solution: http://xaos-ia.com/daniel/frames_test/ Download: http://xaos-ia.com/daniel/frames_test.zip Either you need to manually add [tt]target='_parent'[/tt] to all links or you need to fix my javascript in real_index.php. You might want to put the javascript in a file for itself as well. Additionally you need to make a noframes version so people with no support for frames, frames turned off or search engines can access the page.
  12. [quote author=Daniel0 link=topic=118718.msg486713#msg486713 date=1166374708] Hmm... I think I'll need my dictionary to lookup "mince"... [/quote] Ahh got it. Sure sounds disgusting!!
  13. Maybe I'm stupid, but what if you wanted >3 privilege flags?
  14. Another solution could be a popup window that contains a player. From there you could select the genres as well.
  15. [quote author=redbullmarky link=topic=119067.msg487187#msg487187 date=1166434887] i like the way they've done it in the article you've linked to though as there's always something slightly dodgy about using JS to patch things up. good shout. [/quote] I agree, but I wish the Microsoft's developers could get IE to actually work so web developers didn't have to make thousands of hacks just to make it work in their browser.
  16. [quote]Directly inserting PNG images with transparency in Internet Explorer will leaves you with a big white spot in webpages. This tutorial shows you how this can be solved.[/quote] http://digg.com/design/How_to_get_PNG_image_transparency_working_in_Internet_Explorer I didn't post a direct link as some of the comments there have some ok information as well.
  17. Really odd... I think I'll do some testing later today when I come home from school.
  18. Sounds like a good idea thorpe, but I don't think it'll work for everything. Take as an example a forum's "is the group's members an admin?"-permission... how would you define that with the UNIX permission system?
  19. [quote author=AndyB link=topic=119029.msg486915#msg486915 date=1166399255] (...) and then rely on word-of-mouth and repeat business (which presently is boooooming).  Do a great job for them and they keep coming back AND they'll spread the word for you. [/quote] Heh, free advertising... :D
  20. As javascript is the J in AJAX it would take use of javascript as well. If you need it all in PHP you might want to check out the refresh header and GET. Make PHP increase an image id each time it is refreshed.
  21. [quote author=Jtech link=topic=118979.msg486768#msg486768 date=1166383029] Well you can scroll="no" tag inside the body attribute E,G <body scroll="no" > it will take the scroll bar off , but its not ideal [/quote] Then people can't scroll at all. [quote author=mendoz link=topic=118979.msg486871#msg486871 date=1166396838] Another forum did it using position:fixed, but it worked only in firefox. My boss insists I don't care about it. Thanks [/quote] I'd have to agree with your boss on this.
  22. You could have three tables: 1. users 2. permissions 3. user_permissions The users table is self-explanatory. The permissions table holds all the different kind of permission flags a user can have and the user_permissions table is the chain between the two other tables. The user_permissions table consists of two fields: uid and pid - user id and permission id, respectively and the two other tables all have an id field as well.
  23. I don't think it's unusual that a website including a design would be at several thousands dollars, but I don't know about an application. I don't get paid for programming, but do it in my spare time, so I don't know what the pricing is. A good idea would probably be to charge per hour.
  24. You may read more about RSS here: http://w3schools.com/rss/default.asp and here: http://en.wikipedia.org/wiki/RSS
  25. [quote author=KingPhilip link=topic=118889.msg486816#msg486816 date=1166389419] Also, on htmlkit (the editor I use) there is an extension that cleans up and indents all coding :) [/quote] I remember having used htmlkit before... It doesn't have support for heredoc, right? Well I don't know about know...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.