651 Posted Topics

Member Avatar for josh.sm

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 …

Member Avatar for jacks009
0
200
Member Avatar for RikTelner

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.

Member Avatar for jkon
0
247
Member Avatar for Niels_1

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 …

Member Avatar for TexWiller
0
266
Member Avatar for Engr.

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 …

Member Avatar for jkon
-2
189
Member Avatar for Jiby_1

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 …

Member Avatar for jkon
0
255
Member Avatar for TexWiller

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 ?

Member Avatar for TexWiller
0
248
Member Avatar for RikTelner

Something is actually wrong . The API that you are using . (if you use it in correct way and these are the responses)

Member Avatar for RikTelner
0
781
Member Avatar for RikTelner

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).

Member Avatar for jkon
0
234
Member Avatar for MidiMagic

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 …

Member Avatar for rproffitt
0
444
Member Avatar for joshl_1995

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 …

Member Avatar for jkon
0
721
Member Avatar for Latrell_vie
Member Avatar for swilliamrobert
Member Avatar for jkon
0
8K
Member Avatar for mario90

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 …

Member Avatar for mario90
0
430
Member Avatar for James_43

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 …

Member Avatar for jkon
0
206
Member Avatar for Reem50

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

Member Avatar for AndrisP
0
275
Member Avatar for Aeonix

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 …

Member Avatar for Aeonix
0
246
Member Avatar for Viny_1
Member Avatar for icite

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 …

Member Avatar for jkon
0
344
Member Avatar for Aeonix

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

Member Avatar for Aeonix
0
323
Member Avatar for Aeonix

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 , …

Member Avatar for jkon
0
376
Member Avatar for vivosmith

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 …

Member Avatar for vivosmith
0
1K
Member Avatar for tundewoods

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 …

Member Avatar for diafol
0
6K
Member Avatar for vivosmith

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 …

Member Avatar for vivosmith
0
371
Member Avatar for mistryrak440

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 …

Member Avatar for jkon
0
194
Member Avatar for byrd

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 …

Member Avatar for jkon
0
267
Member Avatar for bLuEmEzzy

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 …

Member Avatar for pritaeas
0
220
Member Avatar for rouse

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 …

Member Avatar for rouse
0
206
Member Avatar for Sophia_1

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.

Member Avatar for Sophia_1
0
395
Member Avatar for Stuugie

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 …

Member Avatar for jkon
0
285
Member Avatar for Stefce

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 ?

Member Avatar for Stefce
0
312
Member Avatar for karthic2914

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.

Member Avatar for diafol
0
248
Member Avatar for Shabbir_1

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 …

Member Avatar for diafol
0
3K
Member Avatar for jkon

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 …

Member Avatar for diafol
0
211
Member Avatar for garyjohnson

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 …

Member Avatar for Kyle Wiering
0
288
Member Avatar for jkon

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 …

Member Avatar for jkon
0
284
Member Avatar for UK-1991

“ 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

Member Avatar for diafol
0
316
Member Avatar for AntonyRayan

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.

Member Avatar for diafol
0
173
Member Avatar for Raven_1

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 …

Member Avatar for Raven_1
0
233
Member Avatar for jkon

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 …

Member Avatar for Reverend Jim
0
610
Member Avatar for pro-tek

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 …

Member Avatar for diafol
0
1K
Member Avatar for vipula

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 …

Member Avatar for jkon
0
2K
Member Avatar for bLuEmEzzy

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 …

Member Avatar for daniellemacey
0
372
Member Avatar for Benjamin Alexander

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 …

Member Avatar for Benjamin Alexander
0
575
Member Avatar for scarcella

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 …

Member Avatar for jkon
0
234
Member Avatar for masterjiraya

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)

Member Avatar for diafol
0
72K
Member Avatar for janicemurby

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 …

Member Avatar for diafol
0
267
Member Avatar for Aeonix

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 …

Member Avatar for Aeonix
0
506
Member Avatar for jkon

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 …

Member Avatar for jkon
0
281
Member Avatar for ivylyn

> 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 …

Member Avatar for jkon
0
155
Member Avatar for James_43

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" , …

Member Avatar for jkon
0
281

The End.