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.
Beginning with Domino version R4 it has integration with the... Read More
Fleet Maintenance Management is a critical position in any company... Read More
Mapping Software Improves Data VisualizationFrom the outset, it is important... Read More
GroupwareEfforts are continually made to manage the unavoidable ad hoc... Read More
In the Clinton era the status quo was simple: you... Read More
Program Flow is what you think it is. How the... Read More
Simply put, fleet maintenance allows companies to monitor and maintain... Read More
The java programming language is becoming more and more popular... Read More
Preventive Maintenance (PM) is defined as scheduled work done on... Read More
IBM Lotus Domino or Microsoft Exchange?The severe competition continues for... Read More
It's no secret that software companies operate in a very... Read More
Microsoft released Service Pack 2 (SP2) for the Windows XP... Read More
Language development computer: Computer-based method for aiding language development seems... Read More
Did you ever want to erase everything on your computer?... Read More
Our hosted solution allow you to run your own search... Read More
Microsoft Great Plains is now standard mid-market ERP application, serving... Read More
Make-or-Break Factors in Success and ProfitabilityFor quick printers, estimating can... Read More
Sales are all about leverage, because there is only so... Read More
Language development computer: Computer-based method for aiding language development seems... Read More
Did you ever give a thought to the number of... Read More
Buying accounting software is a major investment. It's an important... Read More
Using professional icons in your application or website can bring... Read More
The objective for Zandi Digital is to make available clever... Read More
When you need a phone number, you do a quick... Read More
Just when you thought you were Web savvy, one more... Read More
Microsoft Business Solutions Navision serves both European and American megamarkets.... Read More
We live in a post-industrial age where information is the... Read More
Most people don't use Photoshop to its fullest capabilities. Here... Read More
SAP Inc., a global leader in client/server enterprise application software... Read More
The COSMIC FP (function point) software quality metric, is no... Read More
Microsoft Business Solutions Navision is main ERP application for European,... Read More
Microsoft Business Solutions Great Plains as new ERP for multinational... Read More
I started using PIP (Picture It Publishing) Platinum 2002 right... Read More
Microsoft Business Solutions is emerging as very attractive vendor for... Read More
Microsoft CRM is now on the scene and it is... Read More
A UNIX Shell is in simplest terms, a command line... Read More
Microsoft Retail Management System serves retail single store as well... Read More
With this small article we are continuing Microsoft Business Solutions... Read More
Siebel is traditional CRM market leader, however and mostly due... Read More
The Windows registry is a huge database that ensures normal... Read More
Heard about the Quark "killer"?Adobe InDesign CS2. Will it really... Read More
When it comes to screenplay software each screenwriter needs to... Read More
TCO (Total Cost Ownership) is the buzzword in... Read More
The objective for Zandi Digital is to make available clever... Read More
Microsoft Business Solutions Great Plains has full-featured manufacturing set of... Read More
Viruses and spyware usually show up on your computer one... Read More
IBM Lotus Notes with Domino email server is traditional document... Read More
It won't matter how effective your WinRunner Team is if... Read More
Hi, Guys,I believe a lot of programmers are trying to... Read More
Microsoft Business Solutions is now in process of creating so... Read More
Microsoft Business Solutions CRM and IBM Lotus Notes Domino, being... Read More
Looks like Microsoft Great Plains becomes more... Read More
Microsoft Great Plains is becoming more and more popular and... Read More
IntroductionPHP can be used for a lot of different things,... Read More
Microsoft Business Solutions Great Plains is written in Great Plains... Read More
Many Webmasters have never bothered to view their website's server... Read More
Microsoft Great Plains, former Great Plains Software Dynamics, eEnterprise has... Read More
Great Plains Software Dynamics, Dynamics C/S+, eEnterprise were written on... Read More
Beginning with Domino version R4 it has integration with the... Read More
Vince Lombardi once said that, "The achievements of an organization... Read More
Microsoft Business Solutions Great Plains version 8.5, 8.0, 7.5, Great... Read More
Document Management or Enterprise Information Management is perhaps one of... Read More
You have gotten those E_Mails buy software at deep discounts.... Read More
Microsoft Business Solutions Great Plains has I'd say end user... Read More
Microsoft Business Solutions Great Plains is very generic accounting application... Read More
The Microsoft system preparation utility for Windows 2000 is a... Read More
Software |