php/mysql in testing
Hi All, I'm having some problems with php/mysql after a system update ... my code was working before ... (but I've messed with it since) test code is: #phpinfo(); print(time()); $db_config["database_host"] = "localhost"; $db_config["database_user"] = "school"; $db_config["database_password"] = "bonfire"; $db_config["database_name"] = "school"; $db_connection = mysql_connect($db_config["database_host"] , $db_config["database_user"] ,$db_config["database_password"] ); if (mysql_errno()){ trigger_error("Server error:". mysql_error()); exit; } $db_selection = mysql_select_db($db_config["database_name"], $db_connection); if (mysql_errno()){ trigger_Error("Server error:". mysql_error()); exit; } ?> outputs 1054567413 Notice: Server error:Access denied for user: '@localhost' to database 'school' in /home/sean/projects/onlinedb/public_html/test.php on line 22 so it seems to be forgetting the db connection any help much appreciated :) Package: mysql-server Version: 3.23.49-8 Package: php4-mysql Version: 4:4.1.2-6 Depends: libc6 (>= 2.2.4-4), libmysqlclient10, zlib1g (>= 1:1.1.4), zendapi-20010901 Package: php4 Version: 4:4.1.2-5 Package: libmysqlclient10 Version: 3.23.49-8 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: wine and IE
Robert Ewald wrote: even with comlpiant browsers, valid html and valid css you can still get display difference between browsers! take the following (abrevieted) example #big {width : 100px; height :100px; background-color : red;} #small {width : 50px; height: 50px; background-color : blue;} a small div containing a big div now there is nothing invalid about either the CSS or the HTML above But it is clearly bad coding - the big div can't fit inside the small one - and the browser has to either increase the size of the small div, decrease the big one, break the containment ... This is clearly not logical, so why does the browser render it at all or tries to guess what the designer really meant? That makes no sense to me. Why not just saying bug in line 11, or something? well untill browsers do much more error reporting than is available at the moment - we still have to test websites on multiple browsers (or code without any logic errors ;) -- Sean Burlington -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: wine and IE
Matthew Weier O'Phinney wrote: -- Paul Johnson <[EMAIL PROTECTED]> wrote (on Wednesday, 19 February 2003, 10:15 PM -0800): On Tue, Feb 18, 2003 at 03:07:59PM -0600, DvB wrote: I've never done this, but I've seen it done (with me own eyes! :-) I don't think it worked as well as the native Linux browsers and probably would crash as soon as it started doing its Direct-X crap but, for your purposes, it would probably work (one would assume you do standards compliant development). Well, if that's the assumption, why bother getting IE to work at all? If you go to the standard, and it works in one browser, than it'll work anywhere. Save yourself the trouble. 8:o) Because IE has around 90% share of the browser market -- if it doesn't work on IE, you lose your audience. And, contrary to popular belief (hint: sarcasm!) coding standards-compliant HTML and CSS does not mean that if "it works in one browser, than[sic] it'll work anywhere." Not all browsers implement standards the same or correctly -- and, with the number of older browsers out there, you have to be worried also about graceful degradation of the code so that bugs in older browsers don't make a site unreadable. even with comlpiant browsers, valid html and valid css you can still get display difference between browsers! take the following (abrevieted) example <br> #big {width : 100px; height :100px; background-color : red;}<br> #small {width : 50px; height: 50px; background-color : blue;}<br> a small div containing a big div now there is nothing invalid about either the CSS or the HTML above But it is clearly bad coding - the big div can't fit inside the small one - and the browser has to either increase the size of the small div, decrease the big one, break the containment ... unfortunately different browsers cope with this situation in different ways... and while in this example it is easy to see what is wrong: in more complex pages similar things happen but are much harder to debug. and I have not seen any tools that validate html and css together (though the mozilla DOM inspector comes close) -- Sean Burlington -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: backporting
Rob Weir wrote: On Mon, Feb 10, 2003 at 05:27:54PM +, Sean Burlington wrote: I needed a newer version of sane to support my scanner and ended up backporting the sane packages from unstable to testing but as its the forst time I have done this sort of thing I just want to ask - have I done this a sensible way ? [snip] Am I likely to have broken anything by modifying the configure script without changing the package version ? (if so - how do I change the package version) No. The worst case is that apt decides it likes Debian's packages more than yours and tries to 'upgrade' it to whatever it sees on your mirror. You can avoid this by bumping the version number, but since it seems the point of this was to get a newer version, you should be fine. yeah - I wouldn't have any complaints about apt installing the officail version over mine all comments welcome - I've only been using debian for a few weeks having migrated fron redhat. Wow, impressive :) Two weeks from newbie to package backporter :) the things you can do when you're in between jobs ... and I have been using Linux for around 5 years now - so I'm maybe not your typical newbie ;) So far its goping OK - but there are a few packages where I really need more up-to date versions. Yeah, that's true. Try apt-get.org for lots of other backports and unofficial packages; you might even want to list your packages there. I've had a look there but not found the things I wanted BUT - now I look again and find the sane packages have already been backported !!! I was looking for the original package names of sane-frontends sane-backends but the debian packages become libsane libsane-dev libsane-extras libsane-extras-dev sane sane-gimp1.2 sane-utils oh well - thats the price of unfamiliarity ! still I learned some usefull stuf :) my next project will be to have a look at backporting gnomemeeting - which could be more trivky as the unstable package has heaps of dependancies from gnome2 thanks for your comments -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Courier-IMAP Config
Kevin Smith wrote: Hi All, I've installed courier-imap and courier-webadmin, however, can someone please point me to some decent documentation for the Debian platform as so far I've tried following this manual: http://www.courier-mta.org/ and all the installation directories are different and half the files seem to be different or missing. I'm no expert on this having just done it for the first time but it seeems to me that courier-imap didn't need much configuring - what I had to work at changing was making exim deliver to maildirs (which courier-imap requires) I kept getting erros like can't chdir to Maildir (sorry cant remember or find the exact message. In order to run an a mailserver, does courier-imap install a mailserver by default, like exim? you do need to have a smtp server like exim installed yes I installed the two packages as follows: apt-get install courier-imap apt-get install courier-webadmin Also, when I tried to login into webadmin, it keeps telling me I've entered an incorrect password. When I first installed courier-webadmin, it asked me to enter a password. And this is the same password I enter for webadmin. I gave up on webadmin (tried to install it before mysql - and it all went horribly wrong) I found this usefull http://www.tty1.net/virtual_domains_de.html even though I have only implemented parts of it -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
backporting
I needed a newer version of sane to support my scanner and ended up backporting the sane packages from unstable to testing but as its the forst time I have done this sort of thing I just want to ask - have I done this a sensible way ? I basically followed instructions from http://www.uk.debian.org/doc/manuals/reference/ch-package.en.html#s-port $ apt-get source package/unstable $ dpkg-source -x package.dsc $ cd package-version ... inspect required packages (Build-depends in .dsc file) and install them too. You need the "fakeroot" package also. $ dpkg-buildpackage -rfakeroot ...Then to install $ su -c "dpkg -i packagefile.deb" but in addition the sane-backends package had a dependency on gphoto2 that I couldn't resolve - but I don't need gphoto2 support so I deleted the --with-gphoto2 line from the configure script in rules and removed gphoto2 from the depends line the resulting packages installed fine and work nicley. Are they now installed as part of the package system ? Am I likely to have broken anything by modifying the configure script without changing the package version ? (if so - how do I change the package version) all comments welcome - I've only been using debian for a few weeks having migrated fron redhat. So far its goping OK - but there are a few packages where I really need more up-to date versions. -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: wget and ftp download problems
Rob Weir wrote: On Sun, Feb 09, 2003 at 11:20:32AM +, Sean Burlington wrote: Dave Selby wrote: On Sunday 09 February 2003 8:45 am, you wrote: On Sun, 9 Feb 2003, Dave Selby wrote: Having a bit of trouble with wget loading from ftp sites, have set it up to load urls from a text file. Are you sitting behind a firewall at all? Have you allowed both port 20 Sure am sitting behind a firewall, Its a pretty crude affair, blocks all NEW packets from outside, lets in ESTABLISHED & RELATED. So should allow a transmit from my machine via any port, and accept any ESTABLISHED, RELATED packet back in. I have unfortunately got the same problem on all ftp sites I have tried. ESTABLISHED can match the incoming part of ftp downloads if you modprobe ip_tables I think you mean the 'ip_conntrack_ftp' module. Possibly also 'ip_nat_ftp', too. oops yes - cut n pasted the wrong bit though I haven't used ip_nat_ftp -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: wget and ftp download problems
Dave Selby wrote: On Sunday 09 February 2003 8:45 am, you wrote: On Sun, 9 Feb 2003, Dave Selby wrote: Having a bit of trouble with wget loading from ftp sites, have set it up to load urls from a text file. Are you sitting behind a firewall at all? Have you allowed both port 20 Sure am sitting behind a firewall, Its a pretty crude affair, blocks all NEW packets from outside, lets in ESTABLISHED & RELATED. So should allow a transmit from my machine via any port, and accept any ESTABLISHED, RELATED packet back in. I have unfortunately got the same problem on all ftp sites I have tried. ESTABLISHED can match the incoming part of ftp downloads if you modprobe ip_tables (some people seem to have trouble with passive downloads) -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: More detailed post ...
Daniel Barclay wrote: martin f krafft wrote: ... Please do not CC me when replying to lists that I read! How are others supposed to know which lists you read (vs. which you have just posted to)? http://www.debian.org/MailingLists/ Code of conduct When using the Debian mailing lists, please follow these rules: . * When replying to messages on the mailing list, do not send a carbon copy (CC) to the original poster unless they explicitly request to be copied. This is one of the things mutt is very good at (unfortunately I haven't found a gui mail client that makes it easy to avoid cc'ing people on lists.) -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: ssl based file transfer gui program
Calber Chainy wrote: Hello list, I'm looking for a program to transfer files using ssl, but I couldn't find one that fits my needs. Can anyone help me? not sure what you mean by file transfer over ssl - most web browsers, email programs etc do this to some extent ! maybe you mean ssh ? maybe gftp would do what you want gFTP is a multiprotocol file transfer program for X Windows and the console. It features support for the FTP, SSH, HTTP, and local file system protocols, simultaneous downloads, resuming of interrupted file transfers, file transfer queues, downloading of entire directores, ftp and http proxy support, remote directory caching, bookmarks menu, stop button and many more features -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: apache, mod_perl, apt-get php4
cmustard wrote: I run apache 1.3.26 and mod_perl, i recently did 'apt-get install php4', which installed fine and ran apachectl when finished which i assumed meant that it set up apache and php to work together and loaded php4 as a DSO, so i edited the httpd.conf and uncommented all the #php4 lines like the LoadModule line and mime-type lines. I restarted apache and attempted to view php pages, with no luck. what happened when you tried - any error messages in the logs ? did apache just send the php source ? Do i have to ./configure php or re-compile apache to work together? I got plenty of doc support on apache and php sites but no specific debian 'apt-get' info on exactly what to do, or where to go from here. I know the beauty of apt-get is that you don't have to do a lot of the normal compiling etc, like on other systems. apt-get php4 worked for me the relavent lines in my httpd.conf are LoadModule php4_module /usr/lib/apache/1.3/libphp4.so AddType application/x-httpd-php .php (and I may have adjusted these manually) -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [OT] Capitalism (was Re: columbia -- what really happened)
Charlie Reiman wrote: -Original Message- From: Sean Burlington [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 04, 2003 11:45 AM To: DvB Cc: Debian-User Subject: Re: [OT] Capitalism (was Re: columbia -- what really happened) This whole thread seems to be treating the rest of the world like some distant scenery. From any given point on the world, the rest of the world _is_ distant scenery. For futher discussion, see "Here vs. There," and "Small or Far Away: A Case Study." this list isn't on *any* given point on the world (or rather it is on lots of points). get some perspective - see the world ;) Can we please let all these Columbia/capitalism/America (sucks/rules) threads just die now? Please? I'm all in favor of ranting and discussion but this just isn't the place. sure - just someone you disagree with have the last word ;))) -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: [OT] Capitalism (was Re: columbia -- what really happened)
DvB wrote: AFAIK, many European countries have been doing that for some time now. Their citizens have a relatively high purchasing power, yet they still have relatively successful and extensive social programs. The ideology that there must be something wrong with you if you don't make enough money to, not only feed yourself and your family, but also purchase a large house on a large tract of land and at least two cars is almost exclusively American. Of course, like most things American, it's been spreading like a pleague. Not to say that Europe is a utopian society and the US should emulate it to the farthest extent possible, but the current trend of being as exactly oposite as possible is counter-productive, IMHO. There definitely are some things to be learned from the European model. why do I get the impression that some people on this list forget that Debian is an international project ? This whole thread seems to be treating the rest of the world like some distant scenery. and BTW Europe is made up of lots of countries, there is more than one model ! -- Sean London England -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: CD Player no sound
for some reason win XP doesn't use the audio cable... Willem-Jan Meijer wrote: This isn't the problem, sound worked fine under XP Pro HTH, Willem-Jan Meijer Op maandag 3 februari 2003 20:18, schreef DvB: Willem-Jan Meijer <[EMAIL PROTECTED]> writes: Hello all, My sound is working fine, but when I want to play an audio-cd I hear nothing, Noatun works fine, system sound works fine but when I open the cd-player I hear nothing. The program doesn't crash like XMMS there's just no sound. /dev/dsp is chmodded to 666, my soundcard uses the cmpci driver, used sound system is in auto-detect mode. What do I have to set to get sound from the cd-player? Is your CD-ROM drive hooked up to your computers sound? I don't know what it's called, but there's some hardware cable you're supposed to hook up to your drive in order for it to create sound output (of course, if playing CDs worked in the past, this probably isn't the problem). -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Migrate from RedHat to Debian
on Tue, Jan 28, 2003 at 01:44:10PM +, Jimbo De La Fuente ([EMAIL PROTECTED]) wrote: What are the experiences other people have with migrating from RedHat to Debian. Are there any other options as a distro (I'm looking for a distro with security written in bold)? I made the switch about a week ago primarily because I don't like the RedHat upgrade cycle ...there always seemed to be something I wanted to upgrade to the latest version for - but then I got stuck with latest-realease-bugs too and upgrading always seemed to disruptive My experiences of debian so far 1) it made me apreciate the ease of use of the RedHat installer installing Debian is *much* harder - you actually have to know what you are doing ! 2) I actually installed stable and upgraded to testing - very smooth upgrade, *so* much easier that RedHat 3) with RedHat I tended to istall everything as it was hard to solve unmet dependancies later - Debian doesn't have this problem so I have a much lighter system and install what I need as I go on. 4) Debconf means that packages can be configured as part of the installation process, there is less 'autoconfiguring' and thins like init scripts are much easier to read 5) Debian has the brilliant strategy of giving everything a man page - if something doesn't have its own page some lovely developer creates one that says 'this doesn't have a proper man page - see here for the docs' 6) It's quite a learing curve adpating from rpm to apt ... well I'm still reserving judgement - but so far I'm happy with my move -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: How to read DocBook file?
Kent West wrote: I'm trying to find out how to set "noauth" globally in kppp (or at least let a normal user set it), but apparently KDE's documentation is in docbook format, and is quite unreadable in all the editors/word processors/browsers I've tried (gedit, kedit, nedit, vi, abiword, OOo, Mozilla, Konqueror). I've both googled and dogpiled for this question, and it seems like maybe docbook files have to be converted to some other format first, like by using docbook2html or something similar. But surely there's a reader (or a browser plugin, etc) of some sort that would automatically make docbook files readable. To me, having to convert a file before being able to read it will be a major turn-off for the masses, because it is for me, and I'm more geeky than the masses. I think docbook isn't intended as an end-user format that said - try using Lyx - its an editor rather than a viewr but it does disply docbook files well but are you sure these files aren't available ready converted ? -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: list delay
Nathan E Norman wrote: On Fri, Jan 31, 2003 at 05:37:09PM +, Sean Burlington wrote: mail does seem to get stuck on the mailserver at debian for a couple of hours Sometimes, but not all the time. Thus, we can conclude that this is not a constant problem. so it's probably not down to the internet - bandwith or server load seem the likely culprits. other mailing lists I'm on certainly don't suffer this problem with mails returning in under a minute anormally No offense, but I seriously doubt that last Friday and Saturday you were getting replies in under a minute from any mailing list. no but I have since monday OTOH there's no argument that the debian list server is probably in need of an upgrade. I've no idea what they've got right now, but I'm sure donations will be accepted :-) I'm sure they accept donations... and if I get some work I might make one - in the meantime I guess it's just idle curiosity as to what the problem is. Say, do those other mailing lists (why would you need other lists?? :-) apply spamfilter to every message? some do some don't - but this is by far the slowest list I can remember subscribing to -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: list delay
Nathan E Norman wrote: On Thu, Jan 30, 2003 at 08:36:01PM -0600, Jason Pepas wrote: On Thursday 30 January 2003 06:15 pm, Michael Wardle wrote: Hi I've only recently subscribed to debian-user, and I notice that I receive messages sent to the list 4 or 5 hours after they have been sent. Among other things, this typically results in several identical responses to a question, as subscribers are unaware that somebody has already responded. I do not notice this on any other mailing lists. I'm sure if someone donated a more powerful machine and more bandwidth, it would help. I've some opinions for slowness: 1) Overall crappiness of the Internet due to the exploit du jour. 2) time of day: the list seems slower during US working hours (but this might be my imagination). I know I've posted at 3 am and have seen my post within minutes (actually seconds but you'd never believe me :-) 3) People increase the load by posting over and over!! How stupid. ''Dr., it hurts when I do this to my arm.' 'Then don't do that'' mail does seem to get stuck on the mailserver at debian for a couple of hours so it's probably not down to the internet - bandwith or server load seem the likely culprits. other mailing lists I'm on certainly don't suffer this problem with mails returning in under a minute anormally -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: pppd on demand trouble
Sigmund Svertingsson wrote: Greetings, all. I'm running Woody on an old Pentium box as my gateway/firewall/fileserver for my LAN here at Castillo del Lago (my home). Life is good here, and I'm really enjoying Debian, but I'm kind of stuck with the demand dialing thing. If I comment out the "demand" and "persist" statements in /etc/ppp/options and /etc/ppp/peers/provider, I can say "pppd call provider" and the modem dials (and I post to the list asking for help). are you getting a connection from the dial-up server or from onr of you lan machines ? I do get "tdb_store failed: IO Error," but the link comes up fine, and here I am. http://www.google.co.uk/search?q=tdb_store+failed%3A+IO+Error seems to be a samaba problem If I uncomment "demand" and "persist," when I call pppd and then point the browser of one of my masq'ed machines outside of my LAN, the Woody box just sits there. did you restart pppd ? is the dial-up server a default gateway for the lan machines ? Oh, I also have smbd running on the Woody box (shouldn't matter, I would think.) This is obviously a problem that has been solved, just not by me :-/ I don't know what else to toss out in the way of info for now, but will cheerfully provide more if asked. if it's still not working send us the output of `ifconfig eth0` for both machines and `ifconfig ppp0` for the dial-up server when pppd is running but the line is down. -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: pppd on demand problems...
Vittorio wrote: thought:the simplest, the better! Therefore no diald by far more complicated than ppp on demand which I'd learned had been somewhat enhanced (it works fine at last, they say), pppoe, openssh, iptables, kernel 2.4.19, lynx, all for a mere 300 MB of disk space. Now the problem is that if I launch a "lynx www.debian.org" either from the server or from a client the ppp session starts immediatedly and all works fine. But, once closed lynx, ppp doesn't hang up but stays connected endlessly. well I can't tellyou for sure unless you send some more information ... but most likely you have called pppd with the demand option - so it connects as it is supposed to ... but you didn't set the idle time - to tell it when to disconnect try adding 'idle 120' (this should cause disconnect after 2 minutes) so the command should be like pppd call isp demand idle 120 you have to experiment to find the idle time that works for you - too low and the connection drops while browsing - too high and it can be expensive. note also that all sorts of things can trigger dial on demand see man pppd for more details -- Sean -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]