Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





PHP Tutorial Or Project Examples


I've worked with ASP, ASP.NET and
WebSpeed in the past, but now I'd like to learn PHP. I've already
gotten a Fedora web server up and running with Apache and MySQL.

I'm looking for some examples - or even better a free project - to look
over and see how other are using PHP to read/write records to and from
MySQL. I'm trying to create a very simple web based contact management
system that will store data in a couple of tables.

Can someone recommend any examples or web sites to refer to? I'm about
to dive into the PHP manual, but I'd like some other material to study
as well.




View Complete Forum Thread with Replies

Related Forum Messages:
GD Module Examples
Anyone here used, or is using PHP's GD module in their web design? I would be real interested in seeing what anyone has done with it on their web site with perhaps some sample code which demonstrates how they did it.

View Replies !
E-Mailing Examples Help.
I have created a form, which will allow a person to upload a picture,
and leave me mail. What I am having problems doing is, having the
form actually upload the picture and attach it to an email that is
then sent to me. If anyone knows of any sample code I could look at,

View Replies !
Pagination Examples
Basically im asking if anybody knows of any example code or tutorials where i can learn how to paginate a PHP page. I have a mySQL news table which holds stories as mark up. Ive had a look at a few examples and tutroials but most seem to have the the pages of the story in seperate rows in the database. Im also just confusing my self now with the multitude of options. Im using e107 as the back end by the way.

View Replies !
Printing Examples
Does anyone have any examples of how to send web page content to the
printer? I've looked at the PHP manual and I think I know how to do it
but I'd like be sure:

I have to open the printer first
Then I use the print write call?
Then I close the printer

View Replies !
Pagination Tried Several Examples
I'm having some difficulties with php pagination. I tried several sample codes provided on the net but none worked.

View Replies !
Looking For Examples Of Huge MySQL & PHP
Does anyone know of any existing operational web sites where a massive (ie. millions of records) MySQL database combines with PHP to provide a directory service? I'm thinking along the lines of the White or Yellow Pages or similar. I ask because I'm researching a project which provides a (large) web-based specialist directory service, and I'd like to be in contact with people who've already done it with MySQL and PHP. I use MySQL and PHP all the time for small applications, but I'm not sure how they compare (in terms of speed and reliability) in the commercial world against the expensive alternatives.

View Replies !
Examples Of Using Inherance And Interfaces In PHP 5
As many of you knows, Zend has relased the Beta version of PHP 5. I
have allready make some tests of interfaces, classes inherance, static
and public variables, etc, and everything looks ok. Now, when you work
with PHP the most common thing is to do something with databases, you
have somehow the "same kind of pattern" like: logins, update, add,
delete data from de db, show data and that is it.

Now, I will like to use the new PHP 5 features in my next project. I
was trying to desing some clases and inferfaces for the "pattern" that
PHP use to have, and have not come with any good worthy idea. I know
Java too, so I was very happy about the the new features in PHP5 and
looking to use object model features. Im looking for very clear
examples on, how you have used the new features in PHP5 to do the "old
PHP thing"?

View Replies !
Printing Code Examples
I am building a tutorial site, all is working apart from 1 thing.

If i type in some php code even basic stuff like

<?php echo date ('Y'); ?>

then when its submitted into the database the php gets stripped away i'm using the tinymce editor if that helps make it clear.

I need to be able to show code examples as my tutorials are for web design does anyone know a way of showing code.

I can disable the tinycme editor and type code right into the textfeild and use the html safe values like: &lt;?php echo date ('Y'); ?&gt;

but thats not a good solution as i want to use the tinymce editor as my members will be able to write some tutorials.

View Replies !
Pointer Examples Of Cleaning
I have managed to create a very basic CMS, the CMS cover 6 pages and each page can have its title, pagetext, image link 1 and 2 altered.

I have doen the best I can but, I imagine that the code I have produced is somewhat ugly and could be clearer and slimlined. I have included the code for both the form page and the post page. Code:

View Replies !
Examples Of Autoloading Object
I'm a bit confused with autoloading objects.

This is only for PHP5, correct?

All autoloading functions start with "__" correct?

And can someone give me a easy to understand example of an autoloading object? I googled, but I still have questions about it.

View Replies !
MySQL Transactional Examples
Does anyone have any examples of using Transactional processing of
MySQL with PHP? I'm not sure if the BEGIN statement needs to be in
front of my SELECT statement or processed before hand by itself.

View Replies !
Examples To Display Day Calendar Schedule?
I am trying to find some code to help me along with dsiplaying a day
schedule. For example, a linear time-line with appointments blocked out or
colored differently.

View Replies !
Examples Of Well Written Large PHP Projects
To improve my PHP I've decided to study the source code of a medium to large open source PHP application. Can anyone recommend any applications that they would consider prime examples of well written PHP? The sort of attributes I'm interested in are basically just good software engineering such as clean internals, being well designed, good use of abstraction and also perhaps being well tested (things where there is a lot of room for improvement in my code ).

View Replies !
Searching For PDFLIB Working Examples
Can someone help me or point me to a place where I can find examples about PDFLIB that are written in PHP5.

The Examples that are provided with PDFLIB are not working. Missing fonts, images,...

View Replies !
Looking For Recent Visitor Code Examples/ideas
I am working on updating my content management page and wanted to overhaul my "recent visitor" code. The code that tracks who has been and is still on my pages.

I have not been able to find some examples I saw here a few months ago and was wondering if anyone could point me to some examples.

The more versatile the better.

View Replies !
File Upload :: Good Working Examples?
I want to make a file upload using php, but everytime i get an error
"File name not given". Any hints why this is happening? I used a sample
from php.net, and other php sites, but all samples are basically the
same. Maybe someone from you has a good and working example?

View Replies !
Any Good Examples (applications) Of Advanced PHP Code Out There?
I'm a perl programmer interested in a good application or two to
download and examine in order to learn from. Anyone know of any such
things?

View Replies !
Real Life Examples Of Mysql+session_set_save_handler
In my test setup using my own session handlers with session_set_save_handler and mysql, the session handler opens and close mysql connections.

But what if my page also requires some mysql queries? Should I open a new connection or use the already opened one (opened by the session handler)?

I have made it a good practice to close a connection after a query but if I do it with only connection open no session data will be written to my mysql table.

I have seen some scripts using persistent connections but are not sure what would be the best for a real world environment.

View Replies !
PHP/CRM Project
I'm embarking on a php crm project for my company. I've done a fair bit of
php programming.

I'm asking for advise on how to approach this. I want to do this project as
something I can sell afterwards.

Bascially I want to develop modules that talk to each other.

so index.php?module=whatever?action=whatever

Also I want to make an addon class so making an addon to this is rather
easy.

My main problem is, how do you make each module talk to each other. How do I
know what functions the clients module has?

How can I insert info into the client module from an addon class (on the
html page).

IE: I write the client module. Then someone writes a module that adds
pictures to clients. How can that clients module dislplay the picture
without knowledge of the addon class that the other person has made?

Make I make an array which passes the html from module to module and it
inserts it in?

View Replies !
New Project
I'm working on a new project of mine. The idea is that it becomes a webgame where you have the oppertunity to become the best hacker. I want to include a console, but I don't know how I can do that. It has to be in some sort of text area that displays the commands that have been processed and the results (just like a real console) and an inpute line beneath it.

That stuff is doable, however, how do I get it to echo the stuff the user puts in AND process the command? Anyone have an idea on that? Also I would like to call anyone who wants to help me with coding this project. Can't offer money in return, but I'll add you in the credits of course. You can e-mail me if you want in, or reply to this topic.

View Replies !
About This Project
For those unfamiliar with Yahoo's Stat Tracker, you log in and it will pull the stats for each player on your team. If they are in your lineup it will add/subtract the stats to your totals and if a player is not in your lineup it will not add/subtract the points. It will do the same for each Team in your league so that way you can always see what your Final Score is at any given time. Here is my thought on how it would work(if possible):

1.) Log in using Yahoo ID.
2.) Select Fantasy League ID
3.) Select Fantasy Team
4.) Load League/Team Info
5.) Grab the Stats(Real Time Updates if possible)
6.) Show Realtime Scores between all Team in the League.

Again, how hard of a task would this be? Where do I even begin to start this project?

View Replies !
Help With Project
It is a survivor football pool. There will be a list of all teams and the user has to pick one team each week, and can't pick the same team twice. So the next week when that user signs in the team he chose last week will be off the list. I have set up my webpage so that a user has to sign in and has his or her own user name.

View Replies !
PHP Dev Project
I'm working on first bigger php project with 3 other developers. It's our first project together, and we hope not the last. Question is how to organize. I saw that most developer communities use CVS as client-server tool for getting the latest version of software.

View Replies !
XML Documentation Project ???
I was wondering if anyone had heard of any projects for creating documentation in XML and outputting the results to HTML or PDf ...etc.

Basically I run the vLIB project and I need to document the classes, with full examples and specifications ...etc (phpDoc is not an option) and I'm fed up of just updating an HTML file.

I know of DocBook, but that's too complicated.

View Replies !
First PHP + Flash Project
Basically its going to be a chart of say 20 items that are ranked according to vote by registered users. So heres a few initial pointers i need help with to get the ball rolling:

1. The Flash page is loaded how do I initiate php script to search a mysql db to read a list of items containing the fields (id,name,votes,date_entered)

2. Would it be best to calculate ranking server side with script and then stream list to flash movie or calculate ranking via action-script.

3. When a user wishes to vote they enter their username and password in 2 text boxes (stored in another db) and then clicks on item to vote for..how would this data be sent to a script that would update the db accordingly.

4. After the database has been updated the flash movie needs to be then updated, am i better again doing this via another post to movie or with action-script?

These are initial thoughts and i'm sure there will be many more queries as I hopefully progress. I think alot of people will benefit from this project as there are not alot (or enough) tutorials on Flash interaction with db's via PHP.

View Replies !
Project File
Does PHP have project file?

View Replies !
How To Plan A Big Project?
I'm beginning a fairly large project (although I'm not giving away any details at this point ), but I'm curious how you all prepare for big projects.

I keep sitting down to begin writing the code, but I'm pretty overwhelmed and I'm not quite sure where to start. By the way, if the answer depends on the type of program developed, you can just let me know what you'd suggest for a project like a complex BB or CMS.

View Replies !
Pricing A Php Project
I've been asked to do my first php project, other than my personal
homepage. I'm an experienced developer, and after getting a couple of
books and doing some experimenting, I'm generating pdf reports from
data files and getting ready to add mysql support.

Are there any guidelines I can follow for pricing a php/web project?
Hourly doesn't seem right for *this* project, since I was still
learning php. But from here on out, I should be much faster. But how
do I charge for *this* one?

View Replies !
Is PhP/mySQL Right For This Project?
Note: This is different from previous post.

I am coming from a C/C++ background. I have a frontend (written in C#),
my backend was originally meant to be a J2EE application with
PostGreSQL. I am worried about support/maintenance issues going forward
since I no little J2EE (have some Java) - but am no longer able to rely
on the J2EE developer going forward.

I am now seriously considering using WAMP, but I am not yet terribly
convinced about inter-op issues between C# and PHP.

I also remain a bit sceptical about a possible lack of infrastructure
previously provided by the J2EE app server - i.e. scalability,
robustness, role based security etc. Are there any hard technical
documents I can refer to allay (at least) some of these fears?

I cannot seem to find any documentation referring to my type of setup -
i.e. a C# frontend and issuing requests (e.g. logon for user
authorization/verification etc). A search on Google is not bringing up
much. Any recommendation on books that will be helpful in instructing
how to build such a system (as well as mentioning any potential
pitfalls),

View Replies !
Project Price
I'm just looking for a little input on pricing.
Basics of project:

Inventory Management
Inventory showcasing
E- commerce

Normally, I have a guy who comes to me with a job and says "here's the job,
I'll give you $500 for it." I will usually take it because I just do this
on the side and am putting all the money I can into a house downpayment and
paying off credit cards. Anyway, I am tired of working and getting
undersold. Mainly because it's all his relatives or friends for the most
part. Because of this, I don't really know what to charge on my own.

I most likely won't be designing the site but just building the back end and
setting it up with a payment processor, and possibly setting up the server.

View Replies !
PHP Is An Eclipse-project Now
Support has been expressed by:
a.. Actuate
b.. IBM
c.. Intel
d.. SAP
e.. Zend

View Replies !
Project Planner
Im building a fairly complex MP3 shop which consists of way to many scripts to memorise. I was wondering if there is maybe any programs out there that help organise a PHP project. If such a thing doesnt exist, then atleast a guideline to follow for large projects.

View Replies !
Bug Tracker Project
I have a plan of developing a web based bug tracker system.

View Replies !
MWm's Project
I learned how to program in PHP, how to use a MySQL database and how to mix both. All this from 3dbuzz website's video lessons. After that, I started to make a blog from zero. After 4 hours of straight work I couldn't believe what I had already achieved! The next day I started to implement new features like login and logout and post remove etc., as I mention in each post I've been creating with all the news. You can check it at <snip> It's running on my machine with WAMP but that's ok.

Now, the big "problem" I have is not much as a problem, it's more like a "warning". When someone registers and then tries to login, after a failed login it echoes the error [created by me], but if the login is correct [both username and password], it echoes '"username" logged' but also echoes an error ["Warning"] from mysql that I quote here:

"Warning: Unknown: Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0"

Can't clean this warning or even fully understand it.

View Replies !
About To Start A New Project
I am about to start writing invoicing software for our company, and think PHP is the direction I should take. Should I look at using any other framework like Cake, Pear, or anything else to aid in the process?

View Replies !
PHP And CURL Project
I'm trying to build an application that will send an XML request, built from a search form, to a specific URL and then get the response to display it in the result page. I used cURL in order to send the XML file. The code I managed to write in this: Code:

<?php
$postfields = '
<OTA_RQ Target="Production" SortOrder="A" IsModify="false" Version="1.003" TimeStamp="2006-01-13T11:51:50+02:00" EchoToken="token" xmlns="http://www.x-piral.com">
<Source>
<RequestorID ID="22" Type="5"/>
</Source>
<SearchCriteria>
<Address>
<Name Code="NICK"/>
</Address>
</SearchCriteria>
</OTA_HotelAvailRQ>
...........

View Replies !
Project Mmorpg.
i have a group of people with me ready to code and design a mmorpg and need some help with a few things, i hope you can take the time to give me a nice explanation unlike tutorials.

I have started to code the game code first, the backend as you like. I really need a lesson on OOP i tried many different tutorials but they weren't good at explain and got me confused.

Anyways i made a new class called register and a function called checkpassword, this checks to see if the passwords are matching? What i would like to know is how i can code this? Code:

View Replies !
Website Project
The concept is not already out there, and basically anyone with knowledge in programming or web design and is interested in working on a project, for profit, might want to read on... Code:

View Replies !
Starting A Project
I am working on a project where there are 6 main pages. I need to create a system whereby certain employess can login to PHPMYADMIN and dynamically update page information and maybe even create pages. I want to know if it would be more efficient to make tables for each different sub-directory (which contains page id's and page names) or if it is more effective to build one table that somehow references these sub-directories.

View Replies !
Open Directory Project
Does anyone know how to use the Open Directory??
i'm at a total loss. Any help or info would be greatly appreciated.

View Replies !
Is There Any Good PIM GPL Project In PHP To Purchase?
I would like to substitute every M$_Outlook installation in my office
to a network/web based PIM. I think about PHP because I already know
the language and can optionally personalize the software to my needs.

Does anyone have some experience with GPL projects based on PHP which
could help me with this migration?

I am concentrating in the address book part of the PIM because it's
the mainly used function (in my office) of Outlook. I would like to
make my coworkers have a common tool/interface, without the need of
personal administration (centralized backup/repair/updates), and in
order to speed up the passage to a system with more integration with
other web tools (email, customer assistance, communication tracking,
etc ...). The system I am thinking about is (obviously) multiuser, has
some kind of attention to security and has to be GPL of course.

View Replies !
PHP Image Upload Project
Using PHP, I would like to upload images to a directory and add
description of the image. The script should add image path and
description to database for retrieval. Thorough example would be
greatly appreciated.

View Replies !
Xml Parsing For An Open Project
I'm coding an open project. The configuration is stored in an XML file.
Should I,

1. parse this XML file with the PHP XML parsing expat library

2. parse this XML file with an Pear package included

I'm not sure everybody running php 4.x have the XML expat library...
including a pear package for that could be a solution. What do you think?

View Replies !
How To Make Auto Run CD For PHP/ My SQL Project
How to make auto run CD for installation on Windows and Linux of PHP/My SQL project to any computer which already installed PHP & MySQL software.

View Replies !
PHP Online Project Management
Are there any good online php editor type / notes per each file project manager with user authentication?

View Replies !
Modular Base Project
I am working on an idea for a piece of software that will have two versions, a light version and a full version. Both versions will be based off of the same "core" of the code base. The only difference being that the light version does not have as many modules as the full version. I am trying to figure out how to properly write the core of the application with PHP5 (and maybe Smarty or Wasp) that will allow me include modules.

I have never writing an application that allows you to have modules. how to do that, or links to how-tos that may help guide me down the right path. One idea that may work would be to have all the modules in a database table with flags set to 0 for active and 1 for non-active. Then have the application do a query on the table and load the include files for the active modules. That to me does not seem like the idea plan though and could cause issues later on down the road with speed.

View Replies !
Upload File Project
My client wants a website that contains the following:

1/ Web Form to allow excel files to be uploaded. (Database??)

2/ These files to be viewable on another webpage in sections. e.g. file 1 to be under reports heading. file 2 to be under news heading, etc..

3/ Movement of files to 'Archives' section at end of each day.


How is this possible?? Any ideas on how I should go about this?

View Replies !
Search Engine Project
I'm starting a new project which as the title states is a search engine, this is something i only ever did before but the crawler went crazy and we had to shut it down, i'm ready to give it another go but i need help from people.

View Replies !
Flv.com Flash Video Project
I'm the owner of flv.com - FLV is the acronym of FLASH VIDEO, the most famous and used video format for video streaming on internet today, youtube dailymotions and all video portal are using FLV video format for your business.

I want to find 1 or 2 persons available to develop whit me a project of flash video portal (youtube and others) or a video-in-the-web support site instead of a video sharing network.
I only search a collaborator, I don't offer money, but all the gain generated from portal will come subdivided.

requirement:

php
mysql
flash
server administration

View Replies !
Project Control Systems
I've recently come up with a question about projects development. Do you use a project management environment like GForge or SourceForge?

If so, could you recommend me a system like the above mentioned ones. not exactly the same but with features like theirs. Open Source if possible.


View Replies !
Project Design Advice
I have a linux webserver with php/mysql/apache. Next, there are csv (comma separated values) log files on a user's WINDOWS machine (and not on the webserver) in a local directory of theirs like so: Code:

View Replies !
Linked Files In Project
How do I find all files (php, html, gif, jpg,) NOT used, starting from index.php, out of a project containing about 200 files without having to read every line of every file looking for includes or links etc.?

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved