Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 Programming Discussions
  #1  
Old 08-03-2002, 03:36 AM
Radar Radar is offline
 
Join Date: Jul 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Newbie with dumb questions

I'm an administrator in a friend's Vbulletin forum but I'm totally ignorant about PHP and MySql and I'm not inclined or have the time to learn them.
I hope someone can answer these questions in a way I can understand.
I'm good with HTML, graphics and stuff like that but this got me confussed.
First, how to access the mysql DB for example with ftp or telnet, can it be done?
Second, when some files are deleted from the forums it looks as if they still remain in the DB, how can I delete them from there?
Third: When I look at the page-source for index.html in Netscape or explorer I see that it's composed of HTML tags and the path is something like user/forums/index.php$s= and if using ftp I look at index.php is not the same file, how can I download the index.php$s= so I can edit it?
Fourth: How can the apache-access.log and apache-error.log and other logs in the log directory can be deleted or edited to reduce their size? in 2 weeks they are now over 150MB total, I want to save the space and I couldn't do it with FTP or telnet.
OK, don't hit me too hard, I'm not a hacker and don't know anything about scripting, so if you should give me a php script or command, please tell me exactly how to use it, PLEASE!
THANKS!
Reply With Quote
  #2  
Old 08-03-2002, 06:08 AM
mr e's Avatar
mr e mr e is offline
 
Join Date: Dec 2001
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

#3 -- if you do View/Source, your seeing the HTML equivelent of that page, you would have to get the index.php file via FTP, so you would do ftp.YOURSITE.com, then it would ask you for a name and a pass, then u enter that and find the folder that there in and usually drag and drop to ur desktop or right click and do Save to Folder, but that's with IE 6
Reply With Quote
  #3  
Old 08-03-2002, 07:01 PM
Radar Radar is offline
 
Join Date: Jul 2002
Posts: 4
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hehe, thanks mre, a lesson on ftp.
I've done that, even with telnet , maybe I didn't explain myself:
If I do the view-source thing I'm looking at the html format of index.php and the path is www.mysite.com/forums/index.php$s=

meaning that the file is in /forums/index.php, right? wrong, I look at the index.php in /forums/ (with ftp ) and is not the same file that I can see in view-source, is not a html file but a php file, they are totally different files even so the path point to the same file name.
My guess is that the index.php file that I find in /forums/index.php is a pointer to the index.php stored in mysql, I don't know.
thanks!
Reply With Quote
  #4  
Old 08-03-2002, 10:44 PM
mr e's Avatar
mr e mr e is offline
 
Join Date: Dec 2001
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok it's confusing to explain, but you ARE actually viewing the index.php file, but when it hits the browser it displays it in HTML so when you do View/Source your only seeing what HTML is being out put by the PHP file...did that make sense?
Reply With Quote
  #5  
Old 08-03-2002, 10:50 PM
Jalrock Jalrock is offline
 
Join Date: Dec 2001
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Or you can say:

the index.php file is pulling info from the database and outputing the html code so your browser can display it.

Nearly all of the HTML you see when viewing source is pulled from templates viewable / editable from the admin panel.
Reply With Quote
  #6  
Old 08-03-2002, 11:16 PM
mr e's Avatar
mr e mr e is offline
 
Join Date: Dec 2001
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol or ya you could explain it the easy way :P
Reply With Quote
Reply

Thread Tools
Display Modes

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

Forum Jump


All times are GMT. The time now is 01:25 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06991 seconds
  • Memory Usage 2,197KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (6)post_thanks_box
  • (6)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (6)post_thanks_postbit_info
  • (6)postbit
  • (6)postbit_onlinestatus
  • (6)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete