N-Bomb(Nerd) Posted September 14, 2009 Share Posted September 14, 2009 I've been trying to create a socket now for two days and I still can't figure out why. I've tried everything I could find on the internet, so I decided to call my hosting company and ask if this was even possible considering I have shared hosting. Speaking to a representative on the phone, she stated that this was not possible and that I would need a VPN ( I believe that's what she said ) or a dedicated server to be able to accomplish what I wanted to do. However, I wasn't to happy with that response so I decided to write an email to my hosting company. This is the response I got back from them: Thank you for contacting us. Regarding your concern, it appears that user under a shared hosting must configure php_sockets.dll. You need to create a php.ini to enable this function. Please click on the link below for more information. http://us2.php.net/manual/en/sockets.installation.php Once the php.ini is created with the necessary commands, you may upload it on the folder that requires the php_socket.dll function. If you have any further questions please do not hesitate to contact us. I tried that and was unsuccessful, and I emailed them back and told them that. I told them where my script was located on my account, and even gave them a link to the script. Here's the last response: Thank you for contacting us. We really apologize for the wrong information given to you previously. Please be informed that you can only install or add directives on the php configuration but not library. Regarding your issue on using sockets in one of your php scripts, can you please provide us information how we can reproduce the error here on out end. We need the information so that we can come with an accurate resolution. If you have any further questions please do not hesitate to contact us. What more information should I give them? I'm not quite sure what they're asking for.. plus it takes nearly a day for them to respond too. Perhaps someone knows what's going on here. This is what's happening with me pretty much - Error: Fatal error: Call to undefined function: socket_create() in /socket.php on line 2 Code: <?php if($socket = socket_create(AF_INET, SOCK_STREAM, 0)) { echo "worked"; } else { echo "failed"; } ?> Granted I've tried several different ways of creating a socket, and this just happens to be my last attempt. Everything I threw at it failed.. Link to comment https://forums.phpfreaks.com/topic/174246-sockets-trouble/ Share on other sites More sharing options...
N-Bomb(Nerd) Posted September 15, 2009 Author Share Posted September 15, 2009 Anyone? Link to comment https://forums.phpfreaks.com/topic/174246-sockets-trouble/#findComment-918644 Share on other sites More sharing options...
N-Bomb(Nerd) Posted September 15, 2009 Author Share Posted September 15, 2009 No? Link to comment https://forums.phpfreaks.com/topic/174246-sockets-trouble/#findComment-918737 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.