Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
[SOLVED] See if you can hack my site?
Daniel0 replied to whiteboikyle's topic in Beta Test Your Stuff!
Just to test it. A regular JPEG. -
[SOLVED] See if you can hack my site?
Daniel0 replied to whiteboikyle's topic in Beta Test Your Stuff!
I tried uploading a file, and then it gave me an error (displayed twice): -
They have arranged a "download day" to try to get in Guinees (sp?) record book. Apparently it's killing their servers. Try this link: http://www.mozilla.com/products/download.html?product=firefox-3.0&os=win&lang=en-US (providing you're using Windows and you want en-US) It should work...
-
If they haven't fixed the crash issues I've been having then I'll turn on crash notifications again and bombard their servers with report requests.
-
You cannot post anywhere without registering and that requires you to complete a CAPTCHA. The manually created accounts are manually banned as they start spamming.
-
A couple of bugs... I picked a random file from my desktop and uploaded it (p.patch), however, when downloading it it's renamed to uploadpoints. Also, the link to it from "My Files" is broken. When logging in the menu on the right is still as though you were logged out until you go somewhere else. It's a bit confusing. Same goes for logging out.
-
Well thats nice for you. But remember, not everyone is as clever or have the patience to actually read the code and find out what it does themselves. If you see any decent script out there, it will be covered with comments like those. Scripts without, I find are very messy and have a very unfortunate programmer on it's head. Seriously, try to read the code: if($show) { echo $string } (if show, echo string) How can any programmer not understand what that does? It's completely redundant.
-
Since we cant post snipplets
Daniel0 replied to whiteboikyle's topic in PHPFreaks.com Website Feedback
To prevent this from being discussed in multiple topics I'll just lock this one. As ober said though, we are working on figuring out which would be the best solution. -
I see you removed the Javascript I injected, however, the issue is still not fixed.
-
Yes, but how does the scoring work? Like do you get X amount of points per correct, for instance?
-
That kind of depends on the scoring algorithm...
-
PHP editor step into, over, out & breakpoint editor.
Daniel0 replied to johnseito's topic in Miscellaneous
Zend Studio -
I was just pointing out to Darklink that regular line breaks aren't "invisible" as he said. It's just because HTML ignores extra whitespace besides a single space.
-
Good job, Sherlock. I just said it was me...
-
In this case, people = me. I honestly don't know how, but the account I registered was given access to the admin panel. Edit: If you post the part of the code that determines whether a user should be allowed access to the admin panel or not, then perhaps I'll be able to infer the reason.
-
Hehe... ooops
-
Could you post the entire B.php file?
-
Oh... it seems I got the order of the arguments wrong. Thanks, Barand.
-
Yes. \n means a new line, so you can do: substr_count("\n", $string); Note that it won't work if you use single quotes.
-
echo substr_count('e', 'I like to eat sheep');
-
It wouldn't. The author of the text you quoted doesn't know what s/he is talking about. It's only necessary if adding a backslash would result in a valid escape sequence (e.g. \n is a newline and \t is a tab character). Moreover, that's only necessary for double quoted strings and strings using the HEREDOC syntax. The snippets in the quoted text, however, uses single quoted strings so it will be used verbatim without parsing escape sequences and without variable interpolation. See: http://php.net/manual/en/language.types.string.php for further information. Also, don't use the POSIX Regex Functions but use PCRE as they're faster. In this case it would be better to just use the regular str_replace() as it's even faster. Besides, the POSIX regex functions will be moved to PECL in PHP 6 if I remember correctly.
-
You're better off doing: var str1, str2; str1 = location.href; str2 = str1.replace ("&", "%26"); top.location.href = "http://asurfc.com/forum.php?iframe=" + str2; And then no replacing in the PHP script. %26 resembles the ampersand.
-
They're not invisible. Check the HTML source or run it from CLI...
-
You're doing this: $something = "B"; $A->dosomething($something); And then: public function dosomething($something) { print call_user_func(array(&$something,'special')); } You are calling B::special() statically because you are essentially doing array('B', 'special'). You should pass an instance of B to A::dosomething() instead.