TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Showing results 1 to 21 of 21
Search took 0.00 seconds.
Search: Posts Made By: Parvus
Forum: XHTML, HTML, CSS 02-28-2010, 12:49 PM
Replies: 8
Views: 707
Posted By Parvus
If your width is fixed (always stays the same)...

If your width is fixed (always stays the same) than you could center everything and use a normal background color.
If you want your width to adept(change on resolution) than you should use width %...
Forum: General 02-02-2010, 03:10 PM
Replies: 1
Views: 595
Posted By Parvus
And then an idea came .... I could just do a...

And then an idea came .... I could just do a search for '/[url=(.*?)(javascript?)(.*?)]/' and replace it with '<a href=$1.$3' or something like that.
=')
Forum: General 02-01-2010, 08:09 PM
Replies: 1
Views: 595
Posted By Parvus
preg_replace within preg_replace

Helly all,

I'll try to explain my question as short as possible.
I have [ url=javascript:document.location='http://www.google.com']test[/ url]

and I simply replace the [url part with the normal <a...
Forum: General 01-22-2010, 03:47 PM
Replies: 8
Views: 705
Posted By Parvus
Info link: *Click me*...

Info link: *Click me* (http://php.net/manual/en/function.preg-match.php)

Here you can find: 'The "i" after the pattern delimiter indicates a case-insensitive search'
Forum: General 01-17-2010, 07:18 PM
Replies: 4
Views: 760
Posted By Parvus
And the question is ? the problem is ? Offcourse...

And the question is ? the problem is ?
Offcourse it will use more and more, but so what ?

The chance for the computer to be unable to handle your users putting a text on an image is so incredibly...
Forum: Absolute Beginners 01-17-2010, 04:21 PM
Replies: 2
Views: 850
Posted By Parvus
Well, your code isn't really great. Your...

Well, your code isn't really great.

Your showHitCounter function prints a div but nothing in the div.
The function never counts the amount of lines in the file and never prints this, so that you see...
Forum: General 01-15-2010, 01:59 PM
Replies: 4
Views: 1,104
Posted By Parvus
I've been sitting with this as well and the...

I've been sitting with this as well and the choice really is yours to make.

For benchmarks and extra info you might want to visit this link: *Click me*...
Forum: General 01-13-2010, 09:08 PM
Replies: 3
Views: 670
Posted By Parvus
Do you mean like this ? <? $str = "Yeah, but on...

Do you mean like this ?

<?

$str = "Yeah, but on my website, before I realized that converting quotes, etc, to entities was a bad idea, I already had a lot of stuff put into a database...Also,...
Forum: General 01-10-2010, 07:52 PM
Replies: 5
Views: 685
Posted By Parvus
Just a quick thought aside of the problem, why do...

Just a quick thought aside of the problem, why do you need $_SESSION if you set and read something on the same page ?
Since you could do this with any variable and $_SESSION is normally used to read...
Forum: Advanced PHP Programming 01-10-2010, 09:21 AM
Replies: 31
Views: 2,099
Posted By Parvus
You could do a check on it, just like the...

You could do a check on it, just like the previous page check on the first page.


$maxpage = count(file($file)); // Get the nr of lines in the file
if ($nextpage < $maxpage){
echo '<a...
Forum: Advanced PHP Programming 01-09-2010, 12:09 PM
Replies: 5
Views: 780
Posted By Parvus
If you can access the admin page without logging...

If you can access the admin page without logging in, it means that your not validating if the user is logged in or not.

You have to put a check around the whole admin page and not for 1 line of...
Forum: Advanced PHP Programming 01-09-2010, 10:38 AM
Replies: 5
Views: 780
Posted By Parvus
if($_SESSION['login']=='true') You are checking...

if($_SESSION['login']=='true')

You are checking if the login session is true, but apparently there is no session with a name like that.
You could put a check before that line with:...
Forum: General 01-06-2010, 09:43 PM
Replies: 5
Views: 685
Posted By Parvus
The idea that pops up in my head is that you...

The idea that pops up in my head is that you might be using a construction like this:

Home page: $_SESSION['breadcrumb'] = 'Home';

Page 2: Read in the session (which is Home) and echo it and than...
Forum: General 01-04-2010, 06:39 PM
Replies: 3
Views: 1,573
Posted By Parvus
First question: Why couldn't you use the plugin...

First question: Why couldn't you use the plugin ?
Second: Did you try to find out what 'wp/wp-settings.php on line 268' says and why it is a undefined method ?
Forum: Advanced PHP Programming 01-04-2010, 05:14 AM
Replies: 31
Views: 2,099
Posted By Parvus
I'm guessing the 1000 in Salathe's post means as...

I'm guessing the 1000 in Salathe's post means as an example for the maximum of what your page number could be.
*$_GET['page'] <= max page number and $_GET['page'] >= min page number*

About all the...
Forum: Advanced PHP Programming 01-03-2010, 12:10 PM
Replies: 31
Views: 2,099
Posted By Parvus
Seeing they use PHP 5.1.6 (after a long long page...

Seeing they use PHP 5.1.6 (after a long long page load o_O)
You could ask them if they could upgrade to 5.2 (since changing your host isn't a option I guess =P) or you will have to make your own...
Forum: Advanced PHP Programming 12-31-2009, 09:34 AM
Replies: 1
Views: 862
Posted By Parvus
Ever attempted to search before asking another...

Ever attempted to search before asking another question about php ?

Searching this site gave me: Linky_Linky (http://www.talkphp.com/advanced-php-programming/2039-import-msn-contacts.html)
Searching...
Forum: General 12-29-2009, 11:04 PM
Replies: 5
Views: 587
Posted By Parvus
" www.domain.com/jay/admin/viewUsers it will call...

" www.domain.com/jay/admin/viewUsers it will call viewUsers.php "

The first question I would ask is, to what do you want to redirect exactly ?
www.domain.com/jay/admin/viewUsers ->...
Forum: General 12-29-2009, 09:56 PM
Replies: 3
Views: 616
Posted By Parvus
That would indeed be a simple solution, ty...

That would indeed be a simple solution, ty delayedinsanity =]
Forum: General 12-29-2009, 08:59 PM
Replies: 3
Views: 616
Posted By Parvus
vB style url's/navbar, how ?

Hi all,

I'm having a question that is driving me kinda nuts right now.
I really like the way vB handles the url's and makes the navbar and I would like to be able to make the same sort of url's and...
Forum: Show Off 08-17-2008, 05:39 PM
Replies: 6
Views: 903
Posted By Parvus
It looks AWESOME =O <3 the orange and it looks...

It looks AWESOME =O

<3 the orange and it looks great with the white and grey (Y)
The use of div's is also a +1 to the site.
Little tip: A favicon :)
Showing results 1 to 21 of 21

 

All times are GMT. The time now is 12:50 PM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design