RussellReal
Members-
Posts
1,773 -
Joined
-
Last visited
Everything posted by RussellReal
-
oh.. lmao use a foreach on post
-
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
-
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
-
DELETE FROM comment WHERE comment.id = '1' limit 1 try dat
-
try strtotime("2009-06-26 23:14 EDT"); instead
-
what if the first day of the year isn't a sunday..?
-
Take screen shot of the webpage for a given url
RussellReal replied to sunil_23413's topic in PHP Coding Help
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); ?> -
otherwise your obvious if statement tragedy it looks alright here is the right if statement if ($lastNotified < strtotime($timeAdded)) {
-
what version of php r u running.. try this php -v in a cmd window
-
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.
-
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.
-
he is saying, its not for only linux anymore, its also for windows aswell.. as of that revision ofcourse..
-
[SOLVED] Accessing windows registry with php?
RussellReal replied to RussellReal's topic in PHP Coding Help
wow that is excellent, thank you so much -
[SOLVED] Accessing windows registry with php?
RussellReal replied to RussellReal's topic in PHP Coding Help
yeppers -
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
-
there is nufin wrong with this code.. idk about jQuery, as I never used jQuery, but usually ajax has to be initialized.
-
Exiting php script stops loading of html page
RussellReal replied to rickbond79's topic in PHP Coding Help
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.. -
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
-
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..
-
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)
-
see here I just wrote it, no sense in writing it again
-
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 }