CEMETECH
Leading The Way To The Future
Login [Register]
Username:
Password:
Autologin:

Don't have an account? Register now to chat, post, use our tools, and much more.
Latest Headlines
Online Users
There are 109 users online: 2 members, 81 guests and 26 bots.
Members: None.
Bots: Spinn3r (2), Magpie Crawler (3), Yahoo! Slurp (1), Googlebot (19), MSN/Bing (1).
RSS & Social Media
SAX
You must log in to view the SAX chat widget
    » Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
» View previous topic :: View next topic  
Author Message
Kllrnohj


/=\ PH34R |\/|3


Joined: 24 May 2005
Posts: 8189

Posted: 16 Jul 2006 07:50:39 pm    Post subject:

KermMartian wrote:
Kllrnohj: I'm saying that if you have, for example, a MySQL insertion vulnerability, it could theoretically be used for something like a stack overflow attack, couldn't it?


Not really, as the data is handled at a much higher level. There is a reason the only programs to suffer from buffer (stack) overflows are C programs Wink Now, if there is a flaw in MySQL that can be triggered externally, then it could theoretically be possible - depending, of course, on the flaw Smile
_________________
There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup)
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55741
Location: Earth, Sol, Milky Way

Posted: 19 Jul 2006 08:04:27 am    Post subject:

And there are indeed such flaws in MySQL, imho. Think of this - there are certain types of SQL tables (heap?) that are stored in RAM, not on the HD. These could theoretically be inserted to until your memory is filled and your computer slows down with massive amounts of swapping
_________________


Back to top
Kllrnohj


/=\ PH34R |\/|3


Joined: 24 May 2005
Posts: 8189

Posted: 19 Jul 2006 10:28:21 am    Post subject:

KermMartian wrote:
And there are indeed such flaws in MySQL, imho. Think of this - there are certain types of SQL tables (heap?) that are stored in RAM, not on the HD. These could theoretically be inserted to until your memory is filled and your computer slows down with massive amounts of swapping


The OS would return an insufficient memory error to the malloc() call before that happens, or it should anyway Wink
_________________
There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup)
Back to top
lafferjm


Calculator Deity


Joined: 14 Mar 2006
Posts: 1528
Location: at my house

Posted: 25 Jul 2006 11:59:57 am    Post subject:

this is not really about php but an html question. i am using a table to output the links on the top of my site and the text is to small and i was wondering how i could change the size of the links text.
Back to top
tifreak8x


Guru


Joined: 16 Mar 2005
Posts: 9060
Location: Sol System

Posted: 25 Jul 2006 12:03:02 pm    Post subject:

Uh, <font size="#">Text</font> usually works.

If you want some easy, basic html stuff, check the source on my page, http://tifreakware.calcgames.org
_________________
Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Look here for Assembly Resources.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55741
Location: Earth, Sol, Milky Way

Posted: 25 Jul 2006 12:39:27 pm    Post subject:

That's unideal though. Since <font> is a deprecated tag, it's better to use CSS. In your stylesheet, add:

.smallfont { font-size: 0.75em; }
.regfont { font-size: 1.00em; }
.bigfont { font-size: 1.25em;}
.hugefont {font-size: 1.67em; }

Then in your html, just use:

<span class="bigfont">Here's some big text!</span><br />
<span class="smallfont">But this is tiny.</span>
_________________


Back to top
tifreak8x


Guru


Joined: 16 Mar 2005
Posts: 9060
Location: Sol System

Posted: 25 Jul 2006 12:42:04 pm    Post subject:

well, you know more about that than I do. I only know some of the basic stuff of html.
_________________
Projects: AOD Series: 70% | FFME: 80% | Pokemon: 18% | RPGSK: 60% | Star Trek: 70% | Star Trek 83+: 40% | TI-City: 5%

Look here for Assembly Resources.
Back to top
lafferjm


Calculator Deity


Joined: 14 Mar 2006
Posts: 1528
Location: at my house

Posted: 25 Jul 2006 12:44:02 pm    Post subject:

still didnt work. i put it before the table tag. is that why or do i have to do it individually for each link.
Back to top
Insanity


Power User


Joined: 11 Jul 2006
Posts: 324
Location: In my head.

Posted: 25 Jul 2006 12:45:10 pm    Post subject:


Code:
.table{
    font-size: 14px;
}
Back to top
lafferjm


Calculator Deity


Joined: 14 Mar 2006
Posts: 1528
Location: at my house

Posted: 25 Jul 2006 12:46:49 pm    Post subject:

i got it to work. i forgot to add something in the css with kerms way.
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55741
Location: Earth, Sol, Milky Way

Posted: 25 Jul 2006 12:53:55 pm    Post subject:

pyro_xp2k wrote:

Code:
.table{
    font-size: 14px;
}
It's generally better to use relative fonts in a case like this, especially if the site is being viewed on a nonstandard display such as a PDA (320x240) or a huge display (1600x1200). It's better to have it scale as a percentage of the base font size.
_________________


Back to top
lafferjm


Calculator Deity


Joined: 14 Mar 2006
Posts: 1528
Location: at my house

Posted: 20 Sep 2006 03:38:33 pm    Post subject:

is there any real difference between the echo(); and print(); commands
Back to top
jpez


Underboss of Cemetech


Joined: 04 May 2005
Posts: 2774
Location: Seattle

Posted: 20 Sep 2006 04:19:38 pm    Post subject:

I don't really use print, and I don't know anyone who does. print_r is sometimes useful.
_________________
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55741
Location: Earth, Sol, Milky Way

Posted: 20 Sep 2006 04:33:45 pm    Post subject:

No real difference. echo 'stuff'; has been shown to be the fastest of the various types of echo and print, though.
_________________


Back to top
lafferjm


Calculator Deity


Joined: 14 Mar 2006
Posts: 1528
Location: at my house

Posted: 20 Sep 2006 07:08:56 pm    Post subject:

alright thanks. i didnt think their was much but just wanted to check
Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55741
Location: Earth, Sol, Milky Way

Posted: 21 Sep 2006 07:45:55 am    Post subject:

Here's a good explanation of why echo is slightly faster:
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
_________________


Back to top
lafferjm


Calculator Deity


Joined: 14 Mar 2006
Posts: 1528
Location: at my house

Posted: 19 Oct 2006 05:43:46 pm    Post subject:

in php are variables global and if i make a connection to mysql or start a session do i have to start one on each seperate page or only on one page.
_________________

Back to top
KermMartian


Site Admin


Joined: 14 Mar 2005
Posts: 55741
Location: Earth, Sol, Milky Way

Posted: 19 Oct 2006 05:47:57 pm    Post subject:

Variables carry the same scope as with C and C++. Variables are local within functions, but you can globalize with the command: global $variable in any function.
_________________


Back to top
Kllrnohj


/=\ PH34R |\/|3


Joined: 24 May 2005
Posts: 8189

Posted: 19 Oct 2006 06:27:39 pm    Post subject:

lafferjm wrote:
if i make a connection to mysql or start a session do i have to start one on each seperate page or only on one page.


Uh... PHP isn't persistant, meaning as far as it knows, ever page/connection/user is a completely seperate entity. You cannot 'share' variables or information over seperate pages. Once the current PHP script stops executing (as in the user has finished loading the page), everything is forgotten
_________________
There are only two kinds of programming languages: those people always bitch about and those nobody uses. (Bjarne Stroustrup)
Back to top
rivereye


Future Admin


Joined: 16 Mar 2005
Posts: 5450
Location: Out Fishing

Posted: 19 Oct 2006 06:43:12 pm    Post subject:

true, you have to either store vars in a session/cookie, get/post var, a text file, or a database.
_________________
I am the eye of the river
>(<')


Back to top
Display posts from previous:   
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
    » Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8  Next
» View previous topic :: View next topic  
Page 6 of 8 » All times are GMT - 5 Hours

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© Copyright 2000-2013 Cemetech & Kerm Martian :: Page Execution Time: 0.036578 seconds.