Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
Your questions are too vague to give an accurate answer. You can obviously integrate phpBB with the rest of your code. However, how easy it is depends on a number of factors like: - How did you write your code? - How did they write their code? - Did they provide an API? - If they did, is it good?
-
How do you "know" what the individual positions are? You have created the rule that 1=basic, 2=standard and 3=premium. However, there is no reference in the $types array to its numerical equivalent. Unless you somehow tell the interpreter those rules, there is no way it can magically infer these or fetch them from your mind. No, it is not. Your array is associative, not enumerated.
-
Just create a new array that maps the integer to the string key. $typeMap = array(1 => 'basic', 2 => 'standard', 3 => 'premium'); You can then refer to the type as $types[$typeMap[$type]]]. Probably to the same place as your patience.
-
www and non-www have different entries in the DNS server's zone files. They will both have to be changed. If you aren't running the DNS server yourself it would be best to contact your host's support department.
-
Nobody said 1 billion users, but rather 1 billion downloads. Besides, you can apply the same argument against Avant. From a technical standpoint, Avant is inferior to Firefox, Opera, Chrome and Safari due to the underlying rendering engine the respective browsers are using.
-
You just pass the command as argument when calling screen. Instead of cd /server/srv102/ ./srcds_run -game cstrike you would just do /server/srv102/srcds_run -game cstrike though. http://www.manpagez.com/man/1/screen/
-
You're overriding the the $header variable in line 6. The reason why it sends it twice is because you call the mail() function twice(in both line 16 and 17).
-
Security on a download page that has a session further down already
Daniel0 replied to deleet's topic in Application Design
Serve the file dynamically. This post should give you an idea of how to do it. If you are serving large files you shouldn't use readfile() though; it loads up the entire file in memory. You might want to use a combination of fopen, fread, feof and fclose to serve smaller chunks of the file sequentially instead. -
I've merged the two topics.
-
What does that prove? http://www.mozilla.com/en-US/press/awards.html http://www.opera.com/business/awards/
-
Only if people have to enter CC details or otherwise sensitive information on your end.
-
Call your credit card company and have them return the funds to you. Sounds like an unauthorized transaction.
-
In that case we are so fortunate that there is a search function on PHP.net: http://php.net/results.php?q=stdin&p=manual
-
Just read data from the STDIN stream. Like trim(fgets(STDIN)) for instance.
-
Instead of $arr[]="'koala'->1"; do $arr[0]->koala ='1';
-
Split it up by comma. Iterate through these and split each up by the equals sign.
-
You can get version 4 on Windows as well using Chromium. I'm not sure why they bump the version count so quickly. I don't see enough changes that to me warrant increasing the major version. [attachment deleted by admin]
-
That is something I would really like as well. Even though I've got 4 GB memory, Firefox does seem to become less responsive the higher its memory usage is.
-
Sorry, maybe I don't understand your question properly. What exactly are you trying to do?
-
It still will not work. Check out what mysql_fetch_assoc returns (and I'll reiterate myself: see the examples on that page).
-
You should store it as a DATETIME field. You can do like this though: <?php $time = 200908141659; $unix = mktime(substr($time, 8, 2), substr($time, 10, 2), 0, substr($time, 4, 2), substr($time, 6, 2), substr($time, 0, 4)); echo date('H:i m/d/Y', $unix);
-
You need a delimiter, i.e. a pair of characters that delimit the pattern. It could for instance be # in which case it would look like: preg_match('#,#', $cityandstate) The function strpos is better suited for this task though.
-
Check out the examples on mysql_fetch_assoc to see how you would iterate through the result set.
-
Are you sure your query is correct? `0` = '0' means the field 0 has the value 0. Normally you wouldn't name a field like that.
-
Unless you're a moderator or administrator, no.