Jump to content

oni-kun

Members
  • Posts

    1,984
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by oni-kun

  1. It is recommended to place IF statements within blocks to be more portable and syntactically correct. And as mentioned, you are using the assignment operator "=" instead of the comparrison operator "==" <?php session_start(); //Required if not already in your code. if ($_SESSION['authenticatedUser'] == 'admin') { echo "Admin Panel"; } ?>
  2. Oh yes, I believe you can just do this: fputs($stdlog, "Name has been set to=". mysql_fetch_row($resultid) . "\n" );
  3. And what exactly was that comment for? He feared your coloured name and edited his post? Personally that made me laugh.
  4. while ($row = mysql_fetch_assoc($resultid)) { echo $row['name']; }
  5. If you were intelligent enough to base ideas off the advice given, and press a link that I provided (assuming you are), than you would have found your answer. If you have problematic code, show us, and ask for a solution, that is all you'll get, not the magic answer you expected. If you would have actually asked that, you would have gotten a better idea of what to do, funny how it works eh?
  6. I use something very custom on my (once working) main *nix server, I use IPCop and a custom webadministration tool that is based off what is provided on it, although SSH is a fun thing. +1 for that app, I'll install it next time I bother to get another running.
  7. Echo $sql? Or you can write them to disk even (appending to a log) $sql = "SELECT * WHERE TABLE = .."; mysql_query($sql); $fp = fopen("sql_log.html", "a"); fputs($fp, "<b>Time:</b> " . date("F jS Y, h:iA") . "<br/>\n"); fputs($fp, "$sql <br/>\n"); fclose($fp); Or use a query to get mysql_affected_rows What on earth do you mean? You won't get help like this. Debugging is impossible unless you use exec such as running the linux command --slow_query_log_file=file_name[...], makes no sense unless you give us an example of what you want to do.
  8. No problem. just nothing else to do at midnight.
  9. You open an ELSE tag to display the html, but never end it. Just place what Buddski provided at the end of your script, The semicolon should go after the php code I quoted, before the ending tag. As well, session_start() is placed incorrectly, you should keep it at top BEFORE you output any html.
  10. How would i found out theres new post sin the first place lol if thread_postcount > viewed_postcount count, display 'new post'. It's not hard in logic.
  11. From what I can see, You're missing a semi-colon, as it parses all in one 'precedure' it is required, try to add it and see if it works.. EDIT: else { //If authenticated then display page conetents You're never ending your else tag!
  12. Interesting, It's sometimes hard to get the tempo right on longer stop-motion animations, I made something lame as well a Rofl.
  13. Although you are stating something obvious, Adobe does provide the fully functioning installer in trial form,with the ability to place your previously bought key: http://www.adobe.com/downloads/ https://www.adobe.com/cfusion/tdrc/index.cfm?promoid=EBYEU&product=photoshop&loc=en https://www.adobe.com/cfusion/tdrc/index.cfm?promoid=EBYEX&loc=en&product=flash
  14. The express version is what ideally the programmer would want, A fully function IDE with debugging and exportation/code symbol authority/manifest ability, Visual studio has a rich set of features for team working , enterprise management and mainly the things a normal programmer (IE a student) would need to use, unless they wanted to, obviously pay for something expensive. I prefer the express due to it being a hundred times less inflated (with features that are often not used), and it is, well, stripped down for one specific language.
  15. From what I can see it is a very good system, It's clean and quite compact for it having the ability to verify by e-mail etc.
  16. I got my software through journey ed, I am not sure that I will be able to get it back. (they had a free deal going on at the time I got it.) I quite enjoyed VS 2005 until I discovered there were (free) fully working 'Express' versions for each language.
  17. You find more personally placed content. I have to admit it's not hard to find PHP freaks, I mean I just for example googled 'Strpos not working' and got it on the 7th result: Example It seems to come up when searching google for some relevant questions that you would ask on here, so it's not quite off-line in terms of search results.
  18. If I recall I tried CS2 on W7 RC1 and it worked fine, I'm sure there will be compatibility patches available for download in case it does not work. Just remember, W7 will have problems running anything written in .Net 1.1/2.0, and many other older era softwares that rely on such things, as it is 8 years newer.
  19. $newurl = substr($baseurl, 4, strlen($baseurl)); echo $newurl; // Example result: site.com/test.html That should extract anything after the www. Note it must contain " www. " or it will overwrite the url. You can check for the www using strpos if required.
  20. IF: a) Your site is registered, it will come onto a newly registered domain list (usually the case) b) Your site is linked to, by any known site, the spider will crawl and discover it. c) Your site is on a shared host (more often the case), and Google will crawl the IP and find your site.
  21. Generally a bump would be for further information, not an argument over 'who's software is better'.
  22. No it doesn't work.any other idea? By the way,is it possible to set it to utf-8 when making a file? thanks You're not making any sense. What are you attempting to do? Are you wanting to convert a string and place it in a UTF-8 document? Are you wanting to put Unicode formatted characters into the file in the first place? The BOM (Byte Order Mark) is all Windows notepad will spew out, If it is written in UTF-8 it will stay UTF-8 unless you do not use utf8_encode on the string and write it to the file as so.
  23. Where is the md5() function called? Post the relevant code.
  24. set_time_limit(0); But you mean far too long, what is your uploading code? Are you using a shared host?
×
×
  • 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.