answersLogoWhite

0

you can put the connection file 1 level above your website's directory, and use random names, like 2134j12h5kh35.php

but really, if it's extension is .php, and in the unlikely event that someone knows where it is, the server will process it anyway and unless you echo your connection details for some strange reason, nothing will be displayed.

User Avatar

Wiki User

17y ago

What else can I help you with?

Continue Learning about Computer Science

PHP search not working in live server but it is working fine on localhost using XAMPP?

The issue of PHP search not working on a live server but functioning correctly on localhost could be due to differences in server configurations, such as PHP versions, database settings, or file permissions. Additionally, ensure that the database connection details (host, username, password, and database name) are correctly configured for the live environment. Check for any error messages or logs on the live server that might provide more insight into the problem. Lastly, consider potential issues with case sensitivity in file paths or database queries, which can differ between local and live environments.


What database does the WAmmp server refer to when it's used with PHP?

WAMP is an abbreviation of "Windows, Apache, MySQL, and PHP", so it uses MySQL database server.


What program is required to open a PHP file?

php files can be opened in one of two ways, if you wish to view the code: use Notepad if you wish to view the output: use a web brower such as IE or Firefox when viewing the output you will have to have installed PHP onto your PC or have placed the PHP file on a webserver and view from there over the internet.


What is 2 tier architecture in PHP?

Client-Server model is a form of 2 Tier architecture in PHP. With use of database it becomes a 3 Tier architecture


Why does it say PHP Warning fopen(file.txt) failed to open stream Permission denied in GPleskVhostswallnutclan.comhttpdocstest.php on line 5 on plex when it doesn't give me the error on wamp server co?

Your PHP file does not have the required permissions to open that file with write capabilities. Try Granting higher permissions (777, etc) to the PHP file itself, and / or GPleskVhostswallnutclan.comhttpdocstest.php.

Related Questions

How do you store pdf file to database using PHP?

Files cannot be directly stored in a MySQL database. However, a path to the file or the contents of the file can.


What is the role of HTML in php?

HTML is one method by which PHP can output a response. Other response methods are file, database, email, and network (URI).


PHP search not working in live server but it is working fine on localhost using XAMPP?

The issue of PHP search not working on a live server but functioning correctly on localhost could be due to differences in server configurations, such as PHP versions, database settings, or file permissions. Additionally, ensure that the database connection details (host, username, password, and database name) are correctly configured for the live environment. Check for any error messages or logs on the live server that might provide more insight into the problem. Lastly, consider potential issues with case sensitivity in file paths or database queries, which can differ between local and live environments.


What proportion of websites are dynamic say php?

A possible use case for dynamic content via PHP may be:page content (add content to a database and fetch it with PHP)news (news entries from a database or a file are read and put out to the user)forumsfaqjust to name a few


How do you run a MySQL query from PHP file?

Here is a simple script that you can do to run a MySQL query after you have set a database up. <?php // Database Settings $db['hostname'] = "localhost"; $db['username'] = "<db username>"; $db['password'] = "<db password>"; $db['database'] = "<db name>"; // Connect to MySQL $connect = mysql_connect($db['hostname'], $db['username'], $db['password']); // Select Database mysql_select_db($db['database'], $connect); // Do MySQL Query mysql_query("INSERT INTO table_name SET field_name = '1234567890'"); // Close MySQL mysql_close($connect); ?> Obviously you will need to use your own MySQL settings and database details, but this gives you a general overview of how you can do it.


Is php a binary file?

No, PHP is text file with .php extension.


Can you open php file in your PC?

Since a PHP file basically is a text file, yes. But beware - opening and running a PHP file are not the same. If you want to run a PHP file, you will need a webserver with PHP module enabled.


What file extension is used to save a php file after code has been written into it?

The file extension for PHP is .php


What is the Malay-utf-8.inc. php file?

This particular file is a file specific to the PHP program or script you are using. It is not a "php system file".


How do you handle database in php?

Please refer link. The presentation gives complete understanding of how to deal with database (Mysql) with php.


What is the file extension .php?

A file whose extension is "*.php" are typically interpreted by the PHP language. (php.net)


What is a database in PHP?

Database = Where you save your data (ex: if a user fill your registration form, entered data should be saved somewhere, that's database) Usually in PHP we use MySQL Database.

Trending Questions
What are some sites like aim? What is the maximum length of day at poles? New pass 4 sure ccna 640-802 dumps? What are the key features of Nationwide internet Banking? How does a bus computer works? What allows you to connect a monitor and a printer to a notebook computer via one connection as opposed to connecting individual devices? What do you call a person who creates videos? What is the maximum capacity of cloud storage? Is a genome like a computer hard drive or a computer screen? What is a group of computers connected together and share resources? DNA was isolated from water samples taken from six different sites. This gel was made to determine where silver carp are found.? For a Double story building that will require 2 computer labs with 50 pcs that will have fast access with a minimal interference. what is the best type of network model that can be used? How would you rate yourself technically? What is the answer for 4 pictures 1 word starts with man on computer then driving with a bottle of beer then stolen property then girl coming through window? What is the name of the Swiss organization that devotes itself matter concerning telephony telecommunications and data communications? What does net distance mean? How do you back up files with partition wizard? 2 What function does the external data bus have in the PC? As an intern in a marketing department Rachel uses her laptop to get data off her company's computer network and then uses the data to create a report about weekly sales. She wants to ask a question a? What metal has a density of 8.5?