Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have downloaded WAMP to try to learn PHP on, and am having trouble getting it to work as expected whenever trying to follow along in PHP tutorials.
Either what I get back in my browser is raw PHP (as shown below in "PHP Test 1"), or nothing at all (as shown below in "PHP Test 2"). I'm just trying to learn the basics of PHP, and am finding this to be very frustrating. Can anyone help? What do I need to do get PHP working, or what should I try?
Originally I was going to post screen shots to better describe the problem I'm having, as well as to better help others who are experiencing the same problem, but was not allowed to due to something about not having enough "points". Anyway, what I was originally trying to post can be found here:
https://sites.google.com/site/bluedog4678/
You need to start WAMPP then type this in the address bar: localhost/PHP_TEST_1.php.
You are currently opening a simple file without running WAMPP you need to run it through localhost.
You shouldn't access your files directly. Normally with simulated apache-servers you need to type in "localhost" to let it render correctly
EDIT
If you want to select a file it would be "localhost/"
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Closed 8 years ago.
Improve this question
For a few days now one of my class files doesn't seem to be recognizing the updates I'm making to it, and I can't figure out why. I've verified the server has the most current copy and also tried deleting the file off the server and uploading a clean copy. I've even removed functions entirely from the class and then successfully ran those functions from another file even though I'm positive it was no longer in the class file.
I don't know what the issue is, but I'm guessing it may be some type of cache issue? Tried rebooting the server too, same issue. I've also poured through the code and can't find any errors. Here's a link to the file http://pastebin.com/eiki93GM.
What are some of the possible issues?
There are two
opcode cache with disabled filemtime check.
you are uploading to the wrong server.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
How can I get all urls of the site by any programming language or software?
For example, I have site http://getmoneygettraffic.com/ and I know there are some other pages like http://getmoneygettraffic.com/48h
How can I find links for the other pages? If I know only domain - http://getmoneygettraffic.com/
UPDATE: (It's my site) Can I get all urls of the site without rake(ROR) or going to ftp or cPanel ?
I have tried this stackoverflow.com/questions/857653/… and this one stackoverflow.com/questions/131989/… and this too stackoverflow.com/questions/16619687/
Also, I have tried -> https://code.google.com/p/knock/ , cool stuff, but it's looking only for subdomains if I'm not mistaken. I need right part of the url, not the left.
The general answer is you can't do it if the website uses URL Rewriting which rules you don't have. If the website is yours and doesn't use complex rewriting you could try browsing the root directory to retrieve ".php" files.
Since you have tagged this with ruby on rails, if you own this website/ have access to server, you can do rake routes in the root of your application and get the whole list of routes that are available for it.
Otherwise, I am not so sure that you would be able to get an exhaustive list unless you have access to the application code
You can use Sitemap option to get all the urls
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
In my project simply I want to run local application as netbeans or word document installed in my computer on click of a link? Is it possible ? If yes how am I to do it? If no why it's not possible.
Thanks in advance.
You can link to a PHP script and then in this script use exec() to run your application.
<?php
exec('path/to/your/app.exe -possibleparam -param2');
/* EOF */
I don't know if it is that what you are looking for:
http://www.php.net/manual/en/function.exec.php
exec will execute the app in the machine where the php is installed (so your server).
If you mean that the php should open an app on the user pc while he's surfing on your site, no.
The only way to to this is an NPAPI plugin. And use Javascript, not PHP.
PHP runs on the server. It has no control over the client. This is by design. If web pages could run programs on the client computer then it would be abused to an unlimited degree, for spam, viruses, and junk.
You can use the exec function to run a program on the server. If your server and client happen to be running on the same local computer, then this will do what you want.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
What I'm looking is to execute a script as soon as there is an INSERT on one of the MYSQL table.
I wanted to export all the contents of the inserted row into formatted Excel file. (This will be done through external script written in PHP)
Main issue is to call the script as soon as the insert occurs.
First thing that occurred to me is to create a Trigger and call the script (Found that this is not best approach. Other thing occurred to me is running a crontab
Could anyone please suggest if there is a better solution for this?
PS: The INSERT happens through an external application and I have no control over it.
This question was answered here: Invoking a PHP script from a MySQL trigger btw.
Anyway, other possible solution is to create environment with replication (although there will be no slave), write your own mysql client connected to the master (simulating slave server) and waiting for commands comming through.
You can also create "tail -f" script listening on binlog file.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I'm trying to set up php on my mac. From what I gathered, mac already comes preinstalled with php so I went through the whole httpd.conf and editing LoadModule php5_module libexec/apache2/libphp5.so to uncomment it.
I can't find a clear instruction on what to do after that. PHP seems to be still not running when I open a test file in my browser. Some sites say to add a IfModule php5_module block? but others don't mention that.
Well I click file>open in chrome
You are ignoring your web server and loading the file directly from your file system.
This means that Apache will not see the file, so it will not pass it through the PHP engine.
You must load the file over HTTP from your web server. Type http://localhost/etc/etc into the address bar (where /etc/etc is the path to your file from the DocumentRoot).
I use MAMP on a mac to do testing with serverside code - http://www.mamp.info/en/mamp-pro/