i wanted to set up both send and receive, this is to communicate with a different server on AWS.
would fsockopen() work the same way as tcp, when communicating with other servers?
Type: Posts; User: ggalan; Keyword(s):
i wanted to set up both send and receive, this is to communicate with a different server on AWS.
would fsockopen() work the same way as tcp, when communicating with other servers?
why dont you try backticks insted of single quotes for username
return mysql_result(mysql_query("SELECT (user_id) FROM users WHERE `username` = '$username'"), 0, 'user_id');
can anyone help me better understand socket connections please
if i have a socket connection like so
$address = gethostbyname('**.***.**.***');
$socket = socket_create(AF_INET, SOCK_STREAM,...
i have this jquery code that alters the input fields value.
i would like to control its 'type' attribute.
this kind of works but it feels off,
is there a better way of handling this task?
...
i am adding to an existing array and it seems to work like this
$arr[] .= 'a';
$arr[] .= 'b';
$arr[] .= 'c';
but if i wanted it written in 1 line like this, what is the correct way?
this...
i need to make a sql query within a query to look for a rows index within a subset
i think pushing items into an array then use 'array_search' should do it
thanks
if i have a query that outputs with order
$query0 = mysql_query("SELECT name FROM mytable ORDER BY numVar");
$result0 = mysql_query($query0);
while ($row0 = mysql_fetch_array($result0)){...
$r array will give it order but
sort($r);
//$one = $r[0];
$two = $r[1];
$three = $r[2];
echo "most frequent value is $k
SECOND $two
third $three";
gives numeric values when echo'd:
i have the following code which gets the MAX value from the array.
whats the best way to find second and third values?
$a = array("red", "green", "blue", "blue", "yellow", "yellow",...
i just tried it and it seems fine. what does nav_jq.html look like? also which browser are you testing on? local or on webserver?
im on firefox
you need to load it with function()
<script type="text/javascript">
$(function() {
$("#navigation").load("nav_jq.html");
});
</script>
i am trying to knock out the last comma from db record but getting errors
pretty straight forward, i thought
$query = "SELECT mycell FROM mytable WHERE id='1'";
$result = mysql_query($query);...
i am trying to get lat, long numbers from images that have geo tags using
exif_read_data();
i found this code and people say that it works well but its producing errors for me
Undefined...
this fixed the single curly quote
$str = preg_replace('/[\x91\x92]/u', """, $str);quotes//when i spell out the quote in special html char, it converts it to a quote
i am trying to replace decorative quotes but i keep getting this http://www.demographx.com/upload/view/Untitled-1.jpg
it doesnt work here
function ListFiles($dir) {
if($dh =...
i am trying to read from a long list of files that are in my directory then process this list. when utf8 characters, the list comes out like this:
l’Été that show up like this ��t�
heres an...
got it to work like this
var btnR = $('#btn2 a');
var recDiv = $('#rec');
var handler = function() {
btnR.unbind('click', handler);
recDiv.animate({left:'+=50'}, 500, function(){...
i have a button which i would like to disable click until a certain action finishes
my code so far doesnt animate
i have tried different configurations but cant seem to get it to work
what am i...
i have left/right buttons, the right button pushes elements into an array.
if the user pushes the left button then pushes the right button, i want to check the right number against the array.
heres...
ive always had issues with arrays. can anyone help out how to push 2 values into an array so that i can echo them later please?
$arr = array();
$query0 = "SELECT navid, type FROM mytable...
take a look at this http://bit.ly/AuZSwb
i suppose you can place your code inside
$(function() {
$('#parent').mouseenter(function() {
//code here
});
$('#parent').mouseleave(function() {
//code here
});
something like this?
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<script src="http://code.jquery.com/jquery.min.js"></script>
<meta charset="UTF-8">
<title></title>
<style type="text/css">
i had to 'SVN checkout' on a folder first
then the commit option came up
is it possible to create a directory called "conf.x" inside httpd
and give conf.x 777
while httpd has 755
and write into conf.x
?
re: it seems to work