vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   Hidden submital to mutliple scripts? (https://vborg.vbsupport.ru/showthread.php?t=7233)

01-28-2001 03:45 PM

Maybe these threads will help?
http://www.phpbuilder.com/mail/php3-...99806/0902.php

01-28-2001 03:49 PM

<a href="http://marc.theaimsgroup.com/?l=php-general&m=90222503032679&w=2" target="_blank">http://marc.theaimsgroup.com/?l=php-...2503032679&w=2</a>

01-28-2001 04:07 PM

<a href="http://marc.theaimsgroup.com/?l=php-general&m=90222503032679&w=2" target="_blank">http://marc.theaimsgroup.com/?l=php-...2503032679&w=2</a>

is very useful, thanks. Will try that out very soon.

01-28-2001 04:12 PM

Here is the original, with other items about it

http://www.phpbuilder.com/mail/php3-...99806/0856.php

01-28-2001 04:35 PM

Quote:

Originally posted by Eugenie2000
$fp = fsockopen ("www.php.net", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}


is that what I use? Where do I insert
fopen("http://some.site.com/html/page.html","r")
?




have you got it working now? i have with the links you gave me, if you need help i can but i imagine you have it working now??

01-28-2001 05:12 PM

Nope, I'm not sure which script to use to accomplish what I need.

function PostToHost($host, $path, $data_to_send) {
$fp = fsockopen($host,80);
fputs($fp, "POST $path HTTP/1.1\n");
fputs($fp, "Host: $host\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\n");
fputs($fp, "Content-length: ".strlen($data_to_send)."\n");
fputs($fp, "Connection: close\n\n");
fputs($fp, $data_to_send);
while(!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}

You would call this function with something like:

PostToHost("www.whatever.com","/cgi-bin/whatever.cgi","abc=123&def=456");


or


$fp = fsockopen ("www.php.net", 80, $errno, $errstr, 30);
if (!$fp) {
echo "$errstr ($errno)<br>\n";
} else {
fputs ($fp, "GET / HTTP/1.0\r\n\r\n");
while (!feof($fp)) {
echo fgets ($fp,128);
}
fclose ($fp);
}


Perhaps you can email me what you did if you don't want to display it.

01-28-2001 08:49 PM

ok.

i have two scripts.

one is called signup.php and the other is called signup2.php

the idea is that signup.php is like the register script for vbulletin. It does whatever it does and then you add in a bit more to make it send the data to your other script.

The other script is signup2.php - this would perhaps be your everyone.net script etc (it is the one that you do NOT need to edit).

Anyway, this is what i added to signup.php

Quote:

PostToHost("www.ascifi.net","/post/signup2.php","name=".urlencode($name)."&email=".ur lencode($email)."&description=".urlencode($descrip tion)."");





function PostToHost($host, $path, $data_to_send) {
$fp = fsockopen($host,80);
fputs($fp, "POST $path HTTP/1.1\n");
fputs($fp, "Host: $host\n");
fputs($fp, "Content-type: application/x-www-form-urlencoded\n");
fputs($fp, "Content-length: ".strlen($data_to_send)."\n");
fputs($fp, "Connection: close\n\n");
fputs($fp, $data_to_send);
while(!feof($fp)) {
echo fgets($fp, 128);
}
fclose($fp);
}
what this does is:

1) connects to the domain name http://www.ascifi.net
2) and finds the script url at /post/signup2.php
3) it then sends the data
name=$name
url=$url
description=$description
4) prints if it works or not.

So basically, signup.php is sending a form containing a name, email and a description field to your external script as if a webuser was doing it.

This should work for everyone.net i would think.

01-28-2001 09:47 PM

So basically I would substitute in the address of the everyone.net sign up page instead of index2.php?

Does it matter that everyone.net might use something other than php?

01-28-2001 09:59 PM

Your a scifier? Cool.

Im a trekkie, although I like andromeda more nowadays. Beltran (Q) was on andromeda, and is going to be in the next episode on monday nite. I missed the first version on Saturday. How old are you?

Anyway, this will open a socket to the site, and they will be unable to avoid this emulation, no?

Your version will send whatever $email is equal to,

put it in the form field named "email",

send whatever $username is equal to,

and put it in the form field named "username";
since "email"=$email, and "username"=$username

It will submit it to whatever script is running (whether it be Perl/CGI, PHP, ASP, etc... since the script will get the HTML end result of the PHP, Perl, or ASP script)?

chrispadfield2 01-28-2001 10:55 PM

yeah that is all correct, it will not matter if asp etc.

couple of things:

1) check out the everyone.net signup page, they may have hidden variables and stuff like that you need to incclude
2) it is NOT guaranteed to work by any stretch of the imagination. Everyone.net can prevent signups coming from outisde their domain, so that it would have to be from their page, if they did this at a server level you might not get round it, i recon you probably could though as communityarchitect.com went to quite strong measures to stop this sort of thing, see www.signup.ascifi.net to see (at the bottom you have to type in the numbers and graphics they have).

I am 19.

Sci-Fi

yeah, love it. stargate/farscape are my favourite. ST i like in moderation, andromeda.. um.. ok but Kevin Sorbo is just, i am afraid to say, corny. Suffice to say my opinions arn't hugely popular on my www.talkandromeda.com board but lots there like it. Do come and join in :)


All times are GMT. The time now is 08:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01073 seconds
  • Memory Usage 1,743KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete