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__)));
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
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()
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 do I edit pages styles in prestashop ? Do I have to do it manually in the template's CSS, and .tpl, or with prestashop admin ?
You can't edit any files of prestashop at admin. So to edit css files, and .tpl file you have to do it in an editor like DreamWeaver or notepad++ directly. Open the file and edit your required contents in the editor.
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.
Closed 9 years ago.
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
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Improve this question
Here is the image of project file structure -
I added include 'connect.php' in index.php file.
Index.php file is present in register folder. But i get an error 'failed to open stream no such file'.
You could add a simple DOCUMENT_ROOT to your include in which way it will always go for the direct server path to the file.
include $_SERVER["DOCUMENT_ROOT"]."/connect.php";
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.