| |
| |
| |
|
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
Comments:
<0> hmm.. mysql_real_escape_string always returns '' for me.. Any ideas what's wrong? <1> Andy298, who the hell is supposed to check all these boxes? :| <2> htmlentities($_POST) <2> you never know... <3> an admin clerk its for room bookings <2> xbeanx, can we see code? <4> is there another way to write data to a flat file without having to set its permissions to 666? <5> I need to make a change in my time zone definition for this Sunday. If I update things at the OS level, is there anything I need to do specific to PHP to keep the time correct for PHP function calls ? <1> it should exists some more usable code, i bet... <6> espresso, let php create the file itself <7> If you know about a quality, stable and serious PHP 5.1 (payware) Web host with the usual "poweruser" functionality, please tell me... I certainly can't find any such anywhere. Sigh. <4> Wilik: that didn't work either :( <3> i'm getting this error (IIS with PHP + MySQL) - "PHP Warning: PHP Startup: Unable to load dynamic library './php_mysql.dll' - The specified module could not be found. in Unknown on line 0 " <8> php.net/mysql says how to install mysql
<2> php.ini, mysql.so? maybe its commented? <6> Andy298, did you read the info int the INSTALL file that came with the .zip of php? <4> fopen('filename','w+"); gave me a permission error too <3> Wilik: as close as i could <6> Andy298, did you set your extension_dir properly? <6> in the php.ini file? <3> ;extension=php_msql.dll <3> extension=php_mysql.dll <3> ;extension=php_oci8.dll <4> I acid tested for group synchronicity too, but no avail (chmod 664) <6> Andy298, do you have a php_mysql.dll in the extension directory? <5> espresso: If you have control of the web server, you can look into "suexec", which would allow you to run scripts as a user other than nobody, solving some permissions problems. (But it could create others if you aren't careful!) <3> ah the extension directory wasn't defined! <2> suphp better... easily to implement, but so so performance <6> Andy298, theres the problem! <3> sorted ;) <6> working now? <3> yeah! :) thanks <6> np <9> last_insert_id() in mysql is connection specific, right? <3> so how can i reference whatever data is submitted from a form? <3> a loop or something? <6> Andy298, depends... <10> Lateralus: Yes. <9> mattmcc: I thought so. Unusual, however. I'm getting incorrect results. <0> danf_1979: http://pastebin.com/631440 this code only prints one "test" and not two. <9> mattmcc: eg, $dbh->query('select last_insert_id()') <6> Lateralus, did you feed mysql_insert_id(); your result identifier from the last INSERT command on the database? <9> Wilik: I ***ume PEAR::DB is doing so. <2> Ahh... I get 2 test <2> really, no joke <6> i.e. $r = mysql_query( "INSERT..." ); print mysql_insert_id( $r ); <9> "* Mr***hole is now known as Jymmm" <- I'm getting that on a T-shirt. <11> Lateralus waste of money. <2> xbeanx, put on your gl***es <0> danf_1979: ? <2> I get two of them <2> as expected <7> It's such a jungle out there of crappy bull**** hosts. :/ <0> danf_1979: I only get one :( <6> KimmoA, what exactly are you looking for? <0> danf_1979: using php 5.0.4 <2> php4 here <0> :( <7> Wilik: PHP 5.1, MySQL, 100+ MB storage, 30+ GB/month bandwidth, must run some "Unix", must allow multiple vhosts, RewriteRule support, cronjobs, PHP CLI, etc... <12> is there an application to generate complex regexp ? <6> KimmoA, try dreamhost? <7> Wilik: Is that a joke? <6> KimmoA, maybe? <7> :S <0> danf_1979: nevermind.. I create the string before opening the mysql connection... <6> how much are you looking to pay for all that per month? <13> anyone want to offer css help? people in #css are being unhelpful - pm. <7> Wilik: Preferarly much less than $100... <6> KimmoA, lol
<2> Ahh yes!, mysql_real_escape_string needs mysql connection... I had forgoten that <6> KimmoA, give me a ballpark as I have my own webserver <7> A ballpark? <6> like.. what you want to pay <7> I have my own dedicated co-located box ATM. I'm sick of admining it. <7> Plus my local ISP is expensive bandwidth-wise. <6> I understand that <7> Wilik: I don't quite get what you mean... <0> danf_1979: yea.. it stopped working right around the time I created a function called query() that opens the connection, queries, then closes. <7> Maybe one of those "virtual servers" would be right for me. <6> i'll talk to ya in PM <2> If webhostings just worried about commercial proyects, they would do a lot of more money <13> anyone want to help me with some css? people in #css are being unhelpful - pm. <11> !+g8 <14> Guideline #8) SQL Q's: #sql, #mysql or #postgresql. Apache Q's: #apache. Linux Q's: Either #yourdistro, #linuxhelp or #linpeople. HTML/CSS/JavaScript Q's: #web. Just because some other channel is 'dead' does NOT mean you can ask here. <2> Colloid, good helpful forum: http://www.csscreator.com/css-forum/ <13> thanks <2> So... what template implementation do you use? <2> I'm on template.inc, phplib <2> It's confortable, better than fast templates, imho <2> and is LGPL... :D <8> phplib, haven't heard that name since, well, the 90's :) <8> remember people used that when php did not have sessions <15> what is wrong with this? ini_set("session.save_path", "C:/mysite/sessions/" ) ? <15> Im using windows and doesnt work <2> Yeah, it's kind of old :), but it serves the purpose <16> <?php mysql_connect("localhost", "root", "test1") or die(mysql_error()); <16> echo "Connected to MySQL<br />";?> <16> unable to connect <16> any ideas? <16> Fatal error: Call to undefined function mysql_connect() in c:\Apache\htdocs\dbconnect.php on line 2 <8> install mysql api <2> third time this day... <8> php.net/mysql for details <8> or, install php 4 ;-) <2> Maybe we should use a wiki <17> hi <2> I can implement one on my host <17> what is the best PHP5 framework? <8> referring people to the manual is sort of a wiki :) <2> yeah but, a wiki is more personalized <8> hashphp.org is the official site of this channel <2> ahaaa I didn't know <8> there is a faq there but nobody uses it, or refers to it <15> damnit <15> why cant I set the damn session path <8> then again, a lot of people prefer to not read such things and require live chat from a human <18> feistel: It doesn't exist <15> under unix I could understand cuz of rights.. but in windows <19> How do i test to see if a value is a-zA-Z <20> philip: so, instead of a wiki, it's needed a 'clever' bot :-) <8> myconid: php.net/cytpe <8> ctype <21> what's the simplest way of sending postdata over http with php? <18> myconid: ctype_alpha <2> ctype_alpha <21> curl? <10> prophile: http://mmcc.cx/sendtohost <2> If I remember wel... <21> mattmcc: thanks <22> is this the right way to ***ign to $result and check for query failure? if (($result = self::mysqli->query(...)) === false) { } ? <23> I'd split that into two lines. <23> And use is_resource() to check $result. <8> the code looks fine <17> Stormchaser: Smarty?
Return to
#php or Go to some related
logs:
#python #web how to change keyboard rate debian framebuffer font size vesafb-tng #gentoo dapper snes #perl #fedora examples of netlish #gaim
|
|