Jump to content

.Darkman

Members
  • Posts

    98
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

.Darkman's Achievements

Member

Member (2/5)

0

Reputation

  1. Okay... Thank you... But, i created a cookie from http://localhost/dir/index.php And accessed it from http://localhost/index.php and was unable to do it... Why ?
  2. Hello, I've got a question about cookies... Are the cookies accessible only from the site that places it ? For eg, if i use this code on abc.com : setcookie("darkman", "some message", 3600); And, have this on xyz.com : echo $_COOKIE['darkman']; Will it display "some message" on xyz.com ? Thanks,
  3. How is that done ? I put the above code in a separate file... ? Then, whats next ? Thanks
  4. Hello, The counter on the homepage of http://www.deviantart.com/ looks great. The one which reads "XX Deviations". It constantly updates. I suppose, it uses AJAX. Can any help me create one like this ? (i.e) I'd like to fetch the COUNT() of something from the database and display it... Thanks,
  5. Actually, php.net/mail says that it is better to use PEAR package for large volume of mailing. So, is the following code good ? Or, does this also put a lot of stress on the server ? <?php include ('/home/username/php/Mail.php'); $mail = Mail::factory("mail"); $headers = array("From"=>"me@mydomain.com", "Subject"=>"Test Mail"); $body = "This is a test!"; foreach($emails AS $email) { // about 2500 email addresses $mail->send($email, $headers, $body); } ?>
  6. I'll take a look... thx How do i do that ?
  7. Hello, I have a database of over 2000 users. I wish to send newsletters to them via PHP's mail() function. What is the best way to do ? I'm asking this because, i read somewhere that using the mail() for a large number of users can crash the server. So, whats the best way to do it ? I'm on Shared hosting. Thanks, Shrihari.S
  8. Ah ! Yes, that seems more logical. I just need number of view of the banner on that day. Oh ! How do i do that ? I just copy the information to another place ? Or should i move it ? Thanks,
  9. Yes, i'll be having two tables. So, this is the best way. Right ? And, if i have about 5000 pageviews perday, that would mean 5000 new DB entries per day. Wouldn't that harm the database ?
  10. Hello everybody, I'm writing a banner rotation script. I wish to have a simple statistics feature in it. It will not be doing much. It will just count the number of times each banner has been displayed. Also, i'd like to present the data datewise. That is, if i choose, "Today", i'd like to see how many times each of the banners has been shown on that day. If i choose "Last Month", i'd like the corresponding data to be showed. Since, i've not worked with stats, i'd need the advice on someone in how to structure the database. What i planned is : For every time the banner is displayed, a new record would be created in a table along with the timestamp and the banner's ID. Then, i'll use this data to display data the way i wanted. But, is this the best way to do it ? Or, are there better ways ? Please help me Thanks,
  11. I added just the third line and it worked. What are the other two lines for ? I mean, what are these for ? RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
  12. Hello Everybody, I'm using MediaWiki and using .htaccess to make URLs better. Using this code : RewriteRule ^(.+)$ /index.php?title=$1 [L,QSA] This redirects http://mysite.com/Page to http://mysite.com/index.php?title=Page I want to achieve this for subpages also. (i.e) I want to redirect http://mysite.com/Page/Sub to http://mysite.com/index.php?title=Page/Sub How do i do this ? I tried few codes. But, they didn't work. Please help me. Thanks,
  13. Hello everybody, Is there any way by which i can detect the HEX codes for similar colors if i input a color code ? What i mean if if i enter the color code for an Orange, the output should be another shade of Orange. This can be seen in action at http://feeds.feedburner.com/~fc/GotChance?bg=FF9900&fg=000000&anim=0 If you change the "bg" parameter, the background color changes to that color and a similar shade is applied to the smaller background. How do i do something like that ? Also, how to i find HEX codes for complement colors ? Thanks,
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.