Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 12 months ago.
Improve this question
I have recently installed Apache, MySQL and PHP, but the page is not loading the PHP code, it's interpreted as HTML comment. All services are enabled but haven't got a clue what's going on. Obviously is not possible to reproduce my localhost environment.
I am on Linux Mint 20 and latest Apache/MySQL/PHP.
Does anyone know how to make PHP work?
Your PHP tags are the short ones. In order to enable them, you need to change short_open_tag=On in php.ini, or just write <?php instead of <?.
///BONUS : the short tag '<?=' can be used without editing the php.ini. It's shorter than:
<?php echo $var; ?>
<?= $var; ?>
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 3 years ago.
Improve this question
I'm working on a school project, and I have two identical databases on two different PCs. I'm running the same website, identical files, on each one.
On my laptop, the mysqli_stmt_get_result($stmt) function works perfectly, whereas on my desktop it returns an call to unidentified function error. Likewise, mysqli_stmt_close() works fine on my desktop, but not on my laptop.
I'm using php 7.2.1 on my desktop, and 7.2.14 on my laptop, so these should be included...
If you don't have mysqlnd installed/loaded whatever, you will get an undefined reference when trying to call mysqli_stmt_get_result() as according to the comment here. To get more info about how to install mysqlnd driver you can see this discussion
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I have php version 5.6, I am trying to get the built in web server running, BUT I have noticed that there is no option for me to even run it. I apologize, I am a intermediate php guy. I was previously using XAMPP to serve it, but I am trying to incorporate my php development into my gulp workflow with browsersync and gulp-connect-php. Any suggestions are much appreciated and thank you. I have attached my CMD screenshot.
I am stupid. I was looking for the version in the XAMPP admin, which was version 5.6, BUT I only have 5.3 on my machine with the php output -v
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I'm using apache24 with PHP 7.0.3. When requesting http://localhost/phpmyadmin/ I get this error:
The mysqli extension is missing. Please check your PHP configuration. See our documentation for more information.
My PHP config has nothing about slqi to uncomment.
I've looked at the thousand other solutions, and most are for linux and I don't know how to do it for windows.
Please make sure the extension=mysqli.dll isn't commented out into php.ini.
Also make sure that you have the mysqli.dll files exist inside the extensions folder of your php installation.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 6 years ago.
Improve this question
I have simple page written in php which works like single page application, i just use include_once when user want to go to other subpage.Sub pages are pure html but they are saved with extension .php My hosting owner said they are moving to php 5.5, so i have checked on wamp with php 5.5 if page works and it does. But on hosting it cause internal server error, even simple page with php_info() cause it, php versin is set by .httaccess file
<Files *.php>
ForceType application/x-httpd-php55
</Files>
Is this something wrong with provider apache configuration? If so what it might be? I'm using standard php.ini generated file.
it turns out that /tmp folder was missing thanks for help
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 8 years ago.
Improve this question
When I execute script on my local host for file_get_contents($url) it keep loading for few minutes then displays this error:
Server not found
Firefox can't find the server at www.localhost.com.
any help?
What is your script doing? Is your server (for example apache) started and in firefox you launched url
http://localhost/
? It seems firefox is looking another domain and not real localhost
Put this code in your php file (only this code):
<?php
$url = 'http://www.yelp.com';
$output = file_get_contents($url);
var_dump($output);
and check it if works fine. We don't know what file_get_html exactly does. Maybe it's causing problem