Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
Uh, tables were used for layout because of CSS' shortcomings...
-
I'll do it for free if you donate some money to me
-
How do I set the forum time to my local time?
Daniel0 replied to Coders2018's topic in PHPFreaks.com Website Feedback
Profile > Look and Layout http://www.phpfreaks.com/forums/index.php?action=profile;area=theme -
Visit http://www.vuvuzela-time.co.uk/www.vuvuzela-time.co.uk/www.vuvuzela-time.co.uk/www.vuvuzela-time.co.uk/www.vuvuzela-time.co.uk/www.vuvuzela-time.co.uk/www.vuvuzela-time.co.uk/www.vuvuzela-time.co.uk/www.vuvuzela-time.co.uk for the true experience!
-
That's not what I'm saying. I'm saying that your data's tabular nature justifies the use of tables. HTML tags are given default presentational information by your browser, this can be changed using CSS. You can make tables look non-tabular and you can make non-tables look tabular in certain contexts. The fact that people sometimes use tables for aligning their content in specific ways proves this point. Tables provide additional metadata about your data that user agents can use specifically because they describe the semantics of your data. Using this, the user agent can decide how it will use that information, and how it does that depends on the context and its purpose. A "normal" browser, a console based browser, a screen reader and a search engine would all apply this information differently. When you print a page in your browser, it may also decide that it should look differently because the context is entirely different. This is also the reason why tables are inappropriate when your data is non-tabular; you would be claiming that your data is something it is not. So no, it would not be using it for layout. It would be using it for the connotations associated with data being tabular. It's the same thing as adding header tags because you want to define the structure of your text and not because you want the text within the tags to be larger.
-
If you were creating a report for a web admin, lets say in a CMS system, that shows the top ten users on your website, number of pages viewed, last login time etc, and you want in a spreadsheet style view with headings for totals, etc. Are you going to do this using a table element or div elements with a complex stylesheet for positioning. Consider that the end user may want to add extra heading columns. In that case, the data is tabular by nature, so the use of table tags would be the most appropriate tag to describe the semantics of the data. That would not be the same thing as using it for layout.
-
Security feature programming
Daniel0 replied to speedy_rudolf's topic in Other Programming Languages
Why not just check against a cryptographic key on the memory stick? -
http://dk.php.net/manual/en/function.mail.php
-
$str = '10,45'; $str = str_replace(',', '.', $str); var_dump(floatval($str)); gives float(10.45) as expected. You'll have to show some code.
-
Cool. It'll be $1000 to do that.
-
Red for delete because it signifies danger. I don't naturally associate adding and editing with any color.
-
Sure. Some guys from Google created a Quake II port using Javascript and HTML 5. http://code.google.com/p/quake2-gwt-port/
-
The Dell has got a poulsbo graphics chipset, so I wouldn't go with that one. You might not care about that if you don't have any intention on installing Linux on it though.
-
You'll have to talk to your host about that. Seems they haven't got iconv installed.
-
glob returns an array of files that matches a pattern. In my example, it would match all files in the pages folder ending on .php.
-
Bad idea, just assume I crafted the URL: index.php?page=../your/secret/config you would get a 404 error hehe but no i see what you are saying so have you an better code example that i would work with that has ease of use but still the function i require? Here you go: http://www.phpfreaks.com/forums/index.php/topic,300990.msg1424520.html#msg1424520
-
Fuck Java applets. I don't have anything else to add.
-
Then don't post in the topic...
-
You can use strftime, which is locale aware.
-
Converting a custom timestamp to a readable format.
Daniel0 replied to gergy008's topic in PHP Coding Help
In PHP you would be better off using the DateTime class, and in MySQL by using the DATE or DATETIME data types. -
It's the magic function that reads your mind to make sure it's not whatever you think of
-
Converting a custom timestamp to a readable format.
Daniel0 replied to gergy008's topic in PHP Coding Help
Why would you create your own "custom timestamp"? Anyways, use DateTime::createFromFormat(). -
Generate the array based on which files are available. $page = 'pages/' . $_GET['page'] . '.php'; $pages = glob('pages/*.php'); if (!in_array($page, glob('pages/*.php'))) { die('invalid page'); // substitute with proper error handling } include $page; Not tested, but should work.
-
Things that are in $_REQUEST will never be integers. They are always strings. is_int checks the data type, not the contents. You can use ctype_digit to solve your problem.