@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29



Comments:

<0> Pollita, what are you trying to figure out?
<1> but shouldnt i still be able to upload into that dir even through FTP?
<2> php-bot 3^3
<3> phpbot is bad at math
<2> so it is
<4> flyman: depends what the mode is
<1> its ascii and tried binary
<5> what is the point of the &amp;&amp; in http://tinyurl.com/c9o2c ? isn't that to render a & in a browser?
<4> do they appear as 777 in flashfxp?
<2> Pollita 3.7G sound about right?
<3> 3724541952
<3> ^^ That's what I get
<5> because I'm using part of that script to write the configuration reader of my backup script, but it's not liking the syntax on the lines with &amp;
<1> aidan yup, folder appears as 777
<2> Pollita me too. What were the exceptions you gave?
<4> and you can't upload via ftp?



<1> correct
<6> Davey - I'm in the process of evaluating it.
<1> but can upload using php
<1> in my script
<4> libila: there is no point, that is a mistake, it should be &&
<7> owh: what plugin are you using?
<3> 0.0.0.0/8 127.0.0.0/8 224.0.0.0/29
<4> libila: that code won't work
<6> The phpeclipse one.
<3> NULL, Loopback, Multicast
<2> php-bot 3pow2
<2> Pollita so I still need to remove private addr space?
<3> er, not /29
<6> Davey, lemmie look for a url for you.
<3> /3
<3> oh right, those
<2> Pollita 10/8, 192/24, and 172/16 (iirc)
<3> I knew there was something....
<3> os - (2^24) - (2^20) - (2^16)
<3> It's 10/8, 172.16/20, and 192.168/16
<2> Pollita: Eh, not much diff... 3706650624
<3> ergh...
<3> 172.16/12
<3> I keep getting my maths backwards :)
<2> Pollita Um 192 would be /24 wouldn't it?
<3> The multicast block is the only big diff
<6> Davey http://www.phpeclipse.de/
<0> A good list ot check for reserved addresses....
<0> http://www.iana.org/***ignments/ipv4-address-space
<7> owh: OK, thats what I'm looking at too, thanks
<3> Jymmm: There are 256 blocks under 192.*
<2> Pollita oh, and 127/8
<3> No.
<1> weird
<3> My numbers are right
<6> davey, At the moment I'm struggling with CVS integration, but it's picked up some undefined variables in my code :-)
<3> 10.0.0.0/8, 172.16.0.0/12, and 192.168.0.0/16
<2> Pollita Yeah, forgive me thought 192 was /24 not /16 for some odd reason
<3> 10.*.*.*, 172.16.*.* - 172.31.*.*, and 192.168.*.*
<6> Pollita: And 127.*.*.*
<3> owh: We already covered loopback
<1> well ive done umask and still cant touch the dir created
<6> Pollita: Just saw your last list, missed that :-)
<2> 3.7G works for me =)
<6> flyman: Why don't you get the rights for the directory, print them out and see if they are what you expect. Also check your error log, perhaps the directory doesn't even exist.
<3> Jymmm: Bear in mind that most subnets are NOT used to 100%, not nearly
<3> Hell... when I worked for uncle sam, they'd give out /25s for offices that used precisely 3 IPs
<2> Pollita: Understood, just trying to figure out db space
<3> /23s that is
<3> I am NOT on the ball today
<1> owh i see the directory existing... and no error_log has been created...
<3> The point is, over 500 IPs would go to waste per district office
<3> well, per satelite office anyway
<6> flyman: The next thing is to use touch() and create a file in that directory, then check if it exists.
<1> owh ok ill try now
<2> Pollita any suggestions/thoughts on db design of ip's? convert to decimal? multiple tables? one big *** ascii file? Oh I know we''l store em in XML files (one per)
<6> Jymmm: What are you going to do with the data?
<2> owh: Same thing we do every night Pinky, TAKE OVER THE WORLD!
<6> Jymmm: I understand that, that was a given, but how are you going to need to access the data?



<2> owh: The XML was sarcasim, as was the ascii.
<2> owh: With 3.7G or records, there's only one way to do it.
<8> Oooh, go with a big ascii file!
<8> That's efficiency there.
<6> Jymmm: My point is based on what kind of queries you'd want to do. You could store the IP as a LONGINT, but if you want to access it by subnet, you'll have a problem.
<1> owh: [R] 553-Can't open that file: Permission denied
<1> [R] 553 Rename/move failure: No such file or directory
<1> [R] Transfer Failed!
<6> flyman: Those errors don't come from PHP do they?
<1> however i can still access these folders via browser
<1> owh: nope
<6> flyman: What do they come from?
<2> owh: In this respect, just due to the m***ive size, it could be persons instead of ip's. We'll le tthe db do what it does best.
<1> owh FlashFXP, and FTP program
<6> flyman: Have you considered that there is something else wrong?
<1> owh: not that i could think of... no... i mean if i type the url/folder_created it works and shows it as a directory
<9> hey guys... I've got a question... if I've setup on mysql a table with 1)username column and 2) p***word column how can I manipulate it so that when a user tries to login to my site using browser, it will check to see if it matches with user/p***word on my db?
<6> flyman: That means that the webserver can access the data.
<6> murdoc: By writing software that checks the supplied credentials with those stored in your database.
<1> but not the FTP program nor the cPanel file uploader...
<9> well how can I use php to do this?
<6> flyman: It is possible, even probable that your FTP program doesn't have rights in the parent directories of your created directory.
<2> Pollita: TY =)
<6> murdoc: Let me give you an analogy of what you just asked us: "I have a building plan and a pile of bricks, how do I build a house?"
<1> owh: well I can upload and make new files in the directory where the new directories are created...
<6> flyman: Upload with what?
<1> however cant delete the folders that are created using php
<1> owh: my ftp program
<6> flyman: Is that a PHP programme?
<1> I can upload the files through my php script, just not via ftp
<1> owh: no my ftp program is Windows FTP program
<9> owh: do you have any suggestions of where I can go to for reference? cause I'm new to mysql and I'm not really sure how it works with php
<6> flyman: It sounds to me like your permissions are broken and that your FTP user doesn't have the same rights as the web-server. As I said earlier, your FTP programme doesn't have permissions to use the directories that lead up to your own created subdirectory.
<9> I can display the data, but I just don't know how to store it to some variable for the browser to check the username and p***word
<6> murdoc: The PHP manual has excellent examples on database interaction and Basic Authentication.
<6> murdoc: The browser doesn't check anything, your code does!
<1> owh: ok ill try to adjust the ftp user account permissions
<6> murdoc: Read the manual section on Basic Authentication first.
<6> flyman: That's unlikely to help until you understand what you're actually trying to do.
<1> owh: my ftp account has full access and permissions ;\
<6> flyman: Giving the web-server and an FTP user the same privs is not usually a good idea.
<6> flyman: Then perhaps you're mistyping the path.
<1> owh: well see the users/dirs that are created arent ftp accessible... the user accounts are stored in a MySQL db
<6> flyman: Huh?
<1> owh: well my script makes directories which are also used as the usernames, and that info is used/accessed via a database for login... they cant login via ftp.
<6> flyman: I'm talking about the FTP user and the web-server account.
<1> oh, eh sorry :(
<1> lol
<10> Are sessions limited to a certain subdirectory or are they tied to the domain?
<11> so.. im trying to write a pretty wierd query.... i've got 3 tables, feeds (holds list of urls by cat), hits (logs traffic), content (content ripped from feed) i want to pull all content for a certain category if there are no rows in the hits table that mach a content url.. if that makes any sense at all
<12> I initialize a variable outside a function declaration, but the function can't see the variable. Why is that?
<11> select * from contents c, feeds f, hits h where f.feed=c.feed and f.category='php' and c.url!=h.url is close, but not quite pulling right
<11> the scope of that variable is not global, p*** it by ref
<6> phpmattk_: Look at LEFT and RIGHT JOINS, that should get you started.
<11> or decalare it globally
<12> I want the variable to be global... I tried doing global $variable; $variable = 'abc'; but it dosen't work
<6> TD-Linux: You need to do the global declaration twice, once when you declare the variable and once when you use it in the function.
<11> http://us3.php.net/global
<10> Are sessions limited to a certain subdirectory or are they
<10> tied to the domain?
<12> oh, I see... thank you phpmattk_
<11> sessions are tied to the client with a cookie
<10> so it should be fine for all subdirectories within in a domain?
<11> yeah, it should follow
<10> hmm. ok. I must be doing something stupid then. Thanks
<11> make sure you do session_start at the top of all files using the session
<10> Ah. I'll bet thats probably it. I knew I was doing something stupid. Thanks
<11> np
<11> select * from contents c, feeds f, hits h where f.feed=c.feed and f.category='php' and c.url!=h.page that did it! woot
<2> !+select*
<13> You should consider explicitly naming the columns you wish to retrieve in your select statements. See http://www.parseerror.com/sql/select*isevil.html
<14> hi. can i get the source to an example site that features login?
<11> Jymmm: true...


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

undefined symbol: apreq_handle_apache2 gentoo
salle pconnect
renumbering auto_increment
ubuntu qmake 4
gentoo getting rid of kde-env
automate modprobe fuse
samppa kubuntu
rt2500 suse 20.2
#perl
Ubuntu stops at configuring X



Home  |  disclaimer  |  contact  |  submit quotes