roby2411 Posted September 15, 2006 Share Posted September 15, 2006 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 Link to comment https://forums.phpfreaks.com/topic/20856-help-me-how-to-send-variable/ Share on other sites More sharing options...
HuggieBear Posted September 15, 2006 Share Posted September 15, 2006 You can just echo it...[b]index.php[/b][code]<?php$msg = "<html><body><center>Hello</center></body></html>";echo $msg;?>[/code]Huggie Link to comment https://forums.phpfreaks.com/topic/20856-help-me-how-to-send-variable/#findComment-92335 Share on other sites More sharing options...
obsidian Posted September 15, 2006 Share Posted September 15, 2006 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 Link to comment https://forums.phpfreaks.com/topic/20856-help-me-how-to-send-variable/#findComment-92357 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.