Port 7766 does not work for me either.... I just tried it.
Results 11 to 20 of 26
Thread: PHP sockets aren't working
-
05-13-2007, 09:23 AM #11
Shawn
Please remember your charity of choice: http://www.redcross.org
Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson
-
05-13-2007, 09:28 AM #12
Port 22 (SSH) works but it is a mismatch on protocol in this instance.
Shawn
Please remember your charity of choice: http://www.redcross.org
Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson
-
05-13-2007, 09:30 AM #13Junior Member
- Join Date
- May 2007
- Location
- Germany
- Posts
- 23
TCP/IP Connection
OK. Attempting to connect to '208.131.138.37' on port '80'...OK. Sending HTTP HEAD request...OK. Reading response: Closing socket...OK.
Yes, now it works. But somehow what I did in connecting to port 7766 on my real site worked on my localhost, but not in the live environment anymore. I'm not sure how I can port the positive result we just got over to my site...
-
05-13-2007, 09:33 AM #14Junior Member
- Join Date
- May 2007
- Location
- Germany
- Posts
- 23
Hm, interesting the port should be a problem! I would have never thought to test that. We are somewhat limited in our choices though: (Copied and pasted from a PHP sockets with Flash tutorial):
Anytime you need to have Flash connect to any port, you must have the port equal to or higher than 1024. This is a default precaution Flash takes to ensure connections are not crossing with other ports such as 21, 24, or 80.
-
05-13-2007, 09:41 AM #15
The thing is (I think) is that in this case if you are useing php to connect then you are stepping outside of Flash. I could be wrong about that. I am really skecthing on my knowledge in this area.
Shawn
Please remember your charity of choice: http://www.redcross.org
Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson
-
05-13-2007, 09:44 AM #16Junior Member
- Join Date
- May 2007
- Location
- Germany
- Posts
- 23
That's fine... I have Flash at the client side talk to PHP on the server side. Both sides need to be told what port they want to communicate on, and then things can go from there. BTW, I just uploaded it with port 1024 instead of 7766 used. Still the same result (none).
-
05-13-2007, 10:03 AM #17
Matthias,
I just not sure what the answer is here. You said that it worked on your local machine. Does that mean that the php file was on your server but the flash file was not uploaded to your server and you where running it from your local machine?Shawn
Please remember your charity of choice: http://www.redcross.org
Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson
-
05-13-2007, 10:13 AM #18Junior Member
- Join Date
- May 2007
- Location
- Germany
- Posts
- 23
Well, you just can't develop a web application on a web server alone. You could, but you'd have to upload both the Flash client and the PHP host every time something changed in order to test the system. Quite cumbersome. So, I have installed an Apache Web server on my laptop. I access my Apache shell and start the PHP script, and load the Flash page into my Web browser. It's like surfing on the internet, except you're surfing on your own computer. It works there.
Then I ported my site to WestHost- Meaning I installed the database needed, granted user permissions for it, changed the addresses from "localhost" to my new site in the code in both Flash and PHP and what do you know, it's not working anymore.
-
05-13-2007, 10:44 AM #19
Ok I understand.
Sorry it took some time for me to reply. I was trying to create a test Flash from a tutorial that connects to sockets to give things a try. So far I am getting the same results as you are.
I have to get going to work here pretty soon so don't know how long I can stick around and play with this but it is something I am interested in so I am sure I well come back to it and see if I can get it to work. It may be that someone else well come along and be able to come up with some helpfull stuff before I do. Hope you well let me know if you get it working before I can get back to it.
BTW I am useing this tutorial for the Flash test I am setting up in case anyone else wants to give it a whirl. http://www.kirupa.com/developer/flas...ets_flash8.htmShawn
Please remember your charity of choice: http://www.redcross.org
Handy Links: wildjokerdesign.net | Plain Text Editors: EditPlus | Crimson
-
05-13-2007, 10:49 AM #20Junior Member
- Join Date
- May 2007
- Location
- Germany
- Posts
- 23
That is a good tutorial. I started with that as well :-) Getting a chat going teaches you 90% of what you need to know about PHP sockets.
Shawn, thanks for your help so far- we may not have solved anything yet, but I appreciate the time you've put in. If you're looking deeper into FLash/PHP/Sockets, don't hesitate to drop me a note, maybe I can be of some help for you as well.
Anybody else- this one is still up to be solved :-) Got ideas?
Similar Threads
-
PHP session variables not working.
By Tlanuwa in forum PHP / MySQLReplies: 3Last Post: 03-05-2008, 11:34 PM -
PHP file rename on upload not working
By Toto in forum PHP / MySQLReplies: 8Last Post: 11-09-2007, 03:11 PM -
PHP PEAR *** UPDATE *** Now Working - See Post
By stonix in forum Comments / SuggestionsReplies: 20Last Post: 04-11-2005, 10:41 AM -
Passwords not working after PHP upgrade
By Turtlewebs in forum PHP / MySQLReplies: 2Last Post: 02-07-2005, 09:19 AM -
Mysql 4.0.20 + php 5.0.2 installed on a VPS and working
By ssever in forum PHP / MySQLReplies: 0Last Post: 12-18-2004, 09:34 AM
Reply With Quote