[Newbie] Sending a request to the webpage

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
k0tuk
Forum Newbie
Posts: 2
Joined: Wed Nov 05, 2008 5:03 am

[Newbie] Sending a request to the webpage

Post 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.
k0tuk
Forum Newbie
Posts: 2
Joined: Wed Nov 05, 2008 5:03 am

Re: [Newbie] Sending a request to the webpage

Post 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)
 
?>
 
 
Post Reply