Jump to content

Archived

This topic is now archived and is closed to further replies.

roby2411

Help me : How to send variable ??

Recommended Posts

I have a variable like that

$msg = " <html><body><center>Hello</center></body></html> ";

I do need a function that send this variable " $msg " to a URL http://192.168.1.1:5050 without using form or sumbit form i need it automatically

Share this post


Link to post
Share on other sites
You can just echo it...

[b]index.php[/b]
[code]
<?php
$msg = "<html><body><center>Hello</center></body></html>";
echo $msg;
?>
[/code]

Huggie

Share this post


Link to post
Share on other sites
the only way to send a variable apart from a form when you're going across servers like that is to try something like fsockopen(). another option would be to send it via the URL (with a $_GET), but you'd still have to have a link or redirect set up with that variable in the path. also, your receiving script would have to know exactly what variable was being sent.

can you give more detail on the problem? if you can be more specific on what you're after, i'm sure we can help you come up with a better solution

Share this post


Link to post
Share on other sites

×

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.