@# 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



Comments:

<0> Elazar, think... "You are trying to retreive zero bytes from the csv"
<1> Elazar: Oddly enough it works just fine for me.
<1> I'm ***uming you are using php > 5.0.4?
<2> Ox41464b: Not in PHP 5.0.4 and later.
<2> Touquen: You ***ume correctly.
<3> how rude
<2> cythrawll: What, and this isn't? --> (9:08:09 PM) Touqen: You in here bitching at me telling me what _won't_ work without actually verifying that it won't work/
<2> cythrawll: I treat people how they treat me. Fair exchange.
<2> Anyway, fgets and explode seem to do the job well enough. I'll leave it at that, then.
<1> Oohh
<1> He bounced before I could counter.
<3> so um, you had the problem solved...
<1> I had tested it before I went and told him he was a fool for not testing first.
<1> And it worked beautifully for me.
<1> i'm also using php4 though...
<3> what happened to php-bot?



<1> It dies periodically.
<3> blasphemy
<0> same here at php511
<3> php 5 pwnz u all
<1> or not
<3> orly?
<1> I'll stick with php4 until they offically stop supporting it.
<1> Anything that I do that really requires php5's "features" I just use another language for
<4> Touqen: so you're slowly ditching php?
<3> yeah ?
<3> i mean, how can you design any oop with php 4? are you a masochist?
<1> I've been slowly ditching php for about 2 years now.
<4> hehehe
<4> i like that
<1> cythrawll: for example?
<3> the only advanced feature php 4 supports in OOP is basic inheritance, badly implemented
<3> lets not forget p*** by reference mess
<1> minor inconviences
<1> Besides I do mostly procedural code in php these days anyway
<3> p*** by reference is more than a minor inconvenience
<3> its a ****ing nightmare
<1> I never had _any_ issues with it.
<3> no abstraction?
<3> no encapsulation?
<4> cythrawll: those can be mimiced by a good programmer, even in ***embly.
<3> and most ofall, no statics?
<1> could be handled with the "basic inheritance", cl***es by their nature do encapsulation, and I haven't done any suffiently large project in php in about 4 years so all those fancy features aren't necessary for most of what I've done
<1> no statics?
<3> mimicing non supported features in oop is not a good way to go about things
<1> GLOBAL VARIABLES ARE static.
<3> no static methods
<1> well global functions are static too
<3> i mean look at perl
<3> pretty much every OOP feature in perl is mimiced
<1> pretty much every feature in oop is "mimiced" in lisp too
<1> I don't here anyone complaining though.
<3> i don't know anyone who uses lisp
<3> :/
<1> hurray for programmable programming languages
<4> cythrawll: don't get me wrong, I'm using php 5's features to the hilt. it just makes sense. but abstraction and encaplsulation are concepts, not language features. one abstract and encapsulate in any language, if they can do it in their head.
<3> yeah but that's the extra code envolved, especially when any cl***es are going to be distributed, and you can just hope that they are being implemented right
<5> susy by the seashore who sells seashells uses lisp
<1> har wildman har
<1> cythrawll: um what?
<3> huh?
<1> I'm not sure that sentence culminated in a complete though.
<1> thought*
<3> it did
<1> I'm just not seeing it then.
<3> sorry
<1> Anyway, my decision to not use php5 is a non-issue.
<3> well i do have a question im curious about
<3> we explored the reasons, why you would, which were shot down
<3> but why not?
<1> My host doesn't support it at this moment in time.
<3> well thats a good reason
<3> it would be enough for me to get a new host myself tho, or why i run my own hosting
<1> If I bothered to look for new hosting it'd probably end up being python.



<1> php was fun for a while but it's starting to bore me
<3> i personally hate python
<4> cythrawll: you like bittorrent ?
<3> yus :>
<4> cythrawll: that's python.
<3> ammar, i realize
<3> but that doesn't mean i don't hate coding in it
<1> bittorrent is a "protocol", the client is written in python but there are plenty of non python bittorent clients
<4> cythrawll: i see :)\
<3> ammar, i use azurues
<1> the initial client anyway
<3> er
<1> uTorrent here
<3> uTorrent doesn't work on my OS
<6> uTorrent
<7> Hey all, is there any way to make a cron without adding it manually im making a billing script and it needs a cron job but most people won't know how to install it so what can i do?
<4> Touqen: true. but the support for distribution in python allowed for such a technology to be explored.
<1> eh
<3> Fr0Gs, you could create a script to installi t
<7> serious?
<7> could someone help me with this i will ofer them some webhosting
<3> i own my own server
<1> there have been distributed client written in any number of languages well before python was a bridged synapse in it's creator's mind
<7> :( can you help me any way please
<1> python is just convienient and relatively easy to learn
<1> and has a great community
<3> well you could use perl, or php, or bash, or any scripting language to programmatically edit crontab
<7> well it would be php
<7> so how would i do it :S
<3> never had a need to learn it
<3> you know how to do file manipulation correct?
<3> fopen() fwrite() and what not?
<1> Fr0Gs: Chances are if these people don't know how to setup crontabs then they probably shouldn't be running and probably aren't allowed to run anything that mdofies their crontab
<7> yes
<7> i do
<3> well, what does this crontab do if I may ask?
<7> i can edit my contrab threw cpanel
<7> but i don't know where it is located because i only have a reseller accoun
<3> do you have a shell account?
<8> should the value of $_SESSION['REMOTE_ADDR'] be checked/validated before being used?
<7> cythrawll, yes
<9> litage: do you mean $_SERVER['REMOTE_ADDR'] ?
<6> litage: only if the user can directly effect the value of $_SESSION['REMOTE_ADDR']
<1> Fr0Gs: Either give them instructions on how to do it trough cpanel or in the shell (***uming they have that access) or tell them how to set up a windows task to access a url which runs the script
<3> well, if the hosting knows what they are doing correctly, they hopefully put the crontab somewhere in your user directory.
<8> JAJMaster: ah yeah. whoops
<1> I would seriously advise against trying to modify a hosts crontab that's a serious way to get in a lot of **** with the host.
<3> Touqen, most hosts have crontabs for each user,
<3> should anyway
<9> litage: the $_SERVER vars are set by the host, while you can't "guarentee" that it is valid/correct, it should at least contain an IP address
<8> JAJMaster: "set by the host" meaning the webserver?
<9> frogs: bah, just put "shove this into your cron setup". If they don't know how, they shouldn't be doing it anyway. There are plenty of exhaustive cron tutorials available
<9> litage: yep
<8> thanks JAJMaster
<3> or you could make another frontend to cpanel
<3> which is kinda a hackster way to do it
<7> how could i make a php script that locates on my webserver where php is installed
<7> like /usr/bin/php
<10> Fr0Gs: Why not just check your webserver config?
<10> phpinfo() outputs that as well, I believe.
<4> Fr0Gs: to find your php binary, try 'which php'... ***uming a unixy system.
<7> yes but this is for someone
<7> who is installing a cronjob and there noob
<9> then the "noob" should read up on installing cron based tasks before installing this. It is not a good idea to do something "system wide" without knowing what you are up to and the potential risks
<9> or better yet, just say "here is the relevant information for installing this task...blahblahblah...for detailed instructions please see the cron docs since they are much more thourough than I can be here"
<11> How can I find out where the user came from (which page) ?
<9> jbrimble: in theory, the referrer header should be set...but it can't be trusted.
<12> Anyone know why a PHP5 installation would get an error with an undefined reference toxmlCanonicPath?
<11> i see
<10> sal002: You don't have XML installed or that function doesn't exist.
<12> I have XML installed..
<12> www.duncanmcqueen.com/phpinfo.php


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#math
#linux
onenote cxoffice linux open file
#lgp
Unable to find available Display Devices for screen
python getctime
pure-ftpd system-auth
volito2 linux won't respond
error installing tls module
#perl



Home  |  disclaimer  |  contact  |  submit quotes