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 PHP question

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

Advanced Search
5 members in live chat ~  


Closed Thread
 
LinkBack Thread Tools
Old 12-20-2004, 05:05 AM THREAD STARTER               #1 (permalink)
New Member
Join Date: Dec 2004
Posts: 3
bena8705 is an unknown quantity at this point
 



PHP question


Hi, i've noticed that some sights sem to have an extension after the filename, for example on the page i'm on now the URL reads

Code:
.../newthread.php?do=newthread&f=46
What does that mean? I think that do is a variable and newthread is the argument or something?, The same with F?

Basicaly i'm creating a website and want a page that i can post tutorials on, i want to be able to sort by tutorial type and be able to display only certain tutorials etc. How would i go about doing this? I do not want to use a premade script.
bena8705 is offline  
Old 12-20-2004, 06:05 AM   #2 (permalink)
NamePros Regular
Join Date: Oct 2003
Location: Sweden
Posts: 395
cerebus has a spectacular aura aboutcerebus has a spectacular aura about
 


Animal Rescue Wildlife Animal Cruelty
The script/file name is everything before the question mark.The query string is everything after the ?, one argument would be each bit of the query string separated by &. each argument here consists of a variable name, assignment operator (=) and the value. The variables are parsed by the script newthread.php once a request is sent, to fetch the appropiate info from appropiate sources.

As for creating a tutorials listing application I have to recommend that you go through a few beginner tutorials on PHP and web applications before getting specific.
cerebus is offline  
Old 12-22-2004, 07:46 PM   #3 (permalink)
NamePros Member
 
yngexec's Avatar
Join Date: Dec 2004
Location: Cleveland, Ohio
Posts: 74
yngexec is on a distinguished road
 



Notice Read Up


First off, I mean to convey no crudeness, as a lot of people get defensive when you tell them this.

I would recommend reading as many books and articles as you can get your hands on.

I highly recommend the "...In Easy Steps" series from Mike McGrath available on Barnes & Noble here."...In Easy Steps" series from Mike McGrath available on Barnes & Noble here.

Best of luck to you!
yngexec is offline  
Old 12-23-2004, 03:06 AM   #4 (permalink)
Senior Member
Join Date: May 2003
Posts: 2,187
adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough
 


Breast Cancer
Originally Posted by bena8705
Hi, i've noticed that some sights sem to have an extension after the filename, for example on the page i'm on now the URL reads

Code:
.../newthread.php?do=newthread&f=46
What does that mean? I think that do is a variable and newthread is the argument or something?, The same with F?

Basicaly i'm creating a website and want a page that i can post tutorials on, i want to be able to sort by tutorial type and be able to display only certain tutorials etc. How would i go about doing this? I do not want to use a premade script.
basically each word before = is a variable like cerebus but becarfull with this though if proper security checks are not put in place with this it can cause MAJOR security holes in your code.
adam_uk is offline  
Old 12-23-2004, 07:28 AM   #5 (permalink)
Senior Member
Join Date: Aug 2002
Posts: 1,255
deadserious has a spectacular aura aboutdeadserious has a spectacular aura about
 



Here's a bit of an explanation of how it works. The tutorial is a bit old and could be updated, but it should explain the very basics of using the query string with PHP.

http://namepros.com/showthread.php?t=14664
deadserious is offline  
Closed Thread


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


 
All times are GMT -7. The time now is 02:31 PM.

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