Forum: PHP 10 Hours Ago |
| Replies: 3 Views: 100 do you have display_errors set to On? |
Forum: PHP 1 Day Ago |
| Replies: 10 Views: 234 Also put
ini_set('display_errors', 'On');
Below error_reporting(E_ALL);
If you still don't see any errors it could be because you're trying to call a function which obviously does not exist... |
Forum: PHP 1 Day Ago |
| Replies: 10 Views: 234 After you placed that in the code refresh the page. Instead of a white page you should see errors. If you get errors that mention something about a MySQL result resource follow the FAQ. If it is a... |
Forum: PHP 1 Day Ago |
| Replies: 10 Views: 234 Right below # BEGIN SCRIPT place
error_reporting(E_ALL); Then follow the FAQ on the main page of the PHP forums |
Forum: PHP 1 Day Ago |
| Replies: 10 Views: 234 Show us the source of the page |
Forum: PHP 1 Day Ago |
| Replies: 10 Views: 234 Just go to the page in the browser, the same way you would locally except replace localhost with the domain name. |
Forum: PHP 1 Day Ago |
| Replies: 13 Views: 429 I use (g)Vim 7.2, no "IDE" comes close to how powerful it is :)
jQuery for small JS projects(Extremely well built, huge community, excellent documentation), Ext for large JS projects (same... |
Forum: PHP 3 Days Ago |
| Replies: 1 Views: 127 use print_r (http://php.net/print_r) or var_dump (http://php.net/var_dump). |
Forum: PHP 3 Days Ago |
| Replies: 2 Views: 142 You haven't shown any code so the best I can do is give a short example:
class someClassA
{
public function someMethodA()
{
throw new Exception("Error");
}
} |
Forum: PHP 7 Days Ago |
| Replies: 4 Views: 220 |
Forum: PHP 9 Days Ago |
| Replies: 5 Views: 193 Ahh, add a space before your WHERE, right now you have SELECT * FROM myTableWHERE... |
Forum: PHP 9 Days Ago |
| Replies: 5 Views: 193 Try "WHERE ho_uniqueid='".$_SESSION['uid']."'"; |
Forum: PHP 16 Days Ago |
| Replies: 3 Views: 197 Show us the code you have and we'll help you from there. |
Forum: PHP 25 Days Ago |
| Replies: 1 Views: 181 http://us.php.net/manual/en/class.datetime.php, coupled with http://us.php.net/manual/en/class.datetimezone.php |
Forum: PHP 30 Days Ago |
| Replies: 4 Views: 257 Exactly, like I said. You would have one file say image.php generate the image and in the file you wanted to show the image you'd do
<img src="image.php?someparam=somevalue" /> |
Forum: PHP 30 Days Ago |
| Replies: 4 Views: 257 If you want to place it dynamically inside another page you would have one PHP file generate the image and then point to that in an <img> tag.
But to set the content-type just use:... |
Forum: PHP 30 Days Ago |
| Replies: 15 Views: 434 What he said, it's been a long day :) |
Forum: PHP 31 Days Ago |
| Replies: 15 Views: 434 Remove [] from the name of the field, PHP sees that and tries to turn it into an array. |
Forum: PHP 31 Days Ago |
| Replies: 2 Views: 252 time BETWEEN '$endDateTime' AND '$startDateTime' Put quotes around the dates |
Forum: PHP 32 Days Ago |
| Replies: 3 Views: 288 !==
The === and !== operators check type along with value. 0 is an integer, NULL is NULL. so $somevar = 0; if ($somevar == NULL) { /* true */ } but if ($somevar === NULL) { /*false*/ } |
Forum: PHP 32 Days Ago |
| Replies: 4 Views: 222 http://php.net/mysql - Language documentation is your friend |
Forum: PHP Nov 13th, 2009 |
| Replies: 3 Views: 248 Your first place you should go for any question related to PHP is the PHP documentation: http://php.net/for |
Forum: PHP Nov 12th, 2009 |
| Replies: 109 Views: 3,765 It doesn't matter what year you're talking about a hash is by definition impossible to reverse. A hash is ONE WAY. You may be able to use a supercomputer to calculate hash collisions which result in... |
Forum: PHP Nov 11th, 2009 |
| Replies: 109 Views: 3,765 OK, I gotta throw my 2 cents in here. There is no such thing as a de-hasher. A hash is ONE WAY. The only thing that can be done is to produce every possible string against the salt using the same... |
Forum: PHP Nov 11th, 2009 |
| Replies: 3 Views: 372 Don't use ereg (http://php.net/preg), and read the giant READ ME FAQ at the top of the PHP forums then come back here and ask your question again |
Forum: PHP Nov 10th, 2009 |
| Replies: 3 Views: 256 Don't use HTTP_COOKIE_VARS, use _COOKIE
http://php.net/$_COOKIE |
Forum: PHP Nov 3rd, 2009 |
| Replies: 1 Views: 165 Your } for your changePassword function is a {. Also, you don't need to specify public for all of those variables, scope defaults to public. |
Forum: PHP Oct 23rd, 2009 |
| Replies: 5 Views: 202 exec only returns the response code, use shell_exec, that'll get all of the output so if imagemagick is producing errors you'll be able to see them. |
Forum: PHP Oct 23rd, 2009 |
| Replies: 5 Views: 202 |
Forum: PHP Oct 23rd, 2009 |
| Replies: 1 Views: 152 Yes, "newnewnew" explains exactly what your problem is. And not using code tags helps us out even more. What exactly is your question? |
Forum: PHP Oct 23rd, 2009 |
| Replies: 5 Views: 202 PHP has built-in ImageMagick functions, why are you using an external program? |
Forum: PHP Oct 22nd, 2009 |
| Replies: 2 Views: 223 What do you mean by calling the table? Also, why're you using PDO for the connection then just completely ignoring it and using mysql_query anyway? http://php.net/pdo |
Forum: PHP Oct 22nd, 2009 |
| Replies: 3 Views: 258 As a short explanation strings are arrays of characters so if you want to get the 3rd letter in a string just do $string[2] (counting begines at 0) |
Forum: PHP Oct 22nd, 2009 |
| Replies: 3 Views: 258 <?php
if ($handle = opendir('poems/')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file[0] == 'A') {
echo "$file\n <br />";
... |
Forum: PHP Oct 20th, 2009 |
| Replies: 6 Views: 308 If you see absolutely nothing then you may be getting an error. On the line before $source = ... put ini_set('display_errors', 'On'); error_reporting(E_ALL); If you're getting an error that will show... |
Forum: PHP Oct 20th, 2009 |
| Replies: 6 Views: 308 If the file is on the same server as the script then use the absolute path. If it's a remote file use the URL. |
Forum: PHP Oct 20th, 2009 |
| Replies: 6 Views: 308 You're not giving a full path, you're giving a web path. In the first example it is making a web request to fetch the file, in the second example it is directly accessing the filesystem. Make sure... |
Forum: PHP Oct 20th, 2009 |
| Replies: 7 Views: 270 If you want to save simulations for future use just use a damn database. Don't try to go against the grain when working with PHP. There are plenty of tools as your disposal for working with stuff... |
Forum: PHP Oct 20th, 2009 |
| Replies: 4 Views: 244 Get.......... an............. UPS............., hardware................ should.......... stop.............. the............... issue................ long............ before.................... |
Forum: PHP Oct 20th, 2009 |
| Replies: 7 Views: 270 You can't, use a database. It's that simple. |