Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. Depends on the scale of the project. ID's are much easier to implement and maintain, but WHERE `id`= 3 or WHERE `id` = 'Kentucky' is the same in the end. As for speed, it is negligable.
  2. $mysqlresult = '1,7,9,10,15'; $array = explode(',', $mysqlresult); print $array[2]; //9 print '<br/>' . print_r($array);
  3. PHP is a serverside language and cannot directly interact with the client. Thankfully AJAX and JS's onChanged() function will be in your interest and can get the job done.
  4. Also I am trying to figure out the echo code that will allow me to echo the value in that div class on that page. I am sorry to be a pain and I know I am probably over my head with this. Why are you not using file_get_html()? Load_file doesn't create an object. I believe: $ret = $html->find('div[class=hpNCHeader]')->innerhtml; Should work, but it shows that in the manual.
  5. Make caching private for Internet Explorer, and disable it for all other browsers via header
  6. Why aren't you doing anything with the array? $arr = $_GET['select2']; $contacts = implode(', ', $arr); //e-mail1, e-mail2 in php's mail() acceptable format mail
  7. No problem. There are many other methods, but that is the most simple and efficient.
  8. $orig = "Music Video"; $str = str_replace(" ", "", $orig); echo $str;
  9. I believe it is simple as this: $html = file_get_html('http://www.whateversite.com/'); $ret = $html->find('div[.foo]'); Of course '.foo' would be replaced with the class of the div you wish to pull, There are more examples in this manual: http://simplehtmldom.sourceforge.net/manual.htm
  10. Content is public. There's nothing in the terms of service that involve scraping.
  11. If you're not in to regex (As I assume you're not wanting to do it) you can retrieve the div easily with the HTML DOM class. EDIT: I'd recommend against CURL unless you need to send headers, such as POST data. file_get_contents should suffice
  12. isset and I'd recommend against using shorttags, as they may not parse as PHP code in some cases (such if a simple server configuration was done, upgrade, etc, they would not work). Use <?php and ?> respectively.
  13. There's simply enough filesize on uploaded files. There's a nice article on image resizing here: http://articles.sitepoint.com/article/image-resizing-php It'd make sense to keep all custom images such as http://www.dyno-charts.com/upload/Mustang.jpg Becoming http://www.dyno-charts.com/chart.php?whichchart=Mustang.jpg (It's a jpeg, so it'd lose its quality naturally on that type of expansion.) I guess it's just personal preference, but it's nice to keep it a fair size, because a lot of pictures uploaded may/should be a suitable size for displaying rather than taking up space.
  14. $i+=1 would have (double assigning), but $i++ is simply an iteration pointer (Post-increment as in other languages) such as ++$i for pre-incrementing. It's a faster pointer.
  15. function authSendEmail($from, $namefrom, $to, $nameto, $subject, $message) { //SMTP + SERVER DETAILS /* * * * CONFIGURATION START * * * */ $smtpServer = $smtpserver; $port = $smtpport; Where is $smtpserver and $smtpport defined? They aren't, therefor fopen (fputs) has nothing to connect to.
  16. Actionscript is ECMA (like JS), var++ is Java/C.
  17. I could write a clone function in 6-10 lines with md5, It's not large. And by version, it came out 5.0.0, Fairly old release.
  18. $i += 1 if ($i == 3){ echo '</tr><tr>' $i = 0 --> $i++; if ($i == 3){ echo '</tr><tr>'; $i = 0;
  19. "mysql_num_rows" is the number of rows to feed into the table, to make it variable length. It doesn't list the column names.
  20. It's got an original 'old'/clean style to it. Only thing I can see negligable is the quality of some of the pictures posted, they're a bit too expanded.
  21. Your header is glued to the top of the page, (IE/FF/Chrome) which is quite contradictory to aesthetics, and the "Custom google search" seems to be put in there out of the blue, You should add matching patterns to the background to allow it to be implemented properly, else it's more an eyesore than a useful task (if you are even using it for search and not ads..)
  22. I have another domain on the same network purely for that use, It runs intranet to transfer nightly backups to the 'database archive' I created, since it's internal bandwidth it's fairly fast.
  23. http://thedesignspace.net/MT2archives/000472.html Should bring some answers to light.
  24. The bloody source is 100mbs+, I don't get that.
×
×
  • 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.