Search Results

Showing results 1 to 9 of 9
Search took 0.01 seconds.
Search: Posts Made By: darkagn ; Forum: PHP and child forums
Forum: PHP Oct 24th, 2009
Replies: 2
Views: 186
Posted By darkagn
Try adding the following line to your script, anywhere after the line $dir = $documentroot . '/' . $username; but not inside the function:

rmdir_r($dir);

Basically, the code inside the function...
Forum: PHP Sep 8th, 2009
Replies: 1
Views: 308
Posted By darkagn
So is $title the title of a single RSS feed item? If so, you can do something like:

$count = 0;
foreach($rssFeedItems as $title)
{
if(empty($title))
echo ++$count; // a prepend...
Forum: PHP Aug 6th, 2009
Replies: 4
Views: 377
Posted By darkagn
$send="INSERT INTO mailbox SET
member_id='$memid',
user_name='$$_SESSION[user_name]',
user_id='$_SESSION[user_id]',
message='$message',
inbox='NEW',
subject='$subject',
...
Forum: PHP Apr 7th, 2009
Replies: 1
Views: 458
Posted By darkagn
imagedestroy() is used to free memory assigned to an image resource stream. I haven't tried it out, but I assume it can be used to free any image resource stream created by the GD package.

By tmp...
Forum: PHP Mar 23rd, 2009
Replies: 3
Views: 614
Posted By darkagn
I assume you want $nowdate to be a string. String concatenation in PHP uses a period character to join strings. This **should** work:


$nowdate = date('Y') . "-" . (date('Y') + 1);
Forum: PHP Nov 24th, 2008
Replies: 5
Views: 1,597
Posted By darkagn
Yes, except that you don't have to define the code for Reptile::eat() because it is in the Animal class. If you wanted to change the way that the Reptile eats from the way that the Animal eats then...
Forum: PHP Jul 25th, 2008
Replies: 2
Views: 455
Posted By darkagn
Your DB structure looks ok, except that I would probably just sort by name and remove the sort_name field. Your SQL query will look something like:

SELECT * FROM table_ads
INNER JOIN...
Forum: PHP Jul 2nd, 2008
Replies: 5
Solved: too risky!
Views: 495
Posted By darkagn
www.php.net is probably a good place to start. This site has some really good documentation and sample code. Of course, if you get stuck there is also DaniWeb :)
Forum: PHP May 26th, 2008
Replies: 7
Views: 1,451
Posted By darkagn
Your problem is in the first if-statement:

if ($_FILES["userfile"]["size"] = 0)


You are using an assignment here rather than the comparator == as I think you mean. In PHP though, your...
Showing results 1 to 9 of 9

 


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

©2003 - 2009 DaniWeb® LLC