Jump to content

RussellReal

Members
  • Posts

    1,773
  • Joined

  • Last visited

Everything posted by RussellReal

  1. idk what you mean by does version matter, however, it would probably be the best idea to update to the latest versions of php. but I don't really think it would matter, although, if your php version is lower 4.0 then apparently you'll have problems with curl. go to php.ini and unescape the dll associated with curl ';extension=php_curl.dll' turn it to 'extension=php_curl.dll'
  2. if u can use php in ur javascript files.. than just use sessions and echo the sessions where you want the variables to be placed in your js
  3. open the page with just plain old javascript and html, then use ajax to open the file moving page, then wait for a complete, or some return from the ajax request, then when it does return something or is 'complete' just navigate to another page with javascript.
  4. it is in NO WAY a big project bro..
  5. no.. strpos read the manual.. it returns the offset of a string inside another string, ' ' would be the substr and it will return false if it doesn't exist.. I put === false to see if it is a VALID username (no spaces)
  6. this is an actionscript question. I think there is a very good forum @ actionscript.org or something similar to that, however you would just need to create a video control on the stage, then give it an ID and then use that id to set the url and stuff for the video, but then again my as3 is a bit rusty as I have been out of the web-dev loop for a few months now Glad to help tho
  7. thats about all you really CAN do I think lol
  8. RewriteRule ^/([a-z0-9]+)$ profile.php?username=$1
  9. $string = addslashes('C:\\xampp\\htdocs\\Website\\images\\');
  10. ON is just a clause for the JOIN, WHERE is acceptable in the syntax, and is actually proper.
  11. <?php $r = range(0,100000); shuffle($r); $randNumber = array_pop($r); ?>
  12. if you need something unique for your numbers.. generate an md5 hash for each integer
  13. sure heres a simple example: // connect etc $q = mysql_query("SELECT id, name FROM employees LIMIT 10"); echo "<form><select name='id'>"; while ($r = mysql_fetch_assoc($q)) { echo "<option value='{$r['id']}'>{$r['name']}</option>"; } echo "</select><input type='submit' value='submit' /></form>"; and the php to use the result mysql_query("SELECT * FROM employees WHERE id = '{$_POST['id']}'");
  14. it is not windows or linux's problem, if you seed the random number generator the same number you'll get the same result multiple times or more frequently if that. because NO computer generated number is completely random, and relies on certain factors which change rapidly for example system ticks. miliseconds of script running, miliseconds of server uptime, anything which changes constantly and rapidly is usually what seeds a random number, seeding an incrementing number will not yield too much of a random number array since the seeds are very very close together therefore you'll more than likely run into same numbers output, but then again logically.. random numbers could return all the same number every time.. just pretty rare.. so running into duplicate results isn't that unlikely
  15. <link href="./footlink_style.css" rel="stylesheet" type="text/css" /> this since it looks neater, however, there are certain advantages to having css in the same file, if you link a css file in a deeper directory you might have problems with background images etc, so including the css into the file which is executing will make the paths correct. for example: blah.com/css/whatever.css but the file is blah.com/whatever.php and u include it like this: 'css/whatever.css' and inside the css you have background-image: url('images/lala.gif'); that background will try for css/images/lala.gif instead of images/lala.gif
  16. that SHOULD work.. try quoting the 2 WHERE proposals.requestID = '2'
  17. $class = cktsTime(); $class->timeAgo($myrow['date']); I guess.. if thats how it shoulda been
  18. to layer your images ontop of eachother you'd use imagemerge there is a huge list of php gd functions to browse and choose. Working with php images is not that hard when you get the hang of it but the functions have SO many arguments that I always end up referencing the php.net site quite often for the function's argument list, but if you have rly good memory you shouldn't have a problem
  19. wow, I had it confused, someone told me thats what XSS was so I just called it XSS since then lol, but still, 'firing' all sorts of data is still a really long shot, if a shot at all, but most coders work around it either way, but obviously its a security risk, so, good catch backie
×
×
  • 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.