Jump to content

The-Last-Escape

Members
  • Posts

    116
  • Joined

  • Last visited

    Never

Everything posted by The-Last-Escape

  1. I am about to start a site creation for someone, he is wanting a newsletter on his site, where he can put what he needs to into it, and have it send to whoever he needs. Is it better to use a 3rd party script or create one from scratch, the project is for 500 for a site creation, recreating his old site, about 5-8 pages, and that's it, this is a challenge because the site is about something I know nothing about, but I have past content to go on, it's just the newsletter is what is making me wonder.
  2. I have just been on it now and it says "Test Page" so I geusse hes fixing it
  3. I finally delved into the world of databasing, as always I start comparing what is available and I run across this. Again, I am obsessed with standards compliant, I believe compliant on anything related to web design that can follow some sort of standard, I try to follow. About mysql, I do some searches and I find this. [a href=\"http://www.geocities.com/mailsoftware42/db/\" target=\"_blank\"]http://www.geocities.com/mailsoftware42/db/[/a] now keep in mind it only compares open source, so it doesn't do the other databases. But this is what I have a problem with I want advice on. I don't like MaxDB, Firebird, Ingres I just don't like the way they look, but on Mysql, and Postgresql, I had a few problems here I wanted advice on it seems to be a throwdown, there is one thing I am confused about I will get to that, but when I look through it I see. Mysql supports more platforms Mysql has a possibility of High speed, while postgresql doesn't Mysql seems to have a higher ability for stability mysql security features seem to be higher Mysql has more programming interfaces more storage engines Load balancing The thing that turned me off to mysql and hte main thing bothering me is the SQL STANDARDS COMPLIANCE The post gre sql is higher on that that mysql. Isn't that a bad thing, or compared does that mean nothing, I am really confuseda bout this, should I sacrifice some compliancy, for the benefit of extra functionality. Edit- also would MySql be acid compliant.
  4. How do I fully understand the concept of "function prototypes" I have learnt all the basics and I am starting learning to use functions, but before I get too far, I want a thourough understanding of the concept of "Function Prototypes" I appreciate the help, thanks. less-important question. With me being strictly an obsessed web developer that cares about nothing but everything web design and wants to learn all languages, that benefit the world of web design, how can C+, C++, and C# benefit me directly and indirectly relating to web design, coding, programming, promotion adn hosting. Or are these for other purposes.
  5. where do I find about superglobals in the manual at [a href=\"http://www.php.net\" target=\"_blank\"]http://www.php.net[/a] the following Name Functionality $GLOBALS Contains all global variables in your script, including other superglobals. This is not generally recommended for use, unless you are, for some reason, not sure where a variable will be stored. $GLOBALS has been available since PHP 3, and its operation has not changed. $_GET Contains all variables sent via a HTTP GET request. That is, sent by way of the URL. Users of older PHP versions will recognise this as being the same as $HTTP_GET_VARS array, which, although deprecated, is still available for use. $_POST Contains all variables sent via a HTTP POST request. This is similar to the old $HTTP_POST_VARS array, which, although deprecated, is still available for use. $_FILES Contains all variables sent via a HTTP POST file upload. This is similar to the old $HTTP_POST_FILES array, which, although deprecated, is still available for use. $_COOKIE Contains all variables sent via HTTP cookies. This is similar to the old $HTTP_COOKIE_VARS array, which, although deprecated, is still available for use. $_REQUEST Contains all variables sent via HTTP GET, HTTP POST, and HTTP cookies. This is basically the equivalent of combining $_GET, $_POST, and $_COOKIE, and is less dangerous than using $GLOBALS. However, as it does contain all variables from untrusted sources (that is, your visitors), you should still try to steer clear unless you have very good reason to use it. There's no equivalent to $_REQUEST in versions of PHP before v4.1. $_SESSION Contains all variables stored in a user's session. This is similar to the old $HTTP_SESSION_VARS array, which, although deprecated, is still available for use. $_SERVER Contains all variables set by the web server you are using, or other sources that directly relate to the execution of your script. This is similar to the old $HTTP_SERVER_VARS array, which, although deprecated, is still available for use. $_ENV Contains all environment variables set by your system or shell for the script. This is similar to the old $HTTP_ENV_VARS array, which, although deprecated, is still available for use. Not sure where to find those at in the manual, thanks.
  6. Sorry never mind I dont think you nderstand
  7. Well my question is how dose what I wrote above work
  8. Ok I have a major question. I have been studying for a long time, I want to go slow, get the ideas, and move foward at a good steady, sound knowledge pace, I have went through hundreds of tutorials and finally found one that is teaching me literally teaching me php. ok I am running off of [a href=\"http://www.hudzilla.org/phpbook/index.php\" target=\"_blank\"]http://www.hudzilla.org/phpbook/index.php[/a] I have learnt a lot since I started, I have gotten down variables, setting variables, manipulating variables with operators, i have not yet mastered or memorized all operators just greater than, less than, equals, equal to or greater than, equal to or less than, or, not, things of that nature. I haven't memorized them all. I have learnt functions, roughly how to look at a prototype of a function from teh manual and be able to tell relatively what's going on, except for what's in parenthesys still confuses me, I have learnt functions, atleast the basics of concepts and ideas surrounding the greater theory of functions. Now I am wading throughs ome stuff that I don't understand, not only that I am disheartened by one fact. First of all I cut through a tutorial about MIND YOU-I have not done arrays and objects yet, I was trying to grasp earlier stuff before I move onto more advanced stuff. I also learnt how to do if, elseif, while, and some other statements liek that, I also understand the basic structure of dowhile, and for statements. I am having trouble with switch case statements, and a little clouded on some of the deeper aspects of typecasting. I just need someone who can point me in the right direction and HOW DO I PULL ALL THIS TOGETHER to make a program, how is the entire section on mathimatical functions going ot help me create a program, like send form information, and code forums, adn guest books, I need to do this, and I want to learn as fast as possible, so I can start coding then let the better aspects of the knowledge fall in through trial and error.
  9. The site look's beautiful I like the coloures and I like the top where it says blush central and it has that picthure of that women really professional good work
  10. By what I have done with javascript, it is probably best if you didn't do that. Javascript isn't secure is any information going through that, and also you have to understand, with javascript no matter what some of your viewers will not have access to that, it is good to not put anything of utmost importance in javascript, as anyone with some older browsers that don't support javascript or if they have it turned off then what you are doing they won't see. Javascript is for preloading images, and dropdown menus with some peolpe that want it, as long as you have other links as well, and javascript isn't picked up in search engines, rethink wwhether you want to do this or not, but what you can do. and unfortunately you can only create 3 types of popup windows, alert, prompt, and another. Its with an ok button, with ok and cancel, and with typing in 1 thing. You can't create a form in javacsript popup by what I know I have never seen anyone do this before, having a form popup you can just have your form come up in another window with _blank, and then have it send it that way, and tell the window to close when they click the submit button by using the javascript onunload function. Let me know how this works.
  11. I have learnt a few new things about databasing but I had some questions. I have heard at www.w3schools.com that ms access was a database that should only used for small type databases, I have though talked to a few sql exprts, and they said they use data for everything, even huge massive databases with thousands and thousands of entrys. If there is a reason to not use msaccess for major databases what would those reasons be. And if I need another program for major databases, what is a good database program, that I can use that supports mysql, dbqwik, postgresql, and others as well, that is a best database program that is fairly easy to use, and can be used for all purposes big and small. I sort of want something that can work with all forms of database I want to use mysql with php, but I still want to know dbqwik, postgresql, and the other's out there in case if a client needs something done, or wants somethng done with a specific database type, or incase if the server I am working on, only supports a certain type.
  12. Right ok thanks for your help
  13. I have tried and tried to figure this out but have come to a dead end. I am trying to draw a line from multiple x,y points. The points are stored in a mysql database (extracted from a shape and dbx file). So point_id 1 might have 10 x,y coordinated and point_id 2 may have 20 (there in 6000 pont_id's all up - its just needs to run once on my own box so system resourses arn't a problem). I don't even know if GD's imageline would be able to do this? Any ideas?
  14. I've been working on something which takes multiple PNG Transparent images and layers them on top of each other to make another transparent image. So far it kind or works, however the background turns completely black and I'm not sure what to do from here. So my main question is, how do I make a transparent background without killing my antialising (I don't want to set a transparent color and place that color as background)? HERE IS MY CODE: $im = @imagecreatetruecolor(200, 200) or die("Cannot Initialize new GD image stream"); // Loading Images $red = imagecreatefrompng("red.png"); imagealphablending($red, true); imagesavealpha($red, true); $blue = imagecreatefrompng("blue.png"); imagealphablending($blue, true); imagesavealpha($blue, true); $green = imagecreatefrompng("green.png"); imagealphablending($green, true); imagesavealpha($green, true); // Flattening layers imagecopy($blue, $red, 0, 0, 0, 0, 200, 200); imagecopy($green, $blue, 0, 0, 0, 0, 200, 200); imagecopy($im, $green, 0, 0, 0, 0, 200, 200); imagealphablending($im, true); imagesavealpha($im, true); // Save image to disc imagepng($im, "final.png"); // Deallocate memory of image imagedestroy($im);
  15. have been lately trying to do mysql functions. I am just wondering why none of them have not been working, is there something I am doing wrong. I have tried using sum (the total amount of what is in rows) and LAST which is meant to get the last row that was entered, but nothing is working. $lastbills = "SELECT LAST(amount) FROM transactions WHERE type = 'Bill' AND userid = '" . $_SESSION['cymember'] . "' LIMIT 1;"; $lastbillq = mysql_query($lastbills); echo $lastbillsq; This is just one example of me trying to get the last occurence of something. I know queries aren't always the easiest to work with, but some of this stuff would be much simpler if I could get the hang of sql based specific functions that I can use straight in the query. Saving unnecessary time, I just have to learn to use them properly, any advice is greatly appreciated. Thanks.
  16. I'm currently working on a CMS and I'm doing the BBCode functions for it at the moment. Actually, I've been doing one part of the function for the last three days, and it has been driving me slowly but surely mental. Whatever I do, I CANNOT get this to work. I'll post the code I'm currently using, then try to explain my problem: Code: <?php function highlight($txt="") { $txt = html_entity_decode($txt, ENT_QUOTES); $txt = "<table cellspacing=\"0\" cellpadding=\"0\" border=\"0\" width=\"100%\"><tr><td class=\"code\"><div class=\"title\">Code</div><div class=\"content\">".highlight_string($txt, true)."</div></td></tr></table>"; return $txt; } function bbcode($message) { $message = preg_replace("'\n'", "<br>", $message); $message = preg_replace("'\[b\](.*?)\[/b\]'", "<b>$1</b>", $message); $message = preg_replace("'\[i\](.*?)\[/i\]'", "<i>$1</i>", $message); $message = preg_replace("'\[u\](.*?)\[/u\]'", "<u>$1</u>", $message); $message = preg_replace("'\[code\](.*?)\[/code\]'", highlight('$1'), $message); return $message; } ?> That's my function.php file, which is included in every single page. Anyway, it is the code tags ([*code][*/code] - without the asterisks) that I am having problems with. I've tried various ways of doing this, and so far none of them have worked. This is the one I have got at the moment, and it is the closest I have gotten to a working function. Anyway, the problem is that when the posted message is shown, it either shows '$1' instead of the text between the code tags, or it shows the text between the code tags, but not highlighted. The thing that is driving me to insanity is that even if the message put through the function is the same, it comes out differently at the end. For example, I might enter [*code]<? phpinfo(); ?>[*/code] once, and it will display '$1' (without the quotes), then if I enter the exact same message, it might display '<? phpinfo(); ?>', but not highlighted at all. I really have no idea what is wrong with it now, so any help at all that anyone can offer would be amazing. Thanks so much.
  17. Well on a week day about 1-2 hours but on a week end then proberly all day lol
×
×
  • 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.