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.
[Newbie] Sending a request to the webpage
Moderator: General Moderators
Re: [Newbie] Sending a request to the webpage
Ok, i found out myself
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¶m2=test
fclose($resource)
?>