Home
Forums
Articles
Glossary
Awards
Register
Rules
Members
Search
Today's Posts
Mark Forums Read
Account Login
User Name
Password
Remember Me?
Latest Articles
The basic usage of PHPTAL, a XML/XHTML template library for PHP
by
awuehr
on
11-10-2008
in
Tips & Tricks
Vulnerable methods and the areas they are commonly trusted in.
by
Village Idiot
on
11-04-2008
in
Classes & Objects
Simple way to protect a form from bot
by
codefreek
on
10-23-2008
in
Basic
The Basics On: How Session Stealing Works
by
wiifanatic
on
09-12-2008
in
Security & Permissions
How to keep your forms from double posting data
by
drewbee
on
07-03-2008
in
Tips & Tricks
IRC Channel
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
Wired Flame
ClientExec
Handy PHP
PHP Kitchen
PHP Tutorials
Insane Visions
Associates
TalkPHP
>
Search Forums
»
Search Results
Page 1 of 3
1
2
3
>
Page 1 of 3
1
2
3
>
Showing results 1 to 25 of 53
Search took
0.05
seconds.
Search:
Posts Made By:
Gibou
Forum:
General
11-02-2010, 09:45 AM
Replies:
5
class?
Views:
480
Posted By
Gibou
I would have done the same as Tony. A class with...
I would have done the same as Tony.
A class with methods "Query", "Where", "Limit", etc... + a property "Results" pointing on a private collection storing the results of the query.
The method "Query"...
Forum:
Advanced PHP Programming
02-23-2009, 10:38 AM
Replies:
5
php class structure
Views:
3,093
Posted By
Gibou
Don't extend, no. The class Page is not a...
Don't extend, no. The class Page is not a container of WordDocument.
You add pages like this:
In your "WordDocument" class, you have a addPage() method:
<?php
private Array pages;
public function...
Forum:
The Lounge
02-23-2009, 08:30 AM
Replies:
2
Project manager
Views:
667
Posted By
Gibou
I've thought about github but I'm not sure that...
I've thought about github but I'm not sure that my boss is ready to use git, he is windows-only user and the best git client for windows I know is in console.
I'm going to propose it.
Thanks for...
Forum:
Advanced PHP Programming
02-20-2009, 10:52 AM
Replies:
5
php class structure
Views:
3,093
Posted By
Gibou
To me, I would design it like that: - A class...
To me, I would design it like that:
- A class WordDocument
|_ title
|_ collection of 'Page'
|_ ...
- A class Page
|_ id
|_ collection of 'Paragraph'
Forum:
The Lounge
02-20-2009, 10:32 AM
Replies:
2
Project manager
Views:
667
Posted By
Gibou
Project manager
Hello everybody,
Long time no see!
I would like to know if you know a good project manager with svn browser included I could use on a shared server.
I've tried Trac, Redmine, Retrospectiva and no...
Forum:
Advanced PHP Programming
07-10-2008, 10:38 AM
Replies:
4
ldap server
Views:
1,318
Posted By
Gibou
No, in fact, it was only a syntax error. It's...
No, in fact, it was only a syntax error. It's good for me since a moment :-)
Thank you
Forum:
Advanced PHP Programming
05-03-2008, 08:36 PM
Replies:
10
Passing multiple arguments to a function via one variable.
Views:
5,771
Posted By
Gibou
Excuse me if I haven't well understood but why...
Excuse me if I haven't well understood but why don't you use something like that:
<?php
$pPointer=new Object(fung_get_args());
?>
And in the Object constructor, you parse the array with a generic...
Forum:
Advanced PHP Programming
05-03-2008, 08:02 PM
Replies:
5
unset and __destruct
Views:
1,764
Posted By
Gibou
mmmm, I don't think so. I think it's the same way...
mmmm, I don't think so.
I think it's the same way as the C or C++ dynamic allocation.
The object is the link between the user and the allocated memory used by dynamic attributes of the class...
Forum:
Advanced PHP Programming
05-03-2008, 07:27 PM
Replies:
5
unset and __destruct
Views:
1,764
Posted By
Gibou
unset and __destruct
Hi !
I'm used to unset my local variables but I'm wondering if it is really useful.
For instance, in this case:
<?php
function toto()
{
Forum:
Advanced PHP Programming
04-29-2008, 06:56 PM
Replies:
4
ldap server
Views:
1,318
Posted By
Gibou
I use OpenLDAP. I've succeed to perform...
I use OpenLDAP.
I've succeed to perform researches in the ldap serv but still not to add.
Forum:
Advanced PHP Programming
04-16-2008, 12:50 PM
Replies:
4
ldap server
Views:
1,318
Posted By
Gibou
ldap server
Hi !
I have a question concerning the interaction between php and a ldap server.
supposing my server has the following configuration:
login: admin
pwd: adminpwd
The server is in my own machine so...
Forum:
Advanced PHP Programming
03-30-2008, 09:55 AM
Replies:
5
kill only one session key and keep others
Views:
1,446
Posted By
Gibou
Thank you Nor, it was exactly my problem ! :)
Thank you Nor, it was exactly my problem ! :)
Forum:
Advanced PHP Programming
03-30-2008, 01:10 AM
Replies:
5
kill only one session key and keep others
Views:
1,446
Posted By
Gibou
kill only one session key and keep others
Hi !
I currently use two sessions in my PHP5 API.
$_SESSION["user"] which contains the serialized instance of my "User" class. Allowing me to know who is the current visitor.
$_SESSION["tpl"] which...
Forum:
Advanced PHP Programming
03-24-2008, 01:25 PM
Replies:
11
array to object
Views:
4,810
Posted By
Gibou
How, yes, thank you Salathe, it's exactly what I...
How, yes, thank you Salathe, it's exactly what I was looking for :)
PS: I can't do that because my foreach loop is in the constructor.
If I write $this = (object)$params, php write this:
Fatal...
Forum:
Advanced PHP Programming
03-24-2008, 11:10 AM
Replies:
11
array to object
Views:
4,810
Posted By
Gibou
Oh yes ! It works ! Strange... When you test...
Oh yes ! It works !
Strange... When you test isset($_GET["toto"]) with page.php?toto, it works so I was sure it was the same in this case.
Thank you Alan !
Forum:
Advanced PHP Programming
03-24-2008, 10:17 AM
Replies:
11
array to object
Views:
4,810
Posted By
Gibou
__get and __set make easy access to private...
__get and __set make easy access to private members whithout having to declare as many getters and setters as attributes. My problem is not an access one because this foreach loop will be used ONLY...
Forum:
Advanced PHP Programming
03-24-2008, 03:42 AM
Replies:
11
array to object
Views:
4,810
Posted By
Gibou
ah yes I know, I've forgotten to say that the...
ah yes I know, I've forgotten to say that the foreach loop is in the constructor of the class containing the attributes.
Forum:
Advanced PHP Programming
03-24-2008, 01:31 AM
Replies:
11
array to object
Views:
4,810
Posted By
Gibou
array to object
Hi !
I would like to quickly transform an array into an object and whatever the keys presents into the array. I want it dynamic and not static, key by key.
I've thought to this...
Forum:
General
03-19-2008, 11:57 PM
Replies:
12
Assigning variables on one line
Views:
928
Posted By
Gibou
Mmmm, can I know in which use case you need to do...
Mmmm, can I know in which use case you need to do that ??
Forum:
General
03-17-2008, 08:03 AM
Replies:
2
Undefined Index
Views:
779
Posted By
Gibou
Why don't you test the availability of your vars...
Why don't you test the availability of your vars before using them ?
Just after the form, superglobal vars like $_POST don't exist yet.
Forum:
The Lounge
02-16-2008, 01:49 PM
Replies:
3
Php 5.3
Views:
688
Posted By
Gibou
Thanks for sharing, Orc. Indeed, interesting....
Thanks for sharing, Orc.
Indeed, interesting. I've never used namespaces and it seems that they are useful just for not being limited by the names of classes. Have I missed something ?
Forum:
Advanced PHP Programming
02-12-2008, 01:15 PM
Replies:
2
little help figuring out some code.
Views:
884
Posted By
Gibou
First, your website is a good idea. Thank you...
First, your website is a good idea. Thank you :)
Now:
I don't understand why, to add a navbar, you begin by closing an ul and a div tag.
Then, can you paste here the whole class ? (Just the...
Forum:
Advanced PHP Programming
02-11-2008, 08:41 PM
Replies:
10
Pagination class help..
Views:
903
Posted By
Gibou
Yes, indeed, it's a better way than using the...
Yes, indeed, it's a better way than using the currentSpan attribute.
PS: I didn't know the "continue" in a loop, interesting :)
PS2 for Tanax, i just see it: <strong> mustn't be used to bold a...
Forum:
Advanced PHP Programming
02-11-2008, 08:35 PM
Replies:
10
Pagination class help..
Views:
903
Posted By
Gibou
If you have 3 pages, and the current is the...
If you have 3 pages, and the current is the first:
the returned array will be: 1|..|3
but we should want: 1|2|3
To change this, we can change for that:
There are 1 or 2 conditions to add but with...
Forum:
Advanced PHP Programming
02-11-2008, 08:11 PM
Replies:
10
Pagination class help..
Views:
903
Posted By
Gibou
If I have well understood your class, the...
If I have well understood your class, the getPages() method returns an array with the pages to display.
In this case, the array must return
First .. 4 5 6 7 8 .. Last
So, must return this array...
Showing results 1 to 25 of 53
Page 1 of 3
1
2
3
>
All times are GMT. The time now is
06:17 AM
.
Contact Us
-
TalkPHP - PHP Community
-
Archive
-
Top
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