I have installed netbeans6.9.1 with java,c++ and php on windows 7. When i tried to run a test php code, the browser cant find the localhost.
Pleas help me to get rid of this issue. do i need to install anything else? or to configure anything?
You need to install Apache,PHP on your machine . Easiest way to do so is to download : Xampp
Related
Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro.
The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work.
I've also "googled my ass of" but can't find any hints.
Anyone of you that know how to do it? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")?
I'm trying to do this to be able to run Symfony2. So if you have any advice on how to install MySQL+Apache+PHP+Symfony2 on Mac, thats also welcome :)
The best way is to download PHP for OSX at http://php-osx.liip.ch/ and then copy the intl.so file from
/usr/local/php5-20121126-100332/lib/php/extensions/no-debug-non-zts-20100525/intl.so
to
/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/intl.so
Worked like a charm for me for PHP 5.4
I just compiled on mine the other day.
I wrote a self reminder post here: http://szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/
Let me know if you need further explanation. :)
I am trying to run PhantomJS from a PHP script using
exec('/path/to/phantomjs/phantonjs --version');
This line works fine from the CLI but does not work at all from my PHP script.
I have searched around for a fix and found this Q/A and read something about permissions that can be the problem. I have try all these fixes and still, PhantomJS does not launch.
I'm desperate at this point, can someone help me out?
Thanks.
Your path looks wrong in the exec command, it uses phantonjs where I'd expect it to be phantomjs. Might that be the problem?
I solved it. PhantomJS required som libraries that were not found in my Xampp packages and was just failing silently and updating the logs. So I just install the standalone PHP and Apache services and everything worked fine.
I'm quite new to Linux and still trying to adapt my self. I've setup my working environment all good, installed XAMPP, node, sublime, etc. But when I tried running a laravel app, the first thing that caught me was I couldn't run php.
I was confused because i had already installed XAMPP (which i thought would've done it all for me), but then I simply created a symlink in my /usr/bin to the /opt/lampp/bin/php and it all worked well (I'm not sure if that was all correct, but it worked).
Then when I tried opening the app in my browser, it couldn't find the sql driver, so I asked my self, what exactly am I doing wrong? XAMPP should have taken care of all those things (as its name suggests), but it didn't setup php and mysql as i thought it would.
Am I missing something here? Should I install MySQL driver and PHP apart from XAMPP? Because that makes no sense at all for me. I really need some basic guidance here about this whole thing, what makes it so different from Windows where I simply install XAMPP and start programming?
I need to understand that so I can have a better understanding of the system it self and fix these kind of problems my self in the future.
PS: I'm using Ubuntu 16.04 and instaled XAMPP with PHP 7.0, downloaded from official website.
Thanks everyone!
I never used xampp on linux myself so i dont know how does it work here but I can tell you what really got me good start at understanding of linux was installing whole LAMP stack myself. So i would recommend googling 'How To Install LAMP' and try to figure it out from countless tutorials.
Basically you install apache, then mysql and php, restart server and check if 'It works'.
try two things
In the folder /etc/php/php.ini
uncheck the line extension=pdo_mysql.so
or in the folder of lampp (/opt/lampp/etc/php.ini)
And to start Laravel you need start with ~/php artisan serve
in the browser localhost:8000
Hello i have installed xampp on my windows computer and running it as a home server, i want to install ffmpeg and it keeps coming up with an error and ive looked everywhere but found nothing! any ideas of whats going on and how to fix this?
The image of the error - http://fktwtv.sytes.net/error.png
Here are a couple related questions that may provide some more info:
php-module-with-incorrect-compiled-api-unable-to-initialize
apache-is-unable-to-initialize-module-because-of-modules-and-phps-api-dont
Basically, PHP and all of the modules must be compiles with the same API. If you've installed from package, check for a version of the package that matches your version of php.
Ok, I'm running MAMP 1.9.5, which includes PHP 5.3.5, on my MacBook Pro.
The "intl" extension isn't included/activated and I've tried a lot of different ways to install it ("./pecl install intl" doesn't seem to do it), but can't make it work.
I've also "googled my ass of" but can't find any hints.
Anyone of you that know how to do it? Or, alternatively, have and advice on how to install my own MySQL+Apache+PHP (and include "intl")?
I'm trying to do this to be able to run Symfony2. So if you have any advice on how to install MySQL+Apache+PHP+Symfony2 on Mac, thats also welcome :)
The best way is to download PHP for OSX at http://php-osx.liip.ch/ and then copy the intl.so file from
/usr/local/php5-20121126-100332/lib/php/extensions/no-debug-non-zts-20100525/intl.so
to
/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/intl.so
Worked like a charm for me for PHP 5.4
I just compiled on mine the other day.
I wrote a self reminder post here: http://szemian.wordpress.com/2011/03/21/compiling-intl-extension-for-mamp/
Let me know if you need further explanation. :)