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 3 of 3
Search took 0.02 seconds.
Search: Posts Made By: liveordie
Forum: Absolute Beginners 12-04-2008, 01:58 AM
Replies: 3
Views: 945
Posted By liveordie
I hadn't even considered the memory usage when I...

I hadn't even considered the memory usage when I quickly typed that out.

I've never seen SplFileObject used before that is a nice class.
Any idea why it hasn't made it into the official docs yet?
Forum: Absolute Beginners 12-03-2008, 09:49 PM
Replies: 3
Views: 945
Posted By liveordie
<?php //Read the file line by line into an...

<?php

//Read the file line by line into an array
$lines = file( '/path/to/file.txt' );

//Loop over the array by line
foreach( $lines as $line )
{
$parts = array();
Forum: Advanced PHP Programming 12-02-2008, 03:58 AM
Replies: 4
Views: 1,015
Posted By liveordie
Have you tried the php5 SPL...

Have you tried the php5 SPL library?


<?php
$path = realpath('C:/xampp/htdocs/');

$objects = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path),...
Showing results 1 to 3 of 3

 

All times are GMT. The time now is 12:28 AM.

 
     

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