I have recently created my first Php program. I wanted to share with others some of the problems that I encountered, and how I finally overcame these obstacles.
My Reason for needing a Php Include
To start, my most recent website features a free classified advertising solution, a modified version of PhpBB stripped to function as an Article Bulletin Board (No replying), and a link directory. The business model of my Website offers free Classified Advertising, but charges a small fee for enhanced advertisements (Featured, Bolded, and Better Placement). The Classifieds were purchased from a developer, so I had little experience with the application. The link directory was a free resource of an old program that I modernized a bit. I choose the old link directory because the links are clean. They are not replaced with coding to count outbound traffic. I figured this would increase the value of links, to sites who exchanged links with me.
To increase revenue on the new site, I realized that I needed to increase the value of, "Featured Advertisements". To do this I wanted to randomly rotate featured advertisements, from the classifieds, across my Bulletin Board and Link Directory. Bare in mind, all three are run from a unique table, and I wanted to leave it that way. In addition, I had little experience with the development for all three applications.
I started reading tutorials and utilizing Forums to create a Php program for external pages on the site. The program would pull a random featured ad from the classified table. This program only took me about 32 hours to create, while performing research. I didn't intend to get into the schematics of the program with this post, so forgive me if you are looking for a Random generator. But I would be more than happy to share my code upon request.
The code I created was simple, it worked just the way I wanted, but I ran into one cumbersome obstacle; how do I implement this easily across two unique table driven applications? The answer was to use a Php Include
I started reading tutorials on, "Php includes and functions and classes". I realized quickly that this was a bit more confusing than creating the actual coding. In addition, I ran into parsing errors if I included the new coding in only one application.
My solution to using the, "Include ()," Php function
I found that very few people were willing to provide any feedback for such a problem, even in the most resourceful forums for Php Coding and information resources. I fumbled with the coding for over 72 hours. I thought this was a bit ridiculous, as the code itself took less time to create.
I finally came across a helpful solution that may prove beneficial, if you are in the same situation with Php Includes. The code was uploaded onto my server as a file (something.php). I removed the standard, "Php Include ()," function from all links and the PhpBB coding. I then called the Php file (page) using an Iframe tag, on pages I wanted it to appear. This proved to be a successful replacement for the Php Include.
Search Engine Results Using Iframe for Php Include
I waited until Google came around to see how the Iframe affected my sites search rankings. Finally, the other day this happened. The conclusion, my search rankings still increased due to recent link exchanges. The code is working to my needs, and it is easily included on any page that I want, even externals outside my site can call on the code, which opens more doors for advancement.
Here is the simple Iframe code I used to replace the Php Include:
iframe align=top valign=right width=600 height=105 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no src="http://your.com/file-to-include.php" width=600 height=105> /iframe
Using the Iframe tag for Php Include Conclusion
I have encountered no problems with including my PHP code on pages across external servers, using the iframe as a Php Include. As you can see, it is totally customizable. You can specify the width, height, alignment, border, scrolling, margins and more. The only obstacle that I have encountered, is the style sheet that the site, or page, with the, "Php Include," is not utilized. The page that the code is on seems to need its own unique style sheet.
I hope this proves beneficial to anyone having trouble with running a "Php Include" across various unique online applications.
About The Author
Michael J. Medeiros is the owner of www.Mjmls.com. He has worked as an Independent Real Estate Agent for three years, in New Jersey. He has an extensive background in Business and Marketing. Michael's latest research and attention has been devoted to online business development and the Internet.
![]() |
|
![]() |
|
![]() |
|
![]() |
Combining Microsoft Business Solutions Great Plains ERP with non-Microsoft Business... Read More
You've finally created databases that you can actually use to... Read More
If you are in the market for new staffing software,... Read More
The vast majority of us will have, at some point,... Read More
When Great Plains Software introduced the first graphical accounting application... Read More
Hi, Guys,I believe a lot of programmers are trying to... Read More
Blue Cross and Blue Shield of Hawaii (HMSA) found itself... Read More
New post-recession era has new features, which didn't exist in... Read More
How would you like to prevent spyware and adware from... Read More
We live in a post-industrial age where information is the... Read More
We would like first emphasize the change in the paradigm.... Read More
Does Microsoft Have any Real Competition? Copyright (c) 2003 Gregory... Read More
Microsoft Retail Management System serves retail single store as well... Read More
In our case ? we serve Microsoft Business Solutions ERP... Read More
It's all about turn times in the eMedia industry! The... Read More
Microsoft Business Solutions Great Plains is marketed for mid-size companies... Read More
Small can be beautiful! Working with Knoppix for the past... Read More
Have you ever noticed that when you look at your... Read More
User interfaces and accessibility are some of the most important... Read More
TCO (Total Cost Ownership) is the buzzword in... Read More
Professional services firm cuts costs and improves productivity with integrated... Read More
(1) Avoid using the same variable again and again for... Read More
In part III of this ISDN primer, we learned that... Read More
MicroWorld Technologies, Inc. the leading solutions provider in the area... Read More
If you are in a business that passes documents around... Read More
Since Version 8.0 Microsoft Business Solutions Great Plains & Great... Read More
Microsoft Great Plains might be considered as ERP platform to... Read More
Remember nice and prosperous Clinton era? When you implemented innovative... Read More
DBxtra is a powerful query and reporting tool that hides... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
We would like to give you several situations, when you... Read More
An operating system (abbreviated OS) is essentially the path through... Read More
You would like to protect your documents, wouldn't you? Reasons... Read More
Best Software Act! is very popular CRM for small and... Read More
The most important benefit of XML is its simplicity. Though... Read More
If you have Great Plains Dynamics/eEnterprise (version 6.0 or earlier)... Read More
An integral part of any quality CRM system is lead... Read More
New post-recession era has new features, which didn't exist in... Read More
Does Microsoft care for WebmastersIt's always been a problem with... Read More
When making a decision to buy any piece of software... Read More
Finally, you have some time to personalize your desktop with... Read More
MicroWorld Technologies, Inc. the leading solutions provider in the area... Read More
Software development is a risky business.Many software developers are barely... Read More
Disclaimer: All the thoughts expressed are my views only! Your... Read More
In this article you will find some background information about... Read More
Microsoft Business Solutions offers several ERP applications: Great Plains, Navision,... Read More
Java has come along a long way. Many would agree... Read More
SyncUp, a file synchronizer is designed to assist the home... Read More
Microsoft Business Solutions Great Plains has many years of successful... Read More
As seeing large number of implementations ? in our case... Read More
Remember back in the days where screensavers were the coolest... Read More
The various resume software offered, particularly on the internet, can... Read More
Is Photoshop CS2 worth the upgrade? You bet it is!... Read More
GroupwareThe internet is full of 1.5 million to 7 million... Read More
Microsoft Business Solutions Great Plains has Project Accounting module where... Read More
XML Server can be a Web Server that stores the... Read More
"Pfishing", sometimes spelled "Phishing", is a word that's used to... Read More
Are Spreadsheets Robbing your Enterprise of Competitive Advantage?'90% of "average"... Read More
This article is the fourth of a series of articles... Read More
This article will not attempt to advocate the use of... Read More
Fundraising software lets you connect with donors in a way... Read More
What is Software?Software is a set of instruction written to... Read More
Handling character strings in Java is supported through two final... Read More
Almost all new and major brand of PCs come with... Read More
Microsoft bought Navision, Denmark based software development company, along with... Read More
One of the main reasons business owners and entrepreneurs use... Read More
Software |