Posts by kabstergo • 1,000 points
18 posts
-
6
votes1
answer323
viewsA: Webservice SOAP uses XML only?
Some questions: Using SOAP means I have to use XML only? Yes, SOAP by definition uses XML as communication format, there is no way to change this. So there is no way to use JSON with SOAP? Yes in…
-
8
votes2
answers4023
viewsA: Can it be considered a bad modeling practice to store all people (customers, employees, suppliers) in the same table?
When it comes to the issue of good practice you are on the right track, the key point of the question is: Is this kind of normalization a bad practice? Could you bring me problems further down that…
-
2
votes2
answers1765
viewsA: Sort by value in Datatables
Correct will not work the code precisely due to formatting the number, for you to correctly sort the format of the number must be in 0.00. What I would suggest to you would be the following, insert…
-
1
votes2
answers1050
viewsA: What better and safer way to program PDO?
What you should immediately start being worried about and if possible change in your projects are two things: 1) do not use mysql_*, as they have been discontinued; 2) NEVER use string…
-
1
votes1
answer436
viewsA: Can’t connect to Mysql server on 'IP (4)
Well the specified problem is too wide, it can be a poorly performed configuration on the server until network instability problems. I will give an example present in our daily, in local test…
-
29
votes2
answers40655
viewsA: Difference between datetime x timestamp?
The biggest difference between datetime and timestamp is the following: datetime: represents a date as in the calendar and the time as found in the clock. timestamp: represents a specific point in…
-
3
votes1
answer372
viewsA: How does Xcache really work?
Well, I believe you already know the purpose of XCache so I’m not going to talk about the conceptual issue here. Some facts about this: I used the XCache Long ago from that time until now it has…
-
3
votes2
answers1198
viewsA: DOMPDF: Frame not found in cellmap. What causes this error?
I’ve faced this problem, I haven’t used the DOMPDF but in my case the problem was an incompatibility with the border-collapse table. It seems in this ticket that the problem still persists…
-
2
votes1
answer218
viewsA: How to use Onupdate=Cascade in Doctrine 2
unfortunately there is no support for OnUpdate, another thing worth noting is that the OnDelete only works on InnoDB if using MyISAM will not work when it comes to Mysql. What you can do is use…
doctrine-2answered kabstergo 1,000 -
2
votes1
answer349
viewsA: Generate a Download Page
Ok, after uploading then you redirect to another address and pass by parameter the generated name for the file and in this script you do as follows: <?php $file = "files/" . $_GET["arquivo"]; if…
-
2
votes2
answers452
viewsA: help with form calculation
You can summarize quite a lot of your code making it more generic, this way: <td class="row3"> <input name="t1" type="text" disabled="disabled" id="t1" value="0.10" size="5"> </td>…
-
1
votes1
answer334
viewsA: Process multiple orders simultaneously and store in BD
What you said doesn’t make much sense, the server, depending on your setup, can "serve" hundreds/thousands of simultaneous requests. If you are using apache for example, the Directive MaxClients…
-
1
votes1
answer117
viewsA: Automating Inner Join using Lookupcombobox component
What you can do is the following, following your example, bring in consultation all customers and all stores, each of them in your dataset. Configure both lookup’s accordingly, now to do the effect…
-
5
votes1
answer6771
viewsA: Structuring the PHP Router class with MVC
Well initially I would change your class Request because just as it’s programmed, it makes the route identification mechanism very static for just that situation. Note how the simple class below…
-
2
votes1
answer334
viewsA: How to transition text (in array) within an HTML element with fade and delay?
Follow the solution each element with its respective transition time: $(document).ready(function() { var items = [["Two",2000], ["Three",3000], ["Four",4000], ["Five",5000], ["Six",6000],…
-
3
votes2
answers424
viewsA: Is it possible to perform colspan on Datatables?
unfortunately it is currently not possible to perform colspan in table rows by datatables, below follows an explanation given by a member of the development team: I’m Sorry to Say that Datatables…
-
2
votes1
answer517
viewsA: Insert "Watermark" on video at time of upload
Check out this tool: https://www.ffmpeg.org/ and to run in php would look something like this: exec('ffmpeg -i meuvideo.mp4 -i marcadagua.png -filter_complex overlay saida.mp4');…
-
1
votes2
answers1763
viewsA: Real time ajax request
The ideal would be to create another ajax service that notifies if there is a change or not, if the change is detected only then make the request to update the new content. an example would be: var…