[QUOTE=thelinx;22558517]Edit the open_basedir setting.[/QUOTE]
Where can I find that?
[QUOTE=nullsquared;22558606]Where can I find that?[/QUOTE]
php.ini
Version 0.90 of my directory listing script is finished. Major changes include the addition of the jQuery library for searching, searching, and loading filetypes from a csv file. Thanks to all the great developers who make their code open source :D
README:
[code]Jmazouri's Directory Listing Script 0.90
Made by John Mazouri, with a few functions from other sources
Licensed under GPL (see COPYING)
Changelog 0.90:
*Added jQuery library (you may use your own locally hosted one, I just use the google libraries API)
*Added jQuery quicksearch plugin courtesy of Rik Lomas (http://rikrikrik.com/)
*Minor style changes to support tiny resolutions
*Minor performance increases (Why am I redefining an array every iteration of the main loop?)
*Removed large array of filetypes, now uses CSV for file definitions and images. See "filetypes.csv".
Changelog 0.84 - 0.89:
*A night of booze, drugs, and partying led to a large portion of the code being re-written in Visual Basic, then removed shortly thereafter.
Changelog 0.83:
*Added a few new icons and file definitions
*Properly credited a function (not made by me, should have cited it in the first place)
*Optimized code a bit, removed large switch block that was a stupid idea to have
Changelog 0.82:
*Fixed files with multiple periods having broken extensions (damn i'm stupid)
*Fixed file count
Changelog 0.81:
*Made it actually work (fucking slashes)
////////////////////////////////////////////////////////////////
Plop this into any directory you want to list the files of, along with bg.png and the icons folder.
////////////////////////////////////////////////////////////////
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.[/code]
Download: [url]http://jmazouri.com/jm_dirlist_0.90.tar[/url]
Live Demo: [url]http://jmazouri.com/pubfiles/[/url]
[QUOTE=andersonmat;22555664][code]
Final value took 0.023 seconds
[/code]
:mmmsmug:[/QUOTE]
[code]100% complete, elapsed time 0.207 seconds
Final value took 0.02 seconds
Total elapsed time 0.251 seconds[/code]
Core 2 Duo Mobile, 2GHz.
[QUOTE=chrishind10;22555895]Damn, beaten! :)
I'm sure its because im running Dreamweaver, Skype, Steam, Filezilla, Winamp, GIMP, IE, MSN, Firefox and Chrome at the same time.... or is that a crap excuse?[/QUOTE]
That's a crap excuse.
:( You can't blame me for trying.
[QUOTE=andersonmat;22555664][code]
Final value took 0.023 seconds
[/code]
:mmmsmug:[/QUOTE]
[code]Final value took 0.015 seconds[/code]
I got it to say final value took 0.0 seconds when I did the second calculation method too.
[QUOTE=Diaklu;22559388][code]100% complete, elapsed time 0.207 seconds
Final value took 0.02 seconds
Total elapsed time 0.251 seconds[/code]
Core 2 Duo Mobile, 2GHz.[/QUOTE]
[code]100% complete, elapsed time 0.218 seconds
Final value took 0.0 seconds
Total elapsed time 0.282 seconds[/code]
Pentium E2160, 1.8GHz.
It's so bad not being able to overclock this fucker due to the motherboard.
Also this is going a bit off topic isn't it?
[QUOTE=nullsquared;22558238]Hey guys, this might be a stupid question, but how do I access files on my server that aren't in 'public_html/' using PHP?
I thought '/' would be the root folder that contains 'public_html/' but apparently it isn't, instead it's '/home/nullular/'. I can't see that directory when I use an FTP client and connect to my site. Is this because because I'm on a shared server?
So, where would I put a file that the public shouldn't be able to access, and how would I retrieve it with PHP (meaning, how to reference the directory)?
[editline]01:23PM[/editline]
Once again, sorry if it sounds stupid, but I'm a little confused.[/QUOTE]
:10bux: says '/home/nullular/' is what you FTP into. So basically, there. It might be easier to just restrict access to the file/subfolder using a .htaccess file though.
[editline]11:37PM[/editline]
[QUOTE=EDDY TT;22563215][code]100% complete, elapsed time 0.218 seconds
Final value took 0.0 seconds
Total elapsed time 0.282 seconds[/code]
Pentium E2160, 1.8GHz.
It's so bad not being able to overclock this fucker due to the motherboard.
Also this is going a bit off topic isn't it?[/QUOTE]
[code]Final value took 0.0010 seconds
Total elapsed time 0.149 seconds[/code]
You all suck.
[QUOTE=jmazouri;22559371]Version 0.90 of my directory listing script is finished. Major changes include the addition of the jQuery library for searching, searching, and loading filetypes from a csv file. Thanks to all the great developers who make their code open source :D[/QUOTE]
You could easily make the sorting use javascript as well.
[QUOTE=jaybuz;22565903]You could easily make the sorting use javascript as well.[/QUOTE]
I could, and later will.
[QUOTE=jmazouri;22566047]I could, and later will.[/QUOTE]
That's what I did with mine. It doesn't even have a php fallback, I'm too lazy.
[url]http://files.rewindstudios.com/[/url]
[editline]12:03AM[/editline]
[IMG]http://files.rewindstudios.com/Random/dr.watson.png[/IMG]
Um...
On my site, I login, go to my accounts page, then either refresh or click some link, and I'm automatically changed into the only other account on my site. WTF! Somehow $_SESSION['username'] (which I used for identifying logged in users) changes from 'nullsquared' to 'bobguy' (the other account) whenever I refresh or click a link. Once I'm 'bobguy', it doesn't go back unless I logout and login as 'nullsquared' again.
Any ideas? :bang:
[QUOTE=nullsquared;22566578]Um...
On my site, I login, go to my accounts page, then either refresh or click some link, and I'm automatically changed into the only other account on my site. WTF! Somehow $_SESSION['username'] (which I used for identifying logged in users) changes from 'nullsquared' to 'bobguy' (the other account) whenever I refresh or click a link. Once I'm 'bobguy', it doesn't go back unless I logout and login as 'nullsquared' again.
Any ideas? :bang:[/QUOTE]
Remove bobguy and see what happens.
[QUOTE=jaybuz;22566857]Remove bobguy and see what happens.[/QUOTE]
Nothing, I stay logged in as nullsquared as I should.
I tested this before with 'joesmith' and I ended up deleting 'joesmith'.
[QUOTE=jaybuz;22566108]That's what I did with mine. It doesn't even have a php fallback, I'm too lazy.
[url]http://files.rewindstudios.com/[/url]
[editline]12:03AM[/editline]
[IMG]http://files.rewindstudios.com/Random/dr.watson.png[/IMG][/QUOTE]
There we go. Done. Also added the script execution time at the bottom.
[url]http://jmazouri.com/jm_dirlist_0.91.tar[/url]
Im currently working on a javascript macrorecorder that enables you to record activity on a website.
I think it can be used for a replacement of increasingly popular "Introduction" clips, for letting users report exactly how an error occoured and not least USER TESTING (Ever had the dilemma that you want to see how a user navigates your site?.. Well we sure had a wish that we could look over the shoulder of our user and see how he/she is using our site down to the minute detail)
Also i work full time on a job/career site
Well, I have my first draft complete, im bound to make quite a few changes soon.
[URL]http://www.christopherhind.com/[/URL]
A friend who owns a web design company managed to get me a .com domain. :smug:
[QUOTE=chrishind10;22575700]managed to get me a .com domain. :smug:[/QUOTE]
because it's so difficult
Drowned in the sea of PI...
Because I have been limited to using Zymic domains so far.....
And?why did you need a friend to get a .com name for you?
Because he has the server.
I don't see why any of this is relevent.
Just spent the whole of yesterday setting up a web server on my CentOS VPS. I didn't want the old versions of PHP ect that the default repositories have so I found a different one(remi) and it bitched about dependencies, which took around 2 hours to work.
Then today I found out about Webmin and I nearly cried on how simple it makes things. Just going to optimize a few things then I'll get cracking on some projects I want to work on :-)
[QUOTE=chrishind10;22556045]Its not as if its running a vital part of a website, its just a Benchark which is meant to put the server under strain and get statistics.
Besides, if the Pi() function has limitations like that, just write out an equation instead.[/QUOTE]
That doesn't test the server though. That tests the PHP interpreter.
Just added the use of the left and right arrows to my slider. YAY :D
[URL]http://rewindstudios.com/portfolio/BlackAndWhite/[/URL]
Currently working on my payment backend. Anyone ever used PayPal's IPN stuff before? It's looking quite interesting.
[QUOTE=nullsquared;22588970]Currently working on my payment backend. Anyone ever used PayPal's IPN stuff before? It's looking quite interesting.[/QUOTE]
Yes, took me a while to find a good code example but after looking at the code it's very simple to use.
Paypal themselves has some excellent examples, although they're hidden somewhere on the site.
[QUOTE=nullsquared;22588970]Currently working on my payment backend. Anyone ever used PayPal's IPN stuff before? It's looking quite interesting.[/QUOTE]
Are you sure that there's enough documented uses of it? And that it's commercially viable to use it? And that it wouldn't cost too much؟
Sorry, you need to Log In to post a reply to this thread.