HTML -> PHP  | | |
June 3rd, 2004, 05:41 PM
|
#1 (permalink)
| | Member
Join Date: Jun 2003 Location: West Columbia, SC
Posts: 330
|
I'm a n00b to php...
What php tags do I need to add to an HTML document to format it for PHP. I plan to include a table with a centered title above for a list of members.
__________________
I have become evil...
24" iMac 2.8
|
| |
June 3rd, 2004, 06:07 PM
|
#2 (permalink)
| | Member
Join Date: Nov 2002 Location: Kent England
Posts: 395
|
<?
echo "this is a php";
?>
just liek that
make sure you save the page as php tho |
| |
June 3rd, 2004, 06:10 PM
|
#3 (permalink)
| | Member
Join Date: Jun 2003 Location: West Columbia, SC
Posts: 330
|
you can put any html tags inside the echo quotes? |
| |
June 3rd, 2004, 06:13 PM
|
#4 (permalink)
| | Member
Join Date: Nov 2002 Location: Kent England
Posts: 395
|
yes for example
<?
echo "<img src=\"location.file.gif\" width = \"10\" height=\"10\">";
?>
the backslash cancels the " in php so it can be printed or echoed |
| |
June 3rd, 2004, 06:16 PM
|
#5 (permalink)
| | Member
Join Date: Jun 2003 Location: West Columbia, SC
Posts: 330
|
Also...
Warning: Cannot add header information - headers already sent by (output started at c:\apache\htdocs\los\header.php:32) in c:\apache\htdocs\los\includes\page_header.php on line 532
Does this on Forums page mainly...  |
| |
June 3rd, 2004, 06:22 PM
|
#6 (permalink)
| | Member
Join Date: Nov 2002 Location: Kent England
Posts: 395
|
at the top of the page RIGHT AT THE TOP put
<?
ob_start();
?>
or if you have access to the php.ini turn on output buffering |
| |
June 3rd, 2004, 06:29 PM
|
#7 (permalink)
| | Member
Join Date: Jun 2003 Location: West Columbia, SC
Posts: 330
|
You are DA MAN!
You have helped me more in 15 minutes than people have in months...maybe you can answer my last question...
Im trying to get horde working. I have to uncomment the gettext.dll in php.ini to activate gettext. That's the only thing im missing to get Horde to work. When I uncomment it, and restart apache, nothing to do with PHP works. I can't load any php page until I Re-comment the gettext line and reload apache again.
I guess im missing a file but I dont know what. |
| |
June 3rd, 2004, 06:34 PM
|
#8 (permalink)
| | Member
Join Date: Nov 2002 Location: Kent England
Posts: 395
|
have you defined a extentions directory in the php.ini and made sure that the .dll is in that directory ?
if it still doesnt work maybe its a windows permission problem  |
| |
June 3rd, 2004, 06:37 PM
|
#9 (permalink)
| | Member
Join Date: Jun 2003 Location: West Columbia, SC
Posts: 330
|
Hmm...let me see what i've got. Code: ; Directory in which the loadable extensions (modules) reside.
extension_dir = ./extensions And then down in the extensions are... Code: extension=php_gettext.dll The DLLs are in the folder: c:\apache\php\extensions |
| |
June 3rd, 2004, 06:39 PM
|
#10 (permalink)
| | Member
Join Date: Nov 2002 Location: Kent England
Posts: 395
|
try a full path to the extentions directory and i think you have to end with a /
extension_dir = C:/php/extensions/ |
| | | Thread Tools | Search this Thread | | | |
Similar Threads | | Thread | Thread Starter | Forum | Replies | Last Post | | html basics | BingNess | Webmastering and Programming | 13 | June 7th, 2004 11:19 PM | | Where to begin? | Buzioid | Webmastering and Programming | 10 | March 27th, 2004 11:19 AM | | HTML, SQL... HELP!!! | exally | Webmastering and Programming | 9 | June 9th, 2003 01:02 AM | | PHP Not working for .html file | vass0922 | Webmastering and Programming | 7 | November 10th, 2002 04:16 AM | | Bah! Need help! | voogru | Graphic Design and Digital Photography | 5 | March 7th, 2002 04:43 AM | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Most Active Discussions | | | | | Recent Discussions  | | | | | |