Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by Synook

  1. PHP operates on the server-side, and is completely transparent to clients (except for the .php extension, I suppose, but search engines don't care about that). The main issue, I suppose, though not restricted to PHP, is that if you have a complicated querystrings (the bit after the ? in URLs), search engines can get confused when trying to differentiate between different pages. To solve this, you can use URL rewriting (though the use, for example, of mod_rewrite on Apache) to rewrite your URLs from something more pleasant. Or just try not to have complicated querystrings .
  2. Double post: http://w3schools.invisionzone.com/index.php?showtopic=40175. Don't worry, everyone can see all the forums .
  3. You can probably use some Javascript to make it play an ad, then load the actual video.
  4. It will appear to you as a normal web server, and you just request files off it (according to the S3 manual, you use a URL of the form https://s3.amazonaws.com/Bucket/Object). You can embed the videos in your site using the <video> tag as before, or hyperlink if you want people to be able to download them easily. P.S. I've noticed you seem to be replying to some old topics on this forum — if there has been no activity in a thread for a while, it's probably not worth it to respond.
  5. Yes — you can set up event handlers so that when someone clicks on the element, it then moves it relative to the movement of the mouse cursor, and then when they "mouseup", the object stops behaving like that.
  6. If you want, you can have a fallback Flash-based video player. You could also make that the default and only display the HTML 5 one if the user doesn't have Flash installed (like what Youtube does now).
  7. You can tell Youtube doesn't actually stream — when you watch a video, you will see two bars in the bit where it tells you how long the video is — the red bar represents how much you've watched, but there is another light-grey bar that shows how much of the video is actually downloaded (you can click anywhere in this area and have the video immediately play) — so Youtube just downloads the video in the background, but plays it back at the same time. Interestingly enough, Youtube also has an alternative HTML 5 video player. You don't need to have your entire site on Amazon S3, as it is just a storage service, and doesn't come with things like server-side language support, database servers, etc. (at least, not that I am aware of). You can host most of your site on a regular web server, then just request the videos from S3. I doubt a 10-minute video will be that big — if you encode it, for example, at 500 kb/s (VCD quality), then it will only be 37.5 MB. As for whether you'd be able to make a profit with ads, it probably depends on your audience. Also, you shouldn't take my advice incautiously — I have never set up such a site before and am just using my general knowledge; some of what I said may not end up working .
  8. As I said, Youtube doesn't use video streaming, just a simultaneous download-playback mechanism (streaming is where the data is immediately displayed as it is received and not stored at all). HTTP can't do actual streaming, you need a protocol like MMS for that (though, you probably don't need/want actual streaming, as that is much, much more complicated to set up). If you need scalable bandwidth then you may want to look at a service like Amazon S3, which will give you as much bandwidth as you need at a cost per-data-unit-transferred. The geographically diverse CDNs of such services will also ensure that your content doesn't come out of a single data centre but instead from somewhere close to the client, reducing latency. While I am sure it is possible to transcode video on-demand using PHP (or at least, by hooking into a system utility through PHP), I do not recommend this at all. Transcoding takes a long, long, long time, and uses a LOT of computing power — the average quad-core desktop PC will have its entire processing power consumed for, say, about ten minutes to convert a three minute video to H.264. You are much better of transcoding videos as they arrive — if you want to do this remotely then some other services, such as Amazon EC2, may help (though it may get expensive). As for what video format is "best", you can see a compatibility chart on Wikipedia. Note that iOS only supports H.264 so if your majority target audience are going to be using iOS then you'd better just use that. If you really want, you can have multiple formats available, but that would of course increase your transcoding cost.
  9. What program are you referring to?
  10. Youtube and most other video-sharing sites don't actually stream video, they just download it as fast as possible while playing it back to the user at the same time. If you display a H.264 video (through the HTML 5 video tag, for example), it will use the same mechanism. This is perfectly feasible to do through HTTP — you just need enough servers / bandwidth to cope with the amount of visitors you get. And yes, you can create any type of website in PHP.
  11. Synook

    Variable Issue!

    There is nothing actually wrong with your code. Proceed as usual.
  12. Synook

    Variable Issue!

    Have a look at the source code. Your browser may just be doing funny things.
  13. Stay calm, people — I think we have ascertained that Joomla! and certain other free CMSs, in an absolute sense, can be and are used for non-blog applications, but that for Bigjoe, the time, support or ability is simply not present in order for him to make use of said CMSs for anything but how they are in their most basic configurations — hence the need for something more complete out-of-the-box.I also think it is great that the OP is has the will to learn how to achieve what he wants from scratch; however, I just think that perhaps a more open view is needed on existing software is necessary — the idea of "product x will only ever be for purpose y" ignore the extensible nature of open-source software and the flexibility of web technologies. As has been said, it is fine if you are unable to extend the products yourself, but blanket statements such as "joomla is nothing but a blog" are not likely to help. Keep an open mind when learning, and you will find how to make the best use of technologies and existing products to suit your needs; otherwise, you will definitely end up doing more work than necessary.
  14. Constants don't persist between pages — they only exist for the duration of the script. To do what you want, you will need to use sessions.
  15. Synook

    Php Timing

    PHP cannot replace JavaScript. You need to make your website work acceptably without it being able to display "HELLO" after waiting five seconds.
  16. I doubt the people on this forum have the time or patience to dedicate a significant amount of time to help you — no-one here is paid to answer questions. As thescientist says, the forums (i.e., this bulletin board) are how people discuss problems on this site, and others will be best able to help you if you use this mechanism as well. If this is the level of support you expect from communities of volunteers, then I despair . P.S. thescientist's sentence was, bar the lack of capitalisation, actually correct English. I can see how the negative question ("is it not ...", also sometimes written as "isn't it ...") may have been confusing though, and his sentence could also be expressed as, for example, "why can't you use the forums?"
  17. Synook

    If Condition In Xml

    CDATA doesn't have anything to do with conditions — http://www.w3schools.../xml_cdata.asp.
  18. Regarding your pseudocode, how does one select a radio button multiple times?
  19. Synook

    Website Updates

    LightCMS is a content management system, just like Wordpress. cPanel is not a CMS - it is a server management interface. If you want content to be dynamically updated (events, text, whatever), then you need to use a server-side language. You can write a system from scratch, or you can start with a CMS and extend it for your needs. Tutorials on W3Schools such as the PHP one may help in this.
  20. Well, it is true that Wordpress and the other open-source options are more suited for people that can fiddle with the code to extend them to their exact needs. Also, you get what you pay for — support is one of the main differentiators between free and paid software products (think about how MySQL makes money). You may want to consider paid options, such as http://www.squarespace.com/, if you put a lot of value on support. P.S. if you are interested, here are some Wordpress-powered sites that are not only blogs, or not blogs at all:http://jquery.org/http://allthingsd.com/http://www.archer-group.com/http://www.knowledgescreen.com/http://a16z.com/
  21. You get that error because, as thescientist says, you have output (e.g. spaces, HTML) before your PHP code (specifically, the <?php bit). And you just need to negate the statement to get your desired result.
  22. Well, why don't you just make the "view" link point directly to the PDF file, and the "download" link point to a download.php script like Ingolme presents? Then you don't need a server configuration file.
  23. Synook

    Next Step

    ASP is outdated, if you want to learn Microsoft server-side technologies, ASP.NET is where it's at. But it's up to you, really — .NET may be more useful if you hope to work in corporate environments in the future, but PHP is a good hobby language. Apache is the actual web server - the thing that people connect to when they request a page from your IP address. PHP is the PHP interpreter - the thing that Apache contacts when it needs to process a page with PHP code. MySQL is a database server (and database management system) that you use to store structured data, if you so need. You can interface with it using libraries available in PHP. The process of installing them one by one is ... a bit tricky, to say the least, and it is usually much more convenient to use one of various packages, such as WAMP and XAMPP, that install and configure them all at once. You don't use any of these to actually type code — you need an editor (like Notepad) for that — but Apache will serve files on the web server if someone requests them. People will be able to contact your server using its IP address, however if you are on a network with NAT, then the NAT device (usually your router) will have to have the relevant ports (by default 80) forwarded for people on the outside to get to the server machine. Finally, to test your server you can just connect to yourself using the loopback network interface (localhost) on Edit: beaten by Don E! Personally, I use WAMP, but either of them work fine. There is also MAMP for OS X machines.
  24. While the most popular CMSs, like Wordpress, may not have all that functionality natively, I'm sure you can find some plugins that will do the job for you.
  25. Comment: you can also just have your "SQL script" run through the PHP interpreter, either using the server configuration, or by just giving it the .php extension.
  • Create New...