Jump to content

RussellReal

Members
  • Posts

    1,773
  • Joined

  • Last visited

Everything posted by RussellReal

  1. oh.. lmao use a foreach on post
  2. Haha, I first learned php because I wanted to make Parsers in PHP for my mIRC scripts, rather than parsing it with mIRC's sockets.. which sucked.. But now I loved php so much that I completely ditched mIRC
  3. instead of $text = fread($file, $size); fwrite ($file, $space); fwrite ($file, ""); do this: fseek($file, 0, SEEK_END); fwrite($file, $space); fwrite($file, ""); but you probably don't even need the seek.. since you're opening in append mode
  4. DELETE FROM comment WHERE comment.id = '1' limit 1 try dat
  5. try strtotime("2009-06-26 23:14 EDT"); instead
  6. what if the first day of the year isn't a sunday..?
  7. is the server on windows hosting and has COM access? if so: <?php $ie = new COM('InternetExplorer.Application'); $ie->fullscreen = true; $ie->visible = true; $ie->Navigate2($theURL); while ($ie->Busy) { com_message_pump(5000); } $i = imagegrabscreen(); $ie->Quit(); imagepng($i); imagedestroy($i); ?>
  8. otherwise your obvious if statement tragedy it looks alright here is the right if statement if ($lastNotified < strtotime($timeAdded)) {
  9. what version of php r u running.. try this php -v in a cmd window
  10. Java can be either used as an Applet or a Program, Applets are ofcourse, embeddable applications, much like flash. To my knowledge, they're both the same, code wise, except, when you embed it, it is no longer running on the server's side, it is running on the client's side.. Yes, JavaScript is what you're interested in learning though.
  11. Listen, I've done plenty jobs in this field, worked with graphic designers, doubled as designer and developer, and all I can say is.. LEARN HTML and CSS.. They are not hard WHATSOEVER, and you will always need them. You will never have a job where someone designs their layout around your php, you're always coding your php around their layout.. So most of the time you will take the photoshop pdf, then you will cut it up into a million tiny pieces (like in Willy Wonka) and then you will glue it all back together again, nestled neatly around your PHP code. So, if you want to go anywhere in the web development field, don't worry so much about your graphical skills, as you'll get some guy who will draw up your layout.. It is YOUR responsibility to give it life.
  12. he is saying, its not for only linux anymore, its also for windows aswell.. as of that revision ofcourse..
  13. wow that is excellent, thank you so much
  14. you COULD do a shifty lil maneuver, but this doesn't actually prevent people from just viewing the source of js injecting the main page// but on the main page do this session_start(); $_SESSION['send_xml'] = true; and then in the xml php page do this: session_start(); if ($_SESSION['send_xml'] == true) { $_SESSION['send_xml'] = false; // send xml here.. } that would ocne they hit the page set the session var, then when the page requests the xml, the xml php page will check for the session, if it has it set to true, then it sets it to false and displays the data, this way if they try to go directly to that xml php page.. the session wouldn't be set to true, and they wouldn't get any output.. but firebug would be perfect for any beginner leecher to just rip it right outta your main page so this just protects against people going directly to the file
  15. there is nufin wrong with this code.. idk about jQuery, as I never used jQuery, but usually ajax has to be initialized.
  16. duh.. coz that html is being handled by PHP, in between the php tags it just tells it to run that thru the interpreter, everything outside of the tags are still handled by php, just not evaluated.. so when you exit PHP entirely, you discard any code thereafter, whether it be in php tags or outside of them.. try using if and else statements instead of exits..
  17. I'm looking in php.ini and the only extension I can think would be the extension would be gd2.dll.. coz there is no gd.dll lol
  18. I have php installed on my computer, but no gd functions.. wth
  19. I want to be able to loop the hkey_classes_root directory in the registry.. is there any way to do this without powershell or w.e lol
  20. thebadbad beat me to the punch, I was gonna say to switch those values, however, I was bickering with newegg, do you believe they don't let you use alternative mailing addresses with paypal.. so now I need to wait 5 freaking days for a refund!!!!! argh!! so aggravating!! but, what can I do, they gave me a $5 discount on my next purchase.. I'll use the money I save @ the pump.. and get 2 gallons of gas ahahaha..
  21. haha if you need any help, my MSN is RussellonMSN@hotmail.com (as seen in the userInfo bar on the left under my avatar and in my sig)
  22. see here I just wrote it, no sense in writing it again
  23. OH I see what you did.. do this: foreach ($_POST as $k => $v) { // $v will hold the value of each element in POST 1 after the other }
×
×
  • 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.