Posts by Deyci • 133 points
7 posts
-
2
votes2
answers979
viewsQ: Picking text from an input text
I have the following form <form method="POST"> <input id="comentario" type="text" name="comentario" id="comentario"> <input type="submit" name="Comentar" value="Comentar"…
-
3
votes2
answers805
viewsQ: Place directory path in a php variable
I have the following code <?PHP $directory = "placas"; //Get each file and add its details to two arrays $results = array(); $handler = opendir($directory); while ($file = readdir($handler)) { if…
-
1
votes1
answer50
viewsQ: Help with function organization
I’m developing an IP calculator, and now I need to find the first valid IP of the original typed network. I separated my code into functions, which I think instead of helping, it got in the way. My…
-
0
votes1
answer180
viewsQ: UNDEFINED VARIABLE ERROR
I have the following code snippet in a function and I get returned indefinite variable error. Does anyone know how to end this error? I’m initiating her with null, still appears the error. Notice:…
-
0
votes2
answers273
viewsQ: Turn decimal into PHP binary
I’m developing an IP calculator in PHP. The problem is that when a mask is typed in decimal, example "255.255.255.0" the mask in binary is displayed " The problem is that doing so, the eight bits of…
-
1
votes1
answer52
viewsQ: Compare array character
I’m developing an IP calculator in PHP. I have a mask array in binary, with 4 positions and at each position has 8 characters, I want to compare each character of each position to know if the bit is…
-
4
votes2
answers269
viewsQ: Understand error message
I’m not getting this error message. Someone understands and can help me? Exception in thread "main" java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:3210) at…