Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
a beginner here.
I have already checked the forum to find out answers but I was not successful, my question is specifically on one line of code. So I hope no one will mark my question as duplicate as I am in learning curve. 2 problems here:
What is the meaning of this piece of code? I understand that it is making a new object but is Api a reserved word? What is none for? $user = new Api('none','none');
I understand what is API but could you please introduce any good resource that explains the API for beginners? I do not fully understand the concept of APIs.
Your help is appreciated.
Api is not a reserved keyword in PHP
This is simply creating a new instance of Api, which should be somewhere in your codebase or include path. Look at it's constructor to find out why those parameters are passed.
Also, being a beginner does not excuse you for posting duplicate questions ;)
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I had success setup the Docusign-php-client with everything working!
But how can I access the api directly?
I can only use public/index.php page to test all the samples,
how can I create my own page or own api call?
Is there any simple sample? sorry I‘m newbie on program, please help, thanks!
I'm not clear what you already did since you didn't share code, but I would suggest you start by using https://github.com/docusign/code-examples-php which is a repo with full working code and a PHP app using the DocuSign PHP library/SDK.
Try to use it and see how it work as a means of jump-starting your development.
You can then either modify it to fit your needs or copy/paste relevant pieces of code into your app.
They are 31 PHP examples in here -> https://github.com/docusign/code-examples-php. DocuSign php client is just an API wrapper. If you need more info you can visit https://developers.docusign.com/ for more info
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Is there any way that i can create my own forum using php and mysql knowledge?The forum should be able to
show points for answered questions
be able to support question and answering
also be able to create a small news feed
I wanna learn this process from scratch
Welcome to Stack Overflow!
If you're familiar with Laravel, then I suggest giving "Let's Build A Forum With Laravel" on Laracasts a shot.
Very insightful tutorial-series on making a forum from scratch.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I'm currently using mysql_query() to approach DB.
I understand that this method will be removed in the future so I want to learn a new api.
What in your opinion is the best way and why? PDO or mysqli? or there is another one I haven't heard about?
Thank you.
I'm going to offer what I consider to be the best way to handle database stuff: Build your own class. In my case, this class just wraps mysql_* functions, however if I wanted to it would be really easy to change to a different one (such as if mysql_* gets removed). I only have to change a single file, and instantly the entire project is using a new API.
Believe me, do this right at the start and you will save yourself a LOT of work if and when you decide to change things around!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
In my php code, I am writing a class to create log files, and therefore have to work with files. I would like to store the variable $handle as a field, however when I refer to it as $this->handle, "handle" changes color, to indicate that perhaps it is a reserved term.
I looked through the php manual as well as some other online sources and haven't found anywhere saying it is actually reserved. Can someone clear this up for me?
Thanks for your help.
Cheers!
------------- Edit ---------------
It looks like it's recognizing handle as at least 3 static methods...still not sure what the "K" word means. Key?
Not only is it not reserved, but it is a common convention to call resource IDs and more $handle. In fact, you can find it throughout the PHP documentation. For example, fopen.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
Since there isn't a lot of documentation out there, some features of the Lithium PHP Framework are not well known by the public. Are there any cool code features which I would miss if I just use the framework as shown in the docs?
Hey, thanks for asking. Most of what you can do with Lithium currently is documented at http://li3.me/docs/lithium and http://dev.lithify.me/drafts/source. However, with each new release we usually write a blog post highlighting some of the features that have been added and what you can do with them. Those can be found here: http://dev.lithify.me/lithium/wiki/blog.
Let me know if you need anything else, or have any other questions. As always, feel free to drop by #li3 on Freenode.
Filters are a huge benefit in Lithium. Notice how one would do "beforeSave" and "afterSave":
http://www.patrickjsparrow.com/php/beforesave-and-aftersave-in-lithium/