|
|
|||||||
| Register | FAQ | Calendar | Radio and TV | NP Shop | Search | Today's Posts | Mark Forums Read |
| Tutorials Tutorials and helpful articles made by ponders for ponders |
![]() |
![]() |
![]() |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#21 (permalink) | |
|
www.TripleX-Studios.com
|
Another addition to this tutorial...
On each one of those ad pages, you can create Random sales texts, so each time a surfer pops into your page, he will be seeing different Sales Text or Banners, randomly. Works pretty good, and its not hard to do ![]() Here is how its done: PHP Code:
Then from Rebel's Post, on step 9: Quote:
9: Open your index.php file and paste the following between the body tags. <?php include("header.html" ; ?><?php include("ad.php" ; ?><?php include("navigation.html" ; ?><?php include("ad.php" ; ?><?php include("links.html" ; ?><?php include("ad.php" ; ?><?php include("footer.html" ; ?>* I haven't tested it yet, just coded it, if you use it and find any problems, PM me.* __________________
|
|
|
|
|
|
|
#22 (permalink) |
|
Blogging. Caffeine. Shame.
Join Date: Apr 2004
Location: Australia
Posts: 11,398
Points: 215
|
Yep include / require are amazing
![]() I use includes of random content in a few locations to give pages a daily updated look. __________________
More Sex Blogs Directory - Seo friendly hardlinks ! |
|
|
|
|
|
#23 (permalink) |
|
I love Gas Masks!
|
Nice tut Rebel!
![]() __________________
![]() NicheCastle ** ExoticGold ** KinkyDollars Make me NO MONEY! Add Me At AdultWhosWho.com! "Work honestly and build, build, build. That's all I can tell you" -John Richard Simplot |
|
|
|
|
|
#24 (permalink) |
|
lactationcash.com
|
Good advice, Rebel.
I use SSi (server side includes) for this purpose, but PHP is more flexible. __________________
Pregnant, fetish or tit traffic? Promote Lactation Cash, a fresh niche with better signup ratios! ![]() Trade traffic: SexyPix TGP - Milky TGP - 6 Sexy 6! |
|
|
|
|
|
#25 (permalink) | |
|
Swedish Babe YourSearchNow.com
|
Quote:
Yes, php included will definently make your life easier. Another tip to this tutorial: SEO your include pages as that will be seen by SEs like it was on your main page. Second, make sure the include pages don't have anything other than the content, so no head or body tags etc. __________________
YourSearchNow.com Advertise 2c/click - netpond points are welcome Trade Blog Links Several Blogs and Blog Toplists in many different niches |
|
|
|
|
|
|
#26 (permalink) |
|
www.shittywork.com
|
Thats cool, i just needed it for my new project
![]() __________________
CHAMELEON MULTI-LICENSES FOR SPONSORS
CHECK OUT THIS THREAD NOW also check out the my best sponsor: RageCash |
|
|
|
|
|
#27 (permalink) |
|
Bastard
Join Date: Aug 2003
Posts: 954
Points: 0
|
Really good tute :-)
Can I make a couple of suggestions? 1 - Put your include files in a special include directory. I use things like /incs/global/, /incs/ads/ etc etc, especially if you use a .html file extension. Otherwise you run the risk of losing / forgetting what they are! (You could also use .htmlincs or something as a file extension and get Apache to read it as a FileHandler). 2 - Ideally, place include files (esp php ones, like DBConnect) outside of the webroot, so in your html, you have to reference the include as Code:
include("/outside/webroot/path/to/file/include.php");
|
|
|
|
|
|
#28 (permalink) | |
|
She cries MORE MORE MORE!
|
Quote:
Once people using this tutorial feel comfortable using PHP includes in the most basic sense shown here, I hope they will look a little deeper into what else they can use PHP to do like randomising links etc as Absolute Porn shows, or collecting surfer mail addresses, or making a contact/feedback form so you don't have to publically display your email address. But all of those are outside of the scope of this most basic use of php includes tutorial, I didn't want to make people try to run before they could walk ![]() Thanks Kamilla for the comment about no head and body tags etc. I realised last night that although I took blank document to mean totally blank I should have made it absolutely clear that it meant a totally empty document that should only contain the actual html/scripting you want included. If it contains head/body etc tags it will mean you end up with multiple tags on your page as they will all be included! ![]() __________________
I work smarter not harder with the following awesome tools! Gallery Submitter | Blogs Organizer | Gallery Scraper | Site Organizer | Links Organizer |
|
|
|
|
|
|
#29 (permalink) |
|
She cries MORE MORE MORE!
|
I also just thought to add for those not familiar with PHP.
PHP is handled "server side". The surfer never sees the php in the page, the surfer needs nothing enabled or installed to view the pages correctly. The server "reads" the page, handles all the PHP commands and outputs only the HTML results to the browser. View any source code of a php file and you won't see any of the PHP itself. Do you ever use Meta Refresh or J-ava-S-cript to redirect surfers to another page? STOP! Get in the habit of using a PHP redirect! which looks like this.. <?php header("Location: http://urlyouwanttoredirectto.com" ; ?>Why PHP instead of Meta or J-s? Because both of those rely on the surfer settings! They must have Meta refresh or J-s enabled for the redirect to work! A PHP redirect is done server side and outputs the new url to the surfer whatever their settings are! I use it to mask ref links and make it easier to swap out links if necessary. In a blank file I paste <?php header("Location: http://reflinktosponsor.com" ; ?>and save it as sponsor-name.php Then every place on the site that links to that sponsor site is linked to the sponsor-name.php rather than direct to sponsor. The surfer never sees the intermediate page, he goes straight to sponsor as usual. What this allows is to change the sponsor link easily. Say you want to change it from rev-share to PPS or vice versa. The sponsor closes, or changes their linking structure, or you wanted to change Netpond Cash links to Cash Uncovered links you could change the link in the one php redirect file and all the links using it would redirect to the new URL. Edited to add: For those that want to see a PHP redirect in action.. Click my Sig! __________________
I work smarter not harder with the following awesome tools! Gallery Submitter | Blogs Organizer | Gallery Scraper | Site Organizer | Links Organizer |
|
|
|
|
|
#34 (permalink) | |
|
The Host with the Most!
|
RE: Work Smarter Not Harder.
Work Smarter Not Harder
![]() and ROCKIN tutorial! ![]() __________________
Quote:
|
|
|
|
|
|
|
#35 (permalink) | |
|
She cries MORE MORE MORE!
|
Quote:
![]() __________________
I work smarter not harder with the following awesome tools! Gallery Submitter | Blogs Organizer | Gallery Scraper | Site Organizer | Links Organizer |
|
|
|
|
|
|
#37 (permalink) |
|
I see you baby.. shakin that Ass!
|
thanks for sharing the tutorial Rebel!
i have to keep in mind "work smarter, no harder!".. it's great to see all you these php enthusiasts as well. tutorials so rock! __________________
- Reading can help your $$$ statusVanity Email Service - "Be different.. Express Your Vanity!" Daily Political News - "Coffee and Politics... Yum!" -
|
|
|
|