VaultNetwork.netVault Network Boards
Author Topic: Ok board for PHP/SQL help? Looking to make first/previous/next/last buttons [Locked]
Raiztlin  2 stars
Title: Dick Tracy
Posts: 397
Registered: 2002-1-23 08:10:37
I have been computerless the last couple of days :< Glad to see you're still doing good though. At this point, I would be sick and tired of the project already

 

-----signature-----
I has a flavor!
CC always welcome.
Phases_OgMaxim  1 star
Posts: 52
Registered: 2002-7-16 16:32:23
Hey Raiz, I gots two questions for ya.

1) You use linux with apache by chance? If so... Any idea how to filter what apache2 writes to access.log ? I'm having a heck of a time figurign that out.

and

2) Do you know the pro's and con's of exec() vs shell_exec()?

I get the same results using the following two snippets of code and wonder if one is better than the other. Maybe less work for server, or maybe other doesn't close the command properly, or whatever:

Code:

$output = shell_exec('tail -15 /var/log/apache2/access.log');
echo $output;



and..

Code:

$cmd = "tail -15 /var/log/apache2/access.log";
exec("$cmd", $output);
foreach($output as $outputline) {
echo ("$outputline\n");
}

 

-----signature-----
Every forum should have a Phases.
Bringing SSP back to life at http://www.superstickphase.com !
Retired AC/AC2 - Phases Og'Maxim - Leafcull
Raiztlin  2 stars
Title: Dick Tracy
Posts: 397
Registered: 2002-1-23 08:10:37
I'm afraid I can't help ya there :<

 

-----signature-----
I has a flavor!
CC always welcome.
Phases_OgMaxim  1 star
Posts: 52
Registered: 2002-7-16 16:32:23
That's cool. I got it

I have a page with my 13 favorite logs all tailed with ajax!

(they all move in real time with no need to refresh the page)

It's tight.

Next up is going to be the hardest of my project... implementing ajax on my main manage page to drill around in directory structure. You got any ajax exp.?

 

-----signature-----
Every forum should have a Phases.
Bringing SSP back to life at http://www.superstickphase.com !
Retired AC/AC2 - Phases Og'Maxim - Leafcull
Raiztlin  2 stars
Title: Dick Tracy
Posts: 397
Registered: 2002-1-23 08:10:37
none at all actually :<


Actually looking to get something done about that though, although, I have no idea where I'll find the time :]


Christmas is busy for those of us working in retail :]

With work, photography and trying to learn the guitar.. I don't have alot of time

 

-----signature-----
I has a flavor!
CC always welcome.
Phases_OgMaxim  1 star
Posts: 52
Registered: 2002-7-16 16:32:23
Well it's fun that's for sure. I never got into javascript much though so it's kinda hard to follow. Followed some how-to to get the first script going then built from that.

 

-----signature-----
Every forum should have a Phases.
Bringing SSP back to life at http://www.superstickphase.com !
Retired AC/AC2 - Phases Og'Maxim - Leafcull

VaultNetwork.net is an independently operated community forum and is not affiliated with, endorsed by, or technically based on IGN, GameSpy, FilePlanet, GameStats, or the former IGN/GameSpy Vault Network.
References to VaultNetwork.net mean this site/domain. VNBoards-style presentation is a visual homage only. By using this site, you agree to the forum rules.