vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Two questions... (https://vborg.vbsupport.ru/showthread.php?t=44053)

Dean C 09-28-2002 07:08 PM

Two questions...
 
On some addresses on some sites i see that they dont have the php filename in the url such as this one:

http://www.rapmusic.com/rapmusic/con...ontent=artists

noticed its ?content=artists instead of filename.php?content=artists...

id like to know how to do that :D

____________________

Secondly on some download scripts (well most download scripts)...

when you click a link to download a file it is not the path to the file on your server

e.g. yourdomain.com/files/file.zip

its sometimes:

yourdomain.com/download.php?downloadid=1

How would i go about doing that?

_____________

Thanks in Advance

- miSt

Neo 09-28-2002 09:37 PM

whatever your default file name is set by your server.. name the PHP files that.. so default.php

then in the file just do this

if($content=="this") {

// stuff here

}

then

http://www.yourdomian.com/?content=this

should work.

Dean C 09-29-2002 10:10 AM

but $content is a variable... what do you assign the variable?

- miSt

Dean C 10-02-2002 03:45 PM

^bump

NTLDR 10-02-2002 03:49 PM

In the example there by Neo $content is assigned the value that it is given in the URL:

ie /?content=artists

Or showthread.php?action=showpost

Where $action is the variable.


All times are GMT. The time now is 03:17 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01000 seconds
  • Memory Usage 1,713KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (5)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete