Posts by RpgBoss • 957 points
57 posts
-
2
votes3
answers187
viewsA: Listing links from a page
It is that you yourself are specifying in the code to bring the URL as the link name. To get the URL of the listed item: a[i].href To get the link name: a[i].innerHTML Then following your code will…
javascriptanswered RpgBoss 957 -
1
votes1
answer751
viewsA: Save data from a web form to . txt on the ftp server
If you’re on a form try this: <?php if( $_SERVER['REQUEST_METHOD']=='POST' ) { var_dump( $_FILES );//apenas para debug $servidor = 'host'; $caminho_absoluto = '/httpdocs/uploads/'; //diretorio do…
-
1
votes3
answers2171
viewsA: Update page automatically?
If you cannot avoid the CACHE you can do with PHP (I imagine it is what you use in your hosting) to generate a number that never repeats, I advise using DATE and TIME so that the browser interprets…
-
1
votes1
answer207
viewsA: Store user ip when entering the site
To avoid unnecessary traffic I would do this with Cookies, also why the visitor can change IP if you move from his internet provider: <?php if (!isset($_COOKIE['firsttime'])) {…
-
0
votes5
answers11915
viewsA: Count number of Mysql query records in PHP
Try to use this method $link = mysql_connect("localhost", "mysql_user", "mysql_password"); mysql_select_db("database", $link); $result = mysql_query("SELECT * FROM table1", $link); $num_rows =…
-
0
votes2
answers49
viewsA: Popular array on online server
Look, I do not understand well of Arrays in PHP, but from what I understand by basis the variable $result need not have square brackets before inserting the value, since it will already make it an…
-
2
votes1
answer505
viewsQ: IPV4 only with PHP with ipv4/ipv6 link
I’ve always used $_SERVER['REMOTE_ADDR'] to obtain the IP user/visitor on some systems. But I started using a FIXED IP at work, which is IPV4, but when I will see the record I agreed with IPV6. But…