Jump to content

FIREBALL5

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Contact Methods

  • MSN
    john.nahlen@gmail.com
  • ICQ
    399169698

Profile Information

  • Gender
    Male
  • Location
    Idaho

FIREBALL5's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I did try port 5000. ALERT: Apparently the host didn't allow socket connections, so this was why the permission was denied. As for my syntax, I'm not sure, but it was my host that was disallowing the sockets, not the code. I am going to mark this case as solved.
  2. well, would it work with port 5000, the other port available for this website?
  3. Actually, that one doesn't give me the error, it's socket_bind. $bind = socket_bind($mysocket,$addr,$port); if ($bind === false) exit(socket_strerror(socket_last_error($mysocket)));
  4. Hi, I am trying to create sockets, and I am getting "Permission denied". I know I have the right address and port no., but it's not even willing to bind the sockets. $addr = "69.36.243.188"; //$addr = "www.freechess.org"; $port = 23; $mysocket = socket_create(AF_INET,SOCK_STREAM,SOL_TCP); if ($mysocket === false) exit(socket_strerror(socket_last_error($mysocket))); // Gives me: Permission denied
  5. Wow, I didn't know about that. Thank you so much! Btw, I don't know how to add "[solved]" to my topic, but it's solved now, my thanks to sasa. I hope others will benefit from this topic, and his genius.
  6. It seems that you have several problems. I think this is the corrected version: $checkpemaile = mysql_query("SELECT * FROM users WHERE referer=\"\" AND visits>=" . 3*DateDiff ("d", NOW(), $JoinDate)); If DateDiff() is a MYSQL function, then I'm probably wrong. If it's a PHP function, then I might be right, except I don't know what parameters it requires.
  7. Guys, he said he wants a javascript script, not a php script. But if you want a javascript, I don't think that is going to happen. I hear AJAX is good for that kind of stuff, but I don't know it personally.
  8. If you are using a free webhosting, most of them restrict the socket functions, such as fscokopen() and stuff like that. If that isn't the problem, you may want to double check your code, or see if those places that you go to in order to check the domain availability accept socket connections. There's probably a lot of reasons that it might not be working.
  9. Is there any way to shuffle two arrays by the same pattern? Example: $a = array('a','b','c','d'); $b = array('a','b','c','d'); shuffle both by same pattern, and: $a = array('b','d','a','c'); $b = array('b','d','a','c');
  10. Alright. New example, new explanation. Script 1: Hi, need some information from you regarding _. Here is the data that will need to fetch me the data: _ Script 2: Thank you for the data. Here is your information: _ Script 1: Thank you for the information. (Now is when I want to embed the information that Script 2 gave Script 1) <Script 1 uses and displays the information. The End.> Lol, does that help?
  11. Is there any way that I can do it with just PHP?
  12. Is it possible to get information from other scripts without using require() or include()? For example, I have a script called test1.php. It has a parameter "i=1" (test1.php?i=1). This script returns a value specific to this particular parameter. Now, in another script called test2.php, can I somehow get the value that test1.php?i=1 returns in the test2.php script? If my example needs to be clarified any, let me know. Thanks guys!
  13. So I'm guessing that your code there only copies the XML file?
×
×
  • 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.