RussellReal
Members-
Posts
1,773 -
Joined
-
Last visited
Everything posted by RussellReal
-
shoutboxes need to be in a frame because it constantly refreshes itself to show new messages..
-
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.
-
mail there is examples on the page
-
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
-
<?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
-
an rss feed I'm assuming is mostly xml, so you can PROBABLY open it as such simplexml_load_file
-
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?
-
google 'file upload' there is TONS of examples and code to choose between.
-
print_r the row you get with mysql_fetch_assoc() and you'll see the fields' names
-
do something like this: regular code <?php $included = true; include('lol.php'); ?> lol.php <?php if (!$included) die("GTFO"); // rest of code here ?>
-
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
-
passing arguments to error_reporting via an intermediate method
RussellReal replied to sunwukung's topic in PHP Coding Help
you should actually be able to do $obj->setErrorMode(E_STRICT); because the constants are simply ints stored in a constant -
yes, add me to msn or aim we can chat about it later when I get home
-
$h1 = explode(',','john,smith'); //$h1[0] = john //$h1[1] = smith
-
you ALSO need to restart your web server for php.ini settings to take effect
-
$this is for classes/objects, if you are looking to use globals try using the $GLOBALS
-
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
-
ALTER TABLE table MODIFY price INT NOT NULL;
-
serialize, put into db, when you're fetching unserialize, and use its quite easy
-
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.
-
just change the field type
-
inserting html code in to php codings
RussellReal replied to karthikanov24's topic in PHP Coding Help
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' />