HOW DO I USE A PHP SCRIPT WITH HTML?
I have an html script and a php script from a web form builder. I have no idea what to do with the php script!? I tried saving it as .php but it wouldnt open so i tried .html but that didnt work either. I even tried .php.html!!!! Please help I need a step-by-step answer because I only know a tiny html and no php at all. thanks!
No trackbacks yet.
HOW WOULD YOU RUN A BATCH SCRIPT (IN THE BACKGROUND SO THE WINDOW DOESN’T POP UP) FROM C#?
September 8, 2010 - 8:04 am
Posted in Script | No comments
Question by Jane: How would you run a batch script (in the background so the window doesn’t pop up) from c#?
I have a batch script that works and does what I want.
Now, how can I run that script without the console popping up (or even being minimized)?
——————————————
Answer by RatchetrUse the function:
System.Diagnostics.Process.Start()
(Don’t ask me why they [...]
I WANT TO MAKE SITE LIKE YAHOO ANSWER , ANY ONE HAVE YAHOO ANSWER SITE SCRIPT?
September 6, 2010 - 8:10 pm
Posted in Script | No comments
Question by Lovedove: I want to make site like yahoo answer , any one have yahoo answer site script?
I want to make site like yahoo answer , any one have yahoo answer site script ?
——————————————
Answer by Don MGo to View/ Source
——————————————
Add your own answer in the comments!
WHAT ARE SOME SCRIPT TERMS FOR CAMERA SHOTS AND TRANSITIONS?
September 5, 2010 - 8:04 am
Posted in Script | No comments
Question by somedaysoon: What are some script terms for camera shots and transitions?
I’m doing Script Frenzy and I have never written a script before. I am doing this just for fun and I might direct and produce it later if I have the time. Anyway, I get the whole character, action, and dialogue stuff, but [...]
WHAT IS A GOOD RUNESCAPE BOT SCRIPT FOR CUTTING AND BANKING WILLOWS?
September 3, 2010 - 8:04 pm
Posted in Script | 8 comments
Question by CLEE99: What is a good Runescape bot script for cutting and banking willows?
Please give link to download. I dont want scripts that take breaks! The draynor willow chopper and Megalos Wc scripts take breaks.
Please give me a good RS bot WC script that
doesnt take breaks
excellent willow picking and fast
good anti bank
works with axe [...]
HOW LONG SHOULD A 30 MINUTE TELEVISION SCRIPT BE?
September 2, 2010 - 8:07 am
Posted in Script | No comments
Question by BohmaJ: How long should a 30 minute Television script be?
I am writing a script for a Television pilot and I am having a hard time getting a concept of its length. I looked at scripts from shows like Seinfeld and Friends, but those scripts range anywhere from 13 pages to 25 (when copied [...]
HOW CAN I AUTOMATE THE RENAMING OF FILES THROUGH A BATCH SCRIPT IN WINDOWS XP?
Question by dave: How can I automate the renaming of files through a batch script in Windows XP?
I’m not sure how to do this at the command prompt:
I’d like to remove the first three characters from a filename.
How can I do that in a batch script? This needs to be something that can [...]
HOW DO I ACCESS MY USB WHEN THE WINDOWS SCRIPT HOST SAYS “CAN NOT FIND SCRIPT FILE “G:\SOLUTION.VBS”?
August 30, 2010 - 8:08 am
Posted in Script | No comments
Question by Ody: How do I access my usb when the Windows Script Host says “Can not find script file “G:\solution.vbs”?
When I plugged in my usb, my AVG warned me that the file solution.vbs was potentially harmful.
So I had it moved in to the vault.
Now whenever I try to open my usb at my G: [...]
Q&A: HOW CAN I MAKE MY SCRIPT CHECK IF AN ENTERED SUBDIRECTORY IS VALID?
August 27, 2010 - 8:14 am
Posted in Script | 2 comments
Question by Chest Rockwell: How can I make my script check if an entered subdirectory is valid?
I’m writing a shell script for class that needs to prompt the user to enter a subdirectory, If their entry is valid, it will display the contents of that directory. If it is invalid, it will throw an error [...]
IS THERE ANY PHP SCRIPT SOFTWARE TO MANAGE USERS AND SESSIONS ACROSS ALL MY SITE SCRIPTS?
August 25, 2010 - 8:03 pm
Posted in Script | No comments
Question by Drigit Inrok: Is there any php script software to manage users and sessions across all my site scripts?
I have 10 site scripts which are all on different base of users… They have their own sessions users database tables and all… Is there any software(user management system) which can link all my scripts to [...]
WHAT COMPUTER SCRIPT GOES GOOD ALONG WITH HTML?
Question by Slayer: What personal script goes good along with html?
I know html very well and trying to learn another script. I know javascript goes great with html as i have used pre-made scripts before in my sites.
Php im having trouble with embedding properly to show php with html
xml?
——————————————
Answer by Empire539JavaScript [...]









February 19, 2010 - 5:56 pm
First thing you should know is that PHP and HTML are diffferent. PHP is a background script that works BEFORE you view the page. HTML is WHAT you see on a page… like what you see on this right now is HTML, but the information loaded is from PHP.
PHP is a server-side language that retrieves (usually) information stored into a database.
HTML then edits, reforms, displays that data in a form that you please.
Also, PHP always starts with < ? or . If you have those, and have HTML, you must show the HTML in a PHP code called ‘echo’ or ‘print’.
However, if you have only html, then the php won’t show up, unless you include , which then it can’t be considered a .html file, but a .php.
If you still don’t understand, you can review the site below, or just contact me with a more precise question. Your question here is quite broad.
** You cannot view working PHP files from your desktop unless you have the appropriate program, XAMPP is good for that. In order to see it, you need that, or just get a free site that supports PHP and MySQL (x10hosting.com or 000webhost.com) and paste your scripts there. That’s when you can truly test them. **
February 19, 2010 - 6:49 pm
1. Copy your PHP code.
2. Open your HTML document.
3. Paste your PHP script into your existing HTML document. between the starting PHP tag – < ?php and the ending one - ?>
4. Save the file (Both the HTML and PHP) as yourfilename.php.
5. Upload to server and test.
So your document might look something like this:-
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
[Your HTML code]
< ?php
[Your PHP code]
?>
February 19, 2010 - 6:58 pm
php is a server side application server. you have to have a php server installed on your web server in order for the .php scripts to be parsed.
February 19, 2010 - 7:24 pm
Hello,
Please look over http://www.w3schools.com for PHP. This will point in the right direction.
There are two ways to use HTML on your PHP page. The first way is to put the HTML outside of your PHP tags. You can even put it in the middle if you close and reopen the < ?php -and- ?> tags. Here is an example of putting the HTML outside of the tags:
My Example
< ?php
//your php code here
?>
Here is some more HTML
< ?php
//more php code
?>
The second way to use HTML with PHP is by using PRINT or ECHO. By using this method you can include the HTML inside of the PHP tags. This is a nice quick method if you only have a line or so to do. Here is an example:
< ?php
Echo "“;
Echo ““;
Echo “My Example“;
//your php code here
Print “Print works too!“;
?>
Using one or both of these methods you can easily embed HTML code in your PHP pages, to give them a nicer more formatted look, and make them more user friendly.Good Luck!
Sean Colicchio
Server Engineer
Host My Site
http://www.hostmysite.com/?utm_source=bb