gunbound
Apr 6 2005, 01:51 AM
| | I don't know anything about PHP, except that I use phpBB and have modified my forums template files.
I used to make web sites years ago and just got back into it a couple months ago. I wonder if I should stop using shtml and switch to php. I don't really have time to learn php (at least not yet), but if it's easy to replace my Server Side Include with php (just to be more "modern") I would be willing to do so.
Anyone have any suggestions about me doing so? Am I'm too old school for using shtml? Lol I never see any web sites that use it anymore.
If there's an easy way for me to learn how to use PHP, specifically for includes (as that's all I think I should want to use it for), I would appreciate the help. |
Reply
snlildude87
Apr 6 2005, 02:32 AM
Ahh yes, the good ole include. It's really easy for PHP, by the way, and I'm someone who have very little knowledge of PHP. To include a file with PHP, simple place the code: CODE <?php include("file.txt"); ?> anywhere in your page. This code assumes that file.txt is in the same directory as the calling page. You can modify this, of course, by using absolute URLs instead of a relative one. The filename, .txt, can be any file name (as far as I'm concerned). Hope that helped!
Reply
Similar Topics
Keywords : replace, shtml, php, jack
- Sound Card Not Working Properly.
Jack retasking functionality missing (2)
A Simple Preg_replace Help Please.
(1) Hello.. Im looking for some help. I want to use preg_replace function to replace the following type
of code tags. CODE <code lang="php"></code> <code
lang="javascript"></code> <code lang="css"></code>
My question is that, in the above code tags, language (lang) is not always same, how can i use
preg_replace with the above code tags to place them with something. Any help will be very much
appreciated. thanks.....
Preg Replace Problem
(1) If i have a word like c.........a......t (with the dots in) and i wanted to replace it with cat how
would i do it. If i use CODE <?php $patterns =
"/c(*)a(*)t/"; $replace = "cat"; echo
preg_replace($patterns, $replace, 'c.....a.........t');
[/color][color="#000000"]?> then when i type something like "
c ome a nd look at t his" is also filtered. Is
there any way just to filter cat with dots in? ....
Free Web Hosting: (jack_flamer) [screened] [approved]
Free Website: <thefirey.trap17.com> (2) To generate an application for free web hosting please click here: Free Web Hosting
Request Form I would like to request free web hosting from Trap17. Please find my application
below. Your Registered Domain Name or Desired Trap17 Subdomain Name: thefirey.trap17.com
Account Username: flamer Introduction: i have many different hobbies i am a
computer graphics designer i have created many websites and i plan on increasing my knowledge learn
new things to create a nice website for my friends to visit. i am also a telented pe....
Jack Thompson Found Guilty On 27 Of 31 Misconduct Charges
(0) I got 3 sources for you Gamepolitics....this one takes a bit to load, but it has the full story.
Joystiq Kotaku Ok, for those that don't know who Jack Thompson is, he's an attorney who
has spoken against video games....he lies to the public about them, and yet he's an "expert" on
them, with even picking up a controller. He's basically a public nuisance, which is something he
claimed the video game Bully to be. He really can't back up any of his arguments because of the
fact that he has never played a single game, AND falsely accuses the games a....
Unable To Replace .png File In Directory
Can't even delete it using Cpanel (7) I can't delete a little file using file manager in Cpanel. I'm trying to delete a .png
image, actually, I'm trying to replace it. The response comes back as a success, but when I
reload my site it's still there. Then I go back to the file manager and go up a level, then back
and WOOP! There it is! I'm beyond frustrated here. What is going on?....
Php Preg Replace
(1) Ive got a problem with preg replace, this is the code: display.php CODE <table
border="1"> <tr><th width="70">Time</th><th
width="200">IP</th><th
width="70">Viewed</th></tr> <?php $LogData =
file_get_contents("log.txt"); $Find =
"/||(.*)|(.*)|(.*)||/i"; $Replace =
"<tr><td>$1</td><td>$2</td><td>$3
</td></tr>"; ....
Php Replace Help!
(6) CODE <?php function code( $input ){ $data[0] = "<?php
include(\"shoutbox.php?no="; $data[1] = "\");
?>"; $find[0] =
"/\[b\](.*?)\[\/b\]/i";
$find[1] =
"/\[url\=(.*)\](.*)\[\/url\]/"
; $find[2] =
"/\[u\](.*?)\[\/u\]/i";
$find[3] = "/\&....
Hello Trap17
This is an introduction to the world of Jack (6) hello every one as a new member of the forum i believe im am required to introduce myself as how can
people get to know me if i dont give them the information required to do so. Ok where to begin hmmm
well i am 20 years old currently living in england i am a intermediate/advanced website graphics
designer and website creator ive been doing this now for about 4-5 years at the same time as
attending college other hobbies are: cooking dancing water sports roller blading gaming game
creation etc ok so that is a quick and basic introduction to me lol....
Movie Box Office Top 20 - 2007
Sorry, Jack and Pixar, no more threepeat for you. (0) The box office result of 2007 are in, and for the first time, Johnny Deep's Jack Sparrow and the
computer wizards of Pixar will NOT make a three-peat domination of the year. Instead, A friendly
neighborhood wall-crawler, a green ogre and two warring factions of alien robots destroyed the
competition. Spider-Man 3, Shrek the Third and Transformers won the movie race with record breaking
numbers. And other franchises, like the Jason Bourne series, enjoyed a record-setting business as
the top-grossing secret agent oven James Bond, Austin Powers and Ethan Hunt of Mission....
How To Replace Japanese Cute Actor Face With Yours
I'll teach you how to modified Japanese actor (or whoever) face by (1) This is my source pic, i label it as S . This is my handsome pic, i label it as O : First,
i cut and paste my picture into the S picture. Turn low the opacity and fill and adjust the position
so that it fit the S picture: Erase the unwanted area. Go to image-adjustment-brightness and
contrast and adjust the lightning. Go to image-adjustment-color balance and adjust the color of O
picture until you get harmonic tone. Repeat these steps until you get the desired colour. Mine look
like this: Repeat all these steps until you get the best result. By com....
The Top 10 - Summer 2007
Jack Sparrow is not going to threepeat this time. (6) At the beginning of this summer movie season, the heavy favorites in this race would be a three-peat
of the "dynamic duo" of Johnny Deep's Jack Sparrow from the Pirates of the Carribean franchise
and the CGI wizards at Pizar. Well not this time. In the rematch from Summer 2004, Spider-Man ,
Shrek , Harry Potter and Jason Bourne battle each other in an all-out box office brawl and
thwarted Jack and the Pixar boys' chance of giving new term to the phrase "Three times the
charm". And with special guest stars NYPD detective John McClane (Bruce Willis) from t....
'red Devils' Replace Blues As Champions
(0) QUOTE 'Red Devils' replace Blues as champions Manchester United regained the English
Premiership title on Sunday after closest rivals Chelsea were held 1-1 by Arsenal. With two matches
to play United, who last won the title four years ago, hold a seven-point advantage over Chelsea,
who have won it for the past two seasons. United had beaten Manchester City 1-0 on Saturday thanks
to a Cristiano Ronaldo penalty - his 23rd goal of the season - and Chelsea were up against it when
they went 1-0 down and lost Khalid Bouhlarouz - who was sent-off - in the first-....
Soft Grunge Jack Sparrow Sig Tutorial
(7) Well it's been a long time since I did a gfx tutorial but do a simple CS3 tutorial request for a
sig and so I thought I do one especially on a good sig like this. Also a small notice this tutorial
is designed around for those who have experience with some of the techniques used in this tutorial,
but if you follow the directions correctly or close to it you should have same result either way.
Original image to be used http://www.filmedge.net/potc3/FanEvent/Cap...ow%20Banner.jpg Sig
After tutorial Step #1: Open a new layer 400x150 and fill it in with ....
[ps] Jack Sparrow Signature
(0) Tutorial Name: Jack Sparrow Signature Created by: ~Xtreme~ Program used: Adobe Photoshop
Notes: A friend of mine made this tutorial a while ago and said I could repost it. I think its a
good tutorial and helps those who are still getting new to photoshop. This tutorial is copyrighted
to him and shouldn't be reposted by others unless you have his permission. Today, you will
be learning how to make a signature like this one. 1) First start off by making a new document.
I will be using 340x125 and place yoru stock in your empty canvas. Resze if nee....
Spidey Or Jack?
Who will be the king of the box office this year? (12) This summer may be the biggest box office move summer in recent memory, and the odds-on favorites to
take the box office crown this year are Spider-Man 3 and Pirates of the Caribbean: At World's
End. Spidey just broke records internationally and has a new opening-day box office record. And he
will same smooth sailing for the next two weeks before Shrek the Third. Jack Sparrow and his pirates
plummeted Neo and suckerpunched Superman in their first two adventures, but now they may have met
their match with the heavy competition in the form of Spidey, Shrek, Ocean's....
Add An Auxilary Jack To Your Car For Ipod
(0) Hello readers and welcome to another HOW-TO article. I originally was planning on doing the CVS
Disposable Camcorder Hack, but it's only 90% done. To answer questions of can it be reused?:
Yes, it can. But if you want to see it in action, I'll have it out and working at the first ever
Hackaday meetup on Thursday. Come on out and see how it's done or if you can't make it,
I'll have it up next Tuesday for you guys. But now we're talkin' audio. Sweet crisp
sounding liquid music�.coming from our iPods/DAPs of course. A lot of us are still ....
Preg_replace Problems
(7) Sigh... preg_replace is getting very annoying for me. Could sombody tell me what I'm doing
wrong? Im making a bbcode replace for the forums I made, and preg_replace is being a b****...
Right now Im working on the tag, and I want to check for valid URL's, because idiots in the
forum are adding js and stuff in the image tags and messing it all up. So i put a function in the
array that holds all of the replacements: CODE
$main_search=array('/\[b\](.*?)\[\/b\]
/is','/\[i\ ....
Help With Preg_replace
(3) I must be a total noob, or just really tired...............-.- either way, I cannot understand what
exactly those funky strings preg_replace wants for the pattern. Could sombody explain to me exactly
what the pattern string and the replace string in preg replace does? I get str_replace...
that's quite basic. I considered myself a pro at php until tonight........haha shows how much i
know. I bet tomorow, if i look it up I'll get it.... Anyway.. any help? Thanks.....
/laugh.gif" style="vertical-align:middle" emoid=":lol:" border="0" alt="laugh.gif" />....
Ipod Nano Earphone Jack Size
anybody know the size? (6) Hey all first off this is the most relevant forum i could find for this topic. hope its good enough
here. Now i have an mp3 player which is about the same dimensions as the ipod nano, it would fit
into a nano case etc except its just an mp3 player in the shape and design etc.. the earphones are
plain dodgy and theyre starting to crackle and such and its really annoying, the only thing is being
so small the earphones arent the standard size that would fit into a PC or cd player its abit
smaller, both shorter and thinner. Im thinking they could be the same sieze jack a....
Replace A Character In A Specific Tag
(7) I need a code that replaces all spaces between ] brackets with an underscore. So, basically, I
write this into a variable: CODE bla bla something [[some text]] more text here
And I want a script to change it to this: CODE bla bla something [[some_text]]
more text here Any suggestions?....
What If You Won A $42.000.000 Lottery Ticket?
Or if it was a super huge Jack-pot worth even more? (12) A couple of months ago here in Canada in one of the lotteries. The grand prize was for
$42.000.000 and I think about 4 or 5 people won. So the Jack-pot had to be splitted. But
imagine if even a single person had won the huge Jack-pot. They would be able to buy a whole lot of
stuff. For me if I had tried to play and if I had won. I would still work at my job but first
I'd do alot of investing. Get myself a very nice car. Maybe buy a helicopter and let a few
people I know have a nice chunk of money. I'd give some to a church and send money out to a few
chari....
Wmp (windows Media Photo) - The New Image File Format From Microsoft
windows media photo WMP - could replace JPGs and GIFs? (31) Microsoft have decided to come up with a new image format to add to the common JPGs, GIFs and PNGs
of today. It is to be called Windows Media Photo format or WMP for short. It is said to
"Surpass the limitations of existing file formats" and here is what it'll offer: Numerous
colour formats for printing and displaying High-quality lossy or even lossless compression
Really efficient decoding for numerous resolutions For more features, visit
http://www.microsoft.com/whdc/xps/wmphoto.mspx Presumeably, the JPEG2000 format or JP2 was
....
Monster Jack
Brown:):) (3) Made a new sig. Please CC and rate ....
Somebody Made Jack Thompson's Game!
(8) If you hadn't heard, Jack Thompson recently offered $10,000 to charity if someone made a
game based on a story that he made up ( http://gc.advancedmn.com/article.php?artid=5883 - read this
first if you haven't already ). Well, apparently somebody has made his game! Link:
http://creepyguywas.shijyou.com/goldenrule.html Pay close attention to the dialog and the text on
the action button (also violent). Put this everywhere you can, because one of the terms was that it
has to be distributed.....
How To Replace A Cd-rom Drive In A Pc
(3) Hi, Im going to teach you how to replace a CD-Rom drive in a PC. It just takes a few simple steps
to do this, it is really not that hard. You can trust me since I have an a+ certification in
computer hardware and software. I know what I am doing, I am an expert. 1. First of all, you need
to shut off your computer. To do this press the power button on the front of the computer after you
have shut it down from Start> Shutdown on your start menu. 2. Unplug the power cord from your
computer. This is the big black/white/grey plug that plugs into the power supply on the bac....
How To Replace Ram In Your Pc
(0) Hello everyone, This is how to replace RAM in a PC. It just takes a few simple steps to do this, it
is really not that hard. You can trust me since I have an a+ certification in computer hardware and
software. I know what I am doing, I am an expert. 1. First of all, you need to shut off your
computer. To do this press the power button on the front of the computer after you have shut it down
from Start> Shutdown on your start menu. 2. Unplug the power cord from your computer. This is the
big black/white/grey plug that plugs into the power supply on the back of your PC.....
Bush Nominate Roberts As Chief Justice
One conservative to replace another? (1) It's hard to believe that the Chief Justice is no longer William Rehnquist. He was the answer to
the citizenship exam question: Who is the Chief Justice of the US Supreme Court? Ans: William
Rehnquist. Wow... Personally, I think Bush brings death to his people in a karma-like way. So many
people have died during his terms already. Just think, during Bush's reign all kinds of natural
disasters occured (hurricanes, tsunamis), war, terrorist attacks, Supreme Court Justices died...Of
course, I'm not saying that Bush wants these things to happen or is directly re....
Help With Reading Files
Read and replace/insert data from form (5) Hi, Does anyone know how i can do this, or scripts that will work on Trap17's servers and will
do the following: I have a .doc file form. Which i want to have filled in automactically, by HTML
Form and emailed to my address, with the data filled in. Any ideas? I have heard many differing
things, like XML, RTF, DOC, PDF... I have serched through many places and come up empty handed with
anything that works. /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' /> ....
Help With Uploading Index File
i cannot remove rename edit or replace (6) When I try to edit, remove, rename, or replace my index into my public_html folder. It does not
work. Is there anyway to erase everything on your account, and start from scratch. Or a way to fix
this problem. I have PMed and Emailed the admin but haven't gotten help, can anyone here help
me?....
Looking for replace, shtml, php, jack
|
|
Searching Video's for replace, shtml, php, jack
|
advertisement
|
|