Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
Creating a tagging system search database?
Daniel0 replied to extrovertive's topic in Application Design
Have a table called tags with a structure like this: tag_id tag_object_id tag_user_id tag_name -
What links are you talking about?
-
Try [url=http://www.asmallorange.com/]A Small Orange[/url]. Their Tiny package gives you 75mb space and 3gb bandwidth for the price I said above. I know 75mb space is not much, but for a forum you wont need more than that. Edit: If you ever choose to go with them, when you purchase it there is a field called "Referrer", please enter xaos-ia.com into it.
-
[quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 1) F the widgets. They're the most useless feature I've seen them add. Use Yahoo Widgets (formerly Konfabulator). [/quote] Firefox has extensions as well, but they are useful. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 2) Context menu. Need I say more? (oh, and it's editable) [/quote] What about it? [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 3) THE WAND [/quote] Useless for me as I prefer to type it in myself. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 4) Skins... let's face it, the default Opera skin blows. So does the default configuration of the buttons. I'll take a screenie and post mine if you want a nice, clean orientation. I'll let you choose your own skin, as there are several good ones. I love blue button 1.1 and meguiddo 1-4. [/quote] I better like a simple skin like Firefox' and Firefox has several skins to download as well. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 5) little x's on the tabs [/quote] I believe Firefox 2.0 has that. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 6) quick download in the context menu... again... the context menu rules [/quote] ? [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 7) fast forward ... fast rewind. Don't use them all the time, but much more handy as I get used to them. [/quote] Ok, I guess that could be useful. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 8) mouse gestures... handy, but I don't use them often. [/quote] Could be useful, but there is an extension for Firefox to do that. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 9) speed... definately faster all around and proven by TONS of benchmarks. [/quote] I don't see any difference. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 10) cached "back" action. No waiting for the page to reload. You it back and it's almost instantly back to where you were. [/quote] Firefox got that as well. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 11) super custom... no other browser lets you customize the interface like Opera. [/quote] There is one that does that: Firefox [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 12) standards compliant... no other browser comes close [/quote] Based comparisons between Presto and Gecko on Wikipedia I think it is very close between these two layout engines. I can't tell if Presto or Gecko is the best one though. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 13) download manager rules and you can manage bittorrent downloads with it! [/quote] I don't see what is so good about it. Bittorrent support is fine I guess, but I do not use that. [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] 14) By far the best keyboard reactive browser on the market. [/quote] What do you mean? [quote author=ober link=topic=111547.msg452847#msg452847 date=1161036848] Need I go on? Because I will. [/quote] Yeah, just do that :P Tomorrow I will use Opera the entire day and see if it is that good. In fact I have used Opera before, but I went away from it because I thought Firefox was better.
-
Donation button in forums
Daniel0 replied to karthikeyan_coder's topic in PHPFreaks.com Website Feedback
[quote author=steelmanronald06 link=topic=111503.msg452933#msg452933 date=1161055036] I thought I locked this topic because I could done see where it was leading? who unlocked it, and would you care to shed light on why you overruled my decision to lock it without first sending me a PM to discuss the validity of my decision? [/quote] I'm not sure it was ever locked, I saw that you said "topic locked!", but I was able to reply anyways. -
This works: [code]<?php while(1) { sleep(1); $i++; echo "{$i} seconds\n"; } ?>[/code] Output (command-line): [code]daniel@daniel:~$ php /var/www/test.php 1 seconds 2 seconds 3 seconds 4 seconds 5 seconds 6 seconds 7 seconds 8 seconds 9 seconds daniel@daniel:~$[/code]
-
Try this then: [code]while(sleep(1)) { $i++; echo "{$i} seconds\n"; }[/code]
-
Why not just use: [code]<?php session_start(); $_SESSION["postConn"] = $_POST['DelCon']; ?>[/code] and [code]<?php session_start(); $_SESSION["curNcy"] = $_POST['curEncy']; ?>[/code]
-
Remove [code]<?php global $ad; ?>[/code] Change [code] <frame src="forward_bottom.php?ad=$ad" name="mainFrame" id="mainFrame" title="mainFrame" />[/code] to [code] <frame src="forward_bottom.php?ad=<?php echo $_GET['ad']; ?>" name="mainFrame" id="mainFrame" title="mainFrame" />[/code]
-
Try this: [code]for($i = 1; $i <= 20; $i++) { echo "{$i} seconds\n"; sleep(1); }[/code]
-
You can get hosting that is as cheap as $25/year. Perhaps even cheaper.
-
Just use is_numerical.
-
[code]$num = intval(0);[/code] or [code]$num = (int) 0;[/code]
-
Well, PHP do not have a function called now(), but check this out: http://php.net/gmdate
-
What are you talking about? That it has a bug that is several years old?
-
gmdate('r');
-
redarrow, you have been here some time. Why do you keep posting your scripts in the PHP help forum when you do not need help?! You've done it quite some times now. It may be a nice script, but please post it in the correct forum!
-
You put a variable inside single quotes, then it wont get parsed. Use this (made smaller and fixed):[code] function defRadio($namex, $valuex) { return $_POST[$namex] == $valuex ? 'checked="checked"' : null; } [/code]
-
It works for me: [URL=http://img222.imageshack.us/my.php?image=screenshot14jl5.png][IMG]http://img222.imageshack.us/img222/2978/screenshot14jl5.th.png[/img][/URL] It must be your computer/browser. Try using another browser. [quote author=mads link=topic=111599.msg452559#msg452559 date=1161002252]I noticed that you haven't got any line breaks in your screenshots. Does it still work if you add some line breaks?[/quote] It do not need like breaks :) (if it is the html line breaks ([tt][nobbc]<br />[/nobbc][/tt]) you talk about)
-
Is there a ready industry-strong project in PHP available?
Daniel0 replied to agga.gaag's topic in PHP Coding Help
If you are making PEAR modules then there is, but as printf said, there is no actual correct way of coding. See this for more info: http://en.wikipedia.org/wiki/Coding_style http://en.wikipedia.org/wiki/Indent_style -
Try this (from the manual) (edit the email to yours): [code]<?php $to = '[email protected]'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?> [/code] If it doesn't work, then contact your host.
-
Nor is it an extension, it is a combination of technologies. It uses JavaScript's XmlHttpRequest and it uses XML.
-
You need to put [tt]Date:[/tt] in front of time in the headers. Not sure if that is the problem, but try doing that.
-
Are you sure it doesn't work? It works on my computer: Linux, Apache 2.0.55, PHP 5.1.2, Firefox 1.5.0.7 [URL=http://img222.imageshack.us/my.php?image=screenshot13rj8.png][IMG]http://img222.imageshack.us/img222/9379/screenshot13rj8.th.png[/img][/URL]
-
Should work if the file exists. You can use file_exists to check that.