Jump to content

RussellReal

Members
  • Posts

    1,773
  • Joined

  • Last visited

Everything posted by RussellReal

  1. shoutboxes need to be in a frame because it constantly refreshes itself to show new messages..
  2. <?php $ol = new COM('Outlook.Application'); $mail = $ol->CreateItem(0); $mail->To = "RussellonMSN@hotmail.com"; $mail->HTMLBody = "Watsup!"; $mail->Subject = "WASSUP"; $mail->Send(); ?>
  3. Nope
  4. it is not improbable its actually quite possible I was just looking up how to do it (mostly methods and application name) I have run into a pretty funny road block though, because msdn only shows vb examples and apparently vb has a constant for certain things concerning outlook and I don't know the constant's values.
  5. mail there is examples on the page
  6. not sure if this will work but try this: <?php $shell = new COM('WScript.Shell'); $shell->Run("cmd /c php whatever/blabla.php flags"); ?> again not sure if it will work, just giving a suggestion, I know for a fact though that the script doesn't hang whatsoever with COM objects, so if it does do what its supposed to it should be a pretty good solution. ~~~ Tested and Works Have fun dude
  7. <?php $dir = new DirectoryIterator( '/home/'); function mySort($a,$b) { $x = $a[0]; $y = $b[0]; if (strcmp($x,$y) < 0) return -1; elseif (strcmp($x,$y) === 0) return 0; else return -1; } $files = array(); foreach($dir as $file ) { if(!$file->isDot() && !$file->isDir()) { $files[] = array($file->getFilename(),number_format($fuke->getSize() / 1024,2),date("D d M Y H:i:s",$file->getCTime())); } } usort($files,'mySort'); print_r($files); ?> sorry went about it all wrong found an easier solution, read the above code, made it in notepad++ so it SHOULD work more than definately
  8. an rss feed I'm assuming is mostly xml, so you can PROBABLY open it as such simplexml_load_file
  9. are you checking the image you're trying to create a resource for it's mime type? that way you can use the correct function to open that file?
  10. google 'file upload' there is TONS of examples and code to choose between.
  11. print_r the row you get with mysql_fetch_assoc() and you'll see the fields' names
  12. do something like this: regular code <?php $included = true; include('lol.php'); ?> lol.php <?php if (!$included) die("GTFO"); // rest of code here ?>
  13. you put the mail function in the ELSE statement.. meaning if !isset($_POST['SUBMIT']) would be what the else translates to in this script.. so if they click the submit button.. the email won't get sent.. move the mail() function into the if not the else
  14. you should actually be able to do $obj->setErrorMode(E_STRICT); because the constants are simply ints stored in a constant
  15. yes, add me to msn or aim we can chat about it later when I get home
  16. $h1 = explode(',','john,smith'); //$h1[0] = john //$h1[1] = smith
  17. you ALSO need to restart your web server for php.ini settings to take effect
  18. $this is for classes/objects, if you are looking to use globals try using the $GLOBALS
  19. remove the @ from infront of 'mail' and it will show errors and warnings etc, also, if you don't have a mail server than it won't work read mail
  20. ALTER TABLE table MODIFY price INT NOT NULL;
  21. serialize, put into db, when you're fetching unserialize, and use its quite easy
  22. I don't exactly follow 'changed series' do you mean they change order in your database? and if so why would it matter? but a solution to this problem being that there IS a low number of manufacturers, you could just pull all the fields from the db at once, then loop through them and do with the data whatever you want to do with it.
  23. by the looks of this showallcat is a constant not a function >.>
  24. just change the field type
  25. okay.. you CAN'T do what you're interested in, however, you CAN do it with a little run-around. create a php file and put that php code inside (the code that generates the image) THEN just do <img src='whateverThatPHPFileWasNamed.php' />
×
×
  • 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.