-
Replied To a Post in Uploading File not processing like if on server
What exactly are you trying to open to read ? $_FILES["file1"] is not a file path at any matter , it could be (if you really uploading a file) an … -
Replied To a Post in How to Improve Test Program on Classes?
The shape class in your later example is abstract , not only because a shape in real word is actually abstract but also because in your getWeight() method of it … -
Replied To a Post in How to Improve Test Program on Classes?
Nathanial as I wrote there are many approaches. You say that some tutorials you have read do it that way. If it suits you then there is no problem about … -
Replied To a Post in How to send auto emails 2 days before PHP
ok ... where is the send email code ? -
Replied To a Post in How to send auto emails 2 days before PHP
Some thoughts . You say that you want to send automatically emails before 2 days. If you mean 2 days before today , then even the programming language that you … -
Replied To a Post in How to Improve Test Program on Classes?
PHP is a multi-paradigm programming language . Even its object oriented face has many moods that sometimes look like Java sometimes like C++ and other times like a bizarre mix. … -
Replied To a Post in No more statics against app scope caching
(diafol because obviously you are a framework creator as well , take a moment and think what kind of abstraction is if you don't have globals served to the Controllers … -
Replied To a Post in No more statics against app scope caching
diafol the framework you mention is just a cherry in the ice cream ;) (there are more out there) What motivated me to write this comment is that last weeks … -
Replied To a Post in No more statics against app scope caching
In any framework in PHP you should ask if it is real OOP or just (microsoft like OOP with statics) or even statics in its core -
Replied To a Post in No more statics against app scope caching
doGet and doPost are not static ... are methods of the Controller chosen ... for example http://myapp.com/Helllo means Controller_Hello or http://myapp.com/Helllo/Damta means Hello_Datmta class that is in Hello/Damta.php file . … -
Replied To a Post in No more statics against app scope caching
difaol not yet.. the main thing is that English is not my native language , we have wrote a manual in Greek but for that to be translated in English … -
Replied To a Post in No more statics against app scope caching
Diafol you put many issues at one question. As it sounds you agree with me that using static properties or methods where have no meaning just is bad OOP programming. … -
Created No more statics against app scope caching
There is a problem with static variables and functions in how it is used by apps and frameworks in PHP , they are used as global functions or parameters while … -
Replied To a Post in How to automatically logout an inactive user in your CMS PHP
There is really no reason to write functional PHP in OOP style. Everything here is static , so could be functions as well (static in OOP means other things than … -
Replied To a Post in json to php
http://php.net/manual/en/function.json-decode.php -
Replied To a Post in FetchAll vs while loop
This question and the answers given , puzzled me . Let me remind that the question is “HELLO i would like to ask that fetchAll() is good choice to retrieve … -
Replied To a Post in parser error
duplicate: https://www.daniweb.com/web-development/php/threads/496009/cant-figure-out-what-is-the-error-getting-msg-parse-error-syntax-error No reason to post twice -
Replied To a Post in can't figure out what is the error, getting msg "Parse error: syntax error"
In line 19 you have code inside the class but outside any method . Probably you meant to close the class first and then use it. -
Replied To a Post in Php admistrator login not working on server
You said -browser it shows only "an error occured " . Of course this is an extremely ambiguous message for everything. Do you mean that the browser alerted that message … -
Replied To a Post in Get last id with pdo from db
http://php.net/manual/en/pdo.lastinsertid.php What exactly is there that you don't understand phoenix254 ? -
Created Your opinion about abandoning InnoDB and return to MyISAM?
I am posting it here because I would really like to read other opinions. I am creating a module for a framework that anyone could install in its system and … -
Replied To a Post in Code Quality Check
I just show that “framework” that the “cool” hehehheheheheh (that is what ignorance nerds) kids do ... no OOP all functional ... all static variables .... they need a camp … -
Replied To a Post in Code Quality Check
Diafol just think .. could the framework you mentioned pass any Coding Standards ? Most PHP frameworks are not frameworks ... they are just “code generator tools” or PHP libraries … -
Replied To a Post in Code Quality Check
Actually using superglobals always might not be a good idea. Lets suppose that we have a class that does something with data that normally came from $_POST , there is … -
Replied To a Post in I need to get image name in save page
Hello, take 5 minutes (and I am saying a lot) to read what file upload is (e.g. http://php.net/manual/en/features.file-upload.php or http://php.net/manual/en/features.file-upload.php was the first two searching in Google). As you will … -
Replied To a Post in JSON , MYSQL and PHP
Storing a string in db from JSON decode has really no meaning at all. The only case I can think of that might have some reason is storing data that … -
Replied To a Post in How can I get the Result of a Clicked Button of a Print Dialog?
What are you trying to do ? Why you are using js functions not supported ? The main thing is to know who pressed the button ? -
Replied To a Post in How can I get the Result of a Clicked Button of a Print Dialog?
Ajax call when the OK button is clicked and of course you store in session all the needed data for the registered user. -
Replied To a Post in How can I get the Result of a Clicked Button of a Print Dialog?
You remind me how we doing it before AJAX. We were loading an iframe that supposed to be js but was originated through Java or PHP and called functions of … -
Replied To a Post in How to solve this question?
How I would respond in such question? “ Move to OOP , you are describing an object , and you keep its properties in an associative array that could be … -
Replied To a Post in $_GET problem
what is the #click in your code ? What is colorbox ? I googled it , and I think that you should read their documentation. You don't pass anything in … -
Replied To a Post in $_GET problem
What do you mean with “for some reason it doesnt work” , what happens ? . What is the #click DOM element that clicking it returns false , is it … -
Replied To a Post in Change value of only those options selected PHP
I guess reading your post that you already have an action selecting “a pet” and change its group. How do you do this , by a radio button and a … -
Replied To a Post in Helpp !!!!! important
Lets start with one really obvious. 23 - No start tag (<button>). (an editor could help you a lot) -
Replied To a Post in Image gallery using php and mysql
And I want to earn 3.000$ every day and of course ... world peace . Is there any question ? -
Replied To a Post in Image Zooming
As I understood you serve images dynamically so you are familiar on how to serve images in other sizes as well. It alls has to do with how you store … -
Replied To a Post in Error in a website ,whats the solution ??
What exactly don't you undrestand from this message ? -
Replied To a Post in Script that can listen and send messages at the same time.
Let me understand , you don't want to HOLD your script while you are waiting to receive the response of GET or you don't know at all how to get … -
Replied To a Post in Transitioning to OOP in PHP
Let's brake down what you are trying to do. You are trying to validate form inputs. There are many many ways with OOP to do this but let choose one … -
Created What is your current motto?
What is your current motto? What phrase would you use as motto in this current period ? Mine would be “think, but don't overdo it. Act” -
Replied To a Post in Jokes
A classic old one : A man flying in a hot air balloon suddenly realizes he’s lost. He reduces height and spots a man down below. He lowers the balloon … -
Replied To a Post in What movie have you seen lately?
There are some thrillers that really stick on my mind for a while (that was the case of "Ghost Ship" too) , now days it is the “The Hidden Face” … -
Replied To a Post in Array to String
Then mark this as SOLVED -
Replied To a Post in without form submit and javascript
This sounds like a puzzle , what etc mean ? Everything that has to do with client side ? -
Replied To a Post in Simple encode / decode integer to small string
The project I was working went live this week , making me to realize that is_int don't work with strings that are integers , in the encode method. I am … -
Replied To a Post in Your Favourite IDE or Editor for PHP
One more vote for Eclipse. From time to time i check other IDE's , I still haven't found something that just checking it a day , made me think “I … -
Replied To a Post in Help needed with Advanced $variables
A db results array that you could use to instantiate a real object. The only advanced I see here is a variables mess -
Replied To a Post in Simple encode / decode integer to small string
Thank you cereal , the demand was to create a url shortening system with no consideration on exposed url security (it is just redirecting) . In that matter I could … -
Edited Simple encode / decode integer to small string
Hello , today I was developing a short url system and I created this class to help me encode / decode integer (id) to small string. That way for example … -
Created Simple encode / decode integer to small string
Hello , today I was developing a short url system and I created this class to help me encode / decode integer (id) to small string. That way for example …
The End.