Jump to content

webhead

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Everything posted by webhead

  1. [quote author=shoz link=topic=111678.msg452842#msg452842 date=1161036201]Does apache have write access to the directory you're trying to dump to? [/quote] DOH!! I could have sworn I set the chmod for that directory. The weird thing is that it wrote to that directory from Terminal. But since all is well now, no more swearing for me. ;-) Thanks loads!
  2. Thanks! Progress made but still no output file from mysqldump. What it's doing now is showing that it found mysqldump after the putenv statement, but the getenv is unchanged. Here's my code: [code]putenv('PATH=/usr/local/mysql/bin:' . getenv('PATH')); echo "getenv is --> ", getenv('PATH'); echo "<br /><pre>" . shell_exec('which mysqldump') . "</pre>"; $mysqldump =  "/usr/local/mysql/bin/mysqldump"; $command = "$mysqldump --version"; passthru($command); $dumpit = "$mysqldump -h $h -u $u -p$p $d > $filedest";  passthru($dumpit);[/code] And the displayed messages: [code]getenv is --> /bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/System/Library/CoreServices /usr/local/mysql/bin/mysqldump    (result of $command) mysqldump Ver 10.10 Distrib 5.0.24a, for apple-darwin8.5.1 (i686) [/code]
  3. Hi, I'm trying to do a mysqldump from php. I can do so from Terminal but not php. Phpinfo shows the PATH to be /bin:/sbin:/usr/bin:/usr/sbin:/usr/libexec:/System/Library/CoreServices but I need to add /usr/local/mysql/bin/ so it can find mysqldump. I made sure safe mode is off and tried various ways to set the mysqldump command, but it just can't find it. Here is what I tried with putenv: [code]$myPath = "PATH=/bin /sbin /usr/bin /usr/sbin /usr/libexec /System/Library/CoreServices /usr/local/mysql/bin/"; $chgPath = putenv($myPath); echo "<br>return value of putenv = ",$chgPath; echo "<br>my path = ",$myPath; echo "<br>returned path = "; echo getenv('PATH');[/code] Help!
  4. Hi, I'm having a similar problem, but the @ symbol does not suppress the messages. Here's my code: [code]$gets = "SELECT * FROM mytable WHERE $criteria"; $result = $connector->query($gets); if (!$rows = $connector->getNumRows($result)) { echo $error; }[/code] Here is the function: [code]function query($query) { $this->theQuery = $query; return @mysql_query($query, $this->link); }[/code] I get the "warning" message if the record being searched for does not exist.
  5. The GUI4me site is now transformed and ready for yet more analysis. [a href=\"http://www.gui4me.com\" target=\"_blank\"]http://www.gui4me.com[/a]
  6. [!--quoteo(post=365180:date=Apr 15 2006, 07:20 PM:name=redbullmarky)--][div class=\'quotetop\']QUOTE(redbullmarky @ Apr 15 2006, 07:20 PM) [snapback]365180[/snapback][/div][div class=\'quotemain\'][!--quotec--] now we're talking! although the designs of your other templates (including your actual main site) are vastly different to the leafy design, the principles and stages you've followed to turn what was frankly nasty into something that's looking pretty good are exactly the same. keep it up! Mark [/quote] Thanks for your advice and patience. I'll try and get to the other designs this week.
  7. Okay, made some changes, iz better?
  8. [!--quoteo(post=364899:date=Apr 14 2006, 05:06 PM:name=redbullmarky)--][div class=\'quotetop\']QUOTE(redbullmarky @ Apr 14 2006, 05:06 PM) [snapback]364899[/snapback][/div][div class=\'quotemain\'][!--quotec--] very true. but as for text size - 11 or 12px is fine for most viewers - and considering you're into your standards, maybe you should leave 508/accessibility to deal with those with impaired vision. i know a few people with vision impairment that have no problem getting round a site that has smaller text, as long as it complys with 508/accessibility standards. some more food for thought i guess. as for css zengarden site, there are hundreds if not thousands of examples on there of all sorts of design - floral, contrasting, futuristic, metallic, etc. research on good design takes hours and days, not a few minutes. if youre adament and committed enough to get your project off the ground, then spend some serious time lookin through sites like that. they will only help you more in the long run as well as now. [b]edit:[/b]loud primary colours can work too, but as with my previous comments, it has to fit in with what you're trying to do and all the elements need to belong together. here's my site i'm currently working on, with overly loud colours: [a href=\"http://www.crashandburn.co.uk\" target=\"_blank\"]http://www.crashandburn.co.uk[/a] good luck, Mark [/quote] For some odd reason your loud colors don't bother me. I have no clue why not. Well, between an afternoon of webhost technical difficulties and an evening of tornado warnings, I managed to tweak [a href=\"http://www.test.fether.net/index.php\" target=\"_blank\"]The Leafy Site[/a] somewhat. Would you consider it a step up or down? Tried to do something, anything with the edges, made the body text and h1 smaller. And it even runs okay on IE (pronounced aaaaaaiiiiiiiieeeeee!!!).
  9. [!--quoteo(post=364880:date=Apr 14 2006, 04:29 PM:name=titangf)--][div class=\'quotetop\']QUOTE(titangf @ Apr 14 2006, 04:29 PM) [snapback]364880[/snapback][/div][div class=\'quotemain\'][!--quotec--] Check out [a href=\"http://www.csszengarden.com\" target=\"_blank\"]Css At its best[/a] If you don't find something that's appealing there, well... I'll be baffled. This should also give you some ideas for some site design.[/quote] I did check that site out. Overall very nice colors and visuals. But one skin was extremely narrow, another had such small type at the top I could hardly read it, and another had reverse video that hurt to look at. Switching between them, I never knew where to look for the nav bar. So there's a web coder's design, and then there's an artist's design. According to all I've read about good web functionality, the navbar should be where people expect it to be, either on the top or the side, not somewhere in the middle or down far enough you have to scroll. People with less than perfect vision, like me, don't want to do the "increase text size" thing too much either. Small text may be more artistic but it still has to be legible. Most site visitors are either hooked or turned off in about 15 seconds, so if I can't easily find the nav bar or figure out what the site is about I will move on. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] Please don't keep the "ugly" skins... plz?[/quote]I don't know, I might leave them there just to annoy you >:-( [!--quoteo(post=364881:date=Apr 14 2006, 04:29 PM:name=redbullmarky)--][div class=\'quotetop\']QUOTE(redbullmarky @ Apr 14 2006, 04:29 PM) [snapback]364881[/snapback][/div][div class=\'quotemain\'][!--quotec--] youre right. even the ones that you may feel arent up to scratch will be of use to someone, i guess. otherwise, you'll actually find it an excellent 'guage' to how youre progressing. in terms of 'yesterday', it's a figure of speech but holds some weight in it. if you're really curious to see what i mean, then take a look for yourself: [a href=\"http://www.archive.org/\" target=\"_blank\"]http://www.archive.org/[/a] . the site serves not much more purpose than to see what sites looked like 'yesterday' and you'll see the way things have changed dramatically. look at 'google' and 'friendsreunited.co.uk' at archive.org to really see what i mean. [/quote] Thanks, I looked around there a little. Well at least I haven't done the loud primary colors, eh? (ok, the "chipset" design is ugly, but the whole idea was a circuit board look. Just for fun. And to annoy people.)
  10. [!--quoteo(post=364772:date=Apr 14 2006, 09:34 AM:name=redbullmarky)--][div class=\'quotetop\']QUOTE(redbullmarky @ Apr 14 2006, 09:34 AM) [snapback]364772[/snapback][/div][div class=\'quotemain\'][!--quotec--] check out ober's pinned topic at the top of website critique: 'Resources'. Even consider CSS for many of your elements. It will take you a little longer than drawing it up in photoshop, but it will force you to ask the question of whether each element belongs on the page. ... hope that helps some more [/quote]Yes, thanks. I get much more out of a detailed comment on exactly why a design is bad, than just being told "it's yesterday". I wasn't online "yesterday" so I have no idea. But I will try to get my head around what you're saying. For what it's worth, the gui site is all CSS and no tables (same for the "leafy" site, which is all served out of a database; I did all the php/mySQL, and it's basically a small CMS). Eventually I'll try and have a few different skins that can be selected by the site visitor. I'll keep the "ugly" skins just because if I didn't know they were bad, then someone else might like them too. But I'll also try and develope other styles as well so I can appeal to more tastes.
  11. [!--quoteo(post=364747:date=Apr 14 2006, 06:49 AM:name=redbullmarky)--][div class=\'quotetop\']QUOTE(redbullmarky @ Apr 14 2006, 06:49 AM) [snapback]364747[/snapback][/div][div class=\'quotemain\'][!--quotec--] my two cents: i hate flash (yes i know your site don't have any), and really dislike overly graphic intense sites. there are ways of doing a site that look 'graphically heavy' without drawing every last element in photoshop or whatever. to be honest, the more the web moves towards flash, etc, the more i move back to basics. it just makes me stretch imagination a bit more. for example - one of the most all round smartest sites out there uses a bit of graphics, DHTML and a bit of imagination: [a href=\"http://www.panic.com\" target=\"_blank\"]http://www.panic.com[/a] . more is less :)[/quote]Right, I don't like flash either. It's cool the first page load but after that it's just annoying. Thanks for the link, I'll check it out. I need lots of examples of good graphic sites. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]with all due respect to your last question, the site you presented asking if it was bad design is in a different league to yours at the moment. it's clean and well planned out, and everything is well contained and has a 'home'. it doesnt feel like a showcase, it feels like an operational website. like mober said - people come to see the content, so the content must be as clear as possible in amongst the graphics jungle.[/quote]I'm trying to see the difference between a graphic look that's clean and planned and those that aren't. Kinda liike why your post seemed much less hostile and bashing than the others :-) [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]you've definitely got something - but simply throwing as many curves, gradients, metallic effects etc onto a page doesn't mean it'll turn out great. keep plugging away and hopefully you'll end up with something that could take off. [/quote]So you're saying a graphic page needs to be more 3D looking? That the difference is in the amount of detail? What I hear everyone saying is that a good design is either light and minimal or extremely detailed like the one I linked to, is that accurate? [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--]in some ways, thanks to search engine optimization and a bit of creativity, it's easy to get on within a saturated market on the internet. all you need to do is make sure your site is the best example of what you're trying to achieve, and that your site is placed at the forefront when people are querying google or whatever.[/quote]That's why I'm here. I want to figure this out, honest. BTW, just curious: what about the "plant/leafy" template on my site, is that acceptable?
  12. No problem, just trying to get an idea of what works. Seeing that the market is saturated, it made sense to me that if I wanted in I'd have to do something different. I looked around and saw almost all the pastel look so I went the other way. But if everybody wants pastel that's what will sell, it's just that all websites will look alike. I must be in the wrong business, I dunno. So GUIs are out then? People just want light text on barely visible photo backgrounds, no depth and almost no color? Would [a href=\"http://www.absolutecross.com/tutorials/photoshop/\" target=\"_blank\"]This Site[/a] be considered bad design?
  13. [!--quoteo(post=364562:date=Apr 13 2006, 04:48 PM:name=moberemk)--][div class=\'quotetop\']QUOTE(moberemk @ Apr 13 2006, 04:48 PM) [snapback]364562[/snapback][/div][div class=\'quotemain\'][!--quotec--] Personally? I find your site unprofessional and similar to the style of the late 90's. It's a very graphics-heavy site, and the metallic gradients everywhere is one of my least-favorite design ideas. It isn't bad, but for a different kind of site. [/quote] So, you're saying a GUI site should not be graphics-heavy? I'm trying not to make it look like every other site also, which is the pastel/faded background picture look.
  14. It's nothing fancy, but I enjoy making GUIs with Photoshop and thought I'd try my hand at getting some orders. Biggest problem is promotion, as this usually involves having money to advertise and I really don't have it. So for now, let me know what you think of this simple one-page web. Thanks! [a href=\"http://www.gui4me.com\" target=\"_blank\"]http://www.gui4me.com[/a]
  15. I went to [a href=\"http://developer.apple.com/internet/opensource/php.html\" target=\"_blank\"]http://developer.apple.com/internet/opensource/php.html[/a] and followed the instructions. First I downloaded php 5.1.2 and uncompressed it. Then I went into Terminal: [code]cd /Applications cd \php-5.1.2 sudo mv libphp5 Password: nnnnnnnn usage: mv [-f | -i | -n] [-v] source target        mv [-f | -i | -n] [-v] source ... directory sudo apxs -e -a -n php5 libexec/httpd/libphp5.so [activating module `php5' in /private/etc/httpd/httpd.conf] cp /private/etc/httpd/httpd.conf /private/etc/httpd/httpd.conf.bak cp /private/etc/httpd/httpd.conf.new /private/etc/httpd/httpd.conf rm /private/etc/httpd/httpd.conf.new sudo open -a TextEdit /etc/httpd/httpd.conf ------ need to change line near end: "<IfModule mod_php4.c>" to 5 --------- ---------------- (wouldn't let me edit and save ) ----------------------------- sudo apachectl graceful /usr/sbin/apachectl graceful: configuration broken, ignoring restart /usr/sbin/apachectl graceful: (run 'apachectl configtest' for details) apachectl configtest Syntax error on line 243 of /etc/httpd/httpd.conf: Cannot load /usr/libexec/httpd/libphp5.so into server: (reason unknown)[/code] Help please?
  16. Sorry, I posted this in two spots, and I don't see how to delete this one.
  17. I have a from page which requires login with a username and password. It appears to work but when you go to the form page and submit the form, it takes you back to login again. The second time you supply the correct username and password it works fine. Here's code from the form page: <?php //check for authorization session_start(); if ($_SESSION['logged'] != 1) { $redirect = $_SERVER['PHP_SELF']; header ("Location: filemaint_login.php"); die(); } And this is the code from the login page: session_start(); define ('SQL_HOST','blah'); define ('SQL_USER','blah'); define ('SQL_PASS','blah'); define ('SQL_DATB','blah'); define ('SQL_LUSR','blah'); define ('SQL_LPAS','blah'); $_SESSION['logged'] = 0; if(isset($_POST['submit'])) { if ($_POST['username'] == SQL_LUSR && $_POST['password'] == SQL_LPAS) { $_SESSION['logged'] = 1; header ("Location: file_maint.php"); } else
  18. I learned the hard way that you can't use DW to edit phpBB styles. Even if you just change a comment line, undo the change, and upload it, the formatting will be all screwed up. Using a simple freebie code editor works just fine.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.