Search found 41 matches
- Thu Jan 18, 2018 8:44 pm
- Forum: General Discussion
- Topic: PHP Should Exploit Object Oriented Design More
- Replies: 3
- Views: 7825
Re: PHP Should Exploit Object Oriented Design More
No one if forcing you to use PHP. If I am running my own server, true. But if I am a guest on a commercial web server I am stuck with whatever they support. In particular if I had the choice I would use Java SE or C#/.NET. But they are only available on premium service sites which I cannot afford f...
- Wed Jan 17, 2018 7:56 pm
- Forum: General Discussion
- Topic: PHP Should Exploit Object Oriented Design More
- Replies: 3
- Views: 7825
PHP Should Exploit Object Oriented Design More
To compete with other more sophisticated languages I believe that PHP should do more to support Object Oriented Design: PHP strings are not objects. In many cases you must use non-OO functions, based upon classic C functions, to manipulate them: strlen($string) rather than $string->length, substr($s...
- Wed Jan 17, 2018 6:47 pm
- Forum: General Discussion
- Topic: PHP DN Site Should Use HTTPS
- Replies: 0
- Views: 7304
PHP DN Site Should Use HTTPS
Since obtaining an authentication key is now free this site should use HTTPS to protect the privacy of contributors. In particular without HTTPS the password used by a contributor is passed in the clear. Note that HTTPS is now over a quarter-century old.
- Fri Jun 26, 2015 7:03 pm
- Forum: PHP - Theory and Design
- Topic: PHP OOP and callback from usort
- Replies: 5
- Views: 31426
PHP OOP and callback from usort
I have been doing OOP for over 30 years now in a wide range of languages, but in particular C++ and Java. I appreciate that the OOP features of PHP are superficial but I have encountered a situation where I am prevented from defining a class in the way that seems natural to me from my experience wit...
- Wed Oct 01, 2014 12:03 pm
- Forum: PHP - Code
- Topic: Segmentation Fault calling Method
- Replies: 4
- Views: 1286
Re: Segmentation Fault calling Method
I kept digging, looking through the code of the methods called by the method postUpdate and found an error that caused an infinite recursion. So this is the same old recursion fault. Thanks for the help.
- Wed Oct 01, 2014 11:33 am
- Forum: PHP - Code
- Topic: Segmentation Fault calling Method
- Replies: 4
- Views: 1286
Re: Segmentation Fault calling Method
Thank you. To run the debugger I would have to recompile PHP with the debugging option and then run the entire Apache server under the debugger. That does not strike me as practical. From error.log: [Tue Sep 30 22:06:00.392895 2014] [core:notice] [pid 9440] AH00051: child pid 9863 exit signal Segmen...
- Tue Sep 30, 2014 9:31 pm
- Forum: PHP - Code
- Topic: Segmentation Fault calling Method
- Replies: 4
- Views: 1286
Segmentation Fault calling Method
I am getting a segmentation fault when I call a method of an object. The method is actually implemented in the base class, and I call the same method in a lot of different places in my site, but when I call it in this particular case I get a segmentation fault. print "<p>\$picture=" . prin...
- Sun Nov 07, 2010 8:22 pm
- Forum: PHP - Code
- Topic: How do I tell if the Browser supports PHP 5?
- Replies: 4
- Views: 260
How do I tell if the Browser supports PHP 5?
I do not understand why there is apparently no agreed upon way to determine if the browser that you are generating code for is HTML5 compatible. I asked this in another forum and got back a comment that HTML5 is supposed to be backwards compatible, which is ridiculous. Even if I limit my HTML5 funct...
- Thu Nov 04, 2010 11:44 pm
- Forum: HTML, CSS and other UI Design Technologies
- Topic: How do I tell if Browser supports HTML 5
- Replies: 5
- Views: 2804
Re: How do I tell if Browser supports HTML 5
So, if you code properly, even browsers that don't understand HTML5 should still be able to render the page. Unfortunately, not every browser (*cough* IE *cough*) does. For example, IE does not support new html tags like <section> or <aside> and requires a little bit of scripting to overcome this l...
- Sat Oct 30, 2010 3:52 pm
- Forum: HTML, CSS and other UI Design Technologies
- Topic: How do I tell if Browser supports HTML 5
- Replies: 5
- Views: 2804
How do I tell if Browser supports HTML 5
The response from get_browser() does not indicate whether or not the browser supports HTML5. How exactly do I determine this? Every HTML5 related web site I go to just tells me how wonderful HTML5 is, and how it is going to solve all of my problems, but not how to migrate in a mixed browser environm...
- Sat Oct 16, 2010 12:52 am
- Forum: PHP - Code
- Topic: Cannot set variable to non null value
- Replies: 2
- Views: 385
Re: Cannot set variable to non null value
Thanks. That was the problem.
- Fri Oct 15, 2010 10:26 pm
- Forum: PHP - Code
- Topic: Cannot set variable to non null value
- Replies: 2
- Views: 385
Cannot set variable to non null value
I must be doing something blindingly stupid, but I just cannot see it. No matter what I try the value of one of my variables stubbornly remains null when it should be a string. The following is some debugging code that I inserted right after the first initialization of the vairable because the value...
- Sat Aug 14, 2010 3:22 pm
- Forum: PHP - Code
- Topic: Passing Select Multiple to AJAX Script
- Replies: 0
- Views: 197
Passing Select Multiple to AJAX Script
I have a conventional database update application that I wish to migrate to AJAX. That is I currently have two PHP scripts that both generate web pages, and I wish to change the second to return an XML file so that it can be invoked from a Javascript function called from the first script. So the fir...
- Fri Jul 16, 2010 9:33 am
- Forum: PHP - Code
- Topic: Persistent Objects
- Replies: 3
- Views: 555
Re: Persistent Objects
Have a look at APC http://us2.php.net/manual/en/book.apc.php and Memcache http://us2.php.net/manual/en/book.memcache.php You could also just store these result objects in a db table with a unique key to access. You would of course need to serialize the object, but I don't see how that defeats the p...
- Wed Jul 14, 2010 11:48 am
- Forum: PHP - Code
- Topic: Persistent Objects
- Replies: 3
- Views: 555
Persistent Objects
On my web site I am working with a genealogical database. Since that database must map the complexities of real world relationships it has a very large number of tables, many of which must be queried in order to create the web page. The performance therefore sucks. I would like to be able to avoid r...