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 12 of 12
Search took 0.05 seconds.
Search: Posts Made By: Ultimatum
Forum: General 04-09-2009, 09:37 AM
Replies: 12
Views: 428
Posted By Ultimatum
I have a few comments on your code. while ($file...

I have a few comments on your code.
while ($file = readdir($handler)) {
because readdir returns a bool, you can check if readdir succeeds or not
while (false !== ($file = readdir($handler))) {

And...
Forum: Advanced PHP Programming 03-23-2009, 12:37 PM
Replies: 2
Views: 3,775
Posted By Ultimatum
I tried it, but I already have a namespace, so...

I tried it, but I already have a namespace, so why do I need to create a new one?
This is the current code I have:
$oImport = new DOMDocument;
$oImport->formatOutput =...
Forum: Advanced PHP Programming 03-23-2009, 09:18 AM
Replies: 2
Views: 3,775
Posted By Ultimatum
Add xml elements to existing xml file

Normally this shouldn't be a big problem, to add more xml elements in the middle of an already existing xml file. But the problem is that it's an Word xml file which uses Office Open Xml...
Forum: Advanced PHP Programming 02-23-2009, 08:32 AM
Replies: 5
Views: 3,049
Posted By Ultimatum
Gibou thanks for your explanation. But I have a...

Gibou thanks for your explanation. But I have a few questions on your post. How do I add the objects Page etc.. to the class WordDocument. Now I have a method addParagraph and then I pass the object...
Forum: Advanced PHP Programming 02-19-2009, 11:01 PM
Replies: 5
Views: 3,049
Posted By Ultimatum
Maybe so, but only my paragraph class has around...

Maybe so, but only my paragraph class has around 15 vars for all the properties, so if I use 1 class I end up with a class that has 60 vars and 120 getters and setters or so (The numbers can be a bit...
Forum: Advanced PHP Programming 02-18-2009, 03:01 PM
Replies: 5
Views: 3,049
Posted By Ultimatum
php class structure

Ey, I'm working on a large project but I don't have any idea of how to make my classes properly. I have to make Microsoft Office Word file from php and it works but the classes aren't any good...
Forum: Absolute Beginners 03-27-2008, 07:53 PM
Replies: 8
Views: 997
Posted By Ultimatum
I would appreciate a tutorial in the advanced...

I would appreciate a tutorial in the advanced programming section :). About the function levels, sorry about that, I read over it I think, my fault.
Forum: Absolute Beginners 03-27-2008, 06:25 PM
Replies: 8
Views: 997
Posted By Ultimatum
Nice tutorials but you forgot a lot of this. You...

Nice tutorials but you forgot a lot of this. You didn't set a level for the function (public, private, protected). And if you want to call a function static you need to define it in de class, for...
Forum: MySQL & Databases 01-16-2008, 12:34 PM
Replies: 7
Views: 2,262
Posted By Ultimatum
No there isn't. Maybe my example was wrong,...

No there isn't.



Maybe my example was wrong, but I already covert what you said. Cause students have a so called ovnummer on our school. It's there reversed birthday + a 2 digit number on the end....
Forum: MySQL & Databases 01-16-2008, 02:46 AM
Replies: 7
Views: 2,262
Posted By Ultimatum
That doesn't work either, I already tried...

That doesn't work either, I already tried that.
Now I'm getting own the field from the right select back, so we are making progress, but the fieldname from the second select is the same as the alias...
Forum: MySQL & Databases 01-16-2008, 02:27 AM
Replies: 7
Views: 2,262
Posted By Ultimatum
Hi, thanks for the quick reply. I also looked at...

Hi, thanks for the quick reply. I also looked at UNION, but the problem is, that it takes the fieldnames from the first select, and the fields from the admin table are totally different.

Second, I...
Forum: MySQL & Databases 01-16-2008, 02:10 AM
Replies: 7
Views: 2,262
Posted By Ultimatum
Get data from 4 different tables

Hi, I need a query that checks 4 different tables, to see if there is a match for the username/password filled in the form. 4 tables sounds kinda weird but it's pretty clear. I have 3 different...
Showing results 1 to 12 of 12

 

All times are GMT. The time now is 12:07 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