TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-12-2008, 12:56 PM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default Unable to find the socket transport "UDP" - did you forget to enable it when you con

Or HTTP, and a bunch of different stream transports. Look, I need to grab some information, I know cUrl is an alternative, but I jsut want to do this.

PHP Code:
Unable to find the socket transport "HTTP" did you forget to enable it when you configured PHP?) 
My error,
My code:
PHP Code:
$ip "UDP://127.0.0.1"// I know this is my local ip, but I dont want you to know what it is!
$port "80"// I changed this aswell
$fp fsockopen($ip,$port);
$read stream_get_meta_data($f); // tried socket_get_status //aswell
if ($read['unread_bytes']!=0)
{
    while(!
feof($fp))
    {
    
print_r($read);
    }

By the way, I already know sometimes you need openSSL, I already have that checked in my wamp config.

I just tried ssl, but now it just gives me that
PHP Code:
Maximum execution time of 30 seconds exceeded 
Update: I tried it without a protocol, now its just blank
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 03-12-2008, 01:18 PM   #2 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

Your error message is talking about HTTP but your code is using UDP so I'm going to assume you are using UDP

To fix that error, just use lowercase udp:// -

PHP Code:
$ip "udp://127.0.0.1"
Alan
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
Old 03-12-2008, 01:21 PM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Alan @ CIT View Post
Your error message is talking about HTTP but your code is using UDP so I'm going to assume you are using UDP

To fix that error, just use lowercase udp:// -

PHP Code:
$ip "udp://127.0.0.1"
Alan
When I do that it gives me
PHP Code:
Array ( [stream_type] => udp_socket [mode] => r+ [unread_bytes] => [seekable] => [timed_out] => [blocked] => [eof] => ) 
I mean the ip and port is valid, what am I doing wrong?
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Old 03-12-2008, 01:26 PM   #4 (permalink)
Alan @ CIT
Member of the Month
The Frequenter
Member of the Month Top Contributor 
 
Alan @ CIT's Avatar
 
Join Date: Apr 2005
Location: South UK
Posts: 483
Thanks: 51
Alan @ CIT is on a distinguished road
Default

In your original code you have:

PHP Code:
$read stream_get_meta_data($f); 
Should this be $fp instead of $f or is $f defined elsewhere?

Alan
Send a message via MSN to Alan @ CIT
Alan @ CIT is offline  
Reply With Quote
Old 03-12-2008, 01:27 PM   #5 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
Orc is on a distinguished road
Default

Quote:
Originally Posted by Alan @ CIT View Post
In your original code you have:

PHP Code:
$read stream_get_meta_data($f); 
Should this be $fp instead of $f or is $f defined elsewhere?

Alan
Already fixed that. Still does it.
__________________
VillageIdiot can have my babbies ;d
Orc is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 10:12 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design