| Author |
Topic:
Ok board for PHP/SQL help? Looking to make first/previous/next/last buttons
[Locked] |
Raiztlin
Title: Dick Tracy
Posts: 397
Registered: 2002-1-23 08:10:37
|
Date Posted:
11/9/08 4:37am
Subject:
Ok board for PHP/SQL help? Looking to make first/previous/next/last buttons
|
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.
|
|
|
Date Posted:
11/9/08 4:37am
Subject:
Ok board for PHP/SQL help? Looking to make first/previous/next/last buttons
|
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
Title: Dick Tracy
Posts: 397
Registered: 2002-1-23 08:10:37
|
Date Posted:
11/9/08 4:37am
Subject:
Ok board for PHP/SQL help? Looking to make first/previous/next/last buttons
|
I'm afraid I can't help ya there :<
-----signature-----
I has a flavor!
CC always welcome.
|
|
|
Date Posted:
11/9/08 4:37am
Subject:
Ok board for PHP/SQL help? Looking to make first/previous/next/last buttons
|
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
Title: Dick Tracy
Posts: 397
Registered: 2002-1-23 08:10:37
|
Date Posted:
11/9/08 4:38am
Subject:
Ok board for PHP/SQL help? Looking to make first/previous/next/last buttons
|
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.
|
|
|
Date Posted:
11/9/08 4:38am
Subject:
Ok board for PHP/SQL help? Looking to make first/previous/next/last buttons
|
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
|