Jump to content

FIREBALL5

Members
  • Posts

    34
  • Joined

  • Last visited

    Never

Everything posted by FIREBALL5

  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?
  14. PHP scripts have to be run though. It won't execute that code automatically.
  15. Do you want to just put in "<item#>", or do you want to put in a make of phone, like "<phone make id # in database>"?
  16. You know, looking back on this code, I thank you that you didn't delete my entire site. All it would have taken are a few more periods. This code would've deleted my entire file list: <input type='hidden' name='dir' value='../../../'> (I think).
  17. Oh, sorry. Didn't realize that.
  18. Cool story; do your wrists hurt? Again, thanks for the encouragement. Was I the one that bashed somebody? Or, who are you referring to? I wasn't intending to bash anyone...
  19. What am I supposed to say, phpSensei? I'm not doing it for the hosting at this point in time. I'm doing it so that I can learn how to effectively manage a website. And while I'm doing this, you can put your files on my site. Did I not make that clear on one, any one, of my posts? Yeah, I know I contradict myself. You don't need to tell me that. Thanks for the encouragement though. Then again, I have the motivation, but is that enough?
  20. I'm not exactly interested in what you're offering, but it's a better layout than mine. The layout is what you wanted the critique on. The layout is what you got the 5/5 on.
  21. Did you read the above comments? Those banged on me, hard (Some of them more than others). That's why I feel like quitting. I do have faith in myself; if I didn't, I wouldn't even be a programmer; I mean, I could go work at McDonald's. I say that to mean nothing less than to prove my point; I do have faith in myself. 250 mb? Of coarse! I am running a free web hosting company off of a free web hosting company! I don't have the resources, or the servers. But ugh, where might I find some cash in today's economy? (I presume you live in America; no matter where you live, gas prices are probably hitting you hard, too). Buy 2-3 servers.. that do what, exactly? All I need is one server with like, a 1 TB hard drive in it, or 2 500 GB hard drives. Hiring some designers might not be a bad idea, though... then again, where do I find the money? True. True again. Meh, you musta skipped over the above comments. Everybody is saying how terrible it is. Thanks for the encouragement though, but I'm a really stubborn one, (For example, when I mess up on a one thing a tiny bit I beat myself over the head; not literally, though. I hold myself to stricter standards than others might hold themselves). Thanks. Help with what?
  22. I'm under the impression that my site is absolutely terrible when it comes to design and even hosting stuff, such as limited features (no php,email,databases,/uploads/you directories rather than /you/ or even a subdomain). This leads me to wanting to quit trying to make it look professional; just taking my hosting down altogether sounds the most appealing right now. I know I can't compete with the more established companies who have seemingly virtually unlimited resources (capital,diskspace,bandwidth,server security, etc.), and I'm probably not going to be successful at dominating the market anytime soon just giving my services away for free. I'm offering the most of what I can, which, believe it or not, is virtually nothing. If I give each account 10 MB, I can only have 24 accounts (My max disk space limit currently is 250 MB), with the other 10 MB reserved for server use, such as the logos, files, etc. This goes to show that I'm not exactly trying to be cheap. I'm trying my best to manage my resources. I had my own motivation for starting this company, and I couldn't find what I needed anywhere else. I found what I needed in my own abilities to create PHP programs and code in HTML. Although I can code in HTML and PHP, that doesn't mean that I can do graphics or graphical site design very well. You guys have been perfectly honest with me, so I'm going to be perfectly honest with you. I'm mainly doing this to get experience running a website, and learning site design, which I'm obviously struggling in. There is only about one thing that I can offer; a better file control panel. Even though it is extremely simple in layout too (no style sheets, no fancy borders or scroll bars), it is packed with power with how much you can manipulate with it. If you wish to prove me wrong, give me a feature that you would like to see in my upload control panel. Then I'll see what I can do with it. This is the kind of input that is constructive and this is the case where everybody can help each other out rather than tear each other down. I would like to thank everybody for their opinions and comments about me, my website layout and managing, and my actual website itself. I must go through these things if I'm even going to attempt to succeed. Additional Comment (AKA Edit): The following code has been executed: var_dump($feelings);
  23. Thats what I want you to get; Fourth Dimension Hosting. You don't have to do anything, but I'm requesting that people browse my site, and give me feedback regarding the look, layout, etc. If you want to, you can also try to hack my site.
×
×
  • 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.