-
Posts
15,229 -
Joined
-
Last visited
-
Days Won
427
Everything posted by requinix
-
Then it seems like the player doesn't like the I'd say leave it out. Really, what's the harm in people looking at the XML? It's not like you can hide it from them anyways, and neither are you linking to it for a person to check...
-
Looking at your other thread, this XML is going to a Flash player right? So what "page" is going blank? Is it the page where you try to load this XML in your browser directly? Do you, in fact, have a /player.xsl that will transform the XML into something readable?
-
Why are the 16/07/14 values being merged into 17/07/14's? Why choose 17's date as the final key and not 16's?
-
If you don't mind I'm moving this to the MySQL forum as you're asking more about database design than coding. Yes, there will be a lot of rows, but databases are designed for this sort of thing. As long as you're using good normalization practices and proper indexes, everything will perform smoothly.
- 3 replies
-
- threaded
- discussion
-
(and 1 more)
Tagged with:
-
Database: learn about adjacency list (requires a parent->child relationship) versus nested sets (requires... something more complex). They have complementary advantages and disadvantages - meaning one's strength is the other's weakness. Post rating: require a login and track every user's rating so you'll know if they've voted before.
- 3 replies
-
- threaded
- discussion
-
(and 1 more)
Tagged with:
-
That's just a basic quiz. There's tons of code out there for that kind of thing. Unless you're looking to hire somebody?
-
Focus on giving the user a PDF. If they want to print it then they can. Three basic options: a) Generate the HTML and then turn that into a PDF - you'll need some sort of HTML->PDF converter, b) Construct the PDF manually in code - you'll need some sort of PHP PDF library, or c) If it makes sense, use FPDF to fill in a PDF "template" - you'll need some sort of PHP FPDF library
-
Looks custom - no branding that I can see. Even if it was some commercial solution then I wouldn't recommend it based on the HTML source of the pages: it's horrible. I can't imagine the backend being any nicer.
-
You don't have to do any parsing. It's done for you. If you're looking to get the Contig2 value, that'd be .iterations[0].
-
Include code works on one page but not another
requinix replied to eGate-Network's topic in PHP Coding Help
It's fine to be offended... if I'm wrong. function banner() { } ; b = new banner() ; n = 0 b[n++]= "<A target='_blank' HREF='http://flowernursery.co.uk'><IMG SRC='random-ads/flower-nursery-banner-01.png' border='0' title='Flower Nursery' >" b[n++]= "<A target='_blank' HREF='http://greatviewlandscapes.com'><IMG SRC='random-ads/greatviewlandscapes-banner.png' border='0' title='Great View Landscapes' >" b[n++]= "<A target='_blank' HREF='http://egatemarket.com'><IMG SRC='random-ads/egm-ad-728x90-banner.png' border='0' title='eGate Market' >" b[n++]= "<A target='_blank' HREF='http://divinegardensandlandscapes.com'><IMG SRC='random-ads/divine-banner-01.png' border='0' title='Divine Gardens & Landscapes' >" b[n++]= "<A target='_blank' HREF='http://minecraftconsolecrafting.comxa.com'><IMG SRC='random-ads/mcc-banner-01.png' border='0' title='MCC Crafting Minecraft PS3 Edition' >" <img border="0" src="random-ads/egm-ad-160x600-video-games.png" alt="Buy & Sell New & Used Video Games For FREE!" title="Buy & Sell New & Used Video Games For FREE!" vspace="5" width="160" height="600">What's this? I was right? Slashes. Add them. function banner() { } ; b = new banner() ; n = 0 b[n++]= "<A target='_blank' HREF='http://flowernursery.co.uk'><IMG SRC='/random-ads/flower-nursery-banner-01.png' border='0' title='Flower Nursery' >" b[n++]= "<A target='_blank' HREF='http://greatviewlandscapes.com'><IMG SRC='/random-ads/greatviewlandscapes-banner.png' border='0' title='Great View Landscapes' >" b[n++]= "<A target='_blank' HREF='http://egatemarket.com'><IMG SRC='/random-ads/egm-ad-728x90-banner.png' border='0' title='eGate Market' >" b[n++]= "<A target='_blank' HREF='http://divinegardensandlandscapes.com'><IMG SRC='/random-ads/divine-banner-01.png' border='0' title='Divine Gardens & Landscapes' >" b[n++]= "<A target='_blank' HREF='http://minecraftconsolecrafting.comxa.com'><IMG SRC='/random-ads/mcc-banner-01.png' border='0' title='MCC Crafting Minecraft PS3 Edition' >" <img border="0" src="/random-ads/egm-ad-160x600-video-games.png" alt="Buy & Sell New & Used Video Games For FREE!" title="Buy & Sell New & Used Video Games For FREE!" vspace="5" width="160" height="600"> [edit] Oh, and spoiler: I lied. I did check first. But somehow I don't think that's the point here. So don't go getting all offended that someone didn't spend a lot of time on your problem and then ignore what they say, because if they turn out to be right, they're not going to be the one looking bad for it. -
You're not going to spam us, right? Then links are fine.
-
Include code works on one page but not another
requinix replied to eGate-Network's topic in PHP Coding Help
If you don't mind, I'm going to not look at those pages and instead make a guess. The URLs to those images. Are you using relative paths? Paths that don't start with a slash like "topic/289806-include-code-works-on-one-page-but-not-another/". They're relative to the current "directory" of the page. With the second and third URLs the browser will go looking for "/sections/path/to/image" when it should have gone looking for "/path/to/image". Put a slash at the beginning of the URLs. -
PHP Syntax Error - Need help to understand
requinix replied to n1concepts's topic in PHP Coding Help
Yeah. See how "$movie_title" is messed up? I'd make an educated guess that the next character after the "$i" was a less-than - you know, the symbol that marks the beginning of an HTML tag? The blog and/or author and/or code plugin whatever is stupid with HTML to the point of leaving some HTML markup unescaped and "sanitizing" other. Looks like it should read for ($i = 0; $i < count($trs_we_want); $i++) { // everything from the < $the_tds = $trs_we_want[$i]->getElementsByTagName('td'); // to the next > was removed -
That's right: Java. Java and Javascript are two completely different things. Inline content sucks. Can't you just use a time-limited URL? 1. JS: Do the POST but now you only get a temporary token 2. Java: Store that token in the database along with a reference to the PDF - this is a good opportunity to log views too 3. JS: Construct a specific URL containing that token ("/path/to/service?token=123abc") and embed it 4. Java: Take that token, check that it's still valid, and if so output the PDF
-
When you did the AJAX stuff you had the option to specify the type of data to return. Tell jQuery to use JSON. Then you'll get an object in your callback function with .status and .job_status and such.
-
Again: is this in Javascript? The most straightforward method would be to enumerate all the properties of window before and after that code is executed, then determine what got added.
-
The code?
-
It would be great if you could do responsive now, but it that will add a lot more time until you can release then you should put that off until the next iteration. At least you'll have something out there sooner rather than later. Besides, many phones and tablets are capable of handling "desktop" layouts without inconveniencing the user too much; depends on the content but a bit of zooming and scrolling isn't that bad. And while the site is out there you can set up some metrics to see how people actually are using your site. Maybe there are many more mobile users than you thought. Maybe fewer.
-
In Javascript? Execute the code and you'll have those variables available to use. Or maybe I'm not sure what you're asking for.
-
I think the idea of a "crate dimension factory" is confusing me as to how this all works... Do you have a concrete example of the system at work? My off-the-cuff preference would be towards a factory factory: dimension things have a factory, weight things have a factory, and there's an overarching factory producing the dimension and weight factories. Some of that implementation could be hidden with a(nother) class that looks like a regular factory (one such as you proposed) but that secretly uses the various factories behind the scenes.
-
I'm seeing 192.254.189.64 but that could vary if you're using DNS-based load balancing.
-
Header declaration for unavailable product
requinix replied to fastsol's topic in Application Design
With the caveat that "how it is working right now is correct", No. It should return a 404 because the product I requested does not exist. The fact that you're using a real file to respond to my request is irrelevant: the thing I wanted is not there.