RussellReal
Members-
Posts
1,773 -
Joined
-
Last visited
Everything posted by RussellReal
-
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'
-
passing php variable to external javascript file
RussellReal replied to Neomech's topic in PHP Coding Help
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 -
curl needs to be enabled in your php.ini
-
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.
-
it is in NO WAY a big project bro..
-
[SOLVED] Can someone help with this please
RussellReal replied to adamjones's topic in PHP Coding Help
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) -
[SOLVED] Can someone help with this please
RussellReal replied to adamjones's topic in PHP Coding Help
if (strpos($username,' ') === false) { } -
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
-
show some code
-
thats about all you really CAN do I think lol
-
RewriteRule ^/([a-z0-9]+)$ profile.php?username=$1
-
[SOLVED] Can removing slashes be stopped??
RussellReal replied to php_beginner_83's topic in PHP Coding Help
$string = addslashes('C:\\xampp\\htdocs\\Website\\images\\'); -
ON is just a clause for the JOIN, WHERE is acceptable in the syntax, and is actually proper.
-
<?php $r = range(0,100000); shuffle($r); $randNumber = array_pop($r); ?>
-
Drop Down Box connected to $_POST, $_GET
RussellReal replied to markvaughn2006's topic in PHP Coding Help
I love you more... -
if you need something unique for your numbers.. generate an md5 hash for each integer
-
Drop Down Box connected to $_POST, $_GET
RussellReal replied to markvaughn2006's topic in PHP Coding Help
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']}'"); -
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
-
<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
-
that SHOULD work.. try quoting the 2 WHERE proposals.requestID = '2'
-
[SOLVED] Help passing myrow data to a php.class
RussellReal replied to RyanSF07's topic in PHP Coding Help
I'm sorry.. do $class = new cktsTime(); -
[SOLVED] Help passing myrow data to a php.class
RussellReal replied to RyanSF07's topic in PHP Coding Help
$class = cktsTime(); $class->timeAgo($myrow['date']); I guess.. if thats how it shoulda been -
header('content-type: text/xml');
-
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
-
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