"I try to make a habit of bouncing my eyes up to the face of a beautiful woman, and often repeat “not mine” in my head or even verbally. She’s not mine. God has her set aside. She’s not mine. She’s His little girl, and she needs me to fight for her by keeping my eyes where they should be."
i have been battling this silly php code for a day or two, so you coders, what the code does, it grabs say all the contents from /videos dir and is suppose to display results on a page linkable of course i have that no problem that is the easy part. but i have about 1000 videos in the directory. i know i have to use offset for this piece of code. i want so every 20-30 links hit next/prev to goto a new page with the next 20-30 links of videos. but i want to do it without using mysql? is that possible? any php people let me know. never really worked with offset before. been looking cant find any examples without mysql.
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.
I havent coded PHP since I learned it so I cant help you in that regard. But if you read the entire contents of the directory then you probably have it stored in a hash or an array, either way, just push that junk into an array and loop through it with an index. No mysql required.
the eternal thread topic. you bet, mine (and many other webmaster's) sleep cycles are seriously fucked up. i cycle through, staying up around an hour later every 24...
been wide awake since 11am EST Sunday now it's Monday almost 8am EST and prob won't go home from the office until about 2pm so much to do so lil time to do it in
Is it just because you are webmasters or is it in your blood in general? Me, it doesn't matter what I'm working on I bust my ass all hours of the night and day. I feel like I'm missing out when I'm asleep.
"I try to make a habit of bouncing my eyes up to the face of a beautiful woman, and often repeat “not mine” in my head or even verbally. She’s not mine. God has her set aside. She’s not mine. She’s His little girl, and she needs me to fight for her by keeping my eyes where they should be."
I had this problem with my previous job as well a year ago when I was working 4PM till midnight, then I would get home and not goto sleep till 4AM anyway. Guess old habits die hard
i have been battling this silly php code for a day or two, so you coders, what the code does, it grabs say all the contents from /videos dir and is suppose to display results on a page linkable of course i have that no problem that is the easy part. but i have about 1000 videos in the directory. i know i have to use offset for this piece of code. i want so every 20-30 links hit next/prev to goto a new page with the next 20-30 links of videos. but i want to do it without using mysql? is that possible? any php people let me know. never really worked with offset before. been looking cant find any examples without mysql.
i'm pretty sure you just have to fill an array, sort it and pull the appropriate chunk of entries out
Originally posted by loverboy that's my holiday wish. a friend told me " you'll get enough sleep
when your dead"
That's what my mom always told me. She'll get her rest when she's dead. I dunno, personally shit like that creeps me out. I want to retire when Im 40 and not worry about the daily grind
Comment