Folder Options... -> View -> Un-tick "Hide File Extensions of Known Type" a" /> How To Save My Php Files

TRENDING NEWS

POPULAR NEWS

How To Save My Php Files

How to convert php file to plain text file?

Php is not compiled therefore it does not need to be "converted" to a text file!
It is exactly the same as a text file in the way in which its data is stored, therefore it can be opened with a text editor. The file extension simply tells the server that it should process the file before returning to the client.

Easiest way to convert it is to change the file extension (Tools -> Folder Options... -> View -> Un-tick "Hide File Extensions of Known Type" and then rename the file to .txt.

Else open the php file with a text editor (eg Start -> Run... -> notepad.exe) and re-save with the extension .txt.

Good luck

How do you include a PHP file into an HTML file?

It's not possible. If you do what others have suggested by changing the handler, then you can parse HTML as PHP - however it would be PHP. If you are able to use .htaccess to change the handler, then you can use PHP. I'm assuming you are asking this because you do not have access to a server that can process PHP files. If that is the case, then you will need to use an iframe, but that iframe source would need to come from a server that can run PHP. You can't just include it. There are other possible options to include files, like frames or using SHTML - however neither of those would include and parse PHP.

How can I convert a php file into mp4?

You cannot convert a .php file into a sound file.

"When the download link shows, You should right-click -> "Save Target As" OR copy and paste the link into your download manager. Note: You must change the file extension to .flv"

Those are the directions on the site.

How to upload a file in php and save its path name in database?

i m having problem with the root direcotory. here's my code

$hostname = "localhost"; // usually is localhost, but if not sure, check with your hosting company, if you are with webune leave as localhost
$db_user = "username"; // change to your database password
$db_password = "password"; // change to your database password
$database = "database"; // provide your database name
$db_table = "table"; // Your Table Name where you want to Store Your Image.
# STOP HERE
######################################...
# THIS CODE IS USED TO CONNECT TO THE MYSQL DATABASE
$db = mysql_connect($hostname, $db_user, $db_password);
mysql_select_db($database,$db);
$uploadDir = 'images/'; //Image Upload Folder
if(isset($_POST['Submit']))
{
$fileName = $_FILES['Photo']['name'];
$tmpName = $_FILES['Photo']['tmp_name'];
$fileSize = $_FILES['Photo']['size'];
$fileType = $_FILES['Photo']['type'];
$filePath = $uploadDir . $fileName;
$result = move_uploaded_file($tmpName, $filePath);
if (!$result) {
echo "Error uploading file";
exit;
}
if(!get_magic_quotes_gpc())
{
$fileName = addslashes($fileName);
$filePath = addslashes($filePath);
}
$query = "INSERT INTO $db_table ( Image ) VALUES ('$filePath')";
mysql_query($query) or die('Error, query failed');
}
?>

this code is copied from a website. i m using this code to upload an image and then saving its path into my database. the problem occurs that it shows the error "Error uploading file". i think the problem is in the $uploadDir. which path i should write there to make it work?????? i m using xamppp and i had installed it in the c:/xampp directory. i think we have to give some root directory name. please help. which directory should i create and which folders should i create in that directory???????

Where should I save the phpMyAdmin connection file (written in Notepad++, i.e. index.php, connect.php)?

I am building a website for my own and I want to connect the database to the site. The purpose of connecting DB is adding "posting comment and reply" functionality in my site.

However, I have XAMPP installed in my system.

Now I wrote the php code (in notepad++) to connect the mySQLdatabse (I already have created a database) to my website so that I can manipulate the data inserted in database. I will insert data, delete data, update data etc.

Now my question: what should be the path for those .php files (written in notepad++) in which I wrote the code for connection things happen? In which folder I should save the files? Please see my attachment.

How do you save a webpage via a DOS Batch file?

if you want to capture the output from your php in a bat file you'll need a utility written in perl , using the libwww library called get or any variant of get!

get >whatever.htmlhttp://wherever.com/whatever.php>whateve...

you could craft get using php too!

the previous telnet doesn't work well in a bat file unless you create a temporary text file with the get / command and 2 returns, then pipe it into telnet!

How can I save my HTML code including PHP?

To read the php code using .html extension, you need to add handler in your .htaccess file as per your server configuration.For a basic configured web server add following line in .htaccess fileAddHandler cgi-script .html .htmFor a web server running FastCGI add following line in .htaccess fileAddHandler fcgid-script .html .htmIn some cases after adding above codes in .htaccess file, you will face file down issue, therefore contact your web hosting provider and get a correct handler from them to run php using html file.

How can i save .TGA from photoshop?

Why do you need to save as Targa? why not just save a jpeg and all photoshop have the TGA file!

For save a files in TGA file format you must change your image mode RGB. When you change it then TGA choice will be available.

TRENDING NEWS