| |
| |
| |
|
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 30 31 32 33
Comments:
<Artnez> Meltir: bah <Meltir> S4nD3r: your on a good way to start a flamewar. <Meltir> in fact - im amazed it hasnt started yet :) <S4nD3r> I just would like to know which is the best IDE to use with php <Meltir> S4nD3r: google. <NeoSNK> hi <Artnez> S4nD3r: use notepad <S4nD3r> I dont know php <Artnez> we all know that using IDE is totally pointless, i mean who needs it. everyone here writes in pure text <Meltir> Artnez: or write in hex. like real programmers do. <Artnez> because we are all professionals. anyone who uses an IDE is a like a handicapped person trying to walk like the rest of the big boys <S4nD3r> Im beggining yet, I need to develop an interface using forms to insert, edit, delete datas <w32> Hi, I'm really new to php and mysql both- I have a very basic understanding of mysql and php-I'm looking for a way to create my own inventory/warehouse management database that i can add/checkout/remove inventory and document where it was sent,to whom and when- I'd like to have a php frontend to let the endusers pull,ship,receive etc. without them calling me every five minutes for help-does any one know of a clear howto or perhaps offe <Meltir> w32: you want to check out the projects on sf.net, freshmeat, and anything google spits out. <Artnez> w32: if it's for your company and you truly care about security, contract someone out <w32> ahh I forgot about freshmeat- nothing on sourceforge <ruben> Artnez: if I use safe_mode = On, how is that posix functions work? <ruben> the POSIX function perform any kind of access checking when safe mode is enabled. <ruben> in that uri <w32> Artnez: we're on a really,really tight budget... But yeah my thoughts initially <ruben> None of the POSIX function perform any kind of access checking when safe mode is enabled. <Meltir> ruben: cage all the users. <Meltir> no mess, no fuss. <Artnez> w32: i've seen countless companies shell out up to 4 times their projected costs because they wanted to save money on what matters <Artnez> w32: if you want an application that handles the operation of your business in any regard, you need a professional doing it. if not, lawsuits and headaches await :) <S4nD3r> I need to find a good PDF book, or article showing how to create a front-end to add/delete/edit data from database.... snif <Lord_Loki> you and me both s4nD3r <w32> Artnez: good point <Meltir> i cant wait to see the sript flush its first results :P <weasel00> w32: CRM or CRS programs... many are out there and some can be modified to fit your limited needs fairly cheaply <klync> S4nD3r: a good generic script to look at for db queries is "mysqlquery" ...google for it <aidan> there's thousands of tutorials all over the net about this type of stuff, S4nD3r <S4nD3r> I will look for it <S4nD3r> thanks anyway <klync> S4nD3r: here's one i've used as a model: http://k2wrpg.org/~leader/sqlquery.php.zip <Artnez> S4nD3r: http://www.htmlite.com/PHPintro.php does good at explaining the basics <S4nD3r> klync is offline <S4nD3r> theres no ~leader <klync> S4nD3r: i have a local copy: https://secure.26a.net/svn/projects-kevin/php-scripts/oobmdb/lib/mysqlquery/ <Woosta> Is there some flag I need to set in php.ini or somewhere to get all my GET and POST vars into regular $variables? <Jymmm> !+gv <php-bot> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre> <klync> Woosta: that's not very secure, but there's a function that will do it <malcolm> yes, but don't do that. <malcolm> d'oh <Artnez> Woosta: Don't do that. Period. <Meltir> crap. if my calculations are correct - the script will keep on running for over 5 hours. <kuja> Woosta: register_globals = on. But, not to be an ***, don't do it. <Woosta> I know that .. it's legacy code that I'm trying to get going on a temp machine while I rewrite it .. I need to see how it funcitons <Meltir> i give up. gnite guys. <Woosta> I think it's amazing that it is even an option personally :) <weasel00> what the squiggly smooch am i doing wrong in trying to get php to install with mysql functionality <Artnez> Meltir: night <klync> weasel00: what the flibbering flop does the error message say, and what platform are you on? and, are you trying to compile it from source? <kuja> Woosta: It's going to be removed. <CryWolf> weasel00: what distro? <weasel00> FC4 apache2.2 mysql4.1.1 php5 <CryWolf> weasel00: are there php5 packages for fc4? <klync> weasel00: i'm guessing you just need to enable it in your php.ini <weasel00> http://php.pastebin.com/574260 <weasel00> those are the only notices i get in the configure script... seems ok to me but nothing is registering.. ie. phpmyadmin <rj000> does everyone usually use preg_match, cause it's the fastest for regex's? <klync> weasel00: oh, looks like it wants the mysql server to be running, probably for the test phase <CryWolf> weasel00: I'll ***ume there's no php5 packages for FC4, then. Install the mysql-dev packages and just use --with-mysql <klync> people install from source on FC? <weasel00> klync: mysql is running <weasel00> i installed php5 mysql apache from source <weasel00> s/ source / respective websites <CryWolf> weasel00: have you tried just putting --with-mysql in the configure line? <Artnez> rj000: PCRE (preg functions) are much more powerful and usually work faster <klync> weasel00: oh, then did you install mysql in /usr or /usr/local? <weasel00> Crywolf: i have.. i do it again paste the outcome <kuja> rj000: People use preg_*() because it's Perl compatible, and fast. <CryWolf> weasel00: have you done './configure --help' to see what it's expecting? <weasel00> kuja your back =) <kuja> In between eating, but kind of. <rj000> kuja, Artnez: k tnx <weasel00> kuja take a look at this if you could .. http://php.pastebin.com/574260 <weasel00> php 5 docs say to use mysqli but it doesnt seem to be working <kuja> weasel00: MySQLi is the improved extension, meant to be used for >= MySQL 4.1.x <kuja> weasel00: Are you sure you've installed all the right libraries? <weasel00> -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -o sapi/cli/php <weasel00> Build complete. <weasel00> (It is safe to ignore warnings about tempnam and tmpnam). <weasel00> [root@livetheatrical php-5.1.2]# make install <weasel00> Installing PHP SAPI module: cgi <weasel00> gdi sorry <weasel00> forgot what i copied last and got punted <weasel00> on line 6 it says Checking for MySQL support..... yes <weasel00> not sure what other libs i need. i have server up and running and seems to be happy.. do i need the dev pkg? <kuja> weasel00: Well, to build the extension, yes you need the development libraries. <lig> re <weasel00> i dont see the dev libs on mysql.com =/ <kuja> weasel00: What distro are you on? <weasel00> fedora core 4 <kuja> weasel00: So just install the package? <weasel00> php-mysql.i586? <avar> what's the practical result of leaving out ?> at the end of a php file? <dexterr> If i want an argument to a function to be optional i'd do: function mehFunction($arg1 = "somevalue") {}, right? <spootnick> hi all. is there a function from one of php "default" libs to output a XML document from an object? <RhastaW> yeah dexterr <weasel00> Mysql mysql-python mysql-devel mysql-server perl-DBD-mysql <-- are all installed <Octane> whats the easiest and most painless way to get captchas working on my site <Zyclops> numerically equal in php is just $a == $b isin't it? <PktLoss> Zyclops yes <weasel00> checking for MySQLi support... yes checking whether to enable embedded MySQLi support... no << is this bad? <PktLoss> Octane realistically, print it out in HTML, use a document.write in javascript if you want <PktLoss> Most bot programmers aren't going to bother braking you "What is 3 + 4?" html code :) <Zyclops> i dont' get it, i'm comparing 127.02 with 127.02 and php is saying they are different... i'm trying to work out whether one of them is a string <FenixRF> Greetings... I've got a wierd problem, I hope someone can help me out on. <FenixRF> I'm printing <div id=\"poster\"> ... then calling a function to print a few lines... only problem is, the function output prints before the <div> even though it comes after the div. <PktLoss> Zyclops it doesn't matter if one of them is a string if you're doing ==, === does a type check not == <Zyclops> i'm actually using !+ <Zyclops> != even <FenixRF> e.g. :: print "<div id=\"poster\">" . MyFunction() . AnotherFunction . "<span>Something</span></div>"; <Zyclops> one of them is a double, the other a string <Zyclops> maybe it's comparing double to in <Zyclops> to int <PktLoss> you could try casting them both to a double <FenixRF> my source comes out "What gets printed in MyFunction and AnotherFunction <span>Something</span></div><div id="poster"> <PktLoss> it wouldnt be dropping either down to an int <Zyclops> ahh ok, i need to explicitly cast the string to a double <Zyclops> ugh <Zyclops> ok now they are both doubles <Zyclops> $row['balance'] = (double)($row['balance']); <Zyclops> if($row['balance'] != $balance) { and it's saying that all these ones are different <Zyclops> any ideas on why to doubles would be != true on identical doubles? <FenixRF> can anyone take a look at http://pastebin.com/574353 and tell me why it's coming out wrong (http://pastebin.com/574357) <kuja> Zyclops: var_dump($row['balance'], (double)$row['balance']); <SkramX> sendmail [via php's mail()] keeps sending mail as apache@domain.com... any idea how to fix this? <kuja> SkramX: php.ini, sendmail_from <Zyclops> kuja: float(744.82) float(744.82) <Zyclops> float(786) float(786) etc etc <kuja> Zyclops: Beats me, sounds like some other error. <SkramX> kuja: ill look for that field <Zyclops> whats strange is that some of the numbers are showing up fine <SkramX> kuja: <SkramX> ; For Win32 only. <SkramX> ;sendmail_from = me@example.com <SkramX> I am on LINUX :) <kuja> SkramX: Look below. <SkramX> ;mail.force_extra_parameters = <SkramX> that? <kuja> Nevermind. <Zyclops> float(400) string(6) "400.00", float(870.63) float(870.63), float(400) float(400) << works <FenixRF> kuja, got a moment to help out me out? <SkramX> kuja: serious, how? <Zyclops> float(744.82) float(744.82), float(928.82) float(928.82) << doesen't work
Return to
#php or Go to some related
logs:
#lisp suse broadcom 4311 #gentoo glx_ext texture pixmap hash and dehash hex postfix network_table cidr notation juliangallego86 #linux #linux easyubuntu riva
|
|