Posts by Ricardo Jorge Pardal • 374 points
12 posts
-
0
votes2
answers742
viewsA: Deny/hide access to files starting with dot, like . git, . svn, . Ds_store, . yml
This is the solution I have been using otherwise would be directed all files with extension to the right of the . And so all the files started by .giti are directed elsewhere. <Files ~…
-
0
votes2
answers95
viewsQ: How to change filename with variable
This is the file with the variable I want. # pt/lang.php <?PHP $rp_lang = "pt"; ?> This is the file I want to insert but I want the variable to change the ending either to "pt" or "en" or any…
-
2
votes1
answer871
viewsQ: Problem with fopen
This file is performing its function perfectly, but it is returning some errors and I would like to be able to correct them. I need to know if I have to use the fopen and the file_get_contents…
-
1
votes3
answers3063
viewsA: Put site path in a PHP include
If you trust the source the best option is <iframe align=top width='135' height='60' marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no…
-
3
votes1
answer883
viewsQ: How to make a page to know Ipv6?
To know Ipv4 I can use the code on a page: <?php echo $_SERVER["REMOTE_ADDR"]; ?> But I can not find anything similar to do the same with Ipv6, what I get a lot is already sites with…
-
1
votes3
answers9405
viewsA: How to convert a Mysql connection to Mysqli?
Sometimes a gold valley orientation solved a problem in hours I am to solve a few weeks ago, thanks again. Here are the files changed to work with MYSQLI. <?php…
-
11
votes3
answers9405
viewsQ: How to convert a Mysql connection to Mysqli?
I decided to listen to some users to make the conversion but I need your help because I have done a lot of research and nothing works. The first file is: <?php…
-
3
votes3
answers555
viewsA: Problem with accentuation on a website
In order to write depilation and appear as you write with the accent you have to change the encoding to: <meta http-equiv="Content-Type" content="text/html; charset=8859-1" /> Otherwise you’ll…
htmlanswered Ricardo Jorge Pardal 374 -
0
votes4
answers1051
viewsQ: How to do if and Else of between 2 variables with output in a third?
I’m so sorry, but I had to rewrite my entire question because I wasn’t being objective enough to make myself understood, when I omit code as was the previous case is not to hide something is just to…
-
0
votes3
answers181
viewsA: I have sets of variables storing different settings. How to use a specific set depending on the occasion?
The code is not cleaner and beautiful but it solves my problem that when the server itself wants to connect to itself by choosing from 3 possible links with the small variable $dbL In…
phpanswered Ricardo Jorge Pardal 374 -
1
votes3
answers181
viewsQ: I have sets of variables storing different settings. How to use a specific set depending on the occasion?
I have this config file. <?PHP $s_ipserver1 = "10.0.0.101"; $db_porta1 = "3306"; $db_user1 = "user"; $db_password1 = "123456"; $db_name1 = "name"; $s_ipserver2 = "xxx.xxx.xxx.xxx"; $db_porta2 =…
phpasked Ricardo Jorge Pardal 374 -
2
votes2
answers519
viewsQ: How to replace from one server to another?
I have the table below in 2 servers and I need server 1 to send all this information to server 2 ie fields id, username, iddns, dns, ipdnstipo e ipdns as it is. Table CREATE TABLE IF NOT EXISTS…