[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 11-02-2005, 12:24 PM   #1 (permalink)
DomainSeeking.com
 
MCDomains's Avatar
 
Join Date: Sep 2005
Location: Boston
Posts: 2,368
56.70 NP$ (Donate)

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 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, 01:53 PM   #2 (permalink)
NamePros Regular
 
Join Date: Jul 2005
Location: U.S.A.
Posts: 655
0.00 NP$ (Donate)

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, 06:19 AM   #3 (permalink)
sm
NamePros Regular
 
Join Date: Oct 2005
Location: India
Posts: 608
138.45 NP$ (Donate)

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, 10:53 AM   #4 (permalink)
Account Suspended
 
LeetPCUser's Avatar
 
Join Date: May 2005
Location: Whitewater, WI
Posts: 3,714
17.55 NP$ (Donate)

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, 03:30 PM   #5 (permalink)
sm
NamePros Regular
 
Join Date: Oct 2005
Location: India
Posts: 608
138.45 NP$ (Donate)

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, 03:41 PM   #6 (permalink)
RJ
NamePros Founder

Administrator

 
Join Date: Feb 2003
Location: Bay Area, CA
Posts: 13,173
104,201.68 NP$ (Donate)

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
Quote:
Originally Posted by MCDomains
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@!
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
RJ is offline  
Old 11-03-2005, 08:19 PM   #7 (permalink)
NamePros Regular
 
brewmonkey's Avatar
 
Join Date: Oct 2005
Posts: 240
324.55 NP$ (Donate)

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, 03:20 AM   #8 (permalink)
Account Closed
 
jmweb's Avatar
 
Join Date: Jan 2004
Location: Charlottetown
Posts: 1,033
375.14 NP$ (Donate)

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


Quote:
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") {
?>
<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, 07:22 AM   #9 (permalink)
A Wealth of Knowledge
 
stscac's Avatar
 
Join Date: Aug 2004
Posts: 3,794
47.60 NP$ (Donate)

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


Quote:
Originally Posted by jmweb
Your missing the

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, 10:40 PM   #10 (permalink)
DomainSeeking.com
 
MCDomains's Avatar
 
Join Date: Sep 2005
Location: Boston
Posts: 2,368
56.70 NP$ (Donate)

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 of

Third World Education
Thank you for all the help everyone!
__________________
MCDomains is offline  
Old 11-04-2005, 10:55 PM   #11 (permalink)
Senior Member
 
Join Date: Aug 2002
Posts: 1,300
2.85 NP$ (Donate)

deadserious has a spectacular aura aboutdeadserious has a spectacular aura about


Quote:
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, 01:04 AM   #12 (permalink)
RJ
NamePros Founder

Administrator

 
Join Date: Feb 2003
Location: Bay Area, CA
Posts: 13,173
104,201.68 NP$ (Donate)

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
To get technical, I left out a lot. It was just an example.
RJ is offline  
Closed Thread


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 07:07 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85