Yii requirement status - yii

I try to upload my first small project on new VPS (Linux+php-5.3.3+ apache) and found these problem don't know why any help will be appreciated plz.
1- I have to lowercase all my folders in my project to work on Linux system with php+apache.
2- Strange problem is getting error in calling modlules function if like this....Post::xxx if change to post::xxx its ok I mean everything should be in lowercase otherwise give error like Post.PHP not found.
3- CDbConnection failed to open the DB connection: could not find driver?
4- I did run yii/requirements and got all below services/status FAILED and rest PASSED.
- DOM extension
- PDO MySQL extension
- PDO PostgreSQL extension
- Memcache extension
- APC extension
- Mcrypt extension
- SOAP extension
- GD extension
Any suggestion how make above services PASSED. as Im running MySQL db.
I look forward to hear soon.

I know that Khan have already resolved his app problem, but just to references, the answer is:
1 - The unix/linux systens are case-sensitive, so if you named a folder Post you'll need calling Post/ on your code.
2 - As in the last answer, if you are calling you class file Post so you need to change your class name as Post, because the php autoload depend of OS is case-sensitive too.
3 - It fail because the php PDO fail and Yii use it to connect to database system.
4 - Its necessary fix PDO MySQL extension the others are optional
GodFather.

Related

Prestashop 1.7 Dispatcher ContextErrorException

I have error and have no idea form is this:
(I move prestashop form one to another server, I check php version - is the same)
Because there is a warning before, the header containing the file type is already sent, then PHP cannot modify it.
It's actually not supposed to happen on that file ... You might check this one from the sources or disable warnings/strict PHP mode.

yii creating webapp error

Hi i am trying to create a yii application and i am got this issue tried google but not able to find the solution how can i resolve this,..?
This is my error:
Error: Unsupported VCS specified. Currently only git and hg supported.
And what actually this error is..?
yiic webapp d:\xampp\htdocs should work.
Notice the backslashes.
Or, perhaps better, since the app generator supports relative paths, navigate to d:\xampp and simply run yiic webapp htdocs.
That said: why are you using Yii 1 ?
It is really old, and does not receive any updates.
Yii 2 is so much better :)

ussd server sample example

I am working on jss7 project. I am trying to implement ussd server and client simple example.
I tried this example:
Jss7 standalone example
but it didn't work because it doesn't use the latest version of jss7 implementation 2.1.0
i found this example:
Jss7 standalone server example
It doesn't provide any error while compiling but when I run it there is a lot of errors and exceptions that I can't understand nor handling... Like:
1)ERROR org.mobicents.protocols.sctp.ManagementImpl - Error while
persisting the Rule state in file java.io.FileNotFoundException:
2)at javolution.xml.XMLObjectWriter.write(XMLObjectWriter.java:272)
at
org.mobicents.protocols.sctp.ManagementImpl.store(ManagementImpl.java:441)
at
org.mobicents.protocols.sctp.ManagementImpl.addServerAssociation(ManagementImpl.java:741)
at
org.mobicents.protocols.ss7.map.load.Server.initSCTP(Server.java:115)
at
org.mobicents.protocols.ss7.map.load.Server.initializeStack(Server.java:89)
at org.mobicents.protocols.ss7.map.load.Server.main(Server.java:515)
3)log4j:ERROR setFile(null,true) call failed.
So I appreciate if anyone can help.
Simply i want to run simple client server application.

Khan Academy API displayed on Geektool

I have been experimenting with the Khan Academy API found here
http://api-explorer.khanacademy.org/api/v1/user
and tried to find a way to display a user's points (and maybe some other information) on the desktop using geektool. I tried this
stackoverflow.com/questions/12514722/khan-academy-php-oauth-code
and
github.com/Khan/khan-api/
but nothing seems to work. The first link is the khan academy API provided as is. The second is someone with a similar problem who found a solution. He wrote a PHP script according to the temboo library and said to replace a few fields of the PHP and add both the PHP and the Temboo source code to the webroot. So, I added a folder called "php-sdk" into the webroot which is in /Library/WebServer/Documents/ and inside that folder was another folder "src" which contained the Khan Academy API and the Temboo library. Here is what I had.
cl.ly/image/2c2Z1B3T443L
Then I took a look at this and followed the steps until 6:19. Then I started the Apache server by entering this in terminal...
sudo apachectl restart
I opened a web browser, and typed in this...
localhost/php-sdk/src/khanAcademy.php
and I got this...
Warning: require(php-sdk/src/temboo.php): failed to open stream: No such file or directory in /Library/WebServer/Documents/php-sdk/src/khanAcademy.php on line 66
Fatal error: require(): Failed opening required 'php-sdk/src/temboo.php' (include_path='.:') in /Library/WebServer/Documents/php-sdk/src/khanAcademy.php on line 66
any ideas on what this could mean or how I could fix this? I am not advanced in PHP, or python, but I really would love to find a solution to this problem and I am willing to try anything that might work.
This error:
Warning: require(php-sdk/src/temboo.php): failed to open stream: No such file or directory in /Library/WebServer/Documents/php-sdk/src/khanAcademy.php on line 66
indicates that the path you're using for require is likely incorrect. Currently your PHP is trying to find a file called temboo.php here:
/Library/WebServer/Documents/php-sdk/src/php-sdk/src/temboo.php
Note the repeated directory structure. I'll make an assumption that your temboo.php is in the same directory as your khanAcademy.php file. In that case, simply change require "php-sdk/src/temboo.php" to require "temboo.php". If my assumption is incorrect, just adjust the include path accordingly.

How to deploy fuelphp website to server

I'm new to fuelPHP, I developed a simple application and when I uploaded the files to my web server I got those errors :
Notice: Use of undefined constant __DIR__ - assumed '__DIR__' in /home1/tdfdf/public_html/site/site/public/index.php on line 22
Fatal error: require() [function.require]: Failed opening required '/bootstrap.php' (include_path='.:/usr/lib64/php:/usr/lib/php:/usr/share/pear') in /home1/tdfdf/public_html/site/site/public/index.php on line 44
I probably miss some configurations here. I also want to remove this "/public" from the url
Can any one help ?
I found the solution. The DIR is not defined for older versions of PHP . I changed my server settings to run on PHP 5.3 and it worked like magic.
Thanks.