Jump to content

Can php be used for


turkman

Recommended Posts

sure just have to edit your db connection from localhost to the ip you want and insert into the forum table.

 

i.e.

<?php

/**
* Connect to the mysql database.
*/
$conn = mysql_connect("IP_OF_THE_SERVER", "username", "password") or die(mysql_error());
mysql_select_db('database_name', $conn) or die(mysql_error());

?>

Link to comment
https://forums.phpfreaks.com/topic/117701-can-php-be-used-for/#findComment-605396
Share on other sites

Thats really cool and adds a whole extra dimension to php for me. I post on quite a few forums, im gonna try and make a bot for one. Not to spam or anything. Just to try and read from it and reply to a command

 

I used to make yahoo bots to sit in chat rooms and take commands to google things and display the results on the page, it was very hard this seems alot easier.

Link to comment
https://forums.phpfreaks.com/topic/117701-can-php-be-used-for/#findComment-605399
Share on other sites

Yea i just came back on to say that. I got mixed up that cant be right. Initally i was thinking more along the lines of using header(Www.webname.com/viewforum.php)

 

Then somehow reading the content from there or sending $post information with my forum username and password to whatever page recieves the post information.

 

Would something like that work?

Link to comment
https://forums.phpfreaks.com/topic/117701-can-php-be-used-for/#findComment-605403
Share on other sites

Yea i just came back on to say that. I got mixed up that cant be right. Initally i was thinking more along the lines of using header(Www.webname.com/viewforum.php)

 

Then somehow reading the content from there or sending $post information with my forum username and password to whatever page recieves the post information.

 

Would something like that work?

 

Yes. That's exactly how a cURL request works.

Link to comment
https://forums.phpfreaks.com/topic/117701-can-php-be-used-for/#findComment-605405
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.