NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page How'd They Do That? Simple PHP question

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 11-02-2005, 01:24 PM THREAD STARTER               #1 (permalink)
DomainSeeking.com
 
MCDomains's Avatar
Join Date: Sep 2005
Location: Boston
Posts: 2,446
MCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud of
 



Third World Education

How'd They Do That? Simple PHP question


One of the NP'ers has a website listing their domains :
http://www.expireddomainspy.com/

I want to setup a similar website and I noticed the use of PHP with the index.php and linking to all the domains & categories through that index.php.

Can someone guide me to a tutorial or book that will show me how to organize links and categories like this w/PHP?

Thank you@!
__________________
MCDomains is offline  
Old 11-02-2005, 02:53 PM   #2 (permalink)
NamePros Regular
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
Coolprogram has a spectacular aura aboutCoolprogram has a spectacular aura about
 



Maybe this'll help. www.w3schools.com www.php.net
-coolprogram
Coolprogram is offline  
Old 11-03-2005, 07:19 AM   #3 (permalink)
sm
NamePros Regular
Join Date: Oct 2005
Location: India
Posts: 608
sm is just really nicesm is just really nicesm is just really nicesm is just really nice
 



for php tutorials best is to go to sitepoint.com and proceed to the php section over there .... you'll find lots of articles. to get started read some elementary tutorials written by someone called "Kevin Yank".
basically the use of php in the example above is to simplify the management of categories and links and place them in a database so that you can then issue queries to the database programmatically via PHP scripts instead of digging into html every time you need to add, update, remove any of the links and/or categories....
sm is offline  
Old 11-03-2005, 11:53 AM   #4 (permalink)
Account Suspended
 
LeetPCUser's Avatar
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,710
LeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to beholdLeetPCUser is a splendid one to behold
 


AIDS/HIV
I have found the php book for dummies and other similar, step by step, books to be very helpful. The books are around $30 but you will learn from the most simple to advanced in weeks. Also, it is a quick reference if you ever need it in the future.

Hope this helps,
LeetPCUser is offline  
Old 11-03-2005, 04:30 PM   #5 (permalink)
sm
NamePros Regular
Join Date: Oct 2005
Location: India
Posts: 608
sm is just really nicesm is just really nicesm is just really nicesm is just really nice
 



i cant recommend sitepoint php books highly enough. They're absolute top notch. you can even download a few chapters and learn from them ... and if you like what you see, you can then make a purchase via paypal...
http://www.sitepoint.com/books/
sm is offline  
Old 11-03-2005, 04:41 PM   #6 (permalink)
RJ
NamePros Webmaster


 
RJ's Avatar
Join Date: Feb 2003
Posts: 12,930
RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness
 



Find Marrow Donors! Cystic Fibrosis Parkinson's Disease
Originally Posted by MCDomains
One of the NP'ers has a website listing their domains :
????: NamePros.com http://www.namepros.com/programming/137018-howd-they-do-simple-php-question.html
http://www.expireddomainspy.com/

I want to setup a similar website and I noticed the use of PHP with the index.php and linking to all the domains & categories through that index.php.

Can someone guide me to a tutorial or book that will show me how to organize links and categories like this w/PHP?

Thank you@!
The website you quoted as an example runs a script I authored called Domain Seller Pro

I'm not sure what the question is, but the PHP technique you're asking about is basic PHP. You can serve as much different content you want from a single PHP file.

For example, an index.php:

PHP Code:
<html>
<head>
<title>My site</title>
</head>
<body>
Welcome to my site!  <br><Br>

<?
if ($show=="categories") {

?>

<p>this is my category list</p>

<?
}
elseif (
$show =="contact") {
?>
<p>this is my contact page</p>
<? 
}
else { 
?>
This is my home page.  Because the show variable wasn't defined.  
<? ?>
</body>
</html>
If you visited index.php?show=categories it would show the category info. If you visited index.php?show=contact it would show the contact page, etc.

Hope this helps, but if not, please re-ask your question.

RJ
__________________
@DomainBuyer facebook
RJ is offline  
Old 11-03-2005, 09:19 PM   #7 (permalink)
NamePros Regular
 
brewmonkey's Avatar
Join Date: Oct 2005
Posts: 240
brewmonkey is a jewel in the roughbrewmonkey is a jewel in the roughbrewmonkey is a jewel in the rough
 



Look for a bookstore called "Foozles" (link below) as they sell remanded books and I picked up a bunch of books for like $5-10 each with $50+ list prices. Everything from ASP to Visual Basic and then some.

http://www.book-warehouse.com/
brewmonkey is offline  
Old 11-04-2005, 04:20 AM   #8 (permalink)
Account Closed
 
jmweb's Avatar
Join Date: Jan 2004
Location: Charlottetown
Posts: 1,033
jmweb is a glorious beacon of lightjmweb is a glorious beacon of lightjmweb is a glorious beacon of lightjmweb is a glorious beacon of lightjmweb is a glorious beacon of light
 



Originally Posted by -RJ-
The website you quoted as an example runs a script I authored called Domain Seller Pro

I'm not sure what the question is, but the PHP technique you're asking about is basic PHP. You can serve as much different content you want from a single PHP file.

For example, an index.php:

PHP Code:
<html>
<head>
<title>My site</title>
</head>
<body>
Welcome to my site!  <br><Br>

<?
if ($show=="categories") {

?>

<p>this is my category list</p>

<?
}
elseif (
$show =="contact") {
????: NamePros.com http://www.namepros.com/showthread.php?t=137018
?>
<p>this is my contact page</p>
<? 
}
else { 
?>
This is my home page.  Because the show variable wasn't defined.  
<? ?>
</body>
</html>
If you visited index.php?show=categories it would show the category info. If you visited index.php?show=contact it would show the contact page, etc.

Hope this helps, but if not, please re-ask your question.

RJ
Your missing the

PHP Code:
<?php
$show 
$_GET['show'];
?>
Part that should be before the if code.
jmweb is offline  
Old 11-04-2005, 08:22 AM   #9 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
Join Date: Aug 2004
Posts: 3,809
stscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud ofstscac has much to be proud of
 



Originally Posted by jmweb
Your missing the
????: NamePros.com http://www.namepros.com/showthread.php?t=137018

PHP Code:
<?php
$show 
$_GET['show'];
?>
Part that should be before the if code.
It doesn't have to be. PHP recognizes the variable from the address and automatically makes $show a variable in the script. It works similar to posting variables in POST.

-Steve
stscac is offline  
Old 11-04-2005, 11:40 PM THREAD STARTER               #10 (permalink)
DomainSeeking.com
 
MCDomains's Avatar
Join Date: Sep 2005
Location: Boston
Posts: 2,446
MCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud ofMCDomains has much to be proud of
 



Third World Education
Thank you for all the help everyone!
__________________
MCDomains is offline  
Old 11-04-2005, 11:55 PM   #11 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Originally Posted by stscac
It doesn't have to be. PHP recognizes the variable from the address and automatically makes $show a variable in the script. It works similar to posting variables in POST.

-Steve
Not with register_globals set to off which is php's default setting, and the recommended setting. You should always define the variable like jmweb said.
deadserious is offline  
Old 11-05-2005, 02:04 AM   #12 (permalink)
RJ
NamePros Webmaster


 
RJ's Avatar
Join Date: Feb 2003
Posts: 12,930
RJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatnessRJ Has achieved greatness
 



Find Marrow Donors! Cystic Fibrosis Parkinson's Disease
To get technical, I left out a lot. It was just an example.
__________________
@DomainBuyer facebook
RJ is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple PHP Tell-A-Friend Eric CODE 6 06-07-2006 04:26 AM
Simple (I think) Question devanium Programming 5 11-03-2005 11:55 AM
Simple PHP Form Issue buddybuddha Programming 3 10-30-2005 03:53 PM
Very simple HTML question Barrucadu Programming 3 10-29-2005 01:56 PM
Simple gz compression GeorgeB CODE 3 07-01-2005 11:56 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 06:55 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger