Page 1 of 1

[Newbie] Sending a request to the webpage

Posted: Wed Nov 05, 2008 5:12 am
by k0tuk
Hi!

I`m a newbie when it comes up to the PHP, i`ve been writing in it some time ago, but nothing serious.

Well, right now i need to write some code, ( i don`t even know how to properly describe it ) that imitates as if i went to some webpage. It shouldn`t open that webpage in the browser or something, it should send the same information to the webpage as if i have pressed on some link ( For example, http://mybugzilla.com/addnewbug?name=te ... on=testing ). I need it to make an automatic bug addition to bugzilla , i`ve got another part that receives files from users, and now i need to write the part that automatically adds a new bug when the new file is received. I would appriciate if you give me some tips and function examples that i can use.

Re: [Newbie] Sending a request to the webpage

Posted: Thu Nov 06, 2008 2:38 am
by k0tuk
Ok, i found out myself :mrgreen: I just found out all the post parameters i need to create a new bug with one click, and opened the link as file:

Code: Select all

 
 
<?php
 
$resource = fopen(http://adress.com/form.cgi?param=1&param2=test
 
fclose($resource)
 
?>