Search Results

Showing results 1 to 40 of 840
Search took 0.05 seconds.
Search: Posts Made By: ShawnCplus ; Forum: PHP and child forums
Forum: PHP 10 Hours Ago
Replies: 3
Views: 100
Posted By ShawnCplus
do you have display_errors set to On?
Forum: PHP 1 Day Ago
Replies: 10
Solved: how to execute
Views: 234
Posted By ShawnCplus
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
Solved: how to execute
Views: 234
Posted By ShawnCplus
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
Solved: how to execute
Views: 234
Posted By ShawnCplus
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
Solved: how to execute
Views: 234
Posted By ShawnCplus
Show us the source of the page
Forum: PHP 1 Day Ago
Replies: 10
Solved: how to execute
Views: 234
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
Help you with what?
Forum: PHP 9 Days Ago
Replies: 5
Views: 193
Posted By ShawnCplus
Ahh, add a space before your WHERE, right now you have SELECT * FROM myTableWHERE...
Forum: PHP 9 Days Ago
Replies: 5
Views: 193
Posted By ShawnCplus
Try "WHERE ho_uniqueid='".$_SESSION['uid']."'";
Forum: PHP 16 Days Ago
Replies: 3
Views: 197
Posted By ShawnCplus
Show us the code you have and we'll help you from there.
Forum: PHP 25 Days Ago
Replies: 1
Views: 181
Posted By ShawnCplus
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
Solved: GD Question
Views: 257
Posted By ShawnCplus
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
Solved: GD Question
Views: 257
Posted By ShawnCplus
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
Posted By ShawnCplus
What he said, it's been a long day :)
Forum: PHP 31 Days Ago
Replies: 15
Views: 434
Posted By ShawnCplus
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
Posted By ShawnCplus
time BETWEEN '$endDateTime' AND '$startDateTime' Put quotes around the dates
Forum: PHP 32 Days Ago
Replies: 3
Views: 288
Posted By ShawnCplus
!==
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
Posted By ShawnCplus
http://php.net/mysql - Language documentation is your friend
Forum: PHP Nov 13th, 2009
Replies: 3
Solved: need HELP
Views: 248
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
Don't use HTTP_COOKIE_VARS, use _COOKIE
http://php.net/$_COOKIE
Forum: PHP Nov 3rd, 2009
Replies: 1
Views: 165
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
http://php.net/imagick
Forum: PHP Oct 23rd, 2009
Replies: 1
Views: 152
Posted By ShawnCplus
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
Posted By ShawnCplus
PHP has built-in ImageMagick functions, why are you using an external program?
Forum: PHP Oct 22nd, 2009
Replies: 2
Views: 223
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
<?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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
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
Posted By ShawnCplus
Get.......... an............. UPS............., hardware................ should.......... stop.............. the............... issue................ long............ before....................
Forum: PHP Oct 20th, 2009
Replies: 7
Views: 270
Posted By ShawnCplus
You can't, use a database. It's that simple.
Showing results 1 to 40 of 840

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC