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
Well am creating a php based application therefore I wish to accompany it with a configuration file. However the configuration will have a few variables which will be updated once in a while.
Therefore how can I read a file and update a specific variable in it?
It's common to define your own configuration in .ini files and parse them with parse_ini_file()
Related
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 am including a page in the directory all with the function basename(__DIR__) which is in the directory inc, so echo basename(__DIR__); returns the directory inc, instead of directory all.
How can I fix this?
Maybe, the best way is define some specific constant in file that placed in all folder and then included into other?
define('ALL_PATH', realpath(dirname(__FILE__)));
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 to Download 4 files at a time which are stored in database? It is combination of pdf,png,jpg,jpeg files. I want to download all the four files on a click on download button.
Create a .zip file using php, then once you have the 1 file, link to it so that the user can right click-download as or something similar.
This way, it be faster than downloading 4 separate files.
(link found on Google, i'm sure there are better tutorials out there, but google really is your friend).
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
Is there any way for parsing the Outlook .msg files in PHP? My requirement is to parse an .msg file and convert each conversation(message) in it to separate files(Preferably .eml files).
Well, .msg files are "COM stuctured storage OLE2 compound documents", which probably means that it will be difficult to open it in PHP.
PHP does have a Windows COM extension, but I do not know if it can be used.
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 want to upload some files without browse button, i just wanna have a fixed path and upload button, can anyone help me out, i think this is possible in asp.net
There is no way for a website to specify which file the user's browser should upload. This would be a dangerous security risk as the user might not notice the file selection.
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
file_get_contents("https://api.groupon.com/v2/deals.xml?division_id=cleveland&client_id=39ddf70c45844d5a9d5a92e5106f1b229b2e1df8");
This code does not work on windows, but does with Linux. Because of https. Is there any solution.
It's possible you did not enable your url file open in your PHP configuration.
See http://www.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen for details on this configuration value.
If this is not the cause, then you should specify what the exact error is, do this by adding the following to your code, before the file_get_contents function:
error_reporting(E_ALL);
ini_set('display_errors', 'On');