651 Posted Topics
Re: How did you determined that it is SEO friendly ? e.g. Have you submited sitemap in Google webmasters tools and everything is ok (no notifications at all)? Have you 100% score of Google pageSpeed ? Do you use properly microdata? Do you use properly breadcrumbs? Is your site html5 compatible … | |
Re: One option is what cereal suggested that it may also be the most popular in PHP world. If you separate your source code from your public files and you have your src folder not in public_html (www) another option is to use a JSON format file for configurations. | |
Re: Wrapping functional (or procedural) code in a class , isn't OOP. Let's talk a bit about separation of concerns. Logical you would have an object that handles the db operation in the lowest level (connect with the db / execute + prepare statements and all those things). Then you would … | |
Re: This is a very theoretical question , PHP 7 is promising big surprises in later sub version , so lets see those first. PHP 7 isn't as powerful as it was advertised , in many ways things went the wrong way in my opinion (e.g. threads) in other aspects it … | |
Re: You can't upload any file in the file system from the PC of the user without letting her / him choose what to upload. There are many ways to upload something (even without a form button , or even without a POST or even GET) but the user must select … | |
Re: You can initiate a PHP program in many many ways. Probably what you are asking is to initiate a program that will run in the background on a user request. Is that what you want ? | |
Re: Something is actually wrong . The API that you are using . (if you use it in correct way and these are the responses) | |
Re: It seems that you are talking about actions and you use get. Don't. Of course post can be panipulated also , but it is the first barrier (out of many many more). | |
Re: MidiMagic you are correct your keyboard goes spooky when it enters daniweb.com . The answer is in your faith , take a priest or what ever your faith has and make an exorcists or what ever is in your faith. Than probably those spirits that caused the problem first place … | |
Re: My company has rejected such a project not of moral issues but because our Sales and Demand (S&D) Manager didn't guaranteed that this was a serious business. If it were a serious business probably we would have done it , and would have created another company division , with each … | |
Re: why don't you ask wordpress about it ? | |
Re: my crystal ball says that you don't understand what a session is … https://en.wikipedia.org/wiki/Session_(computer_science) | |
Re: If I understood what you are asking there is a really simply solution , each banner link has an id at least (you could do it with with linkIds that wouldn't reveal internal structure to anyone but I will not go as far). So it is simple to have lets … | |
Re: PHP is basically a C program (some implementations in C++) from version 4 and above it is a compiled language. It takes your code and translates it to opcodes and then execute it (this something common in programming languages) . PHP doesn't save those opcodes by default and nor you … | |
Re: Why should we know what i2b2.BLAST.jsFunction is ? are you in a i2b2.BLAST forum ? Except if this your own way of naming variables , that is really problematic | |
Re: Before getting to security you lost me in a part and I am asking just to get it. Forget other security techniques , forget even HTTPS , you wrote that the “bad” user might send` [login name=#USERNAME#,pwd=#PASSWORD#] `, how would he know the password ? Are we talking about the … | |
| |
Re: There is knowledge and knowledge that has been applied. These two things are very different , yes you need a good background in HTML CSS JavaScript , but you should have worked with them in order to really understand. Recently we had to much question from folks that didn't made … | |
Re: Are you referring to a Node.js application ? (If so what is the point of 4 ?) https://en.wikipedia.org/wiki/Node.js https://github.com/nwjs/nw.js https://github.com/nwjs/nw.js/wiki/Protect-JavaScript-source-code-with-v8-snapshot | |
Re: Hello Aeonix. I strongly believe that programming is a great way to build character. To become patient , to read and study but always making your own tests , an endless exploration journey. Moving to your question , you don't have any reason to share code from fiddles here , … | |
Re: Hello vivosmith , your code would be a happy place for anyone (no skills needed) that would like to harm your server. Take a look at https://www.daniweb.com/programming/web-development/tutorials/499320/common-issues-with-mysql-and-php . Secondly your variables luck of meaningful names. There are many more out there but I will jump to your question. Have you … | |
Re: Neither what you are sending nor what you are getting are valid XMLs. Althowgh there is a probability that the request is meant to be XML like and not XML (maybe that is why you add XML= in front) the response should have been a valid XML. The question is … ![]() | |
Re: What do you mean ' it still does not work' ? Do you see the page but there isn't any value in those fields ? Viewing the HTML code is there empty where values should be in form ? What do you mean by 'I tried making sure it was not … | |
Re: Why wouldn't it be possible? The first way that comes in my mind is to create a cron job that it will run lets say each minute that logs into the email gets the new emails (a db would also help to know witch emails have been processed and what … | |
Re: First , - use any browser built in tool (like Chrome developer tools) or a plug in. If you had done it you would have get “Uncaught TypeError: circuit.run is not a function” (I run it myself to be correct about the error (I was thinking that the error message … | |
Re: PHP runs server side so any operation in data before PHP must use a client side solution (e.g. JavaScript) as well (except if you mean that you want to have PHP recognize the bar code from an image file that is really a non straightforward solution) . There are numerous … | |
Re: Hello rouse, yes you are lost there. With AJAX you only send a request to the server , you don't execute code there. Any other attempt with evil eval or sending the query directly, is simple out of what AJAX (or even PHP) is. I suggest to read and try … | |
Re: It seems that what you want is a simple pagination. Is this the case? Of course you can get the previous or next record of a record received by a sql query but this is a bit more complicated and probably has nothing to do with what you mean. | |
Re: In any job you will need to learn new things , having a stable background is a plus , another is the willing to learn more. You will be under – qualified in any job at the bigging. The notion that you are willing to learn more and that you … | |
Re: To make it clear , do you need two methods that will take a timestamp and the first one will return the beginning of that month timestamp and the second one the ending in timestamps ? | |
Re: A simple solution without the use of data or filters. On field enter add a class to it (e.g. closestMark) and on leave remove it (you could do it with focus and unfocus as well). Than in any element you can get the .closest (https://api.jquery.com/closest/) element that has that class. ![]() | |
Re: For some reason the C++ like bindParam is looking better to most than the simpler question mark. For some reason you use fetchObject although it isn't really an object but an anonymous one. For some reason you echo it with double quotes. None of those would be an error. But … ![]() | |
Usually I am very conservative about upgrading in production even partial. But the moto “PHP 7 is not an evolution is a revolution” made me want to try it also in production in just one specific folder that serves few sites. Here are my first two observations about things that … ![]() | |
Re: I respect any programming language , technique or environment (I am not sure how to state it in a way that node.js folks would accept it) . About node.js , there where few years in the web that node.js could make your life easier if you would like to programming … | |
Hello, We are about to implement a custom CDN for images but there are two different options I am thinking (I work in a very small company that I am the R&D manager with only one employ in the department) to try for SEO and I thought to ask for … | |
Re: “ it is not properly working for me “ don't describe the problem , moreover if you really want help don't paste your view paste only you PHP logic code ![]() | |
Re: We NEVER keep use passwords in our DB, we keep a hash of them , so we cant send the password to anyone , we can send a link to them to create a new password. ![]() | |
Re: There are countless better ways , but all have to do with what is your definition of better. E.g. you have logic in your template file , your SQL queries are all over the place with no grouping in their class scope or even in separate files , you mix … | |
I know that I have made my comments about that UI. Moreover I have shared ideas of how to move on with daniWeb . Just two quick questions. Why do you think that is responsive to serve the same app in the same view in different devices ? Does desktop … | |
Re: The short answer is quite simple , google “History js” , the real answer is never alter the address bar url IF you are going to provide different content from what anyone would get by entering the url you are changing to. When I mean that all content should be … ![]() | |
Re: If you control both apps you haven't any reason to mimic a login. You don't have any reason for SOAP ( this is a matter of SSO Single Sign On but when you are ready you will ask for it). If both ends are created by you then they have … | |
Re: As Nutser noticed (and as you can see in the image of resulted rows you attached) they are distinct , (you have different field7 and field8 in rows with the same field1,field2,field3,field4,field5,field6). From the section “this should be the output” in the same attachment I guess that you want to … | |
Re: There are many many issues there , just from a quick view I spotted more than 10 , and then I stopped spotting. Are you new to PHP or new to programming ? Has a meaning to share with you some architectural and logical errors there and motivate you to … | |
Re: It is not only that it is more logical or better , it is easier and faster coding as well , I can't understand why anyone would like to make its life harder implementing code from PHP past that was never safe (or had a secure layer at least) and … | |
Re: If you print it (or var_dump) it doesn't print $val1 , it prints an array that the first value of it is the $val1 (the second is the $val2) @see http://php.net/manual/en/language.types.array.php (read also examples) ![]() | |
Re: One small question , you are changing your code why changing to mysqli where there is not the option of real prepared statements and not to PDO where there are (and more over has implementations that make it easier to use even than mysql functions) ? **Comment** : I strongly … ![]() | |
Re: Diafol and invisal gave the answer but I have never thought that the term “local storage” could be applied to cookies , in that sense Aeonix has any reason to ask how cookies are differentiating , the storage of those are local as anyone can notice , but we don't … | |
Hello , first of all I need to make clear that although I understand , and have done projects modifying code that is already there (and created my own minions) , in the core of C and C++ I wouldn't consider to know those a bit, I have just a … | |
Re: > iam a 4thyear student and you still don't understand basic relationships ? What were those 4 years about ? Yes I could help you but probably you wouldn't to, because it envolves learning and as we all figured out you don't like that. But if you really want help … | |
Re: James I can't understand what you are trying to do , explain it in more details. It seems that for some reason you have anonymous objects stdClass what is that reason and how did you got those stdClass “objects” in first place ? "[] operator not supported for strings" , … |
The End.