The important parts are bolded. If anyone has any ideas or help, I'd greatly appreciate it.

Thanks!!!

x-posted to '[info]'webdev, '[info]'webdesign, and '[info]'computergeeks (just in case).

Source: http://www.livejournal.com/community/webdev/230446.html

  • Cheat Sheets

    Date: 08/05/05 (IT Professionals)    Keywords: php, mysql, css, xml, sql, java, web

    ILoveJackDaniels.com has some really great cheat sheets that you may find handy.



    He just added some javascript cheats which includes XMLHTTPRequest cheats, function cheats, etc.

    http://www.ilovejackdaniels.com/cheat-sheets/

    He has Javascript cheats, PHP cheats, RGB Hex Color chart, mySQL, CSS, mod_rewrite, regular expressions and others.

    x-posted to '[info]'webdev.

    ps. Are any of you from the Bay Area?

    Source: http://www.livejournal.com/community/itprofessionals/16669.html

  • Trees

    Date: 08/05/05 (PHP Community)    Keywords: php, programming

    I'm back to working on my project management program, and I'm having difficulty in planning how to store and then retrieve and show the tasks as being dependent on each other. As I've been going through this by hand as a preparation to programming it, it seems to me that the project path would be like a kind of tree that ends up connected back to itself.

    I will probably have a table that contains the two task numbers and the type of association. That seems all well and good, but I'm not sure what to do with the information from there.

    The question I have is this: Does anyone know of any good resources or have any good hints on developing tree structures in PHP? I haven't been able to find anything useful on the subject.

    Source: http://www.livejournal.com/community/php/331872.html

  • InnoDB

    Date: 08/05/05 (MySQL Communtiy)    Keywords: php, mysql, sql, web, apache

    hey guys, me again -

    i've got mysql 4.1.13a-nt running on win xp pro (apache and php4 as well, shouldn't be relevant tho) and I'm trying to set up and use InnoDB (for the foreign keys) - whenever I make a new table in EMS MySQL Manager or through the command-line utility and try to set it as InnoDB, when the table appears, it's always MyISAM

    I'm sure my MySQL Manager version supports InnoDB since it works when I create an InnoDB table on my webhost, it's only not working locally

    I did the InnoDB config on install of MySQL - is there anything else I have to set or enable to use InnoDB?

    Source: http://www.livejournal.com/community/mysql/65658.html

    1. Not Enough Memory?

      Date: 07/29/05 (PHP Community)    Keywords: php

      I am attempting to write a script that will take an image (jpg) and
      resize it on the server side and then save the resized version while
      discarding the original.  I have it working, but only with smaller
      files.  Once I try to upload a 400K file, the default 8Meg memory
      allocation tells me that there is not enough memory.  Of course, if I
      increase the memory in php.ini to 20 or so, it works, but this can't be
      a good idea.

      I find it hard to believe that the system is using all 8 meg for simply
      resizing a 400KB file.  I'm not very PHP savvy, so, any help will be useful.

      Source: http://www.livejournal.com/community/php/326816.html

    2. Gallery combination

      Date: 07/29/05 (PHP Community)    Keywords: php, html, web

      Right,

      I've got a gallery on a simple site I made for a friends band (apologies in advance if the red is overwhelming)

      http://fourworldtheory.com/gallery.php
      It does it's job BUT when you click on a thumbnail the scroll bar jumps back to the beginning (I know this is because the page re-loads)Which is quite annoying.

      I've been playing with this gallery
      http://fourworldtheory.com/scroll_gallery.html
      And it doesn't jump BUT I have to put all the images in the html first, which is very time consuming etc when there's so many images.

      Does anyone know if I can combine the two as it were?
      Have the php script load the images, then have the gallery that doesn't jump back to the beginning?

      Posted this in '[info]'webdev as well.




      $d = opendir("/home/james/sites/fourworldtheory.com/images/pictures_of_us/thumbs/");
      while(false !== ($f = readdir($d))) {
      if($f == "." || $f == "..") continue;
      print("\t . str_replace("50", "lg", $f) . "\"> alt=\"\"/>\n");
      }
      ?>



      Click to enlarge



      theory.com/images/$_GET[img]")){
      print("\"\"/");
      }?>



      Note: a friend helped me with the php, still very much a beginner myself

      Source: http://www.livejournal.com/community/php/326225.html

    3. Valnerability in php?

      Date: 07/29/05 (PHP Community)    Keywords: php, database, web

      Hi Everyone.
      I’m hoping someone can help me out with some code. I have a script on my website to automatically email me visitor comments. Last night my web host disabled it, saying there was a vulnerability that hackers were exploiting. I’ve looked over the script, but I can’t seem to find the vulnerability.


      $mail_path = "/usr/sbin/sendmail -i -t" ;
      $mail_to = -- my personal email address --;
      $mail_subject = "[Webpage Email] ";

      $email = $_RESQUEST['useremail'];
      $message = $_REQUEST['message'];
      $mail_subject .= $_REQUEST['subject'];

      if (!isset($referer)){$referer = $HTTP_REFERER;}

      if (trim($message) != ''){
      mail($mail_to,$mail_subject,$message,
      "From: $useremail\r\n" .
      "Reply-To: $useremail\r\n" .
      "X-Mailer: PHP/" . phpversion());
      $display = "Thank you for submitting an email.
      Your message has been successfully sent.
      Redirecting you to $referer in 5 seconds.";
      $meta = "";
      }
      ?>



      They also site these logs as evidence of the hack
      200.175.152.226 - - [27/Jul/2005:20:55:45 -0400] "POST /email.php?referer= HTTP/1.0" 200 2155 "http://www.aellalei.com/" "-"
      202.106.124.32 - - [27/Jul/2005:20:57:02 -0400] "POST /email.php?referer= HTTP/1.1" 200 2167 "http://www.aellalei.com/" "-"
      195.245.185.18 - - [27/Jul/2005:20:58:21 -0400] "POST /email.php?referer= HTTP/1.1" 200 2167 "http://www.aellalei.com/" "-"
      69.118.168.253 - - [27/Jul/2005:21:02:43 -0400] "POST /email.php?referer= HTTP/1.0" 200 2501 "http://www.aellalei.com/" "-"



      Also, I’m using a similar script to email users about updates. That script queries a database to get the user emails. Is it likely to have the same vulnerabilities?

      Source: http://www.livejournal.com/community/php/325993.html

    4. WOO!

      Date: 07/30/05 (Web Development)    Keywords: php, mysql, sql, web

      About a week ago I made a post asking for references on PHP because I had just interviewed for a job at a web design firm and my lack of PHP knowledge was one of the things holding me down. Well, like I said, I spent all weekend studying PHP (thanks for all the references everyone!) and tearing apart existing PHP scripts until I was able to write my own scripts without using any reference. By Tuesday I had written a blog system using PHP and MySQL (complete with login authentication using sessions, add, edit and delete entries, and add or remove posters on the system, plus much much more...which, I'm pretty sure you would agree is a pretty easy task, but having only started learning PHP three days prior, I'm quite proud of myself).

      Anyway, I went in for the second interview on Wednesday this week and showed them what I had accomplished over the four days between interviews.

      This morning I got a call from them offering the job to me :o) I start on the 15th.

      Anyway, I just wanted to thank everyone for hooking me up with the PHP references.

      Source: http://www.livejournal.com/community/webdev/228601.html

    5. WOO!

      Date: 07/30/05 (WebDesign)    Keywords: php, mysql, sql, web

      About a week ago I made a post asking for references on PHP because I had just interviewed for a job at a web design firm and my lack of PHP knowledge was one of the things holding me down. Well, like I said, I spent all weekend studying PHP (thanks for all the references everyone!) and tearing apart existing PHP scripts until I was able to write my own scripts without using any reference. By Tuesday I had written a blog system using PHP and MySQL (complete with login authentication using sessions, add, edit and delete entries, and add or remove posters on the system, plus much much more...which, I'm pretty sure you would agree is a pretty easy task, but having only started learning PHP three days prior, I'm quite proud of myself).

      Anyway, I went in for the second interview on Wednesday this week and showed them what I had accomplished over the four days between interviews.

      This morning I got a call from them offering the job to me :o) I start on the 15th.

      Anyway, I just wanted to thank everyone for hooking me up with the PHP references.

      Source: http://www.livejournal.com/community/webdesign/942191.html

    6. Good community introduction: I'm dumb.

      Date: 07/30/05 (Javascript Community)    Keywords: php

      I THOUGHT I posted here a week ago looking for some help... and only noticed today that I forgot to select the journal to post to. Whoops. (I swear I usually check that.) Luckily, that problem has been fixed, but now I have another one.

      I have a frameset page. In the frameset are two frames: a screen-sized one called Interface, and a hidden one called Backend. The frame Backend contains some PHP which interacts with the shell somehow, depending on input, and prints output. Interface, amazingly enough, provides a user interface for this.

      The idea is, Interface uses DOM to set some form values in Backend and submit the form (whose action is also Backend). Backend then has some text in an element from which Interface can grab it, using DOM again, and inform the user appropriately.

      My problem is in accessing Backend at all from Interface. While I tend to have trouble pinpointing the correct way to refer to elements, I THINK I should be using something like this:

      parent.Backend.contentDocument.anyPropertyOfBackend

      However, whenever I try to access anything matching that pattern, I get the error that parent.backend.contentDocument.whatever has no properties. I can alter the frame itself okay, so it gets as far back as the frameset, but no farther. I've tested Backend and it works fine.

      Am I just totally wrong about how I should be going about this? If not, any ideas?

      Source: http://www.livejournal.com/community/javascript/71692.html

    7. asking for opinions

      Date: 07/31/05 (Web Development)    Keywords: php, web

      Hey guys...

      I've been quite busy finishing up my personal website, and finally i'm done. Sort of.. cause i know the best beta testing is after launch :P So i'm expecting some bugs to come up along the way.

      So anyway, since some of you helped me a lot facing several issues that came up in this project, i'm posting this to ask for your opinions on the website. If you like it, if you don't, why, what would you change, etc.

      Basically, i'm asking for some feedback. ;)

      Thank you all in advance. Here's the link:

      http://andr3.net

      crossposted to '[info]'php and '[info]'webdev

      Source: http://www.livejournal.com/community/webdev/228657.html

    8. help me!!

      Date: 07/31/05 (PHP Community)    Keywords: php

      I'm so sorry if this is completely beneath any of you, but I do need help.  I am a newbie and am currently trying to read this book to teach myself all about PHP.  I cannot figure out what I am doing wrong.

      The example calls for two different files -- one which receives input and the other that I guess explains what to do with it.  Here are the two simple files:

      File#1


      Welcome!


      What's your name?



      File #2



      Welcome!


      Welcome, !



      But when I go to the first page and enter in a name, rather than reading "Welcome, NameIEntered!" it reads "Welcome,!"

      Please help!  Did I do something wrong you think?

      Source: http://www.livejournal.com/community/php/327779.html

    9. asking for opinions

      Date: 07/31/05 (PHP Community)    Keywords: php, web

      Hey guys...

      I've been quite busy finishing up my personal website, and finally i'm done. Sort of.. cause i know the best beta testing is after launch :P So i'm expecting some bugs to come up along the way.

      So anyway, since some of you helped me a lot facing several issues that came up in this project, i'm posting this to ask for your opinions on the website. If you like it, if you don't, why, what would you change, etc.

      Basically, i'm asking for some feedback. ;)

      Thank you all in advance. Here's the link:

      http://andr3.net

      crossposted to '[info]'php and '[info]'webdev

      Source: http://www.livejournal.com/community/php/327290.html

    10. Programming (part two)

      Date: 07/31/05 (Computer Geeks)    Keywords: php, programming, software, css, html, xml, database, asp, sql, java, security, web

      A few weeks ago, I asked about programming languages and which I should learn, and your reaction had me thinking that I could have offered more info about what I hoped to do with computers. My request was so vague that I can see why you found it difficult to reply. Perhaps this time I'll do better.

      To make things easier, I'm providing a list of what I want to do, and I ask you if you know what languages or applications I should consider in order to fulfill my technological goals.

      I'd like to:

      1. build web pages
      2. provide internet security for large & small clients
      3. make computer games
      4. build my own OS from scratch (a big task, I know)
      5. create, edit, download, and manipulate multi-media images and files
      6. develop application software
      7. build and manage my own server
      8. develop databases
      9. get a general feel for everything else, in case I ever need it


      So my current list of stuff I wish to learn now includes:
      • Java
      • Java Script
      • Perl
      • C, C+, & C++
      • PHP
      • SQL
      • CSS
      • HTML
      • XML
      • Adobe Photoshop
      • Adobe Illustrator
      • Flash & Dreamweaver
      • .Net (VB.net, ASP.net, C#)
      • CGI

      If you know anything about the above, feel free to post:

      What are each of the above used for? How did it come out? Are any of them similar or used for similar tasks? Etc., etc., etc.

      Finally, I was told to learn some Assembly language, but unless I am mistaken, I think I learned that already. If someone could give me a rundown on what it is, I could be sure if its what I think it is. I think I learned 8086 in my day (came with a card, too), so all I have to do is review it I think.

      Your help and suggestions are welcome and I thank you in advance for your time.

      Source: http://www.livejournal.com/community/computergeeks/740093.html

    11. login, user accounts, etc.

      Date: 08/01/05 (WebDesign)    Keywords: php, css, html, java, web

      Hi,
      Sorry this is probably a rather dumb question but...
      So I've been doing web design for quite some time now, using the basic design languages, html,css,dhtml,php,java. But I think I've kind of come up with an idea finally, a good idea, for a hopefully profitable website!
      But one of the problems is, I need to be able to have users who can sign up and create their own accounts, such as signing up on LJ or Deviantart and getting your own page.
      But I'm not exactly sure how to start creating such a thing. What language do I need to learn in order to accomplish that? so they'd have their accounts on a sub domain in essance. www.webpage.com/username
      I've thought about using phpnuke or a forum based site but it just wouldn't work for my idea. I like Deviantart's setup. I would need something similiar to what they've got.
      Thanks for reading my dumb question, I hope someone knows what I need.

      Source: http://www.livejournal.com/community/webdesign/942600.html

    12. hmm the logic escapes me

      Date: 08/01/05 (PHP Community)    Keywords: php

      if (isset($_POST['actives_endowment_fund'])) OR (isset($_POST['provisional_endowment_fund'])) OR (isset($_POST['sustainer_endowment_fund'])) OR (isset($_POST['non-resident_endowment_fund']))

      gives me
      Parse error: parse error, unexpected T_LOGICAL_OR in /######/member_form.php on line 221

      so what am I missing here? I was chugging along quite nicely and I have four types of objects that I am doing simmilar but different work on. But in this once call I am going to print the same thing, thusly I do not care which type of object is set, as long as one of them is.

      Source: http://www.livejournal.com/community/php/328554.html

    13. getting rid of unwanted characters in variables

      Date: 08/04/05 (PHP Community)    Keywords: php

      I'm working on a script that accepts user input in fields and stores them in variables, but I want some way to 'fool proof' it so that they can't enter numerics in the name field and only certain characters in others. Are there any PHP functions that can handle this easily or any suggestions on how to handle this?

      thanks.

      Source: http://www.livejournal.com/community/php/331241.html

    14. Hey hey hey!

      Date: 08/04/05 (PHP Community)    Keywords: php, web

      Hello!
      I am new to php, and i have been using PHP includes on my website, as well as the date function.
      two things, I have a news include on my site. I want to make a page that includes that include, called archive.php

      then I want to include the newest months news on the index page in the news include.

      Is there a way to make it so that for one file it only show a certain amount of characters. Then I want to have a link that would link to the rest of the news for that year.

      Maybe you guys could help point me in the right direction. Gracias.

      btw, my web address is josharonoff.com

      thanks.

      Source: http://www.livejournal.com/community/php/330808.html

    15. PHP4/5 Heisenbug

      Date: 08/04/05 (PHP Community)    Keywords: php

      SOLVED (or at least fixed) - see comments.


      Slightly more complex, or at least much weirder, that the usual fare in here...


      I have some client code that I'm trying to port from PHP4 to PHP5. Unfortunately it's displaying some really odd object-related behaviour, in that when I access a class member in PHP4 it's there, and when I try in PHP5 it's NULL (but the class seems fine).

      Debugging this is further complicated by the fact that when I do var_dump()s on the target object AND the object accessing it, the member is present, correct and non-NULL.

      Anyone got any really cunning ideas? What, exactly, is var_dump doing that I'm not aware of?

      Source: http://www.livejournal.com/community/php/330520.html

    16. Cheat Sheets

      Date: 08/05/05 (Web Development)    Keywords: php, mysql, css, xml, sql, java

      ILoveJackDaniels.com has some really great cheat sheets that you may find handy.



      He just added some javascript cheats which includes XMLHTTPRequest cheats, function cheats, etc.

      http://www.ilovejackdaniels.com/cheat-sheets/

      He has Javascript cheats, PHP cheats, RGB Hex Color chart, mySQL, CSS, mod_rewrite, regular expressions and others.

      x-posted to '[info]'itprofessionals.

      Source: http://www.livejournal.com/community/webdev/231417.html

    17. Javascript...PLEASE help me.

      Date: 08/04/05 (Web Development)    Keywords: php, database, java, web

      here is the link:

      http://www.shifuimam.com/drfe/resources.php?id=1&sort=codedesc

      Now. I got a javascript from someone in '[info]'webdev or '[info]'webdesign that does the little image swap (see the entry for "Bends, Standard for Steel Plates). However, I've just now discovered that, for some bizarre reason, this script quits working if the ID number of the database entry is higher than 99. Any three-digit ID, and the script fails. See, for example, the entry for "Castings and Forgings" on that same page.

      Here's the script:



      Here's the code for one of those table rows with the little drop down comment thingy:

    PSSP99099Castings and Forgings0000-00-000000-00-00cc259aa272
     
              Initial release of the document.
         
     
    Previous page  ||  Next page


    antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home